作者 lyh

gx数据

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