|
...
|
...
|
@@ -50,19 +50,21 @@ class GeoService |
|
|
|
* @param int $lum_json 默认1 不只是什么参数
|
|
|
|
* @return mixed|string
|
|
|
|
*/
|
|
|
|
public function getGooglePlatformResult($search, $lum_json = 1)
|
|
|
|
public function getGooglePlatformResult($search)
|
|
|
|
{
|
|
|
|
$url = 'http://43.153.56.18:58000/google_ai_summary';
|
|
|
|
$url = 'https://api.cmer.com/ai-overviews';
|
|
|
|
$header = [
|
|
|
|
'accept: application/json',
|
|
|
|
'x-api-key: 6EipgPsy3Q7Q9M2jCx',
|
|
|
|
'Content-Type: application/json'
|
|
|
|
'apikey: UkzZljFv83Z2qBi5YR1o3f2otAVWtug6',
|
|
|
|
'Content-Type: application/json',
|
|
|
|
'X-CmerApi-Host:ai-overviews.p.cmer.com'
|
|
|
|
];
|
|
|
|
$param = [
|
|
|
|
'q' => $search,
|
|
|
|
'lum_json' => $lum_json
|
|
|
|
'location' => 'New York, United States',
|
|
|
|
'gl' => 'us',
|
|
|
|
'hl'=>'en'
|
|
|
|
];
|
|
|
|
|
|
|
|
$url = $url . '?' . http_build_query($param);
|
|
|
|
return http_get($url, $header);
|
|
|
|
}
|
...
|
...
|
|