From 39df7c28211cd9e5f14eae766023285c1da55eee Mon Sep 17 00:00:00 2001 From: Lysander <677@luqiqi.com> Date: Tue, 10 Oct 2023 05:05:06 +0000 Subject: [PATCH] =?UTF-8?q?feat:=E8=87=AA=E5=AE=9A=E4=B9=89=E5=85=AC?= =?UTF-8?q?=E5=85=B1=E6=90=9C=E7=B4=A2=E5=88=9D=E5=A7=8B=E5=8C=96=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E7=AC=A6=E5=8F=B7=E6=94=AF=E6=8C=81=20!140?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/controller/Backend.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/common/controller/Backend.php b/app/common/controller/Backend.php index b04be609..5a2a1bbe 100644 --- a/app/common/controller/Backend.php +++ b/app/common/controller/Backend.php @@ -188,6 +188,7 @@ class Backend extends Api $search = $this->request->get("search/a", []); $initKey = $this->request->get("initKey/s", $pk); $initValue = $this->request->get("initValue", ''); + $operator = $this->request->get("operator/s", 'in'); $where = []; $modelTable = strtolower($this->model->getTable()); @@ -203,7 +204,7 @@ class Backend extends Api $where[] = [implode("|", $quickSearchArr), "LIKE", '%' . str_replace('%', '\%', $quickSearch) . '%']; } if ($initValue) { - $where[] = [$initKey, 'in', $initValue]; + $where[] = [$initKey, $operator, $initValue]; $limit = 999999; }