修复密码输入可访问性并统一新手机号为中国大陆区号

This commit is contained in:
cieanyau committed 2026-11-06 04:53:45 +08:00
1 parent 990b802553
commit f6ab3c9087
15 files changed
+592 -362

No files matched your search

+2 -7
View File
@@ -49,15 +49,10 @@ function i(i) {
email: t,
});
else {
let e = String(
typeof i.phoneCode == `function`
? i.phoneCode()
: (i.phoneCode ?? 86),
).trim();
if (!/^[1-9]\d{0,3}$/.test(e)) throw Error(`请输入有效的国际电话区号`);
// 此发送器只服务新输入手机号;已保存号码的安全验证走原后端账号契约,不在这里改写。
await a.post(`/phone/code`, {
...n,
phone_code: Number(e),
phone_code: 86,
phone: t,
});
}