...
|
...
|
@@ -109,7 +109,7 @@ class UsersController extends HomeBaseController{ |
|
|
* @title 用户查询未完成订单信息
|
|
|
* @description 用户查询在使用订单信息
|
|
|
* @author 董瑞恩
|
|
|
* @url /portal/users/getOrderById
|
|
|
* @url /portal/users/getOrderById1
|
|
|
* @method GET
|
|
|
*
|
|
|
* @param name:users_id type:String require:1 default:无 other: desc:用户id
|
...
|
...
|
@@ -122,7 +122,7 @@ class UsersController extends HomeBaseController{ |
|
|
* @return price:金额(元)
|
|
|
*/
|
|
|
|
|
|
public function getOrderById(){
|
|
|
public function getOrderById1(){
|
|
|
$users_id=$this->request->param('users_id');
|
|
|
$order= Db::name('order')->field('order_no,users_id,start_time')->where(['users_id'=>$users_id,'state'=>1])->find();
|
|
|
if (empty($order)){
|
...
|
...
|
@@ -136,6 +136,32 @@ class UsersController extends HomeBaseController{ |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @title 用户查询未支付订单信息
|
|
|
* @description 用户查询未支付订单信息
|
|
|
* @author 董瑞恩
|
|
|
* @url /portal/users/getOrderById2
|
|
|
* @method GET
|
|
|
*
|
|
|
* @param name:users_id type:String require:1 default:无 other: desc:用户id
|
|
|
*
|
|
|
* @return order_no:订单号
|
|
|
* @return users_id:用户id
|
|
|
* @return start_time:开始使用时间
|
|
|
* @return end_time:结束使用时间
|
|
|
* @return time:使用时长(小时)
|
|
|
* @return price:金额(元)
|
|
|
*/
|
|
|
|
|
|
public function getOrderById2(){
|
|
|
$users_id=$this->request->param('users_id');
|
|
|
$order= Db::name('order')->field('order_no,users_id,start_time')->where(['users_id'=>$users_id,'state'=>2])->find();
|
|
|
if (empty($order)){
|
|
|
$this->apiResponse(200,'没有未支付订单');
|
|
|
}
|
|
|
$this->apiResponse(200,'success',$order);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @title 用户交纳押金
|
|
|
* @description 交纳押金
|
|
|
* @author 董瑞恩
|
...
|
...
|
|