作者 lyh

gx数据

@@ -207,6 +207,9 @@ class CustomTemplateLogic extends BaseLogic @@ -207,6 +207,9 @@ class CustomTemplateLogic extends BaseLogic
207 public function handleSaveParam(){ 207 public function handleSaveParam(){
208 $this->param['url'] = str_replace_url($this->param['url']); 208 $this->param['url'] = str_replace_url($this->param['url']);
209 $this->param['operator_id'] = $this->user['id']; 209 $this->param['operator_id'] = $this->user['id'];
  210 + if(empty($this->project)){
  211 + $this->fail('登录已过期,请重新登录');
  212 + }
210 if(($this->project['deploy_build']['is_search'] == 0) && ($this->param['url'] == 'search')){ 213 if(($this->project['deploy_build']['is_search'] == 0) && ($this->param['url'] == 'search')){
211 $this->fail('请先开启搜索页可视化'); 214 $this->fail('请先开启搜索页可视化');
212 } 215 }
@@ -175,6 +175,9 @@ class BaseLogic extends Logic @@ -175,6 +175,9 @@ class BaseLogic extends Logic
175 $str = http_build_query($data); 175 $str = http_build_query($data);
176 $url = $this->user['domain'].'api/delHtml/?'.$str; 176 $url = $this->user['domain'].'api/delHtml/?'.$str;
177 $serverIpModel = new ServersIp(); 177 $serverIpModel = new ServersIp();
  178 + if(empty($this->project)){
  179 + $this->fail('登录已过期,请重新登录');
  180 + }
178 $serversIpInfo = $serverIpModel->read(['id'=>$this->project['serve_id']],['servers_id']); 181 $serversIpInfo = $serverIpModel->read(['id'=>$this->project['serve_id']],['servers_id']);
179 if($serversIpInfo && ($serversIpInfo['servers_id'] == ServerConfig::SELF_SITE_ID)){ 182 if($serversIpInfo && ($serversIpInfo['servers_id'] == ServerConfig::SELF_SITE_ID)){
180 //自建站服务器直接返回 183 //自建站服务器直接返回