正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
@@ -128,6 +128,10 @@ class UsersController extends HomeBaseController{ | @@ -128,6 +128,10 @@ class UsersController extends HomeBaseController{ | ||
128 | public function getOrderById(){ | 128 | public function getOrderById(){ |
129 | $users_id=$this->request->param('users_id'); | 129 | $users_id=$this->request->param('users_id'); |
130 | $order= Db::name('order')->where(['users_id'=>$users_id,'state'=>1])->find(); | 130 | $order= Db::name('order')->where(['users_id'=>$users_id,'state'=>1])->find(); |
131 | + $order['end_time']=time(); | ||
132 | + $order['time']=ceil(($order['end_time']-$order['start_time'])/3600); | ||
133 | + $price=new OrderController(); | ||
134 | + $order['price']=$price->getPrice($order['start_time'],$order['end_time']); | ||
131 | $this->apiResponse(200,'success',$order); | 135 | $this->apiResponse(200,'success',$order); |
132 | } | 136 | } |
133 | 137 |
-
请 注册 或 登录 后发表评论