Files
lotteryLaravel/lang/en/wallet.php
kang 36e50383ba feat: 增强票据与钱包服务的幂等性及错误处理能力
在 TicketItemShowController 与 TicketItemsIndexController 的响应中新增订单状态与失败原因字段。
更新 WalletLogsController:待对账列表支持按币种筛选。
在 TicketPlacementService 中引入幂等性校验,支持处理已退款订单的重复请求。
优化钱包相关操作的错误码与错误提示信息,提升问题定位与用户理解。
增强测试用例,验证票据下单流程中的新幂等性行为。
2026-05-26 15:24:54 +08:00

28 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/** 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',
'2001' => 'The current draw is already closed',
'2002' => 'This play is closed',
'2003' => 'Insufficient balance. Please transfer in before betting',
'2004' => 'Invalid number format',
'2005' => 'Play input is incomplete or invalid',
'2006' => 'The draw is not open for betting',
'2007' => 'This play is not supported yet',
'2008' => 'Odds or play settings changed; please preview again before placing',
'2009' => 'This order was refunded or cannot be resubmitted; close preview and place a new bet',
'4001' => 'This number is sold out for the current draw',
];