正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -185,12 +185,12 @@ class CustomTemplateLogic extends BaseLogic | @@ -185,12 +185,12 @@ class CustomTemplateLogic extends BaseLogic | ||
| 185 | $this->param['html_style'] = "<style id='globalsojs-styles'></style>"; | 185 | $this->param['html_style'] = "<style id='globalsojs-styles'></style>"; |
| 186 | } | 186 | } |
| 187 | } | 187 | } |
| 188 | + if($this->param['url'] == 'news' || $this->param['url'] == 'product' || $this->param['url'] == 'blog'){ | ||
| 189 | + $this->fail('不允许修改路由为:'.$this->param['url']); | ||
| 190 | + } | ||
| 188 | $this->param['project_id'] = $this->user['project_id']; | 191 | $this->param['project_id'] = $this->user['project_id']; |
| 189 | $id = $this->model->addReturnId($this->param); | 192 | $id = $this->model->addReturnId($this->param); |
| 190 | $route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_PAGE, $id, $this->user['project_id']); | 193 | $route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_PAGE, $id, $this->user['project_id']); |
| 191 | - if($route == 'news' || $route == 'product' || $route == 'blog'){ | ||
| 192 | - $this->fail('不允许修改路由为:'.$this->param['url']); | ||
| 193 | - } | ||
| 194 | $this->addUpdateNotify(RouteMap::SOURCE_PAGE,$route); | 194 | $this->addUpdateNotify(RouteMap::SOURCE_PAGE,$route); |
| 195 | $this->model->edit(['url'=>$route],['id'=>$id]); | 195 | $this->model->edit(['url'=>$route],['id'=>$id]); |
| 196 | } | 196 | } |
-
请 注册 或 登录 后发表评论