diff --git a/WeChat/Contracts/BasicWeChat.php b/WeChat/Contracts/BasicWeChat.php index 1af8ceb..83c9a3d 100644 --- a/WeChat/Contracts/BasicWeChat.php +++ b/WeChat/Contracts/BasicWeChat.php @@ -105,7 +105,7 @@ class BasicWeChat if (!empty($result['access_token'])) { Tools::setCache($cache, $result['access_token'], 7000); } - return $result['access_token']; + return $this->access_token = $result['access_token']; } /**