...
|
...
|
@@ -110,7 +110,7 @@ class OrderController extends HomeBaseController{ |
|
|
$date=floor(($end_time-$start_time)/86400);
|
|
|
//去余数
|
|
|
$yu=($end_time-$start_time)%86400;
|
|
|
|
|
|
dump($yu);
|
|
|
$new_start_time=$end_time-$yu;//时间戳
|
|
|
$new_end_time= $end_time;//时间戳
|
|
|
|
...
|
...
|
@@ -123,7 +123,6 @@ class OrderController extends HomeBaseController{ |
|
|
//判断是否跨天
|
|
|
if ($endTime < $stateTime){
|
|
|
if ($hours_end_time > $hours_start_time){
|
|
|
|
|
|
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'];
|
|
|
}
|
...
|
...
|
|