作者 lyh

gx

@@ -34,7 +34,9 @@ class RapIdApIService @@ -34,7 +34,9 @@ class RapIdApIService
34 public function requestUrl($keyword){ 34 public function requestUrl($keyword){
35 $this->url = 'https://google-keyword-insight1.p.rapidapi.com/globalkey'; 35 $this->url = 'https://google-keyword-insight1.p.rapidapi.com/globalkey';
36 $url = $this->url.'/?keyword='.$keyword.'&lang=en'; 36 $url = $this->url.'/?keyword='.$keyword.'&lang=en';
37 - return $this->curlGoogleApi($url); 37 + $data = $this->curlGoogleApi($url);
  38 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND);
  39 + return $data;
38 } 40 }
39 41
40 /** 42 /**