京西折扣活动
This commit is contained in:
@@ -456,6 +456,13 @@ func checkActValidation(act *model.Act, vendorIDs []int) (err error) {
|
||||
}
|
||||
} else if act.Type == model.ActSkuFake {
|
||||
|
||||
} else if act.Type == model.ActSkuDiscount {
|
||||
if act.DiscountType == 0 {
|
||||
errList.AddErr(fmt.Errorf("折扣活动必须选择折扣类型"))
|
||||
}
|
||||
if act.DiscountValue1 == 0 || act.DiscountValue2 == 0 {
|
||||
errList.AddErr(fmt.Errorf("折扣活动必须填入两档"))
|
||||
}
|
||||
} else {
|
||||
errList.AddErr(fmt.Errorf("当前只支持%s与%s活动", model.ActTypeName[model.ActSkuDirectDown], model.ActTypeName[model.ActSkuSecKill]))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user