From 74138793a5b658ed23a7b94bf124d453722e924d Mon Sep 17 00:00:00 2001 From: Dai Date: Fri, 9 May 2025 16:59:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E5=B8=88=E7=AB=AF=E7=94=A8=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E6=97=B6=E9=97=B4=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/TeacherScheduleTimeService.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/common/service/TeacherScheduleTimeService.php b/app/common/service/TeacherScheduleTimeService.php index f60c2f8..323e5d4 100644 --- a/app/common/service/TeacherScheduleTimeService.php +++ b/app/common/service/TeacherScheduleTimeService.php @@ -93,11 +93,11 @@ class TeacherScheduleTimeService $data = $request->get(); $schedule = TeacherScheduleTime::order('id desc')->where(['teacher_id' => $teacher->id, 'is_publish' => 1]); - if (isset($data['month']) && !empty($data['month'])) { - $schedule->where('month', $data['month']); + if (isset($data['en_month']) && !empty($data['en_month'])) { + $schedule->where('en_month', $data['en_month']); } - if (isset($data['date']) && !empty($data['date'])) { - $schedule->where('date', $data['date']); + if (isset($data['en_date']) && !empty($data['en_date'])) { + $schedule->where('en_date', $data['en_date']); } $list = $schedule->field('id,teacher_id,date,en_date,time,en_time,hour,month,en_month,time_zone_id,time_zone_name,time_zone_abbr,time_zone_offset,subject_id,is_publish')