正在显示
1 个修改的文件
包含
6 行增加
和
2 行删除
| @@ -209,12 +209,16 @@ class BlogLogic extends BaseLogic | @@ -209,12 +209,16 @@ class BlogLogic extends BaseLogic | ||
| 209 | public function paramProcessing($param){ | 209 | public function paramProcessing($param){ |
| 210 | if(isset($this->param['id'])){ | 210 | if(isset($this->param['id'])){ |
| 211 | $param['operator_id'] = $this->user['id']; | 211 | $param['operator_id'] = $this->user['id']; |
| 212 | - $param['category_id'] = ','.trim($param['category_id'],',').','; | 212 | + if(isset($param['category_id']) && !empty($param['category_id'])){ |
| 213 | + $param['category_id'] = ','.trim($param['category_id'],',').','; | ||
| 214 | + } | ||
| 213 | }else{ | 215 | }else{ |
| 214 | $param['create_id'] = $this->user['id']; | 216 | $param['create_id'] = $this->user['id']; |
| 215 | $param['operator_id'] = $this->user['id']; | 217 | $param['operator_id'] = $this->user['id']; |
| 216 | $param['project_id'] = $this->user['project_id']; | 218 | $param['project_id'] = $this->user['project_id']; |
| 217 | - $param['category_id'] = ','.$param['category_id'].','; | 219 | + if(isset($param['category_id']) && !empty($param['category_id'])){ |
| 220 | + $param['category_id'] = ','.$param['category_id'].','; | ||
| 221 | + } | ||
| 218 | } | 222 | } |
| 219 | return $this->success($param); | 223 | return $this->success($param); |
| 220 | } | 224 | } |
-
请 注册 或 登录 后发表评论