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