作者 lyh

gx

@@ -36,16 +36,16 @@ class ProjectController extends BaseController @@ -36,16 +36,16 @@ class ProjectController extends BaseController
36 { 36 {
37 $map = []; 37 $map = [];
38 //搜索类型 38 //搜索类型
39 - if(!empty($this->param['type'])){ 39 + if(isset($this->param['type']) && !empty($this->param['type'])){
40 if($this->param['type'] == 3){//推广中 40 if($this->param['type'] == 3){//推广中
41 $map[] = ['type', 'in' ,[4,6]]; 41 $map[] = ['type', 'in' ,[4,6]];
42 }elseif($this->param['type'] == 2){//建站完成 42 }elseif($this->param['type'] == 2){//建站完成
43 $map[] = ['type', 'in', [2,3]]; 43 $map[] = ['type', 'in', [2,3]];
44 }elseif($this->param['type'] == 1){//建站中 44 }elseif($this->param['type'] == 1){//建站中
45 $map[] = ['type',1]; 45 $map[] = ['type',1];
46 - }else{  
47 - $map[] = ['type',0];//初始导入项目  
48 } 46 }
  47 + }else{
  48 + $map[] = ['type',0];//初始导入项目
49 } 49 }
50 //搜索技术组 50 //搜索技术组
51 if(!empty($this->param['dep_id'])){ 51 if(!empty($this->param['dep_id'])){