搜索热门关键字bug
parent
8da5dc0503
commit
f4aa3d3900
|
|
@ -182,7 +182,10 @@ class SearchService
|
|||
*/
|
||||
public static function SearchKeywordsList($params = [])
|
||||
{
|
||||
return Db::name('SearchHistory')->where(['keywords'=>['neq', '']])->group('keywords')->limit(10)->column('keywords');
|
||||
$where = [
|
||||
['keywords', '<>', ''],
|
||||
];
|
||||
return Db::name('SearchHistory')->where($where)->group('keywords')->limit(10)->column('keywords');
|
||||
}
|
||||
}
|
||||
?>
|
||||
Loading…
Reference in New Issue