正在显示
1 个修改的文件
包含
3 行增加
和
5 行删除
| @@ -194,8 +194,8 @@ class CustomModuleContentLogic extends BaseLogic | @@ -194,8 +194,8 @@ class CustomModuleContentLogic extends BaseLogic | ||
| 194 | } | 194 | } |
| 195 | if($is_upgrade == 0 || $six_read == 1) { | 195 | if($is_upgrade == 0 || $six_read == 1) { |
| 196 | $this->param['route'] = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_MODULE, $this->param['id'], $this->user['project_id']); | 196 | $this->param['route'] = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_MODULE, $this->param['id'], $this->user['project_id']); |
| 197 | + $this->editRoute($this->param['id'],$this->param['route']); | ||
| 197 | } | 198 | } |
| 198 | - $this->editRoute($this->param['id'],$this->param['route']); | ||
| 199 | $rs = $this->model->edit($this->param,['id'=>$this->param['id']]); | 199 | $rs = $this->model->edit($this->param,['id'=>$this->param['id']]); |
| 200 | if($rs === false){ | 200 | if($rs === false){ |
| 201 | $this->fail('系统错误,请连续管理员'); | 201 | $this->fail('系统错误,请连续管理员'); |
| @@ -240,10 +240,8 @@ class CustomModuleContentLogic extends BaseLogic | @@ -240,10 +240,8 @@ class CustomModuleContentLogic extends BaseLogic | ||
| 240 | { | 240 | { |
| 241 | //生成一条删除路由记录 | 241 | //生成一条删除路由记录 |
| 242 | $info = $this->model->read(['id' => $id], ['id', 'route']); | 242 | $info = $this->model->read(['id' => $id], ['id', 'route']); |
| 243 | - if ($info['route'] != $route) { | ||
| 244 | - $this->addUpdateNotify(RouteMap::SOURCE_MODULE,$route); | ||
| 245 | - $this->curlDelRoute(['route'=>$info['route'],'new_route'=>$route]); | ||
| 246 | - } | 243 | + $this->addUpdateNotify(RouteMap::SOURCE_MODULE,$route); |
| 244 | + $this->curlDelRoute(['route'=>$info['route'],'new_route'=>$route]); | ||
| 247 | return true; | 245 | return true; |
| 248 | } | 246 | } |
| 249 | 247 |
-
请 注册 或 登录 后发表评论