This commit is contained in:
laodaming
2023-10-08 10:31:42 +08:00
parent 414a3f8507
commit f933fcac69
3 changed files with 4 additions and 18 deletions

View File

@@ -130,23 +130,9 @@ func (l *GetRecommandProductListLogic) GetRecommandProductList(req *types.GetRec
}
list := make([]types.GetRecommandProductListRsp, 0, len(recommendProductList))
for _, v := range recommendProductList {
/*r := image.ThousandFaceImageFormatReq{
Size: int(req.Size),
IsThousandFace: 0,
Cover: *v.Cover,
CoverImg: *v.CoverImg,
CoverDefault: *v.Cover,
ProductId: v.Id,
UserId: userinfo.UserId,
}
if user.Id != 0 {
r.IsThousandFace = int(*user.IsThousandFace)
}
//千人前面处理
image.ThousandFaceImageFormat(&r)*/
isRecommend := int64(0)
isRecommend := false
if _, ok := mapRecommend[v.Id]; ok {
isRecommend = 1
isRecommend = true
}
minPrice := int64(0)
if minVal, ok := mapProductMinPrice[v.Id]; ok {