From 4ab49e3bc64961a3d5d5d56bd91257292c81e9f9 Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Sat, 23 Feb 2019 10:54:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=AA=E9=9D=99=E6=80=81=E4=B8=8B=E6=90=9C?= =?UTF-8?q?=E7=B4=A2bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/controller/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/index/controller/Search.php b/application/index/controller/Search.php index fe3ab1914..160bd33f6 100755 --- a/application/index/controller/Search.php +++ b/application/index/controller/Search.php @@ -46,7 +46,7 @@ class Search extends Common $this->params['screening_price_id'] = intval(input('screening_price_id', 0)); // 搜索关键字 - $this->params['keywords'] = str_replace(['?'], '', trim(input('keywords'))); + $this->params['keywords'] = str_replace(['?', ' ', '+', '-'], '', trim(input('keywords'))); // 排序方式 $this->params['order_by_field'] = input('order_by_field', 'default');