|
...
|
...
|
@@ -121,16 +121,12 @@ class GeoQuestionRes extends Command |
|
|
|
if (!empty($hit_keyword['keywords'])) {
|
|
|
|
$hit++;
|
|
|
|
}
|
|
|
|
if(!empty($hit_keyword['keywords_num'])){
|
|
|
|
$keyword_num = json_encode($hit_keyword['keywords_num'],true);
|
|
|
|
}
|
|
|
|
$keyword_num = json_encode($hit_keyword['keywords_num'] ?? [],true);
|
|
|
|
$hit_url = $this->getUrl($taskInfo['url'],$hit_data);
|
|
|
|
if (!empty($hit_url['url'])) {
|
|
|
|
$hit++;
|
|
|
|
}
|
|
|
|
if (!empty($hit_url['url_num'])) {
|
|
|
|
$url_num = json_encode($hit_url['url'],true);
|
|
|
|
}
|
|
|
|
$url_num = json_encode($hit_url['url'] ?? [],true);
|
|
|
|
// 保存数据结果
|
|
|
|
$geo_result = $geoResultModel->read(['project_id' => $taskInfo['project_id'],'type' => $taskInfo['type'], 'question_id' => $task_id, 'platform' => $platform, 'question' => $question],['id']);
|
|
|
|
$save_data = [
|
...
|
...
|
|