mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-06 03:58:03 +08:00
[更新]修复首次获取accessToken未赋值到$this->access_token上
This commit is contained in:
parent
4b1112e8d4
commit
a0c5263fd7
@ -105,7 +105,7 @@ class BasicWeChat
|
|||||||
if (!empty($result['access_token'])) {
|
if (!empty($result['access_token'])) {
|
||||||
Tools::setCache($cache, $result['access_token'], 7000);
|
Tools::setCache($cache, $result['access_token'], 7000);
|
||||||
}
|
}
|
||||||
return $result['access_token'];
|
return $this->access_token = $result['access_token'];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user