From f4aa3d390038ad5ab2ce704540a42f6f6cca2a5a Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Wed, 9 Jan 2019 01:31:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=83=AD=E9=97=A8=E5=85=B3?= =?UTF-8?q?=E9=94=AE=E5=AD=97bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/SearchService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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