...
|
...
|
@@ -128,6 +128,10 @@ class UsersController extends HomeBaseController{ |
|
|
public function getOrderById(){
|
|
|
$users_id=$this->request->param('users_id');
|
|
|
$order= Db::name('order')->where(['users_id'=>$users_id,'state'=>1])->find();
|
|
|
$order['end_time']=time();
|
|
|
$order['time']=ceil(($order['end_time']-$order['start_time'])/3600);
|
|
|
$price=new OrderController();
|
|
|
$order['price']=$price->getPrice($order['start_time'],$order['end_time']);
|
|
|
$this->apiResponse(200,'success',$order);
|
|
|
}
|
|
|
|
...
|
...
|
|