diff --git a/server/product/internal/logic/getproductmodelslogic.go b/server/product/internal/logic/getproductmodelslogic.go index 541e62da..0a25258d 100644 --- a/server/product/internal/logic/getproductmodelslogic.go +++ b/server/product/internal/logic/getproductmodelslogic.go @@ -42,8 +42,8 @@ func (l *GetProductModelsLogic) GetProductModels(req *types.GetProductModelsReq, logx.Error(err) return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "err param(format err)") } - if len(productIds) > 20 { - return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "the count of product can`t greater than 20") + if len(productIds) > 10 { + return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "the count of product can`t greater than 10") } if len(productIds) == 0 { return resp.SetStatusWithMessage(basic.CodeOK, "success", nil)