From 29e303437331ccff07e6990a354b173cd7b8f29d Mon Sep 17 00:00:00 2001 From: hdm Date: Wed, 7 Sep 2022 15:47:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=88=97=E8=A1=A8=E6=90=9C?= =?UTF-8?q?=E7=B4=A2bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/customer/controller/Index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/customer/controller/Index.php b/app/customer/controller/Index.php index 903ee0c..6827494 100644 --- a/app/customer/controller/Index.php +++ b/app/customer/controller/Index.php @@ -26,7 +26,7 @@ class Index extends BaseController $where = array(); $whereOr = array(); if (!empty($param['keywords'])) { - $where[] = ['a.id|a.name|c.title', 'like', '%' . $param['keywords'] . '%']; + $where[] = ['a.id|a.name', 'like', '%' . $param['keywords'] . '%']; } if (!empty($param['status'])) { $where[] = ['a.status', '=', $param['status']]; @@ -119,7 +119,7 @@ class Index extends BaseController $param = get_params(); $where = array(); if (!empty($param['keywords'])) { - $where[] = ['a.id|a.name|c.title', 'like', '%' . $param['keywords'] . '%']; + $where[] = ['a.id|a.name', 'like', '%' . $param['keywords'] . '%']; } if (!empty($param['status'])) { $where[] = ['a.status', '=', $param['status']];