From 914b8dc14b87a8becf724e0fc2f1fe0c3110692f Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Tue, 6 Feb 2024 09:37:54 +0800 Subject: [PATCH] 1 --- app/api/controller/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/Article.php b/app/api/controller/Article.php index 7132b034..eded1201 100644 --- a/app/api/controller/Article.php +++ b/app/api/controller/Article.php @@ -36,7 +36,7 @@ class Article extends Controller public function list(int $categoryId = 0): Json { $model = new ArticleModel; - $title = (string)$this->request->get('title'); + $title = (string)$this->request->param('title'); $list = $model->getList($categoryId, 15, $title); return $this->renderSuccess(compact('list')); }