fix bug
This commit is contained in:
parent
3b7b8fcdb4
commit
f8f0d5801a
@ -61,7 +61,7 @@ class TeacherScheduleTimeController extends BaseController
|
|||||||
->with(['teacher', 'subject', 'oneStudentSchedule'])
|
->with(['teacher', 'subject', 'oneStudentSchedule'])
|
||||||
->order('start_time asc')
|
->order('start_time asc')
|
||||||
->select()->toArray();
|
->select()->toArray();
|
||||||
|
|
||||||
|
|
||||||
$array = [];
|
$array = [];
|
||||||
$stu_nmae = '';
|
$stu_nmae = '';
|
||||||
@ -70,10 +70,8 @@ class TeacherScheduleTimeController extends BaseController
|
|||||||
|
|
||||||
|
|
||||||
if ($v['oneStudentSchedule']) {
|
if ($v['oneStudentSchedule']) {
|
||||||
foreach ($v['oneStudentSchedule'] as $k1 => $v1) {
|
if ($v['is_publish']) {
|
||||||
if ($v1['is_publish']) {
|
$student[] = $v['student_name'];
|
||||||
$student[] = $v1['student_name'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$student[] = '';
|
$student[] = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user