Browse Source

更新

master
huangjiajun 3 months ago
parent
commit
787723fc13
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      hdl/hdl_upgrade.go

+ 2
- 2
hdl/hdl_upgrade.go View File

@@ -173,8 +173,8 @@ func UpgradeReward(eg *xorm.Engine, user *model.User, oid string) {
if v1.Id == "-1" { //优惠券额度 if v1.Id == "-1" { //优惠券额度
svc.AddCouponRecord(eg, user, "ordinary", v1.Amount) 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))
} }
} }
} }


Loading…
Cancel
Save