fix:前后端校验手机号区域码 #104
Reference in New Issue
Block a user
Delete Branch "fix-login-autofill+86"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
来自今早群友反映




before:
and failed
after:
https://developers.weixin.qq.com/miniprogram/dev/server/API/user-info/phone-number/api_getphonenumber.html#Res-phone-info-Object-Payload 参考微信这个文档修改了微信返回的struct 手机号 区域码字段不应是Optional
登录注册改密码改绑定等 api 把单一 phone字段改成 country_code(可选,缺省为86) + pure_phone_number 分别进行了前后端校验
fix: improve phone number input handling and standardize browser autofill behaviorto fix:登录 手机号浏览器自动填充+86导致格式错误不建议修改自动填充,而是主动过滤区号
telautocomplete for phone fieldshttps://developers.weixin.qq.com/miniprogram/dev/server/API/user-info/phone-number/api_getphonenumber.html#Res-phone-info-Object-Payload 参考微信这个文档修改了微信返回的struct 手机号 区域码字段不应是Optional
登录注册改密码改绑定等 api 把单一 phone字段改成 country_code(可选,缺省为86) + pure_phone_number 分别进行了前后端校验
fix:登录 手机号浏览器自动填充+86导致格式错误to fix:前后端校验手机号区域码