作者 lyh

gx

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