正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -61,8 +61,8 @@ class ProductLogic extends BaseLogic | @@ -61,8 +61,8 @@ class ProductLogic extends BaseLogic | ||
| 61 | }else{ | 61 | }else{ |
| 62 | $this->param = $this->addHandleParam($this->param); | 62 | $this->param = $this->addHandleParam($this->param); |
| 63 | $id = $this->model->addReturnId($this->param); | 63 | $id = $this->model->addReturnId($this->param); |
| 64 | - $this->param['route'] = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT, $id, $this->user['project_id']); | ||
| 65 | } | 64 | } |
| 65 | + $this->param['route'] = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT, $id, $this->user['project_id']); | ||
| 66 | $this->model->edit(['route'=> $this->param['route']],['id'=>$id]); | 66 | $this->model->edit(['route'=> $this->param['route']],['id'=>$id]); |
| 67 | //产品分类关联 | 67 | //产品分类关联 |
| 68 | CategoryRelated::saveRelated($id, $category_ids); | 68 | CategoryRelated::saveRelated($id, $category_ids); |
-
请 注册 或 登录 后发表评论