fix
This commit is contained in:
parent
934071801d
commit
cfd5dcd423
|
@ -36,7 +36,9 @@ func NewGetRecommandProductListLogic(ctx context.Context, svcCtx *svc.ServiceCon
|
|||
}
|
||||
|
||||
func (l *GetRecommandProductListLogic) GetRecommandProductList(req *types.GetRecommandProductListReq, userinfo *auth.UserInfo) (resp *basic.Response) {
|
||||
req.Num = 4 //写死4个
|
||||
if req.Num > 100 || req.Num < 0 {
|
||||
req.Num = 4
|
||||
}
|
||||
if req.Size > 0 {
|
||||
req.Size = int32(image.GetCurrentSize(uint32(req.Size)))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user