fix
This commit is contained in:
parent
414a3f8507
commit
f933fcac69
|
@ -130,23 +130,9 @@ func (l *GetRecommandProductListLogic) GetRecommandProductList(req *types.GetRec
|
||||||
}
|
}
|
||||||
list := make([]types.GetRecommandProductListRsp, 0, len(recommendProductList))
|
list := make([]types.GetRecommandProductListRsp, 0, len(recommendProductList))
|
||||||
for _, v := range recommendProductList {
|
for _, v := range recommendProductList {
|
||||||
/*r := image.ThousandFaceImageFormatReq{
|
isRecommend := false
|
||||||
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)
|
|
||||||
if _, ok := mapRecommend[v.Id]; ok {
|
if _, ok := mapRecommend[v.Id]; ok {
|
||||||
isRecommend = 1
|
isRecommend = true
|
||||||
}
|
}
|
||||||
minPrice := int64(0)
|
minPrice := int64(0)
|
||||||
if minVal, ok := mapProductMinPrice[v.Id]; ok {
|
if minVal, ok := mapProductMinPrice[v.Id]; ok {
|
||||||
|
|
|
@ -22,7 +22,7 @@ type GetRecommandProductListRsp struct {
|
||||||
CoverImgMetadata interface{} `json:"cover_img_metadata"`
|
CoverImgMetadata interface{} `json:"cover_img_metadata"`
|
||||||
CoverDefault []CoverDefaultItem `json:"cover_default"`
|
CoverDefault []CoverDefaultItem `json:"cover_default"`
|
||||||
Intro string `json:"intro"`
|
Intro string `json:"intro"`
|
||||||
IsRecommend int64 `json:"is_recommend"`
|
IsRecommend bool `json:"is_recommend"`
|
||||||
MinPrice int64 `json:"min_price"`
|
MinPrice int64 `json:"min_price"`
|
||||||
IsCustomization int64 `json:"is_customization"`
|
IsCustomization int64 `json:"is_customization"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,7 @@ type GetRecommandProductListRsp {
|
||||||
CoverImgMetadata interface{} `json:"cover_img_metadata"`
|
CoverImgMetadata interface{} `json:"cover_img_metadata"`
|
||||||
CoverDefault []CoverDefaultItem `json:"cover_default"`
|
CoverDefault []CoverDefaultItem `json:"cover_default"`
|
||||||
Intro string `json:"intro"`
|
Intro string `json:"intro"`
|
||||||
IsRecommend int64 `json:"is_recommend"`
|
IsRecommend bool `json:"is_recommend"`
|
||||||
MinPrice int64 `json:"min_price"`
|
MinPrice int64 `json:"min_price"`
|
||||||
IsCustomization int64 `json:"is_customization"`
|
IsCustomization int64 `json:"is_customization"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user