最新版本的获取手机号接口的微信版本到底是什么?

小程序 文章 2022-01-26 17:20 594 0 全屏看文

AI助手支持GPT4.0

最新版本的获取手机号接口的微信版本到底是什么?What is the WeChat version of the latest version of the mobile phone number interface?

最新版本的获取手机号接口的微信版本到底是什么?

最新版本的获取手机号的接口getPhoneNumber兼容性好像十分的差,目前上线的小程序获取手机号功能在使用中遇到好多问题,新的getPhoneNumber获取code版本和使用机器要求不确定性很高,使用者使用微信版本:8.0. 17   ipad型号:ipad第8代  IOS:15.0.1,但就是获取不到,想问问这种咋回事呀

The compatibility of getphonenumber, the interface for obtaining mobile phone number in the latest version, seems to be very poor. At present, the function of obtaining mobile phone number in the online applet has encountered many problems in use. The requirements for obtaining code version and using machine of the new getphonenumber are very uncertain. Users use wechat version: 8.0 17 iPad model: iPad 8th generation IOS: 15.0.1, but I just can't get it. What's the matter

回答:

八九:

自己肯定要做兼容的,你不能保障所有用户基础库和版本都满足要求。

八九:向下兼容
想出门,不你不想:那其实不使用新的获取手机号接口反而更适合一点,做兼容更麻烦了
八九:做下兼容好点,反正后面要换,不换就去掉
想出门,不你不想:问题在于,目前获取手机号就两种方式,新版本和旧版本,我做兼容就是用新的不行改成旧的,那开始做旧的不香么
快放假了放假了放假了放假了:

2.21.2及以上版本,对应微信客户端8.0.16。建议先使用老版本。等过个几个月用户版本上来了 再改为新版的获取code方式。

想出门,不你不想:目前的解决方法就是这个
brave:

旧的不影响使用,新的是为了更安全的解密手机号。

-EOF-

AI助手支持GPT4.0