|
...
|
...
|
@@ -10,6 +10,7 @@ use App\Http\Logic\Aside\BaseLogic; |
|
|
|
use App\Http\Logic\Aside\Devops\ServerInformationLogic;
|
|
|
|
use App\Models\Aside\Domain\DomainInfo;
|
|
|
|
use App\Models\Aside\Domain\DomainInfoLog;
|
|
|
|
use App\Models\Project\Project;
|
|
|
|
use GuzzleHttp\Client;
|
|
|
|
use GuzzleHttp\Exception\GuzzleException;
|
|
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
...
|
...
|
@@ -88,6 +89,19 @@ class DomainInfoLogic extends BaseLogic |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :获取所有项目列表
|
|
|
|
* @name :getProjectList
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/8/1 16:10
|
|
|
|
*/
|
|
|
|
public function getProjectList($map){
|
|
|
|
$projectModel = new Project();
|
|
|
|
$lists = $projectModel->list($map,['id','title']);
|
|
|
|
return $this->success($lists);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :删除域名
|
|
|
|
* @name :delDomain
|
|
|
|
* @author :lyh
|
|
...
|
...
|
@@ -109,6 +123,9 @@ class DomainInfoLogic extends BaseLogic |
|
|
|
if($info === false){
|
|
|
|
$this->fail('当前数据不存在或者已被删除');
|
|
|
|
}
|
|
|
|
if(!empty($info['project_id'])){
|
|
|
|
$info['company'] = (new Project())->read(['id'=>$info['project_id']],['title'])['title'];
|
|
|
|
}
|
|
|
|
return $this->success($info);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|