From 2e94a17d111b7bd1c3dc5fe0406a36547359888a Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Thu, 14 Aug 2025 20:02:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E5=91=98=E5=AE=A2=E6=88=B7=E5=85=B3?= =?UTF-8?q?=E9=94=AE=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/crm/service/CustomerService.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/crm/service/CustomerService.php b/app/crm/service/CustomerService.php index 2096b5a..0573972 100644 --- a/app/crm/service/CustomerService.php +++ b/app/crm/service/CustomerService.php @@ -160,11 +160,11 @@ class CustomerService } // 关键字 if (isset($p['keyword']) && $p['keyword']) { $k = '%' . $p['keyword'] . '%'; - $config['where']['contacts'] = ['like', $k]; - $config['where']['phone'] = ['like', $k]; - $config['where']['email'] = ['like', $k]; - $config['where']['WhatsApp'] = ['like', $k]; - $config['where']['code'] = ['like', $k]; + $config['orWhere'][] = ['contacts','like', $k]; + $config['orWhere'][] = ['phone','like', $k]; + $config['orWhere'][] = ['email','like', $k]; + $config['orWhere'][] = ['WhatsApp','like', $k]; + $config['orWhere'][] = ['code','like', $k]; } $config['order']['id'] = 'desc'; $config['dataLimit']['type'] = 'relation';