作者 lyh

gx

... ... @@ -63,7 +63,7 @@ class GoogleSearchKeyword extends Command
*/
public function handle(){
$projectModel = new Project();
$lists = $projectModel->list(['delete_status' => 0,'type'=>['!=',$projectModel::TYPE_ONE]], 'id', ['id']);
$lists = $projectModel->list(['delete_status' => 0,'extend_type'=>0,'type'=>['in',$projectModel::TYPE_ONE]], 'id', ['id']);
$domainModel = new DomainInfo();
foreach ($lists as $val) {
echo date('Y-m-d H:i:s') . '开始--项目的id:'. $val['id'] . PHP_EOL;
... ...
... ... @@ -45,6 +45,20 @@ class RapIdApIService
}
/**
* @remark :备用数据
* @name :keywordResearch
* @author :lyh
* @method :post
* @time :2025/4/10 10:23
*/
public function keywordResearch($keyword){
$this->url = 'https://seo-keyword-research.p.rapidapi.com/keynew.php';
$param = ["keyword" => $keyword, 'country' => 'us'];
$query_string = str_replace('+', '%20', http_build_query($param));
$url = $this->url.'/?'.$query_string;
return $this->curlGoogleApi($url);
}
/**
* @remark :请求
* @name :curlGoogleApi
* @author :lyh
... ...