This commit is contained in:
苏尹岚
2021-04-09 11:44:57 +08:00
parent 4078d6f8e3
commit dc1f8df8f6
2 changed files with 8 additions and 7 deletions

View File

@@ -459,10 +459,10 @@ func checkActValidation(act *model.Act, vendorIDs []int) (err error) {
} else if act.EndAt.Sub(act.BeginAt) < 0 {
errList.AddErr(fmt.Errorf("活动开始时间必须小于活动结束时间"))
}
vendorIDMap := make(map[int]int)
for _, vendorID := range vendorIDs {
vendorIDMap[vendorID] = 1
}
// vendorIDMap := make(map[int]int)
// for _, vendorID := range vendorIDs {
// vendorIDMap[vendorID] = 1
// }
if act.Type == model.ActSkuDirectDown || act.Type == model.ActSkuSecKill {
if act.PricePercentage == 0 {