mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-02 20:10:30 +08:00
商品搜索支持标题简述
This commit is contained in:
parent
3df9d8a519
commit
55f34752bf
@ -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'].'%'];
|
||||
}
|
||||
|
||||
// 是否更多条件
|
||||
|
@ -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'].'%'];
|
||||
}
|
||||
|
||||
// 品牌
|
||||
|
Loading…
Reference in New Issue
Block a user