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