微信小程序登录信息获取,获取到的姓名"微信用户"以及头像为默认头像,目前只能按照以下方式去改了。
以前的getUserInfo已经不能直接调用了,现在只能使用getUserProfile,需要点击触发时间调起,可以做个引导性的点击事件触发。
官方公告:
https://developers.weixin.qq.com/community/develop/doc/000cacfa20ce88df04cb468bc52801
官方文档:
https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserProfile.html