作者 lyh

gx

@@ -35,7 +35,6 @@ class RapIdApIService @@ -35,7 +35,6 @@ class RapIdApIService
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 $data = $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 return $data;
40 } 39 }
41 40
@@ -80,6 +79,7 @@ class RapIdApIService @@ -80,6 +79,7 @@ class RapIdApIService
80 if ($err) { 79 if ($err) {
81 return false; 80 return false;
82 } else { 81 } else {
  82 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($response, true) . PHP_EOL, FILE_APPEND);
83 return json_decode($response,true); 83 return json_decode($response,true);
84 } 84 }
85 } 85 }