From fdd5c707a1201e6e1332523f332c8dec8c799ea4 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 22 May 2024 21:30:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/consume_integral_settlement.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/rule/consume_integral_settlement.go b/rule/consume_integral_settlement.go index 7d8d661..078bd08 100644 --- a/rule/consume_integral_settlement.go +++ b/rule/consume_integral_settlement.go @@ -374,7 +374,6 @@ func DealUserConsumeIntegral(session *xorm.Session, subsidyWithUser *model.Subsi balanceAmount1, _ := decimal.NewFromString(subsidyWithUser.BalanceAmount) afterAmount1, _ := balanceAmount1.Sub(decimal.NewFromFloat(consumeIntegralValue)).Float64() if afterAmount1 <= 0 { - afterAmount1 = 0 } subsidyWithUser.BalanceAmount = zhios_order_relate_utils.Float64ToStr(afterAmount1) subsidyWithUser.LeaveDay = afterAmount @@ -459,7 +458,6 @@ func DealUserExperienceIntegral(session *xorm.Session, subsidyWithUser *model.Su balanceAmount1, _ := decimal.NewFromString(subsidyWithUser.BalanceAmount) afterAmount1, _ := balanceAmount1.Sub(decimal.NewFromFloat(experienceIntegralValue)).Float64() if afterAmount1 <= 0 { - afterAmount1 = 0 } subsidyWithUser.BalanceAmount = zhios_order_relate_utils.Float64ToStr(afterAmount1)