...
|
...
|
@@ -105,15 +105,15 @@ class OrderController extends HomeBaseController{ |
|
|
$cost=Db::name('cost')->where('id',1)->find();
|
|
|
$interval = Db::name('interval')->where('id',1)->find();
|
|
|
|
|
|
$stateTime=strtotime(date('H:i:s',$interval['start_time']));
|
|
|
$endTime=strtotime(date('H:i:s',$interval['end_time']));
|
|
|
$stateTime=strtotime($interval['start_time']);
|
|
|
$endTime=strtotime($interval['end_time']);
|
|
|
|
|
|
//判断是否跨天
|
|
|
if ($endTime < $stateTime){
|
|
|
$stateTime-=86400;
|
|
|
}
|
|
|
dump(date('Y-m-d H:i:s',$start_time));
|
|
|
dump(date('Y-m-d H:i:s',$end_time));
|
|
|
dump(date('Y-m-d H:i:s',$stateTime));
|
|
|
dump(date('Y-m-d H:i:s',$endTime));
|
|
|
|
|
|
//不跨天处理方法
|
|
|
|
...
|
...
|
|