Browse Source

升级版本

mead 2 months ago
parent
commit
b47ae44e8b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/Console/Commands/InitCourseCommand.php

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

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