|
@@ -21,6 +21,7 @@ use App\Models\Com\City; |
|
@@ -21,6 +21,7 @@ use App\Models\Com\City; |
|
21
|
use App\Models\Com\UpdateLog;
|
21
|
use App\Models\Com\UpdateLog;
|
|
22
|
use App\Models\Devops\ServerConfig;
|
22
|
use App\Models\Devops\ServerConfig;
|
|
23
|
use App\Models\Domain\DomainInfo;
|
23
|
use App\Models\Domain\DomainInfo;
|
|
|
|
24
|
+use App\Models\Domain\DomainInfo as DomainInfoModel;
|
|
24
|
use App\Models\HomeCount\Count;
|
25
|
use App\Models\HomeCount\Count;
|
|
25
|
use App\Models\Inquiry\InquirySet;
|
26
|
use App\Models\Inquiry\InquirySet;
|
|
26
|
use App\Models\Manage\BelongingGroup;
|
27
|
use App\Models\Manage\BelongingGroup;
|
|
@@ -1074,6 +1075,11 @@ class ProjectController extends BaseController |
|
@@ -1074,6 +1075,11 @@ class ProjectController extends BaseController |
|
1074
|
]);
|
1075
|
]);
|
|
1075
|
$projectModel->edit(['site_status'=>$this->map['site_status']],['id'=>$this->param['id']]);
|
1076
|
$projectModel->edit(['site_status'=>$this->map['site_status']],['id'=>$this->param['id']]);
|
|
1076
|
//TODO::通知C端
|
1077
|
//TODO::通知C端
|
|
|
|
1078
|
+ $domainModel = new DomainInfoModel();
|
|
|
|
1079
|
+ $domainInfo = $domainModel->read(['project_id'=>$this->param['id']]);
|
|
|
|
1080
|
+ if($domainInfo !== false){
|
|
|
|
1081
|
+ http_get('https://'.$domainInfo['domain'].'/api/stop_or_start_website/');
|
|
|
|
1082
|
+ }
|
|
1077
|
$this->response('success');
|
1083
|
$this->response('success');
|
|
1078
|
}
|
1084
|
}
|
|
1079
|
} |
1085
|
} |