京西商城订单三方配送费最高直接设置为20元
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user