作者 lyh

gx

... ... @@ -40,7 +40,8 @@ class AiBlogTask extends Command
while (true){
$info = $aiBlogTaskModel->where('status',1)->orderBy('id','asc')->first();
if($info === false){
sleep(10);
sleep(20);
continue;
}
$info = $info->toArray();
echo '开始->任务id:' . $info['task_id'] . PHP_EOL . date('Y-m-d H:i:s');
... ... @@ -52,7 +53,7 @@ class AiBlogTask extends Command
$aiBlogService->task_id = $info['task_id'];
$result = $aiBlogService->getDetail();
if($result['status'] != 200){
sleep(5);
sleep(10);
continue;
}
//修改任务状态
... ...