getSetting接口读取scope.userInfo为undefined

小程序 文章 2021-04-08 11:42 634 0 全屏看文

AI助手支持GPT4.0

getSetting接口读取scope.userInfo为undefinedThe getSetting interface reads scope.userInfo as undefined

getSetting接口读取scope.userInfo为undefined
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug getSetting 工具 8.0.1 2.16.0

这个问题是在我清理完开发者工具的授权缓存之后出现的,前端时间getuserinfo接口调整,因为我没有用到基础信息,所以根本不用改动,文档上也说明了getSetting接口会直接读取到scope.userInfo为true。

文档截图:

在控制台打印getSetting的返回值:

使用的工具是HBuilder X,uniapp编译到微信小程序。

Framework type problem type API / component name terminal type wechat version basic library version applet bug getsetting tool 8.0.1 2.16.0 This problem occurred after I cleaned up the authorization cache of the developer tool. The front-end time getUserInfo interface was adjusted. Because I didn't use the basic information, I didn't need to change it at all. The document also states that the getsetting interface will read it directly scope.userInfo Is true. Document screenshot: print the return value of getsetting on the console: the tool used is hbuilder x, which compiles uniapp into wechat applet.

回答:

Aurora.:

现在接口更新了都不提供这个字段了,我现在也不知道要怎么判断这个

Samuel.Schrödinger:

对出现了同样的问题,本来我们靠getuserinfo解码出unionid的也不存用户信息,我都没打算改,但是都不返回这个东西 我服气了

陈:

是版本库太低了吗?

null:基础库是最新的,而且调整之后的“不触发授权弹窗”实现了,对于“getSetting”的调整却没实现

-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
wx.downloadFile url不能是本地文件路径吗?
小程序生成URL Scheme官方文档调整后没有生效?
请教微信小程序如何获取当前用户更换了手机?
小程序迁移后可以隐藏掉迁移记录吗?
定时器,不循环执行指定方法?如何解决?
随便看看
老爷子收到了057128256416的电话号码 3113
阿里云com、cn域名续费优惠码(2020年3月可用) 2863
线上防疫题库正确答案 2932
线上防疫题库正确答案(多选题) 4825
微信设置不可以使用小程序(游戏小程序) 5634
adsense申请已经支付的订单回退的网址 3212
BT面板查看网站入口、账号密码的命令 6009
ucloud海外服务器超级优惠券 3274
根据您的消费情况,您的延停权益已发生变化,变更后的延停权益为延停额度20.00元 5831
为什么我们喜欢迈克尔杰克逊。 4164