From 23bfd958545ab5548d561ef6db1eafafe03e4e05 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期四, 22 五月 2025 13:23:13 +0800 Subject: [PATCH] fix: 修改ui --- packages/core/src/lifeRecharge.ts | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/packages/core/src/lifeRecharge.ts b/packages/core/src/lifeRecharge.ts index d523104..a2e318a 100644 --- a/packages/core/src/lifeRecharge.ts +++ b/packages/core/src/lifeRecharge.ts @@ -57,7 +57,10 @@ } getRechargeParValue(amount: number | string, rate: number) { - return ((Number(amount) * rate) / 100).toFixed(2); + if (rate > 0) { + return ((Number(amount) * rate) / 100).toFixed(2); + } + return Number(amount).toFixed(2); } MaxParValue = 300; -- Gitblit v1.9.1