正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
| @@ -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 | } |
-
请 注册 或 登录 后发表评论