fix
This commit is contained in:
parent
9e6f919fa8
commit
76f4a682ac
|
@ -155,6 +155,10 @@ func (l *GetCartsLogic) GetCarts(req *types.GetCartsReq, userinfo *auth.UserInfo
|
||||||
productCoverMetadata = metadata
|
productCoverMetadata = metadata
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
templateTag := ""
|
||||||
|
if templateInfo, ok := mapTemplate[*cart.TemplateId]; ok {
|
||||||
|
templateTag = *templateInfo.TemplateTag
|
||||||
|
}
|
||||||
item := types.CartItem{
|
item := types.CartItem{
|
||||||
CartId: cart.Id,
|
CartId: cart.Id,
|
||||||
ProductInfo: types.ProductInfo{
|
ProductInfo: types.ProductInfo{
|
||||||
|
@ -190,7 +194,7 @@ func (l *GetCartsLogic) GetCarts(req *types.GetCartsReq, userinfo *auth.UserInfo
|
||||||
StepPurchaseQuantity: stepPurchaseQuantity,
|
StepPurchaseQuantity: stepPurchaseQuantity,
|
||||||
IsHighlyCustomized: *cart.IsHighlyCustomized > 0,
|
IsHighlyCustomized: *cart.IsHighlyCustomized > 0,
|
||||||
IsSelected: *cart.IsSelected > 0,
|
IsSelected: *cart.IsSelected > 0,
|
||||||
TemplateTag: *mapTemplate[*cart.TemplateId].TemplateTag,
|
TemplateTag: templateTag,
|
||||||
Logo: snapShot.Logo,
|
Logo: snapShot.Logo,
|
||||||
}
|
}
|
||||||
//是否有失效的
|
//是否有失效的
|
||||||
|
|
Loading…
Reference in New Issue
Block a user