作者 lyh

gx

@@ -161,6 +161,12 @@ class OptimizeController extends BaseController @@ -161,6 +161,12 @@ class OptimizeController extends BaseController
161 ->orWhere('gl_project.channel','like','%"channel_id": '.$this->map['channel_id'].'%'); 161 ->orWhere('gl_project.channel','like','%"channel_id": '.$this->map['channel_id'].'%');
162 }); 162 });
163 } 163 }
  164 + if(isset($this->map['domain']) && !empty($this->map['domain'])){
  165 + $query = $query->where('gl_project_deploy_optimize.domain','like','%'.$this->map['domain'].'%');
  166 + }
  167 + if(isset($this->map['test_domain']) && !empty($this->map['test_domain'])){
  168 + $query = $query->where('gl_project_deploy_build.test_domain','like','%'.$this->map['test_domain'].'%');
  169 + }
164 $query = $query->whereIn('gl_project.type',[2,4]);//TODO::2,4代表优化项目 170 $query = $query->whereIn('gl_project.type',[2,4]);//TODO::2,4代表优化项目
165 return $query; 171 return $query;
166 } 172 }