更新配置

This commit is contained in:
liuchengqian 2023-03-09 10:04:04 +08:00
parent 719d9a1740
commit 85f50f4aad

View File

@ -3,8 +3,6 @@ package com.xkrs.common;
import com.xkrs.helper.FirePointSubscribeManager; import com.xkrs.helper.FirePointSubscribeManager;
import com.xkrs.utilsnew.DateTimeUtils; import com.xkrs.utilsnew.DateTimeUtils;
import com.xkrs.utilsnew.WeiXinMessageUtils; import com.xkrs.utilsnew.WeiXinMessageUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
@ -22,8 +20,8 @@ public class StaticScheduleTask {
@Resource @Resource
private FirePointSubscribeManager firePointSubscribeManager; private FirePointSubscribeManager firePointSubscribeManager;
//小时更新一次订阅 //小时更新一次订阅
@Scheduled(cron = "0 */30 * * * ?") @Scheduled(cron = "0 0 * * * ?")
private void syncSubscribe() { private void syncSubscribe() {
firePointSubscribeManager.autoSync(); firePointSubscribeManager.autoSync();
} }
@ -38,11 +36,4 @@ public class StaticScheduleTask {
} }
} }
//每4秒钟更新一次订阅
@Scheduled(cron = "0/4 * * * * ?")
private void syncSubscribe6() {
firePointSubscribeManager.autoSync();
}
} }