From 9902f03a5d28c22efa3f4cc81be4226c9eab5f56 Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Tue, 6 Feb 2024 09:37:14 +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 c12f5879..7132b034 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->input('title'); + $title = (string)$this->request->get('title'); $list = $model->getList($categoryId, 15, $title); return $this->renderSuccess(compact('list')); }