|
...
|
...
|
@@ -162,9 +162,9 @@ class CustomTemplateLogic extends BaseLogic |
|
|
|
$id = $this->param['id'];
|
|
|
|
$is_upgrade = $this->param['is_upgrade'] ?? 0;//1:5.0数据 0:6.0
|
|
|
|
$six_read = $this->param['six_read'] ?? 0;//5.0数据时,是否按6.0显示
|
|
|
|
if($is_upgrade == 0 || $six_read == 1) {
|
|
|
|
if($is_upgrade == 0 || $six_read == 0) {
|
|
|
|
$this->param['url'] = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_PAGE, $id, $this->user['project_id']);
|
|
|
|
if($this->param['url'] == 'news' || $this->param['url'] == 'product' || $this->param['url'] == 'blog'){
|
|
|
|
if(($this->param['url'] == 'news') || ($this->param['url'] == 'product') || ($this->param['url'] == 'blog')){
|
|
|
|
$this->fail('不允许创建路由为:'.$this->param['url']);
|
|
|
|
}
|
|
|
|
}
|
|
...
|
...
|
@@ -186,7 +186,7 @@ class CustomTemplateLogic extends BaseLogic |
|
|
|
$this->param['html_style'] = "<style id='globalsojs-styles'></style>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if($this->param['url'] == 'news' || $this->param['url'] == 'product' || $this->param['url'] == 'blog'){
|
|
|
|
if(($this->param['url'] == 'news') || ($this->param['url'] == 'product') || ($this->param['url'] == 'blog')){
|
|
|
|
$this->fail('不允许修改路由为:'.$this->param['url']);
|
|
|
|
}
|
|
|
|
$this->param['project_id'] = $this->user['project_id'];
|
...
|
...
|
|