作者 lyh

gx

@@ -9,6 +9,7 @@ @@ -9,6 +9,7 @@
9 9
10 namespace App\Console\Commands\Geo; 10 namespace App\Console\Commands\Geo;
11 11
  12 +use App\Helper\Translate;
12 use App\Models\Geo\GeoPlatform; 13 use App\Models\Geo\GeoPlatform;
13 use App\Models\Geo\GeoQuestion; 14 use App\Models\Geo\GeoQuestion;
14 use App\Models\Geo\GeoQuestionLog; 15 use App\Models\Geo\GeoQuestionLog;
@@ -132,6 +133,7 @@ class GeoQuestionRes extends Command @@ -132,6 +133,7 @@ class GeoQuestionRes extends Command
132 'type' => $taskInfo['type'] ?? $geoQuestionModel::TYPE_BRAND, 133 'type' => $taskInfo['type'] ?? $geoQuestionModel::TYPE_BRAND,
133 'platform' => $platform, 134 'platform' => $platform,
134 'question' => $question, 135 'question' => $question,
  136 + 'en_question'=>Translate::tran($question, 'zh') ?? '',
135 'keywords' => json_encode($hit_keyword,true),//命中的关键词 137 'keywords' => json_encode($hit_keyword,true),//命中的关键词
136 'url' => json_encode($hit_url,true),//命中的网址 138 'url' => json_encode($hit_url,true),//命中的网址
137 'text' => json_encode($result,true), 139 'text' => json_encode($result,true),