作者 sgj
1 个管道 的构建 通过 耗费 1 秒

test api

@@ -423,7 +423,7 @@ class OrderController extends HomeBaseController{ @@ -423,7 +423,7 @@ class OrderController extends HomeBaseController{
423 // $start_time=$data['start_time']??'1545084020'; 423 // $start_time=$data['start_time']??'1545084020';
424 // $end_time=$data['end_time']??time(); 424 // $end_time=$data['end_time']??time();
425 $spend=$this->timediff($start_time,$end_time); 425 $spend=$this->timediff($start_time,$end_time);
426 - if ($spend['min']!=0||$spend['sex']!=0){ 426 + if ($spend['min']!=0||$spend['sec']!=0){
427 $spend['hour']++; 427 $spend['hour']++;
428 } 428 }
429 $interval = Db::name('interval')->where('id',1)->find(); 429 $interval = Db::name('interval')->where('id',1)->find();
@@ -469,7 +469,7 @@ class OrderController extends HomeBaseController{ @@ -469,7 +469,7 @@ class OrderController extends HomeBaseController{
469 // $start_time=$data['start_time']??'1545084020'; 469 // $start_time=$data['start_time']??'1545084020';
470 // $end_time=$data['end_time']??time(); 470 // $end_time=$data['end_time']??time();
471 $spend=$this->timediff($start_time,$end_time); 471 $spend=$this->timediff($start_time,$end_time);
472 - if ($spend['min']!=0||$spend['sex']!=0){ 472 + if ($spend['min']!=0||$spend['sec']!=0){
473 $spend['hour']++; 473 $spend['hour']++;
474 } 474 }
475 $interval = Db::name('interval')->where('id',1)->find(); 475 $interval = Db::name('interval')->where('id',1)->find();