feat: enhance wallet functionality and improve error handling

- Updated .env.example to include optional player site code configuration.
- Modified error messages in hall-bet-errors for better clarity.
- Improved the betting grid logic to handle invalid draw IDs and reload draws when necessary.
- Adjusted wallet components to differentiate between credit and main wallet balances, including new translations for credit-related terms.
- Enhanced wallet logs to support credit activity tracking and improved UI for displaying credit information.
This commit is contained in:
2026-06-05 18:01:11 +08:00
parent 3cd87ce014
commit 36adf8699d
21 changed files with 496 additions and 80 deletions

View File

@@ -347,6 +347,9 @@
"title": "Wallet",
"subtitle": "Balance and transfer records",
"balance": "Wallet Balance",
"creditAvailable": "Available credit",
"creditSummary": "Limit {{limit}} · Used {{used}}",
"creditNoTransferHint": "Credit accounts are funded by your agent; no main-site transfers. Contact your agent to change your limit.",
"available": "Available {{amount}}",
"transferIn": "Transfer In",
"transferOut": "Transfer Out",
@@ -387,6 +390,12 @@
"pendingDescription": "The following transfers have not been finally confirmed by the main site. Contact support if they do not arrive after a long time.",
"pendingStatus": "Processing",
"flowsTitle": "Wallet logs",
"creditFlowsTitle": "Credit activity",
"playerChannel": {
"credit": "Credit-line player (agent credit ledger)",
"wallet": "Main-site wallet player (transfers & wallet ledger)"
},
"creditAvailableAfter": "Available credit after",
"totalRecords": "{{total}} records",
"emptyLogs": "No wallet logs",
"noMoreLogs": "No more transactions",
@@ -409,6 +418,13 @@
"refund": "Refund",
"reversal": "Reversal"
},
"creditFlow": {
"all": "All",
"bet": "Bet hold",
"prize": "Payout",
"refund": "Credit release",
"reversal": "Reversal"
},
"txnStatus": {
"posted": "Success",
"pending_reconcile": "Pending reconciliation",

View File

@@ -49,6 +49,16 @@
"footer": {
"secure": "安全 · 可信 · 授权访问"
},
"login": {
"title": "代理玩家登录",
"hint": "使用代理为您开通的账号登录。主站用户请从主站进入。",
"username": "登录账号",
"password": "密码",
"submit": "登录",
"missingFields": "请填写账号和密码",
"failed": "登录失败",
"backEntry": "返回入口"
},
"errors": {
"noToken": "未发现授权令牌",
"noTokenDetail": "请返回主站后重试。",

View File

@@ -330,7 +330,7 @@
"2002": "该玩法已关闭,请选择其他玩法。",
"2004": "号码格式或长度不符合该玩法要求。",
"2005": "玩法参数不完整(如单双大小需选择位数与维度)。",
"2006": "当前期号不可下注。",
"2006": "期号无效或已切换,请刷新大厅后重试。",
"2007": "该玩法暂不支持或缺少赔率配置。",
"2008": "赔率或玩法配置已更新,请关闭预览后重新操作。",
"2009": "该订单已退款或不可重复提交,请关闭预览后重新下注。",
@@ -348,6 +348,9 @@
"title": "钱包",
"subtitle": "余额与划转记录",
"balance": "钱包余额",
"creditAvailable": "可用信用",
"creditSummary": "授信 {{limit}} · 已用 {{used}}",
"creditNoTransferHint": "信用盘账号由代理授信,无需主站转入转出;额度调整请联系代理。",
"available": "可用 {{amount}}",
"transferIn": "转入",
"transferOut": "转出",
@@ -388,6 +391,12 @@
"pendingDescription": "以下划转主站结果未最终确认;若长时间未到账请联系客服。",
"pendingStatus": "处理中",
"flowsTitle": "资金流水",
"creditFlowsTitle": "信用流水",
"playerChannel": {
"credit": "信用盘玩家(代理授信,流水来自信用账本)",
"wallet": "主站钱包玩家(划转与钱包余额流水)"
},
"creditAvailableAfter": "变更后可用信用",
"totalRecords": "共 {{total}} 条记录",
"emptyLogs": "暂无流水",
"noMoreLogs": "没有更多流水",
@@ -410,6 +419,13 @@
"refund": "退本",
"reversal": "冲正"
},
"creditFlow": {
"all": "全部",
"bet": "下注占用",
"prize": "派彩",
"refund": "释放额度",
"reversal": "冲正"
},
"txnStatus": {
"posted": "成功",
"pending_reconcile": "待对账",