|
...
|
...
|
@@ -40,7 +40,7 @@ class AiBlogTask extends Command |
|
|
|
while (true){
|
|
|
|
$info = $aiBlogTaskModel->where('status',1)->orderBy('id','asc')->first();
|
|
|
|
if(empty($info)){
|
|
|
|
sleep(120);
|
|
|
|
sleep(30);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
$info = $info->toArray();
|
|
...
|
...
|
@@ -58,7 +58,7 @@ class AiBlogTask extends Command |
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if($result['status'] != 200){
|
|
|
|
sleep(30);
|
|
|
|
sleep(300);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
//修改任务状态
|
...
|
...
|
|