|
...
|
...
|
@@ -119,6 +119,7 @@ class CategoryLogic extends BaseLogic |
|
|
|
$route = $this->param['route'];
|
|
|
|
$this->model->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
}else{
|
|
|
|
$this->param['project_id'] = $this->user['project_id'];
|
|
|
|
$id = $this->model->addReturnId($this->param);
|
|
|
|
$route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT_CATE, $id, $this->user['project_id']);
|
|
|
|
$this->edit(['route'=>$route],['id'=>$id]);
|
|
...
|
...
|
@@ -150,7 +151,6 @@ class CategoryLogic extends BaseLogic |
|
|
|
}
|
|
|
|
$this->param['describe_image'] = json_encode($this->param['describe_image']);
|
|
|
|
}
|
|
|
|
$this->param['project_id'] = $this->user['project_id'];
|
|
|
|
return $this->success($param);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|