京西商城订单三方配送费最高直接设置为20元

This commit is contained in:
gazebo
2019-10-09 17:58:06 +08:00
parent 3855e79809
commit 0bcc7ebb1a

View File

@@ -52,6 +52,7 @@ const (
maxWaybillTipMoney = 400 // 最大小费 maxWaybillTipMoney = 400 // 最大小费
baseWaybillFee = 600 // 基本运费 baseWaybillFee = 600 // 基本运费
ebaiCancelWaybillMaxFee = 1000 // 饿百取消运单最高运费 ebaiCancelWaybillMaxFee = 1000 // 饿百取消运单最高运费
maxJxStoreDeliveryFee = 2000
) )
const ( const (
@@ -1004,7 +1005,11 @@ func getWaybillTip(order *model.GoodsOrder) (tipFee int64) {
} }
func getMaxDeliveryFee(order *model.GoodsOrder) (maxDeliveryFee int64) { func getMaxDeliveryFee(order *model.GoodsOrder) (maxDeliveryFee int64) {
maxDeliveryFee = baseWaybillFee + order.DistanceFreightMoney + getWaybillTip(order) if order.VendorID == model.VendorIDJX {
maxDeliveryFee = maxJxStoreDeliveryFee
} else {
maxDeliveryFee = baseWaybillFee + order.DistanceFreightMoney + getWaybillTip(order)
}
return maxDeliveryFee return maxDeliveryFee
} }