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',
];