Commit d1ddb73f by mushishixian

搜索去掉空格

parent 3744ae16
...@@ -15,6 +15,9 @@ class SupplierFilter ...@@ -15,6 +15,9 @@ class SupplierFilter
public function listFilter($request, $query) public function listFilter($request, $query)
{ {
$map = $request->all(); $map = $request->all();
$map = array_map(function ($item) {
return trim($item);
},$map);
//显示默认的数据(有权限逻辑) //显示默认的数据(有权限逻辑)
$query = $this->defaultFilter($query, $map['source_type']); $query = $this->defaultFilter($query, $map['source_type']);
//判断筛选参数 //判断筛选参数
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment