From 2612e06bb6dbefe09ea0ad26267deba0693f5187 Mon Sep 17 00:00:00 2001 From: Dai Date: Fri, 15 Nov 2024 17:38:00 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=8F=90=E5=89=8D10=E5=88=86=E9=92=9F?= =?UTF-8?q?=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/SendMsgCronJobService.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/common/service/SendMsgCronJobService.php b/app/common/service/SendMsgCronJobService.php index c257069..6fe10e1 100644 --- a/app/common/service/SendMsgCronJobService.php +++ b/app/common/service/SendMsgCronJobService.php @@ -366,7 +366,7 @@ class SendMsgCronJobService ]); // throw new Exception('未找到课程分配的学生'); } - + $student_info = []; foreach ($studentSchedule as $student) { @@ -577,7 +577,9 @@ class SendMsgCronJobService { try { $teacher_schedule_time = TeacherScheduleTime::where(['is_publish' => 1]) - ->whereBetweenTime('start_time', date('Y-m-d H:i:00', strtotime('+10 minute')), date('Y-m-d H:i:00', strtotime('+11 minute'))) + ->whereTime('start_time', '>=', date('Y-m-d H:i:00', strtotime('+10 minute'))) + ->whereTime('start_time', '<', date('Y-m-d H:i:00', strtotime('+11 minute'))) +// ->whereBetweenTime('start_time', date('Y-m-d H:i:00', strtotime('+10 minute')), date('Y-m-d H:i:00', strtotime('+11 minute'))) ->with(['teacherAttr', 'subject', 'studentSchedule']) ->select();