通过wx.getUserProfile授权获取用户信息,仅仅返回用户昵称,其他用户信息均为空
网友回复
社区技术运营专员-Jahozheng:
参考https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserProfile.html
御坂美琴つ:
波:
你是想要拿到openId还是说,你通过wx.getUserProfile只拿到了用户昵称,用户头像等其他用户信息没有。
樊捷:
如果是前端获取不到,可能是基础库版本造成的
猫的房东:
这个 api只用于获取用户头像昵称。至于你要获取openId那些信息,用wx.login+code2Session换。