|
...
|
...
|
@@ -114,17 +114,24 @@ class RenewProjectController extends BaseController |
|
|
|
* @time :2023/8/18 14:33
|
|
|
|
*/
|
|
|
|
public function notHaveRenewItems(Project $project){
|
|
|
|
$this->map['extend_type'] = $project::TYPE_FIVE;//未续费网站 if(!empty($param['search']) && !empty($param['search_type'])){
|
|
|
|
$this->map['extend_type'] = $project::TYPE_FIVE;//未续费网站
|
|
|
|
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'];
|
|
|
|
$projectIds = $domainModel->selectField(['domain'=>['like','%'.$search_domain.'%']],'project_id');
|
|
|
|
$this->map['id'] = ['in',$projectIds];
|
|
|
|
unset($this->map['domain']);
|
|
|
|
}
|
|
|
|
$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;
|
...
|
...
|
|