liumiao
2021-01-28 3e5433e2c883c0ea55085e5e30d967fe88448993
根据学员获取课次
1 files modified
3 ■■■■■ changed files
app/Http/Controllers/Api/v1/ClassScheduleController.php 3 ●●●●● patch | view | raw | blame | history
app/Http/Controllers/Api/v1/ClassScheduleController.php
@@ -446,6 +446,9 @@
            $val["numTypes"] = $actualNum . "/" . $leaveNum . "/" . $signIn . "/" . $classStudentsNum;//出勤/请假/人脸/应到
            $val["remind"] = 0;//代办提醒
            $val["courseName"] = !empty($courseMap[$val["classCode"]]) ? $courseMap[$val["classCode"]] : '';//课程名字
            $contentTime = explode('-', $val["contentTime"]);
            $val["startContentTime"] = $contentTime[0];
            $val["endContentTime"] = $contentTime[1];
            $dayTime = explode('-', $val["startTime"]);
            $mapList[(int)$dayTime[2]][] = $val;
        }