|
...
|
...
|
@@ -22,6 +22,7 @@ use App\Models\Com\UpdateLog; |
|
|
|
use App\Models\Devops\Servers;
|
|
|
|
use App\Models\Devops\ServersIp;
|
|
|
|
use App\Models\Domain\DomainInfo;
|
|
|
|
use App\Models\Domain\DomainInfo as DomainInfoModel;
|
|
|
|
use App\Models\Industry\ProjectIndustryRelated;
|
|
|
|
use App\Models\Inquiry\InquiryIP;
|
|
|
|
use App\Models\Inquiry\InquirySet;
|
|
...
|
...
|
@@ -794,6 +795,17 @@ class ProjectLogic extends BaseLogic |
|
|
|
if(($info['type'] == Project::TYPE_ZERO) && ($info['type'] != Project::TYPE_FIVE)){
|
|
|
|
$param['type'] = Project::TYPE_ONE;
|
|
|
|
}
|
|
|
|
if($param['type'] == Project::TYPE_CLOSE){
|
|
|
|
$param['site_status'] = 1;//关闭站点
|
|
|
|
$domainModel = new DomainInfoModel();
|
|
|
|
$domainInfo = $domainModel->read(['project_id'=>$this->param['id']],['id','domain','amp_status']);
|
|
|
|
if($domainInfo){
|
|
|
|
$re = curl_get('https://'.$domainInfo['domain'].'/api/stop_or_start_website');
|
|
|
|
if(isset($re['status']) && $re['status'] !== 200){
|
|
|
|
$this->fail($re['message']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//创建默认数据库
|
|
|
|
if($param['type'] == Project::TYPE_ONE){
|
|
|
|
//改为异步
|
...
|
...
|
|