作者 lyh

gx脚本导出产品

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