调用wx.getUserProfile()
"{"show_type":0,"desc":"获得你的公开信息(昵称、头像、地区及性别)","allow_wording":"允许","cancel_wording":"拒绝","avatar_info":{"avatar_list":[{"id":0,"nickname":"Une nuit de l'été","avatarurl":"https://thirdwx.qlogo.cn/mmopen/vi_32/SVk2Deu3XicIRW6YvUH0PaUq7bGuVyNSgEiabXuTfXYCqlQdeXicqEG5APTeibxUWwrWluOKsKTuOTANibfrXx4EaVg/132","desc":"微信个人信息"}],"is_ban_modify_avatar":false,"avatar_limit":4,"default_avatar_id":0,"default_headimg_url":"https://thirdwx.qlogo.cn/mmopen/vi_32/Q3auHgzwzM75ZnUhwkwM9BDqxRLWWQ6X60BheYhvx60npDVxXLKaq8HkGQXtrSiafeSicBZiaCXywsK7P4bia5v1tQ/132","default_headimg_fileid":"140811_jE0NXHCg","avatar_wording":"使用其他头像和昵称","limit_wording":"数量已达上限,无法新增"}}"
这个问题解决了吗?我是在调试就遇到了这个问题,不知道怎么解决了
你好,可以参考下这个回复
https://developers.weixin.qq.com/community/develop/doc/0000cc133d82c0b6db0bda8f255c00?_at=1629108600584