正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
| @@ -1153,7 +1153,10 @@ class ProjectController extends BaseController | @@ -1153,7 +1153,10 @@ class ProjectController extends BaseController | ||
| 1153 | 1153 | ||
| 1154 | if($this->param['site_status'] == 1){ | 1154 | if($this->param['site_status'] == 1){ |
| 1155 | //关闭站点:通知C端 | 1155 | //关闭站点:通知C端 |
| 1156 | - curl_get('https://'.$domainInfo['domain'].'/api/stop_or_start_website'); | 1156 | + $re = curl_get('https://'.$domainInfo['domain'].'/api/stop_or_start_website'); |
| 1157 | + if(isset($re['status']) && $re['status'] !== 200){ | ||
| 1158 | + $this->fail($re['message']); | ||
| 1159 | + } | ||
| 1157 | }else{ | 1160 | }else{ |
| 1158 | //开启站点:创建建站任务 | 1161 | //开启站点:创建建站任务 |
| 1159 | $serverIpModel = new ServersIp(); | 1162 | $serverIpModel = new ServersIp(); |
-
请 注册 或 登录 后发表评论