feat(player, i18n): add error code mappings and back to main site button

1. 新增8001-8005业务错误码的国际化翻译与映射
2. 增加返回主站按钮,根据环境变量显示
3. 重构错误码匹配逻辑,复用常量对象
This commit is contained in:
2026-05-14 09:38:57 +08:00
parent 587a6ad66c
commit ece50ae3b5
4 changed files with 58 additions and 22 deletions

View File

@@ -37,7 +37,8 @@
"check": "检查项",
"reason": "原因"
},
"reenter": "重新进入"
"reenter": "重新进入",
"backToMainSite": "返回主站"
},
"success": {
"title": "授权成功!",
@@ -60,6 +61,11 @@
"tryLater": "请稍后再试",
"http401": "令牌无效或已过期",
"http403": "账号已被封禁",
"http404": "系统中未找到该账号"
"http404": "系统中未找到该账号",
"player8001": "缺少或非法的授权凭证",
"player8002": "Token 无效、已过期或不符合时效(如有效窗超过 5 分钟/缺少必填字段)",
"player8003": "玩家未注册(仅开发 Token",
"player8004": "彩票服务端未配置 SSO",
"player8005": "账号已冻结或不可用"
}
}