作者 lyh

Merge branch 'master-lyh-edit' of http://47.244.231.31:8099/zhl/globalso-v6

@@ -168,8 +168,8 @@ class ProjectController extends BaseController @@ -168,8 +168,8 @@ class ProjectController extends BaseController
168 * @return mixed 168 * @return mixed
169 */ 169 */
170 public function searchType(&$query){ 170 public function searchType(&$query){
171 - $query->where('gl_project.extend_type', '!=' ,5);  
172 if(isset($this->map['type'])){ 171 if(isset($this->map['type'])){
  172 + $query->where('gl_project.extend_type', '!=' ,5);
173 if (in_array($this->map['type'], [Project::TYPE_ZERO, Project::TYPE_ONE, Project::TYPE_TWO, Project::TYPE_THREE])) 173 if (in_array($this->map['type'], [Project::TYPE_ZERO, Project::TYPE_ONE, Project::TYPE_TWO, Project::TYPE_THREE]))
174 $query->where('gl_project.type', $this->map['type']); 174 $query->where('gl_project.type', $this->map['type']);
175 else{ 175 else{