浏览代码

升级版本

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]);
             }
         }