作者 董瑞恩
1 个管道 的构建 通过 耗费 1 秒

order

@@ -70,8 +70,10 @@ class OrderController extends HomeBaseController{ @@ -70,8 +70,10 @@ class OrderController extends HomeBaseController{
70 $order= Db::name('order')->where('order_no',$users['order_no'])->find(); 70 $order= Db::name('order')->where('order_no',$users['order_no'])->find();
71 $end_time=time(); 71 $end_time=time();
72 $price=$this->getPrice($order['start_time'],$end_time); 72 $price=$this->getPrice($order['start_time'],$end_time);
  73 + $time=ceil(($end_time-$order['start_time'])/3600);
73 $data=[ 74 $data=[
74 'end_time'=>$end_time, 75 'end_time'=>$end_time,
  76 + 'time' => $time,
75 'price' => $price, 77 'price' => $price,
76 'state' => 2 78 'state' => 2
77 ]; 79 ];