fix
This commit is contained in:
parent
affd0dc9bb
commit
c54f804ebf
|
@ -132,15 +132,16 @@ func (l *GetCartsLogic) GetCarts(req *types.GetCartsReq, userinfo *auth.UserInfo
|
|||
stepQuantityList := make([]int64, 0, 20)
|
||||
tmpMinBuyNum := *sizePrice.MinBuyNum
|
||||
for tmpMinBuyNum < (int64(stepNum[len(stepNum)-1]) + 5) {
|
||||
//阶梯数
|
||||
tmpQuantity := tmpMinBuyNum * (*sizePrice.EachBoxNum)
|
||||
stepQuantityList = append(stepQuantityList, tmpQuantity)
|
||||
tmpMinBuyNum++
|
||||
}
|
||||
//尺寸信息
|
||||
sizeCapacity := snapShot.SizeInfo.Capacity
|
||||
if sizeInfo, ok := mapSize[*cart.SizeId]; ok {
|
||||
sizeCapacity = *sizeInfo.Capacity
|
||||
}
|
||||
//配件信息
|
||||
fittingName := snapShot.FittingInfo.FittingName
|
||||
if fittingInfo, ok := mapModel[*cart.FittingId]; ok {
|
||||
fittingName = *fittingInfo.Name
|
||||
|
@ -148,7 +149,9 @@ func (l *GetCartsLogic) GetCarts(req *types.GetCartsReq, userinfo *auth.UserInfo
|
|||
productCover := "" //产品封面图
|
||||
productName := snapShot.ProductInfo.ProductName
|
||||
productSn := snapShot.ProductInfo.ProductSn
|
||||
//产品封面图资源元数据
|
||||
var productCoverMetadata interface{}
|
||||
//产品信息
|
||||
if productInfo, ok := mapProduct[*cart.ProductId]; ok {
|
||||
productCover = *productInfo.Cover
|
||||
productName = *productInfo.Title
|
||||
|
|
Loading…
Reference in New Issue
Block a user