正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -213,7 +213,7 @@ class BlogLogic extends BaseLogic | @@ -213,7 +213,7 @@ class BlogLogic extends BaseLogic | ||
| 213 | if(isset($this->param['id'])){ | 213 | if(isset($this->param['id'])){ |
| 214 | $param['operator_id'] = $this->user['id']; | 214 | $param['operator_id'] = $this->user['id']; |
| 215 | if(isset($param['category_id']) && !empty($param['category_id'])){ | 215 | if(isset($param['category_id']) && !empty($param['category_id'])){ |
| 216 | - $param['category_id'] = explode(',',$param['category_id']); | 216 | + $param['category_id'] = implode(',',$param['category_id']); |
| 217 | $param['category_id'] = ','.trim($param['category_id'],',').','; | 217 | $param['category_id'] = ','.trim($param['category_id'],',').','; |
| 218 | } | 218 | } |
| 219 | }else{ | 219 | }else{ |
| @@ -221,7 +221,7 @@ class BlogLogic extends BaseLogic | @@ -221,7 +221,7 @@ class BlogLogic extends BaseLogic | ||
| 221 | $param['operator_id'] = $this->user['id']; | 221 | $param['operator_id'] = $this->user['id']; |
| 222 | $param['project_id'] = $this->user['project_id']; | 222 | $param['project_id'] = $this->user['project_id']; |
| 223 | if(isset($param['category_id']) && !empty($param['category_id'])){ | 223 | if(isset($param['category_id']) && !empty($param['category_id'])){ |
| 224 | - $param['category_id'] = explode(',',$param['category_id']); | 224 | + $param['category_id'] = implode(',',$param['category_id']); |
| 225 | $param['category_id'] = ','.$param['category_id'].','; | 225 | $param['category_id'] = ','.$param['category_id'].','; |
| 226 | } | 226 | } |
| 227 | } | 227 | } |
-
请 注册 或 登录 后发表评论