正在显示
2 个修改的文件
包含
14 行增加
和
14 行删除
| @@ -186,14 +186,14 @@ class BlogLogic extends BaseLogic | @@ -186,14 +186,14 @@ class BlogLogic extends BaseLogic | ||
| 186 | public function paramProcessing($param){ | 186 | public function paramProcessing($param){ |
| 187 | if(isset($this->param['id'])){ | 187 | if(isset($this->param['id'])){ |
| 188 | $param['operator_id'] = $this->user['id']; | 188 | $param['operator_id'] = $this->user['id']; |
| 189 | - $param['category_id'] = ','.trim($this->param['category_id'],',').','; | 189 | + $param['category_id'] = ','.trim($param['category_id'],',').','; |
| 190 | }else{ | 190 | }else{ |
| 191 | - $this->param['create_id'] = $this->user['id']; | ||
| 192 | - $this->param['operator_id'] = $this->user['id']; | ||
| 193 | - $this->param['project_id'] = $this->user['project_id']; | ||
| 194 | - $this->param['created_at'] = date('Y-m-d H:i:s',time()); | ||
| 195 | - $this->param['updated_at'] = date('Y-m-d H:i:s',time()); | ||
| 196 | - $this->param['category_id'] = ','.$this->param['category_id'].','; | 191 | + $param['create_id'] = $this->user['id']; |
| 192 | + $param['operator_id'] = $this->user['id']; | ||
| 193 | + $param['project_id'] = $this->user['project_id']; | ||
| 194 | + $param['created_at'] = date('Y-m-d H:i:s',time()); | ||
| 195 | + $param['updated_at'] = date('Y-m-d H:i:s',time()); | ||
| 196 | + $param['category_id'] = ','.$param['category_id'].','; | ||
| 197 | } | 197 | } |
| 198 | return $this->success($param); | 198 | return $this->success($param); |
| 199 | } | 199 | } |
| @@ -182,14 +182,14 @@ class NewsLogic extends BaseLogic | @@ -182,14 +182,14 @@ class NewsLogic extends BaseLogic | ||
| 182 | public function paramProcessing($param){ | 182 | public function paramProcessing($param){ |
| 183 | if(isset($this->param['id'])){ | 183 | if(isset($this->param['id'])){ |
| 184 | $param['operator_id'] = $this->user['id']; | 184 | $param['operator_id'] = $this->user['id']; |
| 185 | - $param['category_id'] = ','.trim($this->param['category_id'],',').','; | 185 | + $param['category_id'] = ','.trim($param['category_id'],',').','; |
| 186 | }else{ | 186 | }else{ |
| 187 | - $this->param['create_id'] = $this->user['id']; | ||
| 188 | - $this->param['operator_id'] = $this->user['id']; | ||
| 189 | - $this->param['project_id'] = $this->user['project_id']; | ||
| 190 | - $this->param['created_at'] = date('Y-m-d H:i:s',time()); | ||
| 191 | - $this->param['updated_at'] = date('Y-m-d H:i:s',time()); | ||
| 192 | - $this->param['category_id'] = ','.$this->param['category_id'].','; | 187 | + $param['create_id'] = $this->user['id']; |
| 188 | + $param['operator_id'] = $this->user['id']; | ||
| 189 | + $param['project_id'] = $this->user['project_id']; | ||
| 190 | + $param['created_at'] = date('Y-m-d H:i:s',time()); | ||
| 191 | + $param['updated_at'] = date('Y-m-d H:i:s',time()); | ||
| 192 | + $param['category_id'] = ','.$param['category_id'].','; | ||
| 193 | } | 193 | } |
| 194 | return $this->success($param); | 194 | return $this->success($param); |
| 195 | } | 195 | } |
-
请 注册 或 登录 后发表评论