mead 2 месяцев назад
Родитель
Сommit
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]);
             }
         }