AI助手支持GPT4.0
使用无法显示头像?Can't display avatar using ?
使用
无法显示头像? 头像的链接是通过wx.getUserInfo获取的,wxml中代码是这样的:
<image style="width: 72rpx; height: 72rpx; border-radius: 50%;" src="https://wx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132"></image>
显示的是一个下面图片中的灰色头像,不是微信头像:
请问有什么解决办法吗?
The avatar link is through Wx The code in wxml obtained by getUserInfo is as follows: < image style = "width: 72rpx; height: 72rpx; border radius: 50%;" src="/uploads/cj/article/2022/02/19/a91797efdf5c0e44575625208de2d6b5.jpg"> < / Image > shows a gray avatar in the following picture, not a wechat Avatar: is there any solution?
通过 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