|
...
|
...
|
@@ -43,4 +43,28 @@ class GoogleKeywordInsightDetail extends Base |
|
|
|
}
|
|
|
|
return $this->insertAll($saveData);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :保存一条数据
|
|
|
|
* @name :saveInsightDetailOne
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/4/1 11:32
|
|
|
|
*/
|
|
|
|
public function saveInsightDetailOne($project_id,$keyword,$data){
|
|
|
|
$transData = Translate::tran($data['text'], 'zh');
|
|
|
|
$saveData = [
|
|
|
|
'search'=>$keyword,
|
|
|
|
'text'=>$data['text'],
|
|
|
|
'zh_text'=>$transData ?? $data['text'],
|
|
|
|
'project_id'=>$project_id,
|
|
|
|
'volume'=>$data['volume'],
|
|
|
|
'competition_level'=>$data['competition_level'],
|
|
|
|
'competition_index'=>$data['competition_index'],
|
|
|
|
'low_bid'=>$data['low_bid'],
|
|
|
|
'high_bid'=>$data['high_bid'],
|
|
|
|
'trend'=>$data['trend'],
|
|
|
|
];
|
|
|
|
return $this->addReturnId($saveData);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|