|
@@ -16,7 +16,7 @@ public class AppAdJob {
|
|
|
private ISysDictDataService dictDataService;
|
|
|
|
|
|
|
|
|
- @Scheduled(cron = "0 0 13 * * ?")
|
|
|
+ // @Scheduled(cron = "0 0 13 * * ?")
|
|
|
public void openAd() {
|
|
|
log.info("--------打开广告!~---------------");
|
|
|
SysDictData splashAd = dictDataService.selectDictDataById(104l);
|
|
@@ -33,7 +33,7 @@ public class AppAdJob {
|
|
|
}
|
|
|
|
|
|
|
|
|
- @Scheduled(cron = "0 30 8 * * ?")
|
|
|
+ // @Scheduled(cron = "0 30 8 * * ?")
|
|
|
public void closeAd() {
|
|
|
log.info("--------关闭广告!~---------------");
|
|
|
SysDictData splashAd = dictDataService.selectDictDataById(104l);
|
|
@@ -42,9 +42,9 @@ public class AppAdJob {
|
|
|
splashAd.setDictValue("0");
|
|
|
nativeAd.setDictValue("0");
|
|
|
bannerAd.setDictValue("0");
|
|
|
- //dictDataService.updateDictData(splashAd);
|
|
|
- //dictDataService.updateDictData(nativeAd);
|
|
|
- //dictDataService.updateDictData(bannerAd);
|
|
|
+ dictDataService.updateDictData(splashAd);
|
|
|
+ dictDataService.updateDictData(nativeAd);
|
|
|
+ dictDataService.updateDictData(bannerAd);
|
|
|
|
|
|
}
|
|
|
|