商品搜索支持seo字段检索

This commit is contained in:
devil_gong
2019-06-20 14:06:52 +08:00
parent fc54ce4a95
commit 148ed5673a
2 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@ class SearchService
// 关键字
if(!empty($params['keywords']))
{
$where[] = ['g.title', 'like', '%'.$params['keywords'].'%'];
$where[] = ['g.title|g.seo_title|g.seo_keywords|g.seo_keywords', 'like', '%'.$params['keywords'].'%'];
}
// 品牌