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')); }