feat(StoreOrderController): 修改writeoff_list方法获取页码和每页显示数量的来源
This commit is contained in:
parent
a54eebddb6
commit
69cc28c0d4
@ -322,15 +322,11 @@ class StoreOrderController extends BaseAdminController
|
|||||||
// ]
|
// ]
|
||||||
public function writeoff_list(StoreOrderLogic $orderLogic)
|
public function writeoff_list(StoreOrderLogic $orderLogic)
|
||||||
{
|
{
|
||||||
$page_no = (int)$this->request->post('page_no', 1);
|
$page_no = (int)$this->request->get('page_no', 1);
|
||||||
$page_size = (int)$this->request->post('page_size', 15);
|
$page_size = (int)$this->request->get('page_size', 15);
|
||||||
$params = $this->request->post();
|
$params = $this->request->get();
|
||||||
$params['page_no'] = $page_no;
|
$params['page_no'] = $page_no;
|
||||||
$params['page_size'] = $page_size;
|
$params['page_size'] = $page_size;
|
||||||
if (empty($page_no) || empty($page_size)) {
|
|
||||||
$params['page_no'] = 1;
|
|
||||||
$params['page_size'] = 15;
|
|
||||||
}
|
|
||||||
$params['store_id'] = $this->request->adminInfo['store_id'];
|
$params['store_id'] = $this->request->adminInfo['store_id'];
|
||||||
$result = $orderLogic->writeList($params);
|
$result = $orderLogic->writeList($params);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user