正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -60,10 +60,10 @@ class AiBlogAuthorTask extends Command | @@ -60,10 +60,10 @@ class AiBlogAuthorTask extends Command | ||
| 60 | $aiBlogService->mch_id = $aiSettingInfo['mch_id']; | 60 | $aiBlogService->mch_id = $aiSettingInfo['mch_id']; |
| 61 | $aiBlogService->key = $aiSettingInfo['key']; | 61 | $aiBlogService->key = $aiSettingInfo['key']; |
| 62 | $result = $aiBlogService->getAuthor(); | 62 | $result = $aiBlogService->getAuthor(); |
| 63 | - if(!isset($result['status'])){ | 63 | + if(!isset($result['status']) || !isset($result['data'])){ |
| 64 | continue; | 64 | continue; |
| 65 | } | 65 | } |
| 66 | - if($result['status'] != 200){ | 66 | + if($result['status'] != 200 || empty($result['data'])){ |
| 67 | sleep(10); | 67 | sleep(10); |
| 68 | continue; | 68 | continue; |
| 69 | } | 69 | } |
-
请 注册 或 登录 后发表评论