From b9082765555660ada9c9c380b1ecb04b7d52d4df Mon Sep 17 00:00:00 2001 From: jhs1873 Date: Tue, 7 Sep 2021 16:37:20 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20quickSearch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/CatchQuery.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extend/catcher/CatchQuery.php b/extend/catcher/CatchQuery.php index 3f018b8..5af6626 100644 --- a/extend/catcher/CatchQuery.php +++ b/extend/catcher/CatchQuery.php @@ -184,7 +184,9 @@ class CatchQuery extends Query // = 值搜索 if ($value || is_numeric($value)) { - $this->where($field, $value); + if ($field != 'page' && $field != 'limit' && $startPos !== 0 && $endPos !== 0 && $operate !== 'like' && $operate !== '%like') { + $this->where($field, $value); + } } } }