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