正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -162,9 +162,9 @@ class CustomTemplateLogic extends BaseLogic | @@ -162,9 +162,9 @@ class CustomTemplateLogic extends BaseLogic | ||
| 162 | $id = $this->param['id']; | 162 | $id = $this->param['id']; |
| 163 | $is_upgrade = $this->param['is_upgrade'] ?? 0;//1:5.0数据 0:6.0 | 163 | $is_upgrade = $this->param['is_upgrade'] ?? 0;//1:5.0数据 0:6.0 |
| 164 | $six_read = $this->param['six_read'] ?? 0;//5.0数据时,是否按6.0显示 | 164 | $six_read = $this->param['six_read'] ?? 0;//5.0数据时,是否按6.0显示 |
| 165 | - if($is_upgrade == 0 || $six_read == 1) { | 165 | + if($is_upgrade == 0 || $six_read == 0) { |
| 166 | $this->param['url'] = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_PAGE, $id, $this->user['project_id']); | 166 | $this->param['url'] = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_PAGE, $id, $this->user['project_id']); |
| 167 | - if($this->param['url'] == 'news' || $this->param['url'] == 'product' || $this->param['url'] == 'blog'){ | 167 | + if(($this->param['url'] == 'news') || ($this->param['url'] == 'product') || ($this->param['url'] == 'blog')){ |
| 168 | $this->fail('不允许创建路由为:'.$this->param['url']); | 168 | $this->fail('不允许创建路由为:'.$this->param['url']); |
| 169 | } | 169 | } |
| 170 | } | 170 | } |
| @@ -186,7 +186,7 @@ class CustomTemplateLogic extends BaseLogic | @@ -186,7 +186,7 @@ class CustomTemplateLogic extends BaseLogic | ||
| 186 | $this->param['html_style'] = "<style id='globalsojs-styles'></style>"; | 186 | $this->param['html_style'] = "<style id='globalsojs-styles'></style>"; |
| 187 | } | 187 | } |
| 188 | } | 188 | } |
| 189 | - if($this->param['url'] == 'news' || $this->param['url'] == 'product' || $this->param['url'] == 'blog'){ | 189 | + if(($this->param['url'] == 'news') || ($this->param['url'] == 'product') || ($this->param['url'] == 'blog')){ |
| 190 | $this->fail('不允许修改路由为:'.$this->param['url']); | 190 | $this->fail('不允许修改路由为:'.$this->param['url']); |
| 191 | } | 191 | } |
| 192 | $this->param['project_id'] = $this->user['project_id']; | 192 | $this->param['project_id'] = $this->user['project_id']; |
-
请 注册 或 登录 后发表评论