PC端微信小程序不支持phonenumber.getPhoneNumber 接口怎么办?

小程序 文章 2022-04-18 11:00 0 全屏看文

PC端微信小程序不支持phonenumber.getPhoneNumber 接口怎么办?What should I do if the WeChat applet on the PC does not support the phonenumber.getPhoneNumber interface?

PC端微信小程序不支持phonenumber.getPhoneNumber 接口怎么办?

根据公告,从基础库 2.21.2 开始,对获取手机号的接口进行了安全升级,以下是新版本接口使用指南。(旧版本接口目前可以继续使用,但建议开发者使用新版本接口,以增强小程序安全性)

可是微信PC端以及升级到最新的了还是不能使用新的接口,自己更新的api自己的客户端都没有更新基础库吗,有点low

那请问PC端什么时候会更新基础库?

According to the announcement, starting from the basic library 2.21.2, the interface for obtaining mobile phone number has been safely upgraded. The following is the user guide of the new version of the interface. (the old version of the interface can continue to be used at present, but it is recommended that developers use the new version of the interface to enhance the security of small programs). However, the wechat PC side and the latest upgrade still can not use the new interface. Do their own updated APIs and their own clients have not updated the basic library? It's a little low. When will the PC side update the basic library?

回答:

闵仙森想独酌҉҉҉҉҉҉҉一杯:

试了 可以用啊

许永沁:后台配置2.21.2后,就只提示更新了,PC以及更新到最新了,只能说PC端微信基础库没有更新
闵仙森想独酌҉҉҉҉҉҉҉一杯:手机号授权 不需要2.21.2吧
许永沁:一月份新发的就要了,虽然旧的还没废弃,可是自己发的公告又劝人用新的,真是...
闵仙森想独酌҉҉҉҉҉҉҉一杯:是code改造那个吧?先别改吧。等官方更新
老张:

1、什么都不需要改动,不受你控制的事,等就完事。

许永沁:老板不这么想
brave:

自己逻辑做好兼容。

-EOF-