更新定时任务

This commit is contained in:
liuchengqian 2023-03-10 09:47:49 +08:00
parent 0694d104b9
commit abd12055f9

View File

@ -26,8 +26,8 @@ public class StaticScheduleTask {
firePointSubscribeManager.autoSync(); firePointSubscribeManager.autoSync();
} }
//小时测试一次微信消息推送 //天中午12点测试一次微信消息推送
@Scheduled(cron = "0 0 * * * ?") @Scheduled(cron = "0 0 */12 * * ?")
private void testPushWeiXinMessage() { private void testPushWeiXinMessage() {
try { try {
WeiXinMessageUtils.sendMsg("18447024917@chatroom", "微信发消息测试 " + DateTimeUtils.localDateTimeToString(LocalDateTime.now()), 0); WeiXinMessageUtils.sendMsg("18447024917@chatroom", "微信发消息测试 " + DateTimeUtils.localDateTimeToString(LocalDateTime.now()), 0);