正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -119,6 +119,7 @@ class CategoryLogic extends BaseLogic | @@ -119,6 +119,7 @@ class CategoryLogic extends BaseLogic | ||
| 119 | $route = $this->param['route']; | 119 | $route = $this->param['route']; |
| 120 | $this->model->edit($this->param,['id'=>$this->param['id']]); | 120 | $this->model->edit($this->param,['id'=>$this->param['id']]); |
| 121 | }else{ | 121 | }else{ |
| 122 | + $this->param['project_id'] = $this->user['project_id']; | ||
| 122 | $id = $this->model->addReturnId($this->param); | 123 | $id = $this->model->addReturnId($this->param); |
| 123 | $route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT_CATE, $id, $this->user['project_id']); | 124 | $route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT_CATE, $id, $this->user['project_id']); |
| 124 | $this->edit(['route'=>$route],['id'=>$id]); | 125 | $this->edit(['route'=>$route],['id'=>$id]); |
| @@ -150,7 +151,6 @@ class CategoryLogic extends BaseLogic | @@ -150,7 +151,6 @@ class CategoryLogic extends BaseLogic | ||
| 150 | } | 151 | } |
| 151 | $this->param['describe_image'] = json_encode($this->param['describe_image']); | 152 | $this->param['describe_image'] = json_encode($this->param['describe_image']); |
| 152 | } | 153 | } |
| 153 | - $this->param['project_id'] = $this->user['project_id']; | ||
| 154 | return $this->success($param); | 154 | return $this->success($param); |
| 155 | } | 155 | } |
| 156 | 156 |
-
请 注册 或 登录 后发表评论