From 46015018fee8b8a807a4256eefb33ebac1bf2acf Mon Sep 17 00:00:00 2001 From: Dai Date: Mon, 7 Oct 2024 23:44:36 +0800 Subject: [PATCH] fix bug --- app/common/service/SendMsgCronJobService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/common/service/SendMsgCronJobService.php b/app/common/service/SendMsgCronJobService.php index 45dc67a..3ddcdf4 100644 --- a/app/common/service/SendMsgCronJobService.php +++ b/app/common/service/SendMsgCronJobService.php @@ -575,7 +575,8 @@ class SendMsgCronJobService { try { $teacher_schedule_time = TeacherScheduleTime::where(['is_publish' => 1]) - ->whereTime('start_time', '<=', date('Y-m-d H:i:s', strtotime('+10 minute'))) + ->whereTime('start_time', '>=', date('Y-m-d H:i:s', strtotime('+10 minute'))) + ->whereTime('start_time', '<=', date('Y-m-d H:i:s', strtotime('+11 minute'))) ->with(['teacherAttr', 'subject', 'studentSchedule']) ->select();