From abd12055f9e2cfd791fd32130bd5e8a6abeebe7f Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Fri, 10 Mar 2023 09:47:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/xkrs/common/StaticScheduleTask.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);