收到返回来的信息:头像无法显示,名称则是微信用户
微信小程序微信头像以及微信名称返回有问题WeChat applet WeChat avatar and WeChat name return problems
微信小程序微信头像以及微信名称返回有问题框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|
小程序 | Bug | wx.getUserInfo | 工具 | 6.5.3以上 | 2.16.0 |
收到返回来的信息:头像无法显示,名称则是微信用户
Framework type problem type API / component name terminal type wechat version basic library version applet bug wx.getUserInfo Tool 6.5.3 above 2.16.0 received the returned message: the avatar cannot be displayed, and the name is wechat user
回答:
还可以了解下用户授权的前世今生 https://developers.weixin.qq.com/community/develop/article/doc/000c8ce9a10070794cfbb0c085b013 让我们更好的适配,加油
getUserInfo 开发版 & 体验版 已对齐 getUserInfo 匿名表现,正式版将于 4月13日 正式对齐 getUserInfo 匿名表现。请开发者使用 getUserProfile 获取用户信息。
小程序登录、用户信息相关接口调整说明:https://developers.weixin.qq.com/community/develop/doc/000cacfa20ce88df04cb468bc52801
原文出处:微信小程序微信头像以及微信名称返回有问题
周知:getUserInfo 开发版 & 体验版 已对齐 getUserInfo 匿名表现,正式版将于 4月13日 正式对齐 getUserInfo 匿名表现。请开发者使用 getUserProfile 获取用户信息。开发版 & 体验版 scope.userInfo 调整将于 4月13日 对齐。
pc微信暂不支持wx.getUserProfile,可以参考示例代码进行兼容
https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserProfile.html#%E7%A4%BA%E4%BE%8B%E4%BB%A3%E7%A0%81
小程序登录、用户信息相关接口调整说明:https://developers.weixin.qq.com/community/develop/doc/000cacfa20ce88df04cb468bc52801