小程序授权登录,有缓存了还是需要重新授权登录,这是为什么?

小程序 文章 2022-01-14 19:00 613 0 全屏看文

AI助手支持GPT4.0

小程序授权登录,有缓存了还是需要重新授权登录,这是为什么?The applet authorizes the login, there is a cache or it still needs to be re-authorized to log in, why is this?

小程序授权登录,有缓存了还是需要重新授权登录,这是为什么?

微信小程序授权登录也存了缓存还是需要重新登录,用到了wx.setStorageSync和wx.getStorageSync还有wx.getUserInfo




Wechat applet authorization login is also saved in the cache. You still need to log in again. Wx is used Setstoragesync and Wx Getstoragesync and Wx getUserInfo

回答:

社区技术运营专员-horanzhou:

建议亮代码片段请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

谋谋谋:

亮代码吧

董:发了
brave:

别人看不到你的代码,自己检查代码逻辑。

董:发了

-EOF-

AI助手支持GPT4.0