搜索热门关键字bug

feat/task1-c-wallet
gongfuxiang 2019-01-09 01:31:19 +08:00
parent 8da5dc0503
commit f4aa3d3900
1 changed files with 4 additions and 1 deletions

View File

@ -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');
}
}
?>