作者 lyh

GXgeo设置

... ... @@ -81,6 +81,9 @@ class GeoQuestionRes extends Command
GET_RESULT:
$error_num++;
try {
if ($error_num >= 5) {
continue;
}
if ($platform == 'Google AI Overview') {
continue;
// overview 数据结构不确定, 需要单独处理数据
... ... @@ -94,11 +97,8 @@ class GeoQuestionRes extends Command
}
} catch (\Exception $e) {
$this->output('task id:' . $task_id . ', question: ' . $question . ', platform: ' . $question . ', error: ' . $e->getMessage());
if ($error_num < 2) {
goto GET_RESULT;
}
continue;
}
// 命中文案
$hit_data[] = $result['text'];
if(!empty($result['annotations'])){
... ...