- change mtps extra fee time from 11:30-13:00 to 11:00-14:00

This commit is contained in:
gazebo
2018-09-05 23:19:22 +08:00
parent c52e8deade
commit f44f947629

View File

@@ -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
}