- change mtps extra fee time from 11:30-13:00 to 11:00-14:00
This commit is contained in:
@@ -153,11 +153,12 @@ func (c *DeliveryHandler) calculateOrderDeliveryFee(order *model.GoodsOrder, bil
|
|||||||
|
|
||||||
hour, min, sec := billTime.Clock()
|
hour, min, sec := billTime.Clock()
|
||||||
totalSeconds := hour*3600 + min*60 + sec
|
totalSeconds := hour*3600 + min*60 + sec
|
||||||
if totalSeconds >= 11*3600+30*60 && totalSeconds <= 13*3600 { // 11:30 -- 13: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)
|
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
|
return deliveryFee + addFee, addFee, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user