-
-
Notifications
You must be signed in to change notification settings - Fork 9k
MP_刷新access_token
wu zhefang edited this page Jul 24, 2020
·
5 revisions
在大多数情况下,你是不需要显示地去刷新access token的,因为WxMpService
会在access token过期的时候自己刷新。
比如我们获取用户信息时微信反馈access token过期,WxMpService
会自己刷新access token,然后再次去获取用户信息。并且会将access token更新到WxMpConfigStorage
里。
如果你的确需要自己手工刷新access token,则可以:
wxMpService.accessTokenRefresh();
获得的新的access token会更新到WxMpConfigStorage
中。
为什么我能编辑这个页面 reply: 谁都可以