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