作者 zhl

变更排序

@@ -82,7 +82,7 @@ class VideoTask extends Command @@ -82,7 +82,7 @@ class VideoTask extends Command
82 if ($sub_task_num <= 0){ 82 if ($sub_task_num <= 0){
83 break; 83 break;
84 } 84 }
85 - $task_project = KeywordVideoTask::where(['status' => KeywordVideoTask::STATUS_OPEN])->orderBy('sort', 'desc')->first(); 85 + $task_project = KeywordVideoTask::where(['status' => KeywordVideoTask::STATUS_OPEN])->orderBy('sort', 'desc')->orderBy('id', 'desc')->first();
86 if (empty($task_project)){ 86 if (empty($task_project)){
87 break; 87 break;
88 } 88 }