This commit is contained in:
laodaming 2023-10-19 11:08:45 +08:00
parent 934071801d
commit cfd5dcd423

View File

@ -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)))
}