作者 lyh

gx

... ... @@ -95,7 +95,13 @@ class VideoTask extends Command
continue;
}
$logo_bg = $this->getImage($domainInfo);
$num = $task_project->num;
foreach ($keyword as $val) {
if($sub_task_num == 0){
$task_project->num = $num;
$task_project->save();
break;
}
$log = KeywordVideoTaskLog::where(['project_id' => $task_project->project_id, 'keyword_id' => $val->id])->first();
if ($log){
continue;
... ... @@ -114,11 +120,7 @@ class VideoTask extends Command
'created_at' => date('Y-m-d H:i:s'),
];
KeywordVideoTaskLog::insert($array);
$task_project->num--;
if($sub_task_num == 0){
$task_project->save();
break;
}
$num--;
$sub_task_num--;
}
}
... ...