...
|
...
|
@@ -156,8 +156,6 @@ class OrderController extends HomeBaseController{ |
|
|
if (($new_start_time > $endTime && $new_start_time < $stateTime) && ($new_end_time < $new_start_time && $new_end_time < $stateTime)){
|
|
|
//存在首小时免费
|
|
|
dump('4');
|
|
|
echo $new_end_time;
|
|
|
echo $new_start_time;
|
|
|
$price +=(ceil(($new_end_time-$new_start_time)/3600) * $cost['cost']);
|
|
|
if ($free==1 && $is_free==0){
|
|
|
$price-=$cost['cost'];
|
...
|
...
|
@@ -180,6 +178,8 @@ class OrderController extends HomeBaseController{ |
|
|
$price +=(ceil(($new_end_time-$new_start_time)/3600) * $interval['price']);
|
|
|
}
|
|
|
|
|
|
dump('啥都没');
|
|
|
|
|
|
//设备使用时间段是否跨天(跨天:开始时间在昨天,结束时间在今天)
|
|
|
}else{
|
|
|
$YesterdayStateTime=$stateTime-86400;
|
...
|
...
|
|