若开发者调用wx.getSetting接口请求用户的授权状态,会直接读取到scope.userInfo为true
目前wx.getUserProfile接口用户同意授权后,scope.userInfo不为true
wx.getUserProfile接口用户同意授权后,scope.userInfo不为true?After wx.getUserProfile interface user agrees to authorization, scope.userInfo is not true?
wx.getUserProfile接口用户同意授权后,scope.userInfo不为true?若开发者调用wx.getSetting接口请求用户的授权状态,会直接读取到scope.userInfo为true
目前wx.getUserProfile接口用户同意授权后,scope.userInfo不为true
According to the announcement https://developers.weixin.qq.com/community/develop/doc/000cacfa20ce88df04cb468bc52801?highLine=wx.getUserProfile As mentioned, if the developer calls wx.getSetting The interface requests the authorization status of the user and reads it directly scope.userInfo Is true at present wx.getUserProfile After the interface user agrees to authorize, scope.userInfo Not true
回答:
wx.getUserProfile会返回昵称地区等信息不会返回encryptedData和iv,wx.getUserInfo会返回encryptedData和iv和匿名的昵称等信息,
wx.getUserProfile每次调用都会弹一次弹框,wx.getUserInfo调用不会再弹出弹框
机制已经变了,你理解的是以前的逻辑,要是一样改接口就没意义了