From 34d2748c4a80262a646e32757d92ce21d9caa7b6 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 21 Oct 2024 14:27:05 +0800 Subject: [PATCH] 1 --- rule/consume_integral_settlement.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rule/consume_integral_settlement.go b/rule/consume_integral_settlement.go index 1a7a518..71b03ef 100644 --- a/rule/consume_integral_settlement.go +++ b/rule/consume_integral_settlement.go @@ -442,7 +442,7 @@ func DealUserConsumeIntegral(session *xorm.Session, subsidyWithUser *model.Subsi if err != nil { return err } - if updateAffected <= 0 { + if updateAffected <= 0 && subsidyWithUser.BalanceAmount != balanceAmount1.String() { return errors.New("修改 subsidy_with_user 记录失败") } if isEnd == 1 { @@ -527,7 +527,7 @@ func DealUserExperienceIntegral(session *xorm.Session, subsidyWithUser *model.Su if err != nil { return err } - if updateAffected <= 0 { + if updateAffected <= 0 && subsidyWithUser.BalanceAmount != balanceAmount1.String() { return errors.New("修改 subsidy_with_user 记录失败") } if isEnd == 1 { @@ -604,7 +604,7 @@ func DealUserStoreIntegral(session *xorm.Session, subsidyWithUser *model.Subsidy if err != nil { return err } - if updateAffected <= 0 { + if updateAffected <= 0 && subsidyWithUser.BalanceAmount != balanceAmount.String() { return errors.New("修改 subsidy_with_user 记录失败") }