feat: 增强钱包 API 与玩家会话管理

- 新增钱包 API 函数:getWalletLogs(获取钱包日志)、postWalletTransferIn(充值)及 postWalletTransferOut(提现)
- 更新钱包相关类型定义,提升类型安全性
- 改进玩家会话管理:若当前无玩家资料,则自动拉取玩家信息
- 增强入口网关对过期会话的错误处理能力
- 更新 UI 组件,以适配新的结构与功能
This commit is contained in:
2026-05-09 15:22:08 +08:00
parent 14c297fe1a
commit 7743c14e83
28 changed files with 1719 additions and 33 deletions

View File

@@ -139,7 +139,12 @@ export function EntryGate(): ReactNode {
if (!token) {
setPhase("error");
setErrorMessage("缺少登录凭证,请从主站重新进入彩票系统。");
const sessionFlag = searchParams.get("session");
setErrorMessage(
sessionFlag === "expired"
? "登录已失效,请从主站重新进入彩票系统。"
: "缺少登录凭证,请从主站重新进入彩票系统。",
);
updateStep("token", "pending");
applyProgress(0);
return;