fix:前后端校验手机号区域码 #104

Merged
kdletters merged 9 commits from fix-login-autofill+86 into master 2026-07-23 14:52:57 +08:00

9 Commits

Author SHA1 Message Date
k88936 60c6425c86 Merge branch 'master' into fix-login-autofill+86
Project CI / Frontend tests (pull_request) Successful in 38s
Project CI / Repository checks (pull_request) Successful in 52s
Project CI / Native shell tests (pull_request) Successful in 2m18s
Project CI / Backend tests (pull_request) Successful in 3m35s
# Conflicts:
#	docs/project-memory/shared-memory/decision-log.md
2026-07-23 14:44:43 +08:00
k88936 c6d60affec Merge branch 'master' into fix-login-autofill+86
Project CI / Frontend tests (pull_request) Successful in 47s
Project CI / Repository checks (pull_request) Successful in 57s
Project CI / Native shell tests (pull_request) Successful in 2m11s
Project CI / Backend tests (pull_request) Successful in 3m50s
2026-07-23 14:10:50 +08:00
k88936 994b7119ec 统一手机号国家码与纯号码校验
Project CI / Frontend tests (pull_request) Successful in 30s
Project CI / Native shell tests (pull_request) Successful in 2m10s
Project CI / Backend tests (pull_request) Failing after 7s
Project CI / Repository checks (pull_request) Failing after 8s
认证请求以 countryCode 与 purePhoneNumber 替换旧 phone 字段
后端默认国家码 86 并拒绝其他国家码,复用纯手机号规范化生成 E.164
微信手机号绑定强制使用 provider 返回的国家码和纯号码并补齐前后端测试文档
2026-07-23 13:52:22 +08:00
k88936 2a80fa179a 收紧微信手机号响应非空契约
按微信官方响应文档将 phoneNumber、purePhoneNumber、countryCode 设为必填字段
补充字段缺失、错误响应和空字符串的失败关闭测试
2026-07-23 13:52:05 +08:00
k88936 3ad79572ba Merge branch 'master' into fix-login-autofill+86
Project CI / Frontend tests (pull_request) Successful in 33s
Project CI / Repository checks (pull_request) Successful in 2m23s
Project CI / Backend tests (pull_request) Successful in 3m22s
Project CI / Native shell tests (pull_request) Successful in 2m6s
2026-07-23 10:12:05 +08:00
k88936 c45aa287b0 Merge branch 'master' into fix-login-autofill+86
Project CI / Repository checks (pull_request) Successful in 40s
Project CI / Frontend tests (pull_request) Successful in 1m22s
Project CI / Native shell tests (pull_request) Successful in 2m29s
Project CI / Backend tests (pull_request) Successful in 3m31s
2026-07-22 19:07:52 +08:00
k88936 4db7d4cc5d Merge branch 'master' into fix-login-autofill+86
Project CI / Repository checks (pull_request) Successful in 1m0s
Project CI / Frontend tests (pull_request) Successful in 31s
Project CI / Native shell tests (pull_request) Successful in 2m31s
Project CI / Backend tests (pull_request) Failing after 1m39s
2026-07-22 18:08:51 +08:00
k88936 afe847c400 revert: retain tel autocomplete for phone fields
Project CI / Backend tests (pull_request) Successful in 10m57s
Project CI / Repository checks (pull_request) Successful in 3m23s
Project CI / Frontend tests (pull_request) Successful in 2m31s
Project CI / Native shell tests (pull_request) Successful in 6m47s
2026-07-22 14:52:32 +08:00
k88936 bfb4d3d3b9 fix: improve phone number input handling and standardize browser autofill behavior
Project CI / Native shell tests (pull_request) Successful in 6m10s
Project CI / Frontend tests (pull_request) Successful in 1m37s
Project CI / Repository checks (pull_request) Successful in 2m49s
Project CI / Backend tests (pull_request) Successful in 6m59s
- Updated `autoComplete` attributes to `tel-national` for better compatibility with domestic phone numbers.
- Added `normalizePhoneInput` in `authService` to handle browser autofills with `+86` or `86` prefixes for mainland China numbers.
- Enhanced tests to cover phone number normalization logic.
2026-07-22 11:46:47 +08:00