This commit is contained in:
laodaming 2023-11-22 18:57:10 +08:00
parent 060c134679
commit dbcd2f4559

View File

@ -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)