合并分支 'master-server' 到 'master'
Master server 查看合并请求 !814
正在显示
3 个修改的文件
包含
5 行增加
和
4 行删除
| @@ -36,7 +36,7 @@ class ServersIpLogic extends BaseLogic | @@ -36,7 +36,7 @@ class ServersIpLogic extends BaseLogic | ||
| 36 | public function infoServersIp(){ | 36 | public function infoServersIp(){ |
| 37 | $info = $this->model->read(['id'=>$this->param['id']]); | 37 | $info = $this->model->read(['id'=>$this->param['id']]); |
| 38 | $projectModel = new Project(); | 38 | $projectModel = new Project(); |
| 39 | - $info['project_title'] = $projectModel->formatQuery(['serve_id'=>$info['id']])->pluck('title')->toArray(); | 39 | + $info['project_title'] = $projectModel->formatQuery(['serve_id'=>$info['id'],'delete_status'=>0])->pluck('title')->toArray(); |
| 40 | return $this->success($info); | 40 | return $this->success($info); |
| 41 | } | 41 | } |
| 42 | 42 |
| @@ -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 | } |
-
请 注册 或 登录 后发表评论