作者 lyh

GXgeo设置

@@ -118,13 +118,20 @@ class RenewProjectController extends BaseController @@ -118,13 +118,20 @@ class RenewProjectController extends BaseController
118 if(!empty($this->map['title'])){ 118 if(!empty($this->map['title'])){
119 $this->map['title'] = ['like', '%'.$this->map['title'].'%']; 119 $this->map['title'] = ['like', '%'.$this->map['title'].'%'];
120 } 120 }
  121 + $domainModel = new DomainInfo();
  122 + if(!empty($this->map['domain'])){
  123 + $parsedUrl = parse_url($this->map['domain']);
  124 + $search_domain = $parsedUrl['host'] ?? $this->map['domain'];
  125 + $ids = $domainModel->selectField(['domain'=>['like','%'.$search_domain.'%']],'id');
  126 + $this->map['domain'] = ['in',$ids];
  127 + }
121 $lists = $project->formatQuery($this->map)->with('payment')->with('deploy_build') 128 $lists = $project->formatQuery($this->map)->with('payment')->with('deploy_build')
122 ->with('deploy_optimize')->with('online_check') 129 ->with('deploy_optimize')->with('online_check')
123 ->with('project_after')->paginate($this->row, ['*'], 'page', $this->page); 130 ->with('project_after')->paginate($this->row, ['*'], 'page', $this->page);
124 if(!empty($lists)){ 131 if(!empty($lists)){
125 $lists = $lists->toArray(); 132 $lists = $lists->toArray();
126 $manageModel = new ManageHr(); 133 $manageModel = new ManageHr();
127 - $domainModel = new DomainInfo(); 134 +
128 foreach ($lists['list'] as $k=>$item){ 135 foreach ($lists['list'] as $k=>$item){
129 $item = $this->handleParam($item,$manageModel,$domainModel); 136 $item = $this->handleParam($item,$manageModel,$domainModel);
130 $lists['list'][$k] = $item; 137 $lists['list'][$k] = $item;
@@ -30,7 +30,7 @@ class AuthorityScoreController extends BaseController @@ -30,7 +30,7 @@ class AuthorityScoreController extends BaseController
30 } 30 }
31 31
32 /** 32 /**
33 - * @remark :豹猫数据统计表详情 33 + * @remark :白帽数据统计表详情
34 * @name :whiteHatReportInfo 34 * @name :whiteHatReportInfo
35 * @author :lyh 35 * @author :lyh
36 * @method :post 36 * @method :post