From 5fa78eda587195077b02cee16f479abdde2ad66e Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Fri, 24 Apr 2020 14:31:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9Query?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/CatchQuery.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extend/catcher/CatchQuery.php b/extend/catcher/CatchQuery.php index 9284fe5..e22d040 100644 --- a/extend/catcher/CatchQuery.php +++ b/extend/catcher/CatchQuery.php @@ -111,6 +111,10 @@ class CatchQuery extends Query { $params = \request()->param(); + if (empty($params)) { + return $this; + } + return $this->withSearch(array_keys($params), Utils::filterSearchParams($params)); }