From fb0dbdc6e9c63b07b75543c535cc06409de5b347 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 7 Aug 2024 10:47:53 +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 --- hdl/hdl_upgrade.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hdl/hdl_upgrade.go b/hdl/hdl_upgrade.go index b869eeb..3c420e3 100644 --- a/hdl/hdl_upgrade.go +++ b/hdl/hdl_upgrade.go @@ -167,6 +167,9 @@ func UpgradeReward(eg *xorm.Engine, user *model.User, oid string) { continue } for _, v1 := range v.Reward { + if zhios_condition_statistics_utils.StrToFloat64(v1.Amount) <= 0 { + continue + } if v1.Id == "-1" { //优惠券额度 svc.AddCouponRecord(eg, user, "ordinary", v1.Amount) }