fix
This commit is contained in:
@@ -130,9 +130,9 @@ func (l *GetRecommandProductListLogic) GetRecommandProductList(req *types.GetRec
|
||||
}
|
||||
list := make([]types.GetRecommandProductListRsp, 0, len(recommendProductList))
|
||||
for _, v := range recommendProductList {
|
||||
isRecommend := false
|
||||
recommend := false
|
||||
if _, ok := mapRecommend[v.Id]; ok {
|
||||
isRecommend = true
|
||||
recommend = true
|
||||
}
|
||||
minPrice := int64(0)
|
||||
if minVal, ok := mapProductMinPrice[v.Id]; ok {
|
||||
@@ -149,7 +149,7 @@ func (l *GetRecommandProductListLogic) GetRecommandProductList(req *types.GetRec
|
||||
CoverImgMetadata: mapResourceMetadata[*v.CoverImg],
|
||||
CoverDefault: []types.CoverDefaultItem{},
|
||||
Intro: *v.Intro,
|
||||
IsRecommend: isRecommend,
|
||||
Recommend: recommend,
|
||||
MinPrice: minPrice,
|
||||
IsCustomization: *v.IsCustomization,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user