正在显示
1 个修改的文件
包含
6 行增加
和
2 行删除
| @@ -58,9 +58,13 @@ class AiBlogTask extends Command | @@ -58,9 +58,13 @@ class AiBlogTask extends Command | ||
| 58 | $aiBlogService->key = $aiSettingInfo['key']; | 58 | $aiBlogService->key = $aiSettingInfo['key']; |
| 59 | $aiBlogService->task_id = $item['task_id']; | 59 | $aiBlogService->task_id = $item['task_id']; |
| 60 | $result = $aiBlogService->getDetail(); | 60 | $result = $aiBlogService->getDetail(); |
| 61 | - if(!isset($result['status']) || $result['status'] != 200){ | 61 | + if(!isset($result['status'])){ |
| 62 | echo json_encode($result,true).PHP_EOL; | 62 | echo json_encode($result,true).PHP_EOL; |
| 63 | - sleep(5); | 63 | + $aiBlogTaskModel->edit(['status'=>9],['id'=>$item['id']]); |
| 64 | + continue; | ||
| 65 | + } | ||
| 66 | + if($result['status'] != 200){ | ||
| 67 | + echo '错误状态码:'.$result['status'].PHP_EOL; | ||
| 64 | continue; | 68 | continue; |
| 65 | } | 69 | } |
| 66 | //保存当前项目ai_blog数据 | 70 | //保存当前项目ai_blog数据 |
-
请 注册 或 登录 后发表评论