|
...
|
...
|
@@ -1078,7 +1078,8 @@ class ProjectController extends BaseController |
|
|
|
$domainModel = new DomainInfoModel();
|
|
|
|
$domainInfo = $domainModel->read(['project_id'=>$this->param['project_id']]);
|
|
|
|
if($domainInfo !== false){
|
|
|
|
curl_get('https://'.$domainInfo['domain'].'/api/stop_or_start_website/');
|
|
|
|
$rs = curl_get('https://'.$domainInfo['domain'].'/api/stop_or_start_website/');
|
|
|
|
@file_put_contents(storage_path('logs/site_status.log'), var_export('通知C端on/off'.$domainInfo['domain'].'.返回结果:'.json_encode($rs), true) . PHP_EOL, FILE_APPEND);
|
|
|
|
}
|
|
|
|
$this->response('success');
|
|
|
|
}
|
...
|
...
|
|