|
@@ -15,35 +15,35 @@ public class AppAdJob {
|
|
|
@Autowired
|
|
|
private ISysDictDataService dictDataService;
|
|
|
|
|
|
- /*
|
|
|
- @Scheduled(cron = "0 0 23 * * ?")
|
|
|
+
|
|
|
+ @Scheduled(cron = "0 0 19 * * ?")
|
|
|
public void openAd() {
|
|
|
log.info("--------打开广告!~---------------");
|
|
|
SysDictData splashAd = dictDataService.selectDictDataById(104l);
|
|
|
- SysDictData nativeAd = dictDataService.selectDictDataById(105l);
|
|
|
+ // SysDictData nativeAd = dictDataService.selectDictDataById(105l);
|
|
|
splashAd.setDictValue("1");
|
|
|
- nativeAd.setDictValue("1");
|
|
|
+ //nativeAd.setDictValue("1");
|
|
|
dictDataService.updateDictData(splashAd);
|
|
|
- dictDataService.updateDictData(nativeAd);
|
|
|
+ //dictDataService.updateDictData(nativeAd);
|
|
|
|
|
|
}
|
|
|
- */
|
|
|
- /*
|
|
|
- @Scheduled(cron = "0 30 6 * * ?")
|
|
|
+
|
|
|
+
|
|
|
+ @Scheduled(cron = "0 0 6 * * ?")
|
|
|
public void closeAd() {
|
|
|
log.info("--------关闭广告!~---------------");
|
|
|
SysDictData splashAd = dictDataService.selectDictDataById(104l);
|
|
|
- SysDictData nativeAd = dictDataService.selectDictDataById(105l);
|
|
|
+ // SysDictData nativeAd = dictDataService.selectDictDataById(105l);
|
|
|
splashAd.setDictValue("0");
|
|
|
- nativeAd.setDictValue("0");
|
|
|
+ // nativeAd.setDictValue("0");
|
|
|
dictDataService.updateDictData(splashAd);
|
|
|
- dictDataService.updateDictData(nativeAd);
|
|
|
+ // dictDataService.updateDictData(nativeAd);
|
|
|
|
|
|
}
|
|
|
- */
|
|
|
+
|
|
|
|
|
|
@Scheduled(cron = "0 30 6 * * ?")
|
|
|
- public void closeAd() {
|
|
|
+ public void closeAd2() {
|
|
|
log.info("--------现在是6点半!~---------------");
|
|
|
}
|
|
|
|