正在显示
1 个修改的文件
包含
5 行增加
和
5 行删除
| @@ -27,21 +27,21 @@ class QuanqiusouApi | @@ -27,21 +27,21 @@ class QuanqiusouApi | ||
| 27 | */ | 27 | */ |
| 28 | public function getSiteRes() | 28 | public function getSiteRes() |
| 29 | { | 29 | { |
| 30 | - $key = 'quanqiusou_api_site_res_' . date('Y-m-d'); | ||
| 31 | - $res = Cache::get($key); | ||
| 32 | - if (!$res) { | 30 | +// $key = 'quanqiusou_api_site_res_' . date('Y-m-d'); |
| 31 | +// $res = Cache::get($key); | ||
| 32 | +// if (!$res) { | ||
| 33 | $api_url = $this->url . '/google-rank/echo_site_res.php'; | 33 | $api_url = $this->url . '/google-rank/echo_site_res.php'; |
| 34 | try { | 34 | try { |
| 35 | $res = HttpUtils::get($api_url, []); | 35 | $res = HttpUtils::get($api_url, []); |
| 36 | if($res){ | 36 | if($res){ |
| 37 | $res = Arr::s2a($res); | 37 | $res = Arr::s2a($res); |
| 38 | - Cache::put($key, $res, 2 * 3600); | 38 | +// Cache::put($key, $res, 2 * 3600); |
| 39 | } | 39 | } |
| 40 | } catch (\Exception | GuzzleException $e) { | 40 | } catch (\Exception | GuzzleException $e) { |
| 41 | errorLog('获取站点收录页面数', [], $e); | 41 | errorLog('获取站点收录页面数', [], $e); |
| 42 | return false; | 42 | return false; |
| 43 | } | 43 | } |
| 44 | - } | 44 | +// } |
| 45 | return $res; | 45 | return $res; |
| 46 | } | 46 | } |
| 47 | 47 |
-
请 注册 或 登录 后发表评论