...
|
...
|
@@ -121,6 +121,9 @@ class OrderController extends HomeBaseController{ |
|
|
//获取整天的价格
|
|
|
$dayPrice=$this->getDayPrice();
|
|
|
|
|
|
|
|
|
dump(date('y-m-d h:i:s',$start_time));
|
|
|
dump(date('y-m-d h:i:s',$end_time));
|
|
|
//用了多少天
|
|
|
$day=floor(($end_time-$start_time)/86400);
|
|
|
$dayPrice=$day*$dayPrice;
|
...
|
...
|
@@ -178,8 +181,6 @@ class OrderController extends HomeBaseController{ |
|
|
$price +=(ceil(($new_end_time-$new_start_time)/3600) * $interval['price']);
|
|
|
}
|
|
|
|
|
|
dump('啥都没');
|
|
|
|
|
|
//设备使用时间段是否跨天(跨天:开始时间在昨天,结束时间在今天)
|
|
|
}else{
|
|
|
$YesterdayStateTime=$stateTime-86400;
|
...
|
...
|
@@ -233,10 +234,7 @@ class OrderController extends HomeBaseController{ |
|
|
+ceil(($new_end_time-$stateTime)/3600) * $interval['price'];
|
|
|
}
|
|
|
}
|
|
|
}else{
|
|
|
dump('woca ');
|
|
|
}
|
|
|
dump($price);
|
|
|
if ($price > $cost['ceiling']){
|
|
|
$price = $cost['ceiling'];
|
|
|
}
|
...
|
...
|
|