正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -52,7 +52,8 @@ class AiBlogTask extends Command | @@ -52,7 +52,8 @@ class AiBlogTask extends Command | ||
| 52 | $aiBlogService->key = $aiSettingInfo['key']; | 52 | $aiBlogService->key = $aiSettingInfo['key']; |
| 53 | $aiBlogService->task_id = $info['task_id']; | 53 | $aiBlogService->task_id = $info['task_id']; |
| 54 | $result = $aiBlogService->getDetail(); | 54 | $result = $aiBlogService->getDetail(); |
| 55 | - if($result['status'] != 200){ | 55 | + echo '开始->任务id:' . json_encode($result) . PHP_EOL . date('Y-m-d H:i:s'); |
| 56 | + if(!isset($result['status']) || $result['status'] != 200){ | ||
| 56 | sleep(10); | 57 | sleep(10); |
| 57 | continue; | 58 | continue; |
| 58 | } | 59 | } |
-
请 注册 或 登录 后发表评论