作者 lyh

gx创建作者

@@ -40,7 +40,7 @@ class AiBlogTask extends Command @@ -40,7 +40,7 @@ class AiBlogTask extends Command
40 while (true){ 40 while (true){
41 $info = $aiBlogTaskModel->where('status',1)->orderBy('id','asc')->first(); 41 $info = $aiBlogTaskModel->where('status',1)->orderBy('id','asc')->first();
42 if(empty($info)){ 42 if(empty($info)){
43 - sleep(120); 43 + sleep(30);
44 continue; 44 continue;
45 } 45 }
46 $info = $info->toArray(); 46 $info = $info->toArray();
@@ -58,7 +58,7 @@ class AiBlogTask extends Command @@ -58,7 +58,7 @@ class AiBlogTask extends Command
58 continue; 58 continue;
59 } 59 }
60 if($result['status'] != 200){ 60 if($result['status'] != 200){
61 - sleep(30); 61 + sleep(300);
62 continue; 62 continue;
63 } 63 }
64 //修改任务状态 64 //修改任务状态