...
|
...
|
@@ -154,8 +154,10 @@ class UsersController extends HomeBaseController{ |
|
|
*
|
|
|
* @param name:users_id type:String require:1 default:无 other: desc:用户id
|
|
|
*
|
|
|
* @return page:当前页
|
|
|
* @return page:当前页
|
|
|
* @return currentPage:当前页
|
|
|
* @return allPage:总页数
|
|
|
* @return allData:总数据量
|
|
|
* @return data:当前页的数据
|
|
|
*
|
|
|
* @return id:订单id
|
|
|
* @return order_no:订单号
|
...
|
...
|
@@ -170,16 +172,13 @@ class UsersController extends HomeBaseController{ |
|
|
public function getOrder(){
|
|
|
$users_id=$this->request->param('users_id');
|
|
|
$order=Db::name('order')->where(['users_id'=>$users_id])->paginate(8);
|
|
|
dump($order->currentPage());//当前页
|
|
|
dump($order->total());//总页数
|
|
|
dump($order->items());//当前页
|
|
|
|
|
|
dump($order);
|
|
|
|
|
|
// $data=[
|
|
|
// ''
|
|
|
// ];
|
|
|
// $this->apiResponse(200,'success',$order);
|
|
|
$data=[
|
|
|
'currentPage'=>$order->currentPage(),
|
|
|
'allPage' => $order->lastPage(),
|
|
|
'allData'=>$order->total(),
|
|
|
'data'=>$order->items()
|
|
|
];
|
|
|
$this->apiResponse(200,'success',$data);
|
|
|
}
|
|
|
/**
|
|
|
* @title 用户查询未完成订单信息
|
...
|
...
|
|