作者 董瑞恩
1 个管道 的构建 通过 耗费 0 秒

interface

@@ -157,7 +157,7 @@ class OrderController extends HomeBaseController{ @@ -157,7 +157,7 @@ class OrderController extends HomeBaseController{
157 $price +=(ceil(($endTime-$new_start_time)/3600) * $interval['price'] + ceil(($new_end_time-$stateTime)/3600) * $interval['price'] + ceil(($stateTime-$endTime)/3600) * $cost['cost']); 157 $price +=(ceil(($endTime-$new_start_time)/3600) * $interval['price'] + ceil(($new_end_time-$stateTime)/3600) * $interval['price'] + ceil(($stateTime-$endTime)/3600) * $cost['cost']);
158 } 158 }
159 //不与预设时间段重合 159 //不与预设时间段重合
160 - if (($new_start_time > $endTime && $new_start_time < $stateTime) && ($new_end_time < $new_start_time && $new_end_time < $stateTime)){ 160 + if (($new_start_time > $endTime && $new_start_time < $stateTime) && ($new_end_time > $new_start_time && $new_end_time < $stateTime)){
161 //存在首小时免费 161 //存在首小时免费
162 dump('4'); 162 dump('4');
163 $price +=(ceil(($new_end_time-$new_start_time)/3600) * $cost['cost']); 163 $price +=(ceil(($new_end_time-$new_start_time)/3600) * $cost['cost']);