作者 lyh

gx创建作者

@@ -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 }