fix
This commit is contained in:
parent
464218ad62
commit
9476414e68
|
@ -131,6 +131,8 @@ func (l *CalculateCartPriceLogic) CalculateCartPrice(req *types.CalculateCartPri
|
||||||
if *cart.FittingId > 0 {
|
if *cart.FittingId > 0 {
|
||||||
if fittingPrice, ok := mapFitting[*cart.FittingId]; ok {
|
if fittingPrice, ok := mapFitting[*cart.FittingId]; ok {
|
||||||
itemPrice += fittingPrice
|
itemPrice += fittingPrice
|
||||||
|
} else {
|
||||||
|
return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "cart contain some one witch lose fitting:%d", *cart.FittingId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//单个购物车总价
|
//单个购物车总价
|
||||||
|
|
Loading…
Reference in New Issue
Block a user