作者 李宇航

合并分支 'master-server' 到 'master'

Master server



查看合并请求 !814
@@ -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 }
@@ -120,6 +120,7 @@ class Project extends Base @@ -120,6 +120,7 @@ class Project extends Base
120 13 => 'AI站群', 120 13 => 'AI站群',
121 14 => '未达标', 121 14 => '未达标',
122 15 => 'AI案例', 122 15 => 'AI案例',
  123 + 16 => '6.0广告'
123 ]; 124 ];
124 } 125 }
125 126