[更新]修复首次获取accessToken未赋值到$this->access_token上

This commit is contained in:
Anyon 2018-05-08 10:38:53 +08:00
parent 4b1112e8d4
commit a0c5263fd7

View File

@ -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'];
}
/**