正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -41,8 +41,6 @@ class ProductLogic extends BaseLogic | @@ -41,8 +41,6 @@ class ProductLogic extends BaseLogic | ||
| 41 | $this->param = $this->handleSaveParam($this->param); | 41 | $this->param = $this->handleSaveParam($this->param); |
| 42 | DB::connection('custom_mysql')->beginTransaction(); | 42 | DB::connection('custom_mysql')->beginTransaction(); |
| 43 | try { | 43 | try { |
| 44 | - //路由映射 | ||
| 45 | - $this->param['route'] = $this->param['route'].'-'.RouteMap::SOURCE_PRODUCT; | ||
| 46 | if(isset($this->param['id']) && !empty($this->param['id'])){ | 44 | if(isset($this->param['id']) && !empty($this->param['id'])){ |
| 47 | //查看路由是否更新 | 45 | //查看路由是否更新 |
| 48 | $id = $this->editProductRoute($this->param['id'],$this->param['route']); | 46 | $id = $this->editProductRoute($this->param['id'],$this->param['route']); |
| @@ -51,6 +49,8 @@ class ProductLogic extends BaseLogic | @@ -51,6 +49,8 @@ class ProductLogic extends BaseLogic | ||
| 51 | $this->param['project_id'] = $this->user['project_id']; | 49 | $this->param['project_id'] = $this->user['project_id']; |
| 52 | $this->param['created_at'] = date('Y-m-d H:i:s'); | 50 | $this->param['created_at'] = date('Y-m-d H:i:s'); |
| 53 | $this->param['updated_at'] = $this->param['created_at']; | 51 | $this->param['updated_at'] = $this->param['created_at']; |
| 52 | + //路由映射 | ||
| 53 | + $this->param['route'] = $this->param['route'].'-'.RouteMap::SOURCE_PRODUCT; | ||
| 54 | $id = $this->model->addReturnId($this->param); | 54 | $id = $this->model->addReturnId($this->param); |
| 55 | } | 55 | } |
| 56 | $route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT, $id, $this->user['project_id']); | 56 | $route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT, $id, $this->user['project_id']); |
-
请 注册 或 登录 后发表评论