之前旧版本的微信小程序获取手机号通过getphonenumber方法获取的是errMsg、iv、encryptedData
现在微信小程序更新为通过getphonenumber方法获取code了
但是通过uniapp获取的依然是老的参数,无法获取到code
旧:https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/deprecatedGetPhoneNumber.html
新:https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/getPhoneNumber.html
JJJJJJJJJJJ
我解决了,开发者工具升机到最新版就能获取到了https://developers.weixin.qq.com/community/develop/doc/000e02120b0470635b4d1529c5b800?highLine=uniapp%25E8%258E%25B7%25E5%258F%2596%25E6%2589%258B%25E6%259C%25BA%25E5%258F%25B7
2022-03-02 10:52