作者 赵彬吉
@@ -255,7 +255,11 @@ class OptimizeController extends BaseController @@ -255,7 +255,11 @@ class OptimizeController extends BaseController
255 $query = $query->where('gl_project.site_status',$this->map['site_status']); 255 $query = $query->where('gl_project.site_status',$this->map['site_status']);
256 } 256 }
257 if(isset($this->map['seo_plan'])){ 257 if(isset($this->map['seo_plan'])){
258 - $query = $query->where('gl_project_deploy_build.seo_plan',$this->map['seo_plan']); 258 + if(is_array($this->map['seo_plan'])){
  259 + $query = $query->whereIn('gl_project_deploy_build.seo_plan',$this->map['seo_plan']);
  260 + }else{
  261 + $query = $query->where('gl_project_deploy_build.seo_plan',$this->map['seo_plan']);
  262 + }
259 } 263 }
260 if(isset($this->map['main_lang_id'])){ 264 if(isset($this->map['main_lang_id'])){
261 $query = $query->where('gl_project.main_lang_id',$this->map['main_lang_id']); 265 $query = $query->where('gl_project.main_lang_id',$this->map['main_lang_id']);
@@ -315,7 +315,7 @@ class ProjectController extends BaseController @@ -315,7 +315,7 @@ class ProjectController extends BaseController
315 } 315 }
316 } 316 }
317 if(isset($this->map['seo_plan'])){ 317 if(isset($this->map['seo_plan'])){
318 - $query = $query->where('gl_project_deploy_build.seo_plan',$this->map['seo_plan']); 318 + $query = $query->where('gl_project_deploy_build.seo_plan','!=',0);
319 } 319 }
320 if(isset($this->map['site_status'])){ 320 if(isset($this->map['site_status'])){
321 $query = $query->where('gl_project.site_status',$this->map['site_status']); 321 $query = $query->where('gl_project.site_status',$this->map['site_status']);