作者 刘锟

update

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