|
...
|
...
|
@@ -1073,10 +1073,10 @@ class ProjectController extends BaseController |
|
|
|
'project_id.required' => '项目id不能为空',
|
|
|
|
'site_status.required' => '状态不能为空',
|
|
|
|
]);
|
|
|
|
$projectModel->edit(['site_status'=>$this->map['site_status']],['id'=>$this->param['id']]);
|
|
|
|
$projectModel->edit(['site_status'=>$this->map['site_status']],['id'=>$this->param['project_id']]);
|
|
|
|
//TODO::通知C端
|
|
|
|
$domainModel = new DomainInfoModel();
|
|
|
|
$domainInfo = $domainModel->read(['project_id'=>$this->param['id']]);
|
|
|
|
$domainInfo = $domainModel->read(['project_id'=>$this->param['project_id']]);
|
|
|
|
if($domainInfo !== false){
|
|
|
|
http_get('https://'.$domainInfo['domain'].'/api/stop_or_start_website/');
|
|
|
|
}
|
...
|
...
|
|