소스 검색

升级版本

mead 2 달 전
부모
커밋
e318f5ed0c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/Console/Commands/InitCourseCommand.php

+ 1 - 0
app/Console/Commands/InitCourseCommand.php

@@ -202,6 +202,7 @@ class InitCourseCommand extends Command
             $data = json_decode($data, true);
             foreach ($data['Videos'] as $k => $v) {
                 $sort = $t - $k;
+                $this->line("{$v['name']}==>{$sort}");
                 Video::query()->where('course_id', 'in', $courses)->where('title', $v['name'])->update(['sort' => $sort]);
             }
         }