wx.getUserProfile用户授权后,scope.userInfo不能判断用户是否授权吗?

小程序 文章 2021-03-09 18:21 692 0 全屏看文

AI助手支持GPT4.0

wx.getUserProfile用户授权后,scope.userInfo不能判断用户是否授权吗?After wx.getUserProfile user is authorized, can scope.userInfo not judge whether the user is authorized?

wx.getUserProfile用户授权后,scope.userInfo不能判断用户是否授权吗?

如题:4月13日之后发布的小程序,使用接口wx.getUserProfile获取用户授权,而原先的scope.userInfo默认值为true,也就是页面逻辑不能再根据scope.userInfo获取用户是否授权过,并且每次需要获取用户信息时,则都需要弹窗wx.getUserProfile去获取用户信息

。。。。。。。。。

总结:scope.userInfo判断用户是否授权已经不管用了????且每次登录相关操作都需要授权弹窗????

头大。。。。。。。。。

Such as: April 13 after the release of small programs, using the interface wx.getUserProfile Get user authorization instead of the original scope.userInfo The default value is true, which means that the page logic can no longer be based on scope.userInfo Get whether the user has been authorized, and each time you need to get user information, you need to pop up wx.getUserProfile To get user information......... Conclusion: scope.userInfo It is no longer useful to judge whether the user is authorized???? And every time you log in, you need to authorize the pop-up window???? Big head.........

回答:

跨商通:

不能判断了。

Brother斌🎈:

对啊 wx.getUserProfile每次都会弹框,不能用scope.userInfo判断

小xiao🍋:今天才仔细看文档,原来scope.userInfo已经不管用了。。。业务逻辑好多要改,头大。。。
Brother斌🎈:对啊 我都打算等4月再改,等别人踩踩坑,不急
小xiao🍋:害  折腾人

-EOF-

AI助手支持GPT4.0