From 4f814d73612a6b0c57e12efd5af18300dac8642a Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Wed, 22 Nov 2023 16:04:48 +0800 Subject: [PATCH] fix --- server/product/internal/logic/getproductmodelslogic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)