fix:参数不全

master
howell 3 years ago
parent 33ef945508
commit d1d9075220

@ -135,7 +135,7 @@ func QueryGoodsListBySalesVolume(c *gin.Context) {
return
}
if p.SecondCategoryID == 0 && p.BrandID == 0 && len(p.Keyword) == 0 {
if p.SecondCategoryID == 0 && p.BrandID == 0 && len(p.Keyword) == 0 && p.ActivityID == 0 {
back.Fail(c, "参数不全")
return
}
@ -163,7 +163,7 @@ func QueryGoodsListByDiscountPrice(c *gin.Context) {
back.Fail(c, err.Error())
return
}
if p.SecondCategoryID == 0 && p.BrandID == 0 && len(p.Keyword) == 0 {
if p.SecondCategoryID == 0 && p.BrandID == 0 && len(p.Keyword) == 0 && p.ActivityID == 0 {
back.Fail(c, "参数不全")
return
}

Loading…
Cancel
Save