作者 lyh

gx项目返回状态

... ... @@ -82,7 +82,7 @@ class RemainDay extends Command
$domainModel = new DomainInfoModel();
$domainInfos = $domainModel->read(['project_id'=>$item->id]);
if($domainInfos !== false){
http_get('https://'.$domainInfos['domain'].'/api/stop_or_start_website/');
curl_get('https://'.$domainInfos['domain'].'/api/stop_or_start_website/');
}
}
$item->save();
... ...
... ... @@ -1078,7 +1078,7 @@ class ProjectController extends BaseController
$domainModel = new DomainInfoModel();
$domainInfo = $domainModel->read(['project_id'=>$this->param['project_id']]);
if($domainInfo !== false){
http_get('https://'.$domainInfo['domain'].'/api/stop_or_start_website/');
curl_get('https://'.$domainInfo['domain'].'/api/stop_or_start_website/');
}
$this->response('success');
}
... ...