保留充值响应余额兜底

共享泥点明细暂不可用时继续使用充值中心响应中的兼容总额与明细。

补充充值弹窗余额兜底回归测试。
This commit is contained in:
2026-08-05 17:46:06 +08:00
parent a6c5c901a1
commit 36da2732bf
4 changed files with 89 additions and 3 deletions
@@ -1175,8 +1175,9 @@ export function usePlatformProfileCenterController({
}
return {
...rechargeCenter,
walletBalance: mudPointBalance?.totalPoints ?? 0,
mudPointBalance: mudPointBalance ?? undefined,
walletBalance:
mudPointBalance?.totalPoints ?? rechargeCenter.walletBalance,
mudPointBalance: mudPointBalance ?? rechargeCenter.mudPointBalance,
};
}, [mudPointBalance, rechargeCenter, walletOwnerMatchesCurrentUser]);