英语2区:新增活动
This commit is contained in:
@@ -528,7 +528,7 @@ public class MyApiService {
|
||||
|
||||
public void sendWeekStarAward() {
|
||||
log.info("send WeekStar Award begin");
|
||||
List<Integer> partitionIdList = List.of(PartitionEnum.TURKEY.getId());
|
||||
List<Integer> partitionIdList = List.of(PartitionEnum.ENGLISH2.getId());
|
||||
weekStarService.sendWeekStarAward(partitionIdList);
|
||||
log.info("send WeekStar Award end");
|
||||
}
|
||||
|
@@ -19,11 +19,13 @@ public class ActivityOfCpTask {
|
||||
@Scheduled(cron = "0 5 0 ? * MON", zone = "Etc/GMT-3")
|
||||
public void taskAbr() {
|
||||
activityOfCpService.task(new Date(), PartitionEnum.ARAB);
|
||||
activityOfCpService.task(new Date(), PartitionEnum.TURKEY);
|
||||
}
|
||||
|
||||
@Scheduled(cron = "0 5 0 ? * MON", zone = "Etc/GMT-8")
|
||||
public void taskEC() {
|
||||
activityOfCpService.task(new Date(), PartitionEnum.ENGLISH);
|
||||
activityOfCpService.task(new Date(), PartitionEnum.CHINESE);
|
||||
activityOfCpService.task(new Date(), PartitionEnum.ENGLISH2);
|
||||
}
|
||||
}
|
||||
|
@@ -61,7 +61,7 @@ public class MonthRankTask extends BaseTask {
|
||||
public void monthRankTaskGMT8() {
|
||||
Date date = new Date();
|
||||
Date lastMonthDate = DateUtil.offsetMonth(date, -1);
|
||||
List<PartitionEnum> partitionEnumList = List.of(PartitionEnum.ENGLISH);
|
||||
List<PartitionEnum> partitionEnumList = List.of(PartitionEnum.ENGLISH, PartitionEnum.ENGLISH2);
|
||||
for (PartitionEnum partitionEnum : partitionEnumList) {
|
||||
try {
|
||||
log.info("=-=monthRankTaskGMT8.krypton_rank=-=:date:{},lastMonthDate:{}", DateUtil.formatDateTime(date), lastMonthDate);
|
||||
|
@@ -28,7 +28,7 @@ public class WeekStarAwardTask extends BaseTask {
|
||||
@Scheduled(cron = "0 1 0 ? * MON")
|
||||
public void sendWeekStarAward(){
|
||||
log.info("send WeekStar Award begin");
|
||||
List<Integer> partitionIdList = List.of(PartitionEnum.CHINESE.getId(), PartitionEnum.ENGLISH.getId());
|
||||
List<Integer> partitionIdList = List.of(PartitionEnum.CHINESE.getId(), PartitionEnum.ENGLISH.getId(), PartitionEnum.ENGLISH2.getId());
|
||||
weekStarService.sendWeekStarAward(partitionIdList);
|
||||
log.info("send WeekStar Award end");
|
||||
}
|
||||
|
Reference in New Issue
Block a user