|
...
|
...
|
@@ -19,6 +19,7 @@ use App\Models\Channel\Zone; |
|
|
|
use App\Models\Com\NoticeLog;
|
|
|
|
use App\Models\Com\UpdateLog;
|
|
|
|
use App\Models\Devops\ServerConfig;
|
|
|
|
use App\Models\Devops\ServersIp;
|
|
|
|
use App\Models\Domain\DomainInfo;
|
|
|
|
use App\Models\Inquiry\InquiryIP;
|
|
|
|
use App\Models\Inquiry\InquirySet;
|
|
...
|
...
|
@@ -179,6 +180,22 @@ class ProjectLogic extends BaseLogic |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :选择服务器后双向绑定
|
|
|
|
* @name :setServers
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/6/25 15:34
|
|
|
|
*/
|
|
|
|
public function setServers($servers_id,$project_id){
|
|
|
|
$serversIpModel = new ServersIp();
|
|
|
|
$info = $serversIpModel->read(['id'=>$servers_id]);
|
|
|
|
$project_arr = explode(',',$info['project_arr']);
|
|
|
|
if(!in_array($project_id,$project_arr)){
|
|
|
|
array_push($project_id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :危险项目同步图片与文件
|
|
|
|
* @name :syncImageFile
|
|
|
|
* @author :lyh
|
...
|
...
|
|