作者 lyh

gx

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