feat: 增强玩家 API,新增 locale 和时间字段,更新钱包 API 以支持可用余额计算,添加错误码与多语言支持
This commit is contained in:
@@ -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',
|
||||
];
|
||||
|
||||
@@ -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',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user