feat: 增强开奖 API 的币种支持并优化钱包处理逻辑
更新 getDrawCurrent、getDrawResults 与 getDrawResultByNo 方法,新增币种参数支持,以适配玩家币种偏好。 优化 HallBettingGrid 及相关组件:支持币种切换时自动刷新钱包数据。 重构钱包处理逻辑,简化余额更新流程并提升用户体验。 新增会话过期相关多语言提示文案,并优化现有翻译内容,提升多语言环境下的提示清晰度。
This commit is contained in:
@@ -11,12 +11,7 @@ export type DrawCurrentResultItem = {
|
||||
|
||||
export type DrawCurrentRiskPoolAlert = {
|
||||
normalized_number: string;
|
||||
total_cap_amount: number;
|
||||
locked_amount: number;
|
||||
remaining_amount: number;
|
||||
sold_out_status: number;
|
||||
is_sold_out: boolean;
|
||||
usage_ratio: number | null;
|
||||
status: "warning" | "sold_out";
|
||||
};
|
||||
|
||||
export type DrawCurrentPayload = {
|
||||
@@ -37,6 +32,8 @@ export type DrawCurrentPayload = {
|
||||
seconds_to_draw: number;
|
||||
cooling_end_time: string | null;
|
||||
seconds_remaining_in_cooldown: number | null;
|
||||
/** 与 `jackpot.currency_code` 一致,便于 WS 快照与玩家币种对齐 */
|
||||
jackpot_currency_code?: string;
|
||||
jackpot?: {
|
||||
currency_code: string;
|
||||
enabled: boolean;
|
||||
|
||||
@@ -4,7 +4,7 @@ export type WalletBalanceData = {
|
||||
balance: string | number;
|
||||
/** 可用余额 = balance - frozen_balance(服务端保证 ≥0) */
|
||||
available_balance: string | number;
|
||||
main_balance: null;
|
||||
main_balance: string | number | null;
|
||||
currency_code: string;
|
||||
wallet_type: string;
|
||||
frozen_balance: string | number;
|
||||
|
||||
Reference in New Issue
Block a user