昵称是可以获取到的,但是头像和性别获取不到
用户信息偶尔获取不到<button class='btn' open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo" type='primary'>授权登录</button> bindGetUserInfo: function(e) { app.userZc(e); }, [图片] 非常的神奇,有的手机能获取到,有的获取不到 不知道为什么
2018-07-12同样的问题,已经被驳回好多次了,没有头绪
授权获取用户资料不成功小程序在个别iphone手机上申请授权有时候不成功,请求已经确定申请了,都是就是拿不到用户资料,iphone 6P 6.6.5版本遇到这个情况,其他的iphone也遇到过第一次不行,再点一下才获取成功 html 代码 [代码]<[代码][代码]view[代码][代码]>[代码][代码] <[代码][代码]button[代码] [代码]bindgetuserinfo[代码][代码]=[代码][代码]"sq"[代码] [代码]open-type[代码][代码]=[代码][代码]"getUserInfo"[代码] [代码]class[代码][代码]=[代码][代码]'agree-btn btn'[代码][代码]>同意</[代码][代码]button[代码][代码]>[代码][代码]</[代码][代码]view[代码][代码]>[代码] js代码 [代码]sq: [代码][代码]function[代码] [代码]() { [代码][代码] [代码][代码]wx.showLoading({[代码][代码] [代码][代码]title: [代码][代码]'授权中...'[代码][代码],[代码][代码] [代码][代码]})[代码][代码] [代码][代码]wx.login({[代码][代码] [代码][代码]success: res => {[代码][代码] [代码][代码]if[代码] [代码](res.code) {[代码][代码] [代码][代码]wx.getUserInfo({[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res2) { [代码][代码] [代码] [代码] [代码] [代码] [代码][代码] [代码][代码]console.log(res2)[代码] [代码] [代码][代码]},[代码][代码] [代码][代码]fail() {[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]'授权失败wx.info'[代码][代码],[代码][代码] [代码][代码]duration: 1000[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]{[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]'授权失败'[代码][代码],[代码][代码] [代码][代码]duration: 1000[代码][代码] [代码][代码]}) [代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail() {[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]'授权失败wx.login'[代码][代码],[代码][代码] [代码][代码]duration: 1000[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码]
2018-07-12