From 3f6b9b765db92899dd1bfb6769251f3f7221e06e Mon Sep 17 00:00:00 2001 From: Dai Date: Mon, 4 Nov 2024 09:40:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=9A=E6=97=B6=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/SendMsgCronJobService.php | 2 +- process/Task.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/common/service/SendMsgCronJobService.php b/app/common/service/SendMsgCronJobService.php index c4bc140..acfcdb9 100644 --- a/app/common/service/SendMsgCronJobService.php +++ b/app/common/service/SendMsgCronJobService.php @@ -1061,7 +1061,7 @@ class SendMsgCronJobService ], "lang" => "zh_CN", ]; - + $result = (new WechatSubscriptService())->sendMsg($send_teacher_data); //@todo:写入日志中 diff --git a/process/Task.php b/process/Task.php index 0b2188a..9494e10 100644 --- a/process/Task.php +++ b/process/Task.php @@ -11,7 +11,7 @@ class Task { // 每天的7点50执行,注意这里省略了秒位 - new Crontab('50 7 * * *', function(){ + new Crontab('0 10 * * *', function(){ //上课前一天提醒教师、学生、家长 (new SendMsgCronJobService())->classBeginSingleMsgToTeacher(); });