From ecf0970ca4400832fb14393c40e93bc591290a33 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Thu, 19 Nov 2020 17:30:30 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=E4=BF=AE=E5=A4=8D=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E5=80=BC=E4=B8=BA0=E6=97=B6=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=90=9C=E7=B4=A2=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/CatchQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extend/catcher/CatchQuery.php b/extend/catcher/CatchQuery.php index a4bc152..9f49f70 100644 --- a/extend/catcher/CatchQuery.php +++ b/extend/catcher/CatchQuery.php @@ -118,7 +118,7 @@ class CatchQuery extends Query foreach ($params as $field => $value) { $method = 'search' . Str::studly($field) . 'Attr'; - if ($value && method_exists($this->model, $method)) { + if ($value !== null && method_exists($this->model, $method)) { $this->model->$method($this, $value, $params); } }