fix: 产品搜索关键词高亮
This commit is contained in:
@@ -79,6 +79,6 @@ class ProductModel extends ProductBaseModel
|
||||
// 关键词搜索
|
||||
public function searchKeywordsAttr($query, string $keywords)
|
||||
{
|
||||
$query->whereRaw('BINARY spu LIKE "%' . $keywords . '%" OR BINARY name LIKE "%' . $keywords . '%" OR BINARY short_name LIKE "%' . $keywords . '%"');
|
||||
$query->whereRaw('spu LIKE "%' . $keywords . '%" OR name LIKE "%' . $keywords . '%" OR short_name LIKE "%' . $keywords . '%"');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user