diff --git a/src/main/java/com/xkrs/common/StaticScheduleTask.java b/src/main/java/com/xkrs/common/StaticScheduleTask.java index 63486a8..902e88f 100644 --- a/src/main/java/com/xkrs/common/StaticScheduleTask.java +++ b/src/main/java/com/xkrs/common/StaticScheduleTask.java @@ -26,8 +26,8 @@ public class StaticScheduleTask { firePointSubscribeManager.autoSync(); } - //每小时测试一次微信消息推送 - @Scheduled(cron = "0 0 * * * ?") + //每天中午12点测试一次微信消息推送 + @Scheduled(cron = "0 0 */12 * * ?") private void testPushWeiXinMessage() { try { WeiXinMessageUtils.sendMsg("18447024917@chatroom", "微信发消息测试 " + DateTimeUtils.localDateTimeToString(LocalDateTime.now()), 0);