合并分支 'master-server' 到 'master'
gx脚本导出产品 查看合并请求 !1169
正在显示
1 个修改的文件
包含
6 行增加
和
2 行删除
| @@ -52,8 +52,12 @@ class AiBlogTask extends Command | @@ -52,8 +52,12 @@ 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 | - echo '开始->任务id:' . json_encode($result) . PHP_EOL . date('Y-m-d H:i:s'); | ||
| 56 | - if(!isset($result['status']) || $result['status'] != 200){ | 55 | + if(!isset($result['status'])){ |
| 56 | + //修改任务状态 | ||
| 57 | + $aiBlogTaskModel->edit(['status'=>3],['id'=>$info['id']]); | ||
| 58 | + continue; | ||
| 59 | + } | ||
| 60 | + if($result['status'] != 200){ | ||
| 57 | sleep(10); | 61 | sleep(10); |
| 58 | continue; | 62 | continue; |
| 59 | } | 63 | } |
-
请 注册 或 登录 后发表评论