修复登录失败原因提示 #374

Merged
kdletters merged 1 commits from codex/fix-login-error-details into master 2026-09-15 19:27:14 +08:00
Member

登录失败时,部分网关或兼容接口返回字符串形式的 error,前端解析失败后只显示通用“登录失败”,用户无法判断具体原因。

本次修改:

  • 统一错误解析器支持字符串 error,并保留标准嵌套错误的优先级。
  • 增加登录接口返回“手机号或密码错误”的回归测试。
  • 同步认证排障记录。

验证:

  • API 客户端测试 32 项通过
  • 认证服务与登录弹窗测试 55 项通过
  • npm run typecheck 通过
  • npm run lint:eslint 通过
  • npm run check:encoding 通过
登录失败时,部分网关或兼容接口返回字符串形式的 error,前端解析失败后只显示通用“登录失败”,用户无法判断具体原因。 本次修改: - 统一错误解析器支持字符串 error,并保留标准嵌套错误的优先级。 - 增加登录接口返回“手机号或密码错误”的回归测试。 - 同步认证排障记录。 验证: - API 客户端测试 32 项通过 - 认证服务与登录弹窗测试 55 项通过 - npm run typecheck 通过 - npm run lint:eslint 通过 - npm run check:encoding 通过
kdletters added 1 commit 2026-09-15 19:18:57 +08:00
修复登录失败原因提示
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Successful in 5m18s
Project CI / AI game creator shell Rust shard 4/4 (pull_request) Successful in 5m26s
Project CI / AI game creator shell Rust shard 1/4 (pull_request) Successful in 5m37s
Project CI / AI game creator shell Rust shard 3/4 (pull_request) Successful in 5m51s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 1m36s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 2m20s
Project CI / Repository checks (pull_request) Successful in 3m48s
Project CI / Frontend tests (pull_request) Successful in 5m2s
Project CI / Native shell tests (pull_request) Successful in 7m24s
Project CI / Backend tests (pull_request) Successful in 7m53s
Project CI / AI game creator shell web tests (pull_request) Successful in 3m6s
bbdedfcea7
统一错误解析器支持字符串 error 响应

补充登录错误原因回归测试

同步认证排障记忆
kdletters merged commit 687bad0adf into master 2026-09-15 19:27:14 +08:00
kdletters deleted branch codex/fix-login-error-details 2026-09-15 19:27:14 +08:00
Sign in to join this conversation.