作者 lyh

gx

@@ -57,9 +57,6 @@ class BaseController extends Controller @@ -57,9 +57,6 @@ class BaseController extends Controller
57 if(is_array($v)){ 57 if(is_array($v)){
58 $this->map[$k] = $v; 58 $this->map[$k] = $v;
59 }else{ 59 }else{
60 - if(empty($v) && ($v == null)){  
61 - unset($this->param[$k]);  
62 - }  
63 $this->getMap($k,$v); 60 $this->getMap($k,$v);
64 } 61 }
65 } 62 }
@@ -87,7 +87,7 @@ class ProjectController extends BaseController @@ -87,7 +87,7 @@ class ProjectController extends BaseController
87 //按类型搜索 87 //按类型搜索
88 $query = $this->searchContent($query); 88 $query = $this->searchContent($query);
89 //搜索升级项目 89 //搜索升级项目
90 -// $query = $this->searchUpgrade($query); 90 + $query = $this->searchUpgrade($query);
91 return $query; 91 return $query;
92 } 92 }
93 93
@@ -97,13 +97,13 @@ class ProjectController extends BaseController @@ -97,13 +97,13 @@ class ProjectController extends BaseController
97 * @return mixed 97 * @return mixed
98 */ 98 */
99 public function searchType(&$query){ 99 public function searchType(&$query){
100 -// if(isset($this->map['type']) && !empty($this->map['type'])){ 100 + if(isset($this->map['type'])){
101 if (in_array($this->map['type'], [Project::TYPE_ZERO, Project::TYPE_ONE, Project::TYPE_TWO, Project::TYPE_THREE])) 101 if (in_array($this->map['type'], [Project::TYPE_ZERO, Project::TYPE_ONE, Project::TYPE_TWO, Project::TYPE_THREE]))
102 $query->where('gl_project.type', $this->map['type']); 102 $query->where('gl_project.type', $this->map['type']);
103 else{ 103 else{
104 $query->whereIn('gl_project.type', [Project::TYPE_FOUR,Project::TYPE_SIX]); 104 $query->whereIn('gl_project.type', [Project::TYPE_FOUR,Project::TYPE_SIX]);
105 } 105 }
106 -// } 106 + }
107 return $query; 107 return $query;
108 } 108 }
109 109