fix
This commit is contained in:
parent
9f412fe108
commit
4f814d7361
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user