|
...
|
...
|
@@ -185,12 +185,12 @@ 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'){
|
|
|
|
$this->fail('不允许修改路由为:'.$this->param['url']);
|
|
|
|
}
|
|
|
|
$this->param['project_id'] = $this->user['project_id'];
|
|
|
|
$id = $this->model->addReturnId($this->param);
|
|
|
|
$route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_PAGE, $id, $this->user['project_id']);
|
|
|
|
if($route == 'news' || $route == 'product' || $route == 'blog'){
|
|
|
|
$this->fail('不允许修改路由为:'.$this->param['url']);
|
|
|
|
}
|
|
|
|
$this->addUpdateNotify(RouteMap::SOURCE_PAGE,$route);
|
|
|
|
$this->model->edit(['url'=>$route],['id'=>$id]);
|
|
|
|
}
|
...
|
...
|
|