小程序授权获取的手机号,不是当前用户使用的手机号

小程序 文章 2021-02-02 19:41 525 0 全屏看文

AI助手支持GPT4.0

小程序授权获取的手机号,不是当前用户使用的手机号The mobile phone number authorized by the applet is not the mobile phone number used by the current user

小程序授权获取的手机号,不是当前用户使用的手机号
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug wx.login 微信安卓客户端 7.0.20 2.0.0

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 wx.login Wechat Android client 7.0.20 2.0.0 https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/getPhoneNumber.html The app is authorized to get the user's mobile phone number. What it returns is the mobile phone number when it registered on wechat, but this mobile phone number has been used by others. Can this situation be recognized by adding a verification code?

回答:

拾忆:

在小程序中手机号并不是一个很好的作为唯一标识的依据,因为一个用户可以设置绑定多个不同的手机号,你可以在自己的系统中判断哪个用户最先绑定了这个号码,如果别人绑定过则提示更换手机号。

AKA. 皮卡超:

1,代码校验绑定了,

2提示用户选择其他手机号授权

Mr.Zhao:

手机号被用户A绑定了,用户B再绑定这个手机号的时候给个提示不让绑定就行了

-EOF-

AI助手支持GPT4.0