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:
@@ -3,6 +3,8 @@ export type PlayerMeData = {
|
||||
id: number;
|
||||
site_code: string;
|
||||
site_player_id: string;
|
||||
auth_source?: string;
|
||||
funding_mode?: string;
|
||||
username: string | null;
|
||||
nickname: string | null;
|
||||
default_currency: string;
|
||||
|
||||
@@ -8,4 +8,9 @@ export type WalletBalanceData = {
|
||||
currency_code: string;
|
||||
wallet_type: string;
|
||||
frozen_balance: string | number;
|
||||
credit_line_mode?: boolean;
|
||||
funding_mode?: string;
|
||||
auth_source?: string;
|
||||
credit_limit?: string | number;
|
||||
used_credit?: string | number;
|
||||
};
|
||||
|
||||
@@ -3,6 +3,10 @@ export type WalletLogItem = {
|
||||
log_id: string;
|
||||
type: string;
|
||||
biz_type: string;
|
||||
/** wallet_txn | credit_ledger */
|
||||
ledger_source?: string;
|
||||
funding_mode?: string;
|
||||
auth_source?: string | null;
|
||||
/** 正数为加款,负数为扣款(最小货币单位) */
|
||||
amount: number;
|
||||
amount_abs: number;
|
||||
@@ -35,6 +39,10 @@ export type WalletLogsData = {
|
||||
total: number;
|
||||
page: number;
|
||||
per_page: number;
|
||||
/** 本页数据来源:钱包流水表 / 信用流水表 */
|
||||
ledger_source?: string;
|
||||
funding_mode?: string;
|
||||
auth_source?: string | null;
|
||||
pending_reconcile: WalletPendingTransfer[];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user