fix 提前一天给教师发通知
This commit is contained in:
parent
efb24136da
commit
da8dab751f
@ -338,14 +338,14 @@ class SendMsgCronJobService
|
||||
{
|
||||
try {
|
||||
$teacher_schedule_time = TeacherScheduleTime::where(['is_publish' => 1])
|
||||
->whereTime('start_time', '>=', date('Y-m-d 00:00:00', strtotime('+0 day')))
|
||||
->whereTime('start_time', '<=', date('Y-m-d 23:59:59', strtotime('+0 day')))
|
||||
->whereTime('start_time', '>=', date('Y-m-d 00:00:00', strtotime('+1 day')))
|
||||
->whereTime('start_time', '<=', date('Y-m-d 23:59:59', strtotime('+1 day')))
|
||||
->with(['teacherAttr', 'subject', 'studentSchedule'])
|
||||
->select();
|
||||
|
||||
foreach ($teacher_schedule_time as $item) {
|
||||
$studentSchedule = $item->studentSchedule->toArray();
|
||||
if (!empty($studentSchedule)) {
|
||||
if (empty($studentSchedule)) {
|
||||
CronJob::create([
|
||||
'msg_type' => self::CLASS_BEGIN_NOTIFY_TEACHER,
|
||||
'teacher_id' => $item->teacher_id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user