diff --git a/application/service/SearchService.php b/application/service/SearchService.php index eb3dcd05c..8fff4a5d5 100755 --- a/application/service/SearchService.php +++ b/application/service/SearchService.php @@ -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'); } } ?> \ No newline at end of file