召唤三方配送的运费上限增加2块

This commit is contained in:
苏尹岚
2020-04-21 17:30:45 +08:00
parent d893f52a46
commit d9c4889ba2

View File

@@ -59,6 +59,7 @@ const (
baseWaybillFee = 600 // 基本运费
ebaiCancelWaybillMaxFee = 1000 // 饿百取消运单最高运费,门店自送最高运费
maxJxStoreDeliveryFee = 2000
baseWaybillAddFee = 200 //增加运费上限2块
ebaiCancelWaybillWarningMinute = 8
)
@@ -1196,7 +1197,7 @@ func getMaxDeliveryFee(order *model.GoodsOrder) (maxDeliveryFee int64) {
if orderBaseFreightMoney == 0 {
orderBaseFreightMoney = baseWaybillFee
}
maxDeliveryFee = orderBaseFreightMoney + order.DistanceFreightMoney + getWaybillTip(order)
maxDeliveryFee = orderBaseFreightMoney + order.DistanceFreightMoney + getWaybillTip(order) + baseWaybillAddFee
if maxDeliveryFee < ebaiCancelWaybillMaxFee &&
(order.VendorID == model.VendorIDEBAI ||
order.DeliveryType == model.OrderDeliveryTypeStoreSelf) {