如题:4月13日之后发布的小程序,使用接口wx.getUserProfile获取用户授权,而原先的scope.userInfo默认值为true,也就是页面逻辑不能再根据scope.userInfo获取用户是否授权过,并且每次需要获取用户信息时,则都需要弹窗wx.getUserProfile去获取用户信息
。。。。。。。。。
总结:scope.userInfo判断用户是否授权已经不管用了????且每次登录相关操作都需要授权弹窗????
头大。。。。。。。。。
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.........
回答:
https://developers.weixin.qq.com/community/develop/article/doc/00040885c386f81e96cbf93cf51013 看这里
对啊 wx.getUserProfile每次都会弹框,不能用scope.userInfo判断
不能判断了。