From 787723fc1317bd3094d346714ec59feae42fac06 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 7 Aug 2024 14:42:09 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hdl/hdl_upgrade.go b/hdl/hdl_upgrade.go index 3c420e3..327f6db 100644 --- a/hdl/hdl_upgrade.go +++ b/hdl/hdl_upgrade.go @@ -173,8 +173,8 @@ func UpgradeReward(eg *xorm.Engine, user *model.User, oid string) { if v1.Id == "-1" { //优惠券额度 svc.AddCouponRecord(eg, user, "ordinary", v1.Amount) } - if zhios_condition_statistics_utils.StrToInt(v.Id) > 0 { - svc.AddCoin(eg, zhios_condition_statistics_utils.StrToFloat64(v1.Amount), "升级赠送", oid, 1, 188, user.Uid, zhios_condition_statistics_utils.StrToInt(v.Id)) + if zhios_condition_statistics_utils.StrToInt(v1.Id) > 0 { + svc.AddCoin(eg, zhios_condition_statistics_utils.StrToFloat64(v1.Amount), "升级赠送", oid, 1, 188, user.Uid, zhios_condition_statistics_utils.StrToInt(v1.Id)) } } }