查询数量限制
This commit is contained in:
parent
8f069e16ec
commit
e33af0b8e1
@ -42,9 +42,13 @@ class OrderController extends BaseApiController
|
|||||||
public function write_list()
|
public function write_list()
|
||||||
{
|
{
|
||||||
$status = (int)$this->request->post('status',1);
|
$status = (int)$this->request->post('status',1);
|
||||||
|
$page_no = (int)$this->request->post('page_no',1);
|
||||||
|
$page_size = (int)$this->request->post('page_size',15);
|
||||||
$params = $this->request->post();
|
$params = $this->request->post();
|
||||||
$params['page_no'] = isset($params['page_no'])?: 1;
|
if(empty($page_no) || empty($page_size)){
|
||||||
$params['page_size'] = isset($params['page_size'])?: 15;
|
$params['page_no'] = 1;
|
||||||
|
$params['page_size'] = 15;
|
||||||
|
}
|
||||||
$info = $this->userInfo;
|
$info = $this->userInfo;
|
||||||
$res = OrderLogic::write_list($info,$status,$params);
|
$res = OrderLogic::write_list($info,$status,$params);
|
||||||
$res['page_no'] =$params['page_no'];
|
$res['page_no'] =$params['page_no'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user