wx.getUserProfile is not a function 8.0.1和2 出现这类问题

发布于 7 年前作者 dmao7206 次浏览最后编辑 7 年前来自 issues

我们多个小程序都出现了 部分用户授权异常的问题,后台错误日志显示 wx.getUserProfile is not a function 

appid:wxb1e56e65405bf2dc

appid2:wx126872e3becaceeb

3 回复
xiaxie
xiaxie1 楼5 年前

根据文档做兼容,用if(wx.getUserProfile)判断能不能用

eluo
eluo2 楼5 年前

wx.getUserProfile 2.16.0才会返回用户的相关信息及加密数据 =

正在向正式版2.10.4基础库版本兼容 具体时间未通告

线上基础库设置参考:登录 mp(https://mp.weixin.qq.com/)后台 设置 基本设置 基础库设置

xiuyingzhu
xiuyingzhu3 楼5 年前

我也是这个问题,可以参考我这个提问改:https://developers.weixin.qq.com/community/develop/doc/0002864130c4d032770c7cda256c00