合并分支 'akun' 到 'master'
Akun 查看合并请求 !1978
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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'); |
-
请 注册 或 登录 后发表评论