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