合并分支 'akun' 到 'master'
update 查看合并请求 !1980
正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -1147,11 +1147,11 @@ class ProjectController extends BaseController | @@ -1147,11 +1147,11 @@ class ProjectController extends BaseController | ||
| 1147 | //获取域名数据 | 1147 | //获取域名数据 |
| 1148 | $domainModel = new DomainInfoModel(); | 1148 | $domainModel = new DomainInfoModel(); |
| 1149 | $domainInfo = $domainModel->read(['project_id'=>$this->param['id']],['id','domain','amp_status']); | 1149 | $domainInfo = $domainModel->read(['project_id'=>$this->param['id']],['id','domain','amp_status']); |
| 1150 | - if($domainInfo){ | 1150 | + if(!$domainInfo){ |
| 1151 | $this->fail('获取域名数据失败'); | 1151 | $this->fail('获取域名数据失败'); |
| 1152 | } | 1152 | } |
| 1153 | 1153 | ||
| 1154 | - if($this->map['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 | curl_get('https://'.$domainInfo['domain'].'/api/stop_or_start_website'); |
| 1157 | }else{ | 1157 | }else{ |
| @@ -1192,7 +1192,7 @@ class ProjectController extends BaseController | @@ -1192,7 +1192,7 @@ class ProjectController extends BaseController | ||
| 1192 | } | 1192 | } |
| 1193 | } | 1193 | } |
| 1194 | } | 1194 | } |
| 1195 | - | 1195 | + |
| 1196 | $projectModel->edit(['site_status'=>$this->param['site_status']],['id'=>$this->param['id']]); | 1196 | $projectModel->edit(['site_status'=>$this->param['site_status']],['id'=>$this->param['id']]); |
| 1197 | 1197 | ||
| 1198 | $this->response('success'); | 1198 | $this->response('success'); |
-
请 注册 或 登录 后发表评论