fix
This commit is contained in:
parent
060c134679
commit
dbcd2f4559
|
@ -122,8 +122,9 @@ func (l *GetCartsLogic) GetCarts(req *types.GetCartsReq, userinfo *auth.UserInfo
|
|||
if *curFittingInfo.PackedUnit > stepPurchaseQuantity {
|
||||
stepPurchaseQuantity = *curFittingInfo.PackedUnit
|
||||
}
|
||||
} else {
|
||||
logx.Error(fmt.Sprintf("cart contain some one witch lose fitting:%d", *cart.FittingId))
|
||||
}
|
||||
logx.Error(fmt.Sprintf("cart contain some one witch lose fitting:%d", *cart.FittingId))
|
||||
}
|
||||
//计算阶梯价格
|
||||
totalPrice, itemPrice, err := l.svcCtx.Repositories.NewShoppingCart.CaculateStepPrice(*cart.PurchaseQuantity, stepPrice, fittingPrice)
|
||||
|
|
Loading…
Reference in New Issue
Block a user