|
...
|
...
|
@@ -34,6 +34,8 @@ class GoogleLinkService |
|
|
|
$queryString = http_build_query($param);
|
|
|
|
$url = $this->url . '?' . $queryString;
|
|
|
|
$response = http_get($url);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($url, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($response, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
if (!empty($response) && !empty($response['data']['total'])) {
|
|
|
|
// 计算总数并一次性获取所有数据
|
|
|
|
$param['pagesize'] = $response['data']['total'];
|
...
|
...
|
|