This commit is contained in:
laodaming 2023-08-14 11:46:29 +08:00
parent 2bb1c73e4a
commit 76b291c02a
2 changed files with 7 additions and 4 deletions

View File

@ -366,12 +366,13 @@ func (l *GetTagProductListLogic) getTagProducts(req getTagProductsReq) (productL
MinPrice: minPrice, MinPrice: minPrice,
HaveOptionalFitting: haveOptionalFitting, HaveOptionalFitting: haveOptionalFitting,
Recommended: *productInfo.IsRecommend > 0, Recommended: *productInfo.IsRecommend > 0,
Cover: *productInfo.Cover,
} }
if _, ok = req.MapTagProp[productInfo.Id]; ok { if _, ok = req.MapTagProp[productInfo.Id]; ok {
item.CoverDefault = req.MapTagProp[productInfo.Id] item.CoverDefault = req.MapTagProp[productInfo.Id]
} }
//千人千面处理 //千人千面处理
r := image.ThousandFaceImageFormatReq{ /*r := image.ThousandFaceImageFormatReq{
Size: int(req.Size), Size: int(req.Size),
IsThousandFace: 0, IsThousandFace: 0,
Cover: *productInfo.Cover, Cover: *productInfo.Cover,
@ -383,7 +384,7 @@ func (l *GetTagProductListLogic) getTagProducts(req getTagProductsReq) (productL
r.IsThousandFace = int(*req.User.IsThousandFace) r.IsThousandFace = int(*req.User.IsThousandFace)
} }
image.ThousandFaceImageFormat(&r) image.ThousandFaceImageFormat(&r)
item.Cover = r.Cover item.Cover = r.Cover*/
//加入分类产品切片 //加入分类产品切片
productListRsp = append(productListRsp, item) productListRsp = append(productListRsp, item)
} }

View File

@ -170,12 +170,14 @@ func (l *HomePageRecommendProductListLogic) HomePageRecommendProductList(req *ty
Id: productInfo.Id, Id: productInfo.Id,
Sn: *productInfo.Sn, Sn: *productInfo.Sn,
Title: *productInfo.Title, Title: *productInfo.Title,
Cover: *productInfo.Cover,
CoverDefault: *productInfo.Cover,
SizeNum: uint32(sizeNum), SizeNum: uint32(sizeNum),
MinPrice: minPrice, MinPrice: minPrice,
HaveOptionalFitting: haveOptionalFitting, HaveOptionalFitting: haveOptionalFitting,
} }
//千人千面处理 //千人千面处理
r := image.ThousandFaceImageFormatReq{ /*r := image.ThousandFaceImageFormatReq{
Size: int(req.Size), Size: int(req.Size),
IsThousandFace: 0, IsThousandFace: 0,
Cover: *productInfo.Cover, Cover: *productInfo.Cover,
@ -189,7 +191,7 @@ func (l *HomePageRecommendProductListLogic) HomePageRecommendProductList(req *ty
} }
image.ThousandFaceImageFormat(&r) image.ThousandFaceImageFormat(&r)
item.Cover = r.Cover item.Cover = r.Cover
item.CoverDefault = r.CoverDefault item.CoverDefault = r.CoverDefault*/
//加入分类产品切片 //加入分类产品切片
listRsp = append(listRsp, item) listRsp = append(listRsp, item)
} }