正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -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), |
-
请 注册 或 登录 后发表评论