This commit is contained in:
laodaming 2023-09-26 17:01:31 +08:00
parent 9e6f919fa8
commit 76f4a682ac

View File

@ -155,6 +155,10 @@ func (l *GetCartsLogic) GetCarts(req *types.GetCartsReq, userinfo *auth.UserInfo
productCoverMetadata = metadata
}
}
templateTag := ""
if templateInfo, ok := mapTemplate[*cart.TemplateId]; ok {
templateTag = *templateInfo.TemplateTag
}
item := types.CartItem{
CartId: cart.Id,
ProductInfo: types.ProductInfo{
@ -190,7 +194,7 @@ func (l *GetCartsLogic) GetCarts(req *types.GetCartsReq, userinfo *auth.UserInfo
StepPurchaseQuantity: stepPurchaseQuantity,
IsHighlyCustomized: *cart.IsHighlyCustomized > 0,
IsSelected: *cart.IsSelected > 0,
TemplateTag: *mapTemplate[*cart.TemplateId].TemplateTag,
TemplateTag: templateTag,
Logo: snapShot.Logo,
}
//是否有失效的