作者 lyh

gx项目返回状态

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