From 82efca7135415ab4d263bd5076ad9a7e3aa931b7 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Thu, 22 Jan 2026 14:54:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(Platform):=20=E5=85=81=E8=AE=B8=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E7=AB=99=E7=82=B9ID=E6=88=96=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E5=85=B3=E9=94=AE=E5=AD=97=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改查询条件,使关键字搜索同时匹配站点ID和站点名称,提升搜索灵活性 --- src/app/platform/controller/Shop.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/platform/controller/Shop.php b/src/app/platform/controller/Shop.php index 9b897020f..a38eaec1b 100644 --- a/src/app/platform/controller/Shop.php +++ b/src/app/platform/controller/Shop.php @@ -48,7 +48,7 @@ class Shop extends BasePlatform // $condition[] = [ 'site_id', '=', $this->site_id ]; //关键字查询 if (!empty($keyword)) { - $condition[] = ['s.site_name', 'like', '%' . $keyword . '%']; + $condition[] = ['s.site_name|s.site_id', 'like', '%' . $keyword . '%']; } $order = 'p.uniacid desc'; $join = [