https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/getPhoneNumber.html
获取手机号API没有返回codeNo code is returned from the mobile phone number acquisition API
获取手机号API没有返回code框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|
小程序 | Bug | getPhoneNumber | 微信安卓客户端 | 8.0.16 | 2.21.2 |
Framework type problem type API / component name terminal type wechat version basic library version applet bug getphonenumber wechat Android client 8.0 16 2.21. two https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/getPhoneNumber.html
回答:
① 确认当前基础库版本是否为 2.21.2
及以上。
② 目前开发者工具未兼容此表现(近期应该会同步),目前以真机调试
为准。
真机测试没返回?
原文出处:获取手机号API没有返回code
先以真机为准,工具后续同步表现