feat: 增强开奖 API 的币种支持并优化钱包处理逻辑
更新 getDrawCurrent、getDrawResults 与 getDrawResultByNo 方法,新增币种参数支持,以适配玩家币种偏好。 优化 HallBettingGrid 及相关组件:支持币种切换时自动刷新钱包数据。 重构钱包处理逻辑,简化余额更新流程并提升用户体验。 新增会话过期相关多语言提示文案,并优化现有翻译内容,提升多语言环境下的提示清晰度。
This commit is contained in:
@@ -50,7 +50,7 @@ export function DrawResultDetailScreen({ drawNo }: DrawResultDetailScreenProps)
|
||||
setLoading(true);
|
||||
setError(null);
|
||||
try {
|
||||
const row = await getDrawResultByNo(drawNo);
|
||||
const row = await getDrawResultByNo(drawNo, { currency: activeCurrency });
|
||||
setData(row);
|
||||
} catch {
|
||||
setData(null);
|
||||
@@ -58,7 +58,7 @@ export function DrawResultDetailScreen({ drawNo }: DrawResultDetailScreenProps)
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
}, [drawNo, t]);
|
||||
}, [activeCurrency, drawNo, t]);
|
||||
|
||||
useEffect(() => {
|
||||
queueMicrotask(() => {
|
||||
|
||||
@@ -65,6 +65,7 @@ export function DrawResultsListScreen() {
|
||||
page: targetPage,
|
||||
size: RESULTS_PAGE_SIZE,
|
||||
business_date: businessDate,
|
||||
currency: activeCurrency,
|
||||
});
|
||||
setItems((current) => (append && current ? [...current, ...res.items] : res.items));
|
||||
setPage(res.page);
|
||||
@@ -81,7 +82,7 @@ export function DrawResultsListScreen() {
|
||||
setLoading(false);
|
||||
}
|
||||
}
|
||||
}, [businessDate, t]);
|
||||
}, [activeCurrency, businessDate, t]);
|
||||
|
||||
useEffect(() => {
|
||||
queueMicrotask(() => {
|
||||
|
||||
Reference in New Issue
Block a user