正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -50,7 +50,7 @@ class NewsController extends BaseController | @@ -50,7 +50,7 @@ class NewsController extends BaseController | ||
| 50 | public function searchParam(){ | 50 | public function searchParam(){ |
| 51 | $this->map['project_id'] = $this->user['project_id']; | 51 | $this->map['project_id'] = $this->user['project_id']; |
| 52 | if(isset($this->map['category_id']) && !empty($this->map['category_id'])){ | 52 | if(isset($this->map['category_id']) && !empty($this->map['category_id'])){ |
| 53 | - $this->map['category_id'] = ['like','%'.$this->map['category_id'].'%']; | 53 | + $this->map['category_id'] = ['like','%,'.$this->map['category_id'].',%']; |
| 54 | } | 54 | } |
| 55 | return $this->map; | 55 | return $this->map; |
| 56 | } | 56 | } |
-
请 注册 或 登录 后发表评论