canUse api 为什么不支持getUserProfile?
发布于 5 年前 作者 kongjuan 2756 次浏览 来自 官方Issues

 官方更改了getUserInfo api,建议用getUserProfile,为什么wx.canIUse(‘getUserProfile’) 返回false, 期望是true

8 回复

持续关注中

希望快点修复

版本没问题的话 真机调试一下 我刚才遇到这个问题了 真机调试是true模拟器就是false

使用版本号比较,微信文档中也说了,版本号比较适用所有情况。

https://developers.weixin.qq.com/miniprogram/dev/framework/compatibility.html

建议查看基础库是否更新

建议真机调试尝试返回结果

回到顶部