diff --git a/application/service/SearchService.php b/application/service/SearchService.php index eb3dcd05c696db05c7d7f1fca546e570f339c799..8fff4a5d53f5a0ccd035342bc2848e8b438fad4c 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