From d2d249d694a4fc3010a4fc972993a6b542fe6842 Mon Sep 17 00:00:00 2001 From: augushong Date: Sat, 26 Mar 2022 14:39:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=88=86=E9=A1=B5=E5=8F=82?= =?UTF-8?q?=E6=95=B0;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/controller/Index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/index/controller/Index.php b/app/index/controller/Index.php index 82cb526..6d63b1d 100644 --- a/app/index/controller/Index.php +++ b/app/index/controller/Index.php @@ -64,7 +64,11 @@ class Index extends Common $list_post = $model_post->paginate([ 'url' => 'Index/index', - 'query' => $this->request->get(), + 'query' => [ + 'category_id' => $this->request->param('category_id'), + 'sub_category_id' => $this->request->param('sub_category_id'), + 'page' => $this->request->param('page'), + ], 'list_rows' => 10 ]);