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(); });