正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -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 | } |
-
请 注册 或 登录 后发表评论