作者 lyh

gx

@@ -76,6 +76,7 @@ class GeoQuestionRes extends Command @@ -76,6 +76,7 @@ class GeoQuestionRes extends Command
76 $geoResultModel = new GeoQuestionResult(); 76 $geoResultModel = new GeoQuestionResult();
77 $geoLogModel = new GeoQuestionLog(); 77 $geoLogModel = new GeoQuestionLog();
78 foreach ($taskInfo['question'] as $question) { 78 foreach ($taskInfo['question'] as $question) {
  79 + $en_question = Translate::tran($question, 'zh') ?? '';
79 foreach ($platformsArr as $platform) { 80 foreach ($platformsArr as $platform) {
80 $data = $hit_data = []; 81 $data = $hit_data = [];
81 $error_num = 0; 82 $error_num = 0;
@@ -133,7 +134,7 @@ class GeoQuestionRes extends Command @@ -133,7 +134,7 @@ class GeoQuestionRes extends Command
133 'type' => $taskInfo['type'] ?? $geoQuestionModel::TYPE_BRAND, 134 'type' => $taskInfo['type'] ?? $geoQuestionModel::TYPE_BRAND,
134 'platform' => $platform, 135 'platform' => $platform,
135 'question' => $question, 136 'question' => $question,
136 - 'en_question'=>Translate::tran($question, 'zh') ?? '', 137 + 'en_question'=> $en_question,
137 'keywords' => json_encode($hit_keyword,true),//命中的关键词 138 'keywords' => json_encode($hit_keyword,true),//命中的关键词
138 'url' => json_encode($hit_url,true),//命中的网址 139 'url' => json_encode($hit_url,true),//命中的网址
139 'text' => json_encode($result,true), 140 'text' => json_encode($result,true),