From f00a25c7ecde80200026936fc07f5d3249e9a067 Mon Sep 17 00:00:00 2001 From: wans10 Date: Mon, 26 Jan 2026 09:34:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(topup):=20=E4=BF=AE=E5=A4=8D=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E9=85=8D=E9=A2=9D=E8=8E=B7=E5=8F=96=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除用户ID检查条件,始终获取最新用户数据 - 确保余额等统计信息准确性 - 解决用户状态更新不及时的问题 --- web/src/components/topup/index.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/src/components/topup/index.jsx b/web/src/components/topup/index.jsx index 4ff05a254..7618d7778 100644 --- a/web/src/components/topup/index.jsx +++ b/web/src/components/topup/index.jsx @@ -465,9 +465,8 @@ const TopUp = () => { }; useEffect(() => { - if (!userState?.user?.id) { - getUserQuota().then(); - } + // 始终获取最新用户数据,确保余额等统计信息准确 + getUserQuota().then(); setTransferAmount(getQuotaPerUnit()); }, []);