wx.getUserProfile is not a function 8.0.1和2 出现这类问题
发布于 5 年前 作者 dmao 7018 次浏览 来自 官方Issues

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

appid:wxb1e56e65405bf2dc

appid2:wx126872e3becaceeb

3 回复

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

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

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

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

回到顶部