feat: 增强玩家 API,新增 locale 和时间字段,更新钱包 API 以支持可用余额计算,添加错误码与多语言支持

This commit is contained in:
2026-05-09 15:05:46 +08:00
parent f1b38ef421
commit a0f86a4e36
36 changed files with 2523 additions and 34 deletions

View File

@@ -11,4 +11,5 @@ return [
'8002' => 'Token invalid or expired', // JWT 无效、过期或 dev: 格式错误等
'8003' => 'Player not registered', // 库中无对应玩家
'8004' => 'SSO secret not configured', // 未配置 MAIN_SITE_SSO_JWT_SECRET通常返回 503
'8005' => 'Account suspended or login disabled',
];

View File

@@ -3,4 +3,15 @@
/** PRD 钱包段多语言NegotiateLotteryLocale 后由 __() 选用 */
return [
'invalid_currency' => 'Invalid currency code',
'1001' => 'Insufficient lottery wallet balance',
'1002' => 'A previous transfer is still processing; please retry shortly',
'1003' => 'Amount exceeds the allowed limit',
'1004' => 'Deposits are temporarily disabled',
'1005' => 'Invalid or disabled currency',
'1006' => 'Withdrawals are temporarily disabled',
'1007' => 'Lottery wallet is frozen; transfers are blocked',
'1008' => 'Invalid amount; enter a positive integer in minor units',
'1009' => 'Main wallet operation failed; please try again later',
'1010' => 'Do not reuse an idempotency key with different transfer parameters',
];

View File

@@ -8,4 +8,5 @@ return [
'8002' => 'टोकन अमान्य वा समयावधि सकियो',
'8003' => 'खेलाडी दर्ता छैन',
'8004' => 'SSO गोप्य सेट छैन',
'8005' => 'खाता निलम्बित वा लगइन असक्षम',
];

View File

@@ -2,4 +2,15 @@
return [
'invalid_currency' => 'मुद्रा कोड अमान्य',
'1001' => 'लटरी वालेट ब्यालेन्स अपर्याप्त',
'1002' => 'अघिल्लो स्थानान्तरण अझै प्रक्रियामा छ, पछि प्रयास गर्नुहोस्',
'1003' => 'रकम सीमा नाघ्यो',
'1004' => 'जम्मा अस्थायी रूपमा बन्द छ',
'1005' => 'मुद्रा अमान्य वा असक्षम',
'1006' => 'निकासी अस्थायी रूपमा बन्द छ',
'1007' => 'लटरी वालेट फ्रोजन छ',
'1008' => 'रकम अमान्य',
'1009' => 'मुख्य वालेट असफल, पछि प्रयास गर्नुहोस्',
'1010' => 'एउटै कुञ्जी दोहोर्याउनुहुन्न',
];

View File

@@ -8,4 +8,5 @@ return [
'8002' => '令牌无效或已过期',
'8003' => '玩家未建档',
'8004' => '未配置 SSO 密钥',
'8005' => '账号已冻结或暂时无法登录',
];

View File

@@ -2,4 +2,15 @@
return [
'invalid_currency' => '币种参数不合法',
'1001' => '彩票钱包余额不足',
'1002' => '上一笔转账仍在处理中,请稍后重试',
'1003' => '单笔金额超出允许范围',
'1004' => '转入功能已暂时关闭',
'1005' => '币种无效或未启用',
'1006' => '转出功能已暂时关闭',
'1007' => '彩票钱包已冻结,无法划转',
'1008' => '金额无效,请输入正整数(最小货币单位)',
'1009' => '主站钱包处理失败,请稍后重试',
'1010' => '请勿重复使用幂等键发起不同金额的转账',
];