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) }