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