...
|
...
|
@@ -127,8 +127,16 @@ class OrderController extends HomeBaseController{ |
|
|
if ($new_start_time> strtotime('00:00:00') && $new_start_time < $endTime && $new_end_time > $endTime && $new_end_time < $stateTime){
|
|
|
$price=ceil(($endTime-$new_start_time)/3600) * $interval['price'] + ceil(($new_end_time-$endTime)/3600) * $cost['cost'];
|
|
|
}
|
|
|
if ($new_start_time> strtotime('00:00:00') && $new_start_time < $endTime && $new_end_time > $stateTime){
|
|
|
$price=ceil(($endTime-$new_start_time)/3600) * $interval['price'] + ceil(($new_end_time-$stateTime)/3600) * $interval['price'] + ceil(($stateTime-$endTime)/3600) * $cost['cost'];
|
|
|
}
|
|
|
|
|
|
|
|
|
if ($new_start_time > $endTime && $new_end_time < $stateTime){
|
|
|
$price=ceil(($new_end_time-$new_start_time)/3600) * $cost['cost'];
|
|
|
}
|
|
|
if ($new_start_time > $endTime && $new_end_time > $stateTime && $new_end_time < strtotime('24:00:00')){
|
|
|
$price= ceil(($stateTime-$new_start_time)/3600) * $cost['cost'] + ceil(($new_end_time-$stateTime)/3600) * $interval['price'];
|
|
|
}
|
|
|
|
|
|
}else{
|
|
|
|
...
|
...
|
@@ -138,9 +146,6 @@ class OrderController extends HomeBaseController{ |
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
$price=1;
|
|
|
return $price;
|
|
|
}
|
|
|
|
...
|
...
|
|