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