微信小程序微信头像以及微信名称返回有问题

小程序 文章 2021-04-08 13:42 484 0 全屏看文

AI助手支持GPT4.0

微信小程序微信头像以及微信名称返回有问题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

回答:

社区技术运营专员-Jahozheng:

周知: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


养乐多:请问为啥一些基础库高于2.10.4的版本也不支持getUserProfile,如2.13.0, 2.11.3,同时getUserInfo也获取不到真实的昵称头像,开发工具Stable v1.05.2103190。
|G.XIAO|:

还可以了解下用户授权的前世今生 https://developers.weixin.qq.com/community/develop/article/doc/000c8ce9a10070794cfbb0c085b013 让我们更好的适配,加油

Hoooooo!:

getUserInfo 开发版 & 体验版 已对齐 getUserInfo 匿名表现,正式版将于 4月13日 正式对齐 getUserInfo 匿名表现。请开发者使用 getUserProfile 获取用户信息。


小程序登录、用户信息相关接口调整说明:https://developers.weixin.qq.com/community/develop/doc/000cacfa20ce88df04cb468bc52801


-EOF-

AI助手支持GPT4.0