作者 lyh

gx

... ... @@ -60,8 +60,8 @@ class VideoTask extends Command
{
echo '开始:'.PHP_EOL;
Log::info('开始视频推广任务');
$this->createSubTask();
// $this->sendSubTask();
// $this->createSubTask();
$this->sendSubTask();
Log::info('结束视频推广任务');
return true;
}
... ... @@ -89,7 +89,6 @@ class VideoTask extends Command
$task_project->save();
continue;
}
echo '开始:1'.PHP_EOL;
ProjectServer::useProject($task_project->project_id);
$keyword = $this->getProjectKeyword();
// 已经没有需要生成视频的关键词
... ... @@ -98,7 +97,6 @@ class VideoTask extends Command
$task_project->save();
continue;
}
echo '开始:2';
foreach ($keyword as $val) {
$log = KeywordVideoTaskLog::where(['project_id' => $task_project->project_id, 'keyword_id' => $val->id])->first();
if ($log){
... ... @@ -120,7 +118,6 @@ class VideoTask extends Command
$task_project->status = KeywordVideoTask::STATUS_CLOSE;
$task_project->save();
}
echo '开始:3';
return true;
}
... ...