getUserinfo获取用户信息头像获取到的是默认头像,昵称也是默认昵称,如何解决?

小程序 文章 2021-04-06 07:42 511 0 全屏看文

AI助手支持GPT4.0

getUserinfo获取用户信息头像获取到的是默认头像,昵称也是默认昵称,如何解决?getUserinfo gets user information. The avatar gets the default avatar, and the nickname is also the default nickname. How to solve it?

getUserinfo获取用户信息头像获取到的是默认头像,昵称也是默认昵称,如何解决?

回答:

|G.XIAO|:

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

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

CitizenFour:

getUserProfile

微信官方社区7级专家专用小尾巴

-EOF-

AI助手支持GPT4.0