fix 提前10分钟通知
This commit is contained in:
parent
c42fd4fe76
commit
2612e06bb6
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user