diff --git a/src/main/java/com/xkrs/common/StaticScheduleTask.java b/src/main/java/com/xkrs/common/StaticScheduleTask.java index b845dad..63486a8 100644 --- a/src/main/java/com/xkrs/common/StaticScheduleTask.java +++ b/src/main/java/com/xkrs/common/StaticScheduleTask.java @@ -3,8 +3,6 @@ package com.xkrs.common; import com.xkrs.helper.FirePointSubscribeManager; import com.xkrs.utilsnew.DateTimeUtils; import com.xkrs.utilsnew.WeiXinMessageUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.Scheduled; @@ -22,8 +20,8 @@ public class StaticScheduleTask { @Resource private FirePointSubscribeManager firePointSubscribeManager; - //每半小时更新一次订阅 - @Scheduled(cron = "0 */30 * * * ?") + //每小时更新一次订阅 + @Scheduled(cron = "0 0 * * * ?") private void syncSubscribe() { firePointSubscribeManager.autoSync(); } @@ -38,11 +36,4 @@ public class StaticScheduleTask { } } - //每4秒钟更新一次订阅 - @Scheduled(cron = "0/4 * * * * ?") - private void syncSubscribe6() { - firePointSubscribeManager.autoSync(); - } - - } \ No newline at end of file