正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -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(); |
-
请 注册 或 登录 后发表评论