From 0bcc7ebb1a105dc54e27ce7f8536e49ace47efed Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 9 Oct 2019 17:58:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=AC=E8=A5=BF=E5=95=86=E5=9F=8E=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E4=B8=89=E6=96=B9=E9=85=8D=E9=80=81=E8=B4=B9=E6=9C=80?= =?UTF-8?q?=E9=AB=98=E7=9B=B4=E6=8E=A5=E8=AE=BE=E7=BD=AE=E4=B8=BA20?= =?UTF-8?q?=E5=85=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/scheduler/defsch/defsch.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/business/jxcallback/scheduler/defsch/defsch.go b/business/jxcallback/scheduler/defsch/defsch.go index 14a90eac8..eabf78e44 100644 --- a/business/jxcallback/scheduler/defsch/defsch.go +++ b/business/jxcallback/scheduler/defsch/defsch.go @@ -52,6 +52,7 @@ const ( maxWaybillTipMoney = 400 // 最大小费 baseWaybillFee = 600 // 基本运费 ebaiCancelWaybillMaxFee = 1000 // 饿百取消运单最高运费 + maxJxStoreDeliveryFee = 2000 ) const ( @@ -1004,7 +1005,11 @@ func getWaybillTip(order *model.GoodsOrder) (tipFee 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 }