|
...
|
...
|
@@ -35,7 +35,6 @@ class RapIdApIService |
|
|
|
$this->url = 'https://google-keyword-insight1.p.rapidapi.com/globalkey';
|
|
|
|
$url = $this->url.'/?keyword='.$keyword.'&lang=en';
|
|
|
|
$data = $this->curlGoogleApi($url);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
return $data;
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -80,6 +79,7 @@ class RapIdApIService |
|
|
|
if ($err) {
|
|
|
|
return false;
|
|
|
|
} else {
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($response, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
return json_decode($response,true);
|
|
|
|
}
|
|
|
|
}
|
...
|
...
|
|