作者 刘锟

合并分支 'akun' 到 'master'

update



查看合并请求 !1980
@@ -1147,11 +1147,11 @@ class ProjectController extends BaseController @@ -1147,11 +1147,11 @@ class ProjectController extends BaseController
1147 //获取域名数据 1147 //获取域名数据
1148 $domainModel = new DomainInfoModel(); 1148 $domainModel = new DomainInfoModel();
1149 $domainInfo = $domainModel->read(['project_id'=>$this->param['id']],['id','domain','amp_status']); 1149 $domainInfo = $domainModel->read(['project_id'=>$this->param['id']],['id','domain','amp_status']);
1150 - if($domainInfo){ 1150 + if(!$domainInfo){
1151 $this->fail('获取域名数据失败'); 1151 $this->fail('获取域名数据失败');
1152 } 1152 }
1153 1153
1154 - if($this->map['site_status'] == 1){ 1154 + if($this->param['site_status'] == 1){
1155 //关闭站点:通知C端 1155 //关闭站点:通知C端
1156 curl_get('https://'.$domainInfo['domain'].'/api/stop_or_start_website'); 1156 curl_get('https://'.$domainInfo['domain'].'/api/stop_or_start_website');
1157 }else{ 1157 }else{