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": "Check",
"reason": "Reason"
},
"reenter": "Re-enter"
"reenter": "Re-enter",
"backToMainSite": "Back to main site"
},
"success": {
"title": "Authorization successful!",
@@ -60,6 +61,11 @@
"tryLater": "Please try again later",
"http401": "Token is invalid or expired",
"http403": "Account has been blocked",
"http404": "Account not found in the system"
"http404": "Account not found in the system",
"player8001": "Missing or invalid Authorization",
"player8002": "Token invalid, expired, malformed, or exceeding the allowed time window (e.g. >5 min)",
"player8003": "Player not registered (dev token only)",
"player8004": "SSO not configured on lottery server",
"player8005": "Account suspended or unavailable"
}
}