|
...
|
...
|
@@ -118,13 +118,20 @@ class RenewProjectController extends BaseController |
|
|
|
if(!empty($this->map['title'])){
|
|
|
|
$this->map['title'] = ['like', '%'.$this->map['title'].'%'];
|
|
|
|
}
|
|
|
|
$domainModel = new DomainInfo();
|
|
|
|
if(!empty($this->map['domain'])){
|
|
|
|
$parsedUrl = parse_url($this->map['domain']);
|
|
|
|
$search_domain = $parsedUrl['host'] ?? $this->map['domain'];
|
|
|
|
$ids = $domainModel->selectField(['domain'=>['like','%'.$search_domain.'%']],'id');
|
|
|
|
$this->map['domain'] = ['in',$ids];
|
|
|
|
}
|
|
|
|
$lists = $project->formatQuery($this->map)->with('payment')->with('deploy_build')
|
|
|
|
->with('deploy_optimize')->with('online_check')
|
|
|
|
->with('project_after')->paginate($this->row, ['*'], 'page', $this->page);
|
|
|
|
if(!empty($lists)){
|
|
|
|
$lists = $lists->toArray();
|
|
|
|
$manageModel = new ManageHr();
|
|
|
|
$domainModel = new DomainInfo();
|
|
|
|
|
|
|
|
foreach ($lists['list'] as $k=>$item){
|
|
|
|
$item = $this->handleParam($item,$manageModel,$domainModel);
|
|
|
|
$lists['list'][$k] = $item;
|
...
|
...
|
|