|
...
|
...
|
@@ -1147,11 +1147,11 @@ class ProjectController extends BaseController |
|
|
|
//获取域名数据
|
|
|
|
$domainModel = new DomainInfoModel();
|
|
|
|
$domainInfo = $domainModel->read(['project_id'=>$this->param['id']],['id','domain','amp_status']);
|
|
|
|
if($domainInfo){
|
|
|
|
if(!$domainInfo){
|
|
|
|
$this->fail('获取域名数据失败');
|
|
|
|
}
|
|
|
|
|
|
|
|
if($this->map['site_status'] == 1){
|
|
|
|
if($this->param['site_status'] == 1){
|
|
|
|
//关闭站点:通知C端
|
|
|
|
curl_get('https://'.$domainInfo['domain'].'/api/stop_or_start_website');
|
|
|
|
}else{
|
|
...
|
...
|
@@ -1192,7 +1192,7 @@ class ProjectController extends BaseController |
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$projectModel->edit(['site_status'=>$this->param['site_status']],['id'=>$this->param['id']]);
|
|
|
|
|
|
|
|
$this->response('success');
|
...
|
...
|
|