教师端用本地时间查询
This commit is contained in:
parent
d2942f4bd2
commit
74138793a5
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user