StoreMap添加DeliveryFeeDeductionSill, DeliveryFeeDeductionFee
This commit is contained in:
@@ -466,6 +466,12 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64
|
||||
} else {
|
||||
outJxOrder.FreightPrice = 0
|
||||
}
|
||||
if outJxOrder.OrderPrice >= int64(storeDetail.DeliveryFeeDeductionSill) {
|
||||
outJxOrder.FreightPrice -= int64(storeDetail.DeliveryFeeDeductionFee)
|
||||
if outJxOrder.FreightPrice < 0 {
|
||||
outJxOrder.FreightPrice = 0
|
||||
}
|
||||
}
|
||||
if err == nil {
|
||||
outJxOrder.TotalPrice = outJxOrder.OrderPrice + outJxOrder.FreightPrice
|
||||
outJxOrder.ActualPayPrice = outJxOrder.TotalPrice
|
||||
|
||||
Reference in New Issue
Block a user