From 55f34752bf60a06af965699fa4842ffa6c219aea Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Sat, 22 Jun 2019 23:11:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E6=90=9C=E7=B4=A2=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=A0=87=E9=A2=98=E7=AE=80=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/GoodsService.php | 6 +++--- application/service/SearchService.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/service/GoodsService.php b/application/service/GoodsService.php index 6c0aa80af..5c29428e9 100755 --- a/application/service/GoodsService.php +++ b/application/service/GoodsService.php @@ -636,7 +636,7 @@ class GoodsService if(!empty($params['keywords'])) { - $where[] = ['g.title|g.seo_title|g.seo_keywords|g.seo_keywords', 'like', '%'.$params['keywords'].'%']; + $where[] = ['g.title|g.model|g.simple_desc|g.seo_title|g.seo_keywords|g.seo_keywords', 'like', '%'.$params['keywords'].'%']; } return $where; @@ -782,7 +782,7 @@ class GoodsService if(!empty($params['keywords'])) { - $where[] = ['g.title|g.seo_title|g.seo_keywords|g.seo_keywords', 'like', '%'.$params['keywords'].'%']; + $where[] = ['g.title|g.model|g.simple_desc|g.seo_title|g.seo_keywords|g.seo_keywords', 'like', '%'.$params['keywords'].'%']; } return $where; @@ -928,7 +928,7 @@ class GoodsService // 模糊 if(!empty($params['keywords'])) { - $where[] = ['title|model|seo_title|seo_keywords|seo_keywords', 'like', '%'.$params['keywords'].'%']; + $where[] = ['title|model|simple_desc|seo_title|seo_keywords|seo_keywords', 'like', '%'.$params['keywords'].'%']; } // 是否更多条件 diff --git a/application/service/SearchService.php b/application/service/SearchService.php index a75179323..97dc75937 100755 --- a/application/service/SearchService.php +++ b/application/service/SearchService.php @@ -75,7 +75,7 @@ class SearchService // 关键字 if(!empty($params['keywords'])) { - $where[] = ['g.title|g.seo_title|g.seo_keywords|g.seo_keywords', 'like', '%'.$params['keywords'].'%']; + $where[] = ['g.title|g.model|g.simple_desc|g.seo_title|g.seo_keywords|g.seo_keywords', 'like', '%'.$params['keywords'].'%']; } // 品牌