getUserInfo:fail scope unauthorized
小程序登录时用
wx.getUserInfo({
success: function (res) {
console.log({ encryptedData: res.encryptedData, iv: res.iv, code: code })
//3.解密用户信息 获取unionId
//…
},
fail: function (ref) {
console.log(ref)
}
})
返回getUserInfo:fail scope unauthorized怎么回事啊