From f44f9476294ba8cacee8c6b933ff9e3f735c6fba Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 5 Sep 2018 23:19:22 +0800 Subject: [PATCH] - change mtps extra fee time from 11:30-13:00 to 11:00-14:00 --- business/partner/delivery/mtps/waybill.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/business/partner/delivery/mtps/waybill.go b/business/partner/delivery/mtps/waybill.go index b8b4ceddc..551bdf32a 100644 --- a/business/partner/delivery/mtps/waybill.go +++ b/business/partner/delivery/mtps/waybill.go @@ -153,11 +153,12 @@ func (c *DeliveryHandler) calculateOrderDeliveryFee(order *model.GoodsOrder, bil hour, min, sec := billTime.Clock() totalSeconds := hour*3600 + min*60 + sec - if totalSeconds >= 11*3600+30*60 && totalSeconds <= 13*3600 { // 11:30 -- 13:00 - addFee += jxutils.StandardPrice2Int(3) - } else if totalSeconds >= 21*3600 || totalSeconds <= 6*3600 { // 21:00 -- 06:00 + if totalSeconds >= 11*3600 && totalSeconds <= 14*3600 { // 11:00 -- 14:00 addFee += jxutils.StandardPrice2Int(3) } + // else if totalSeconds >= 21*3600 || totalSeconds <= 6*3600 { // 21:00 -- 06:00 + // addFee += jxutils.StandardPrice2Int(3) + // } return deliveryFee + addFee, addFee, nil }