前端获取手机号无法返回code

小程序 文章 2022-02-11 17:40 350 0 全屏看文

AI助手支持GPT4.0

前端获取手机号无法返回codeThe front-end gets the mobile phone number and cannot return the code

前端获取手机号无法返回code
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug 获取手机号 工具 8.0.16 2.21.3

https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/getPhoneNumber.html

Framework type problem type API / component name terminal type wechat version basic library version applet bug get mobile number tool 8.0.16 2.21.3 https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/getPhoneNumber.html Code snippet getphonenumber (E) {console. Log (e.detail. Code)},

回答:

Haney Yasuo:

更新开发工具到最新,手机上微信客户端得8.0.16及以上,目前我认为还是要用旧版本接口去做旧版本兼容的,或者用云函数获取

小黎:

工具升级没

Mr.Zhao:

基础库满足要求,还要更新下工具版本

-EOF-

AI助手支持GPT4.0