wx.getUserInfo换成wx.getUserProfile之后,只能使用按钮来调用了吗?

小程序 文章 2021-04-08 18:02 475 0 全屏看文

AI助手支持GPT4.0

wx.getUserInfo换成wx.getUserProfile之后,只能使用按钮来调用了吗?After replacing wx.getUserInfo with wx.getUserProfile, can I only use the button to call it?

wx.getUserInfo换成wx.getUserProfile之后,只能使用按钮来调用了吗?

原来onshow()每次都会调用wx.getUserInfo,这样如果授权过的用户就不用再点击登陆按钮而是直接到用户信息界面了。现在改版之后,难道我要用一个数据库把用户的信息都存起来自己传吗?

It turns out that Onshow () is called every time wx.getUserInfo In this way, if the authorized users do not need to click the login button, they will go directly to the user information interface. Now after the revision, do I want to use a database to save the user's information and transfer it by myself?

回答:

AnDrew:

这个就要看你们和后端怎么商量的了

undefined:

存在 app.globalData 里面

ᝰꫛꫀꪝ .:

套用客服一句话

这边推荐你卸载微信或者换个行业(微信是老大,请严格按照老大的要求来执行)

沃德天·维森陌·拉莫帅🌝:

拿到数据后存到本地缓存

-EOF-

AI助手支持GPT4.0