diff --git a/app/common/library/wxserver/Server.php b/app/common/library/wxserver/Server.php index 903a2b62..ad7808f7 100644 --- a/app/common/library/wxserver/Server.php +++ b/app/common/library/wxserver/Server.php @@ -53,9 +53,6 @@ class Server */ public function getComponentAccessToken() { - if (Cache::has('ComponentAccessToken')) { - return Cache::get('ComponentAccessToken'); - } $url = 'https://api.weixin.qq.com/cgi-bin/component/api_component_token'; $ticket = Cache::get('component_verify_ticket'); if (!empty($ticket)) { @@ -66,7 +63,6 @@ class Server $result = $this->curlPost($url, json_encode($data), 10); $result = json_decode($result, true); if (!empty($result['component_access_token'])) { - Cache::set('ComponentAccessToken', $result['component_access_token'], 6200); return $result['component_access_token']; } }