作者 赵彬吉

update

@@ -58,6 +58,10 @@ class CategoryController extends BaseController @@ -58,6 +58,10 @@ class CategoryController extends BaseController
58 if(!empty($this->map['title'])){ 58 if(!empty($this->map['title'])){
59 $this->map['title'] = ['like','%'.$this->map['title'].'%']; 59 $this->map['title'] = ['like','%'.$this->map['title'].'%'];
60 } 60 }
  61 + if(!empty($this->map['search'])){
  62 + $this->map['title'] = ['like','%'.$this->map['search'].'%'];
  63 + }
  64 + unset($this->map['search']);
61 $this->map['project_id'] = $this->user['project_id']; 65 $this->map['project_id'] = $this->user['project_id'];
62 return $this->map; 66 return $this->map;
63 } 67 }