正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -1073,10 +1073,10 @@ class ProjectController extends BaseController | @@ -1073,10 +1073,10 @@ class ProjectController extends BaseController | ||
| 1073 | 'project_id.required' => '项目id不能为空', | 1073 | 'project_id.required' => '项目id不能为空', |
| 1074 | 'site_status.required' => '状态不能为空', | 1074 | 'site_status.required' => '状态不能为空', |
| 1075 | ]); | 1075 | ]); |
| 1076 | - $projectModel->edit(['site_status'=>$this->map['site_status']],['id'=>$this->param['id']]); | 1076 | + $projectModel->edit(['site_status'=>$this->map['site_status']],['id'=>$this->param['project_id']]); |
| 1077 | //TODO::通知C端 | 1077 | //TODO::通知C端 |
| 1078 | $domainModel = new DomainInfoModel(); | 1078 | $domainModel = new DomainInfoModel(); |
| 1079 | - $domainInfo = $domainModel->read(['project_id'=>$this->param['id']]); | 1079 | + $domainInfo = $domainModel->read(['project_id'=>$this->param['project_id']]); |
| 1080 | if($domainInfo !== false){ | 1080 | if($domainInfo !== false){ |
| 1081 | http_get('https://'.$domainInfo['domain'].'/api/stop_or_start_website/'); | 1081 | http_get('https://'.$domainInfo['domain'].'/api/stop_or_start_website/'); |
| 1082 | } | 1082 | } |
-
请 注册 或 登录 后发表评论