wzh il y a 5 ans
Parent
commit
70a8387dcc
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      api/application/controllers/Company.php

+ 1 - 1
api/application/controllers/Company.php

@@ -17,7 +17,7 @@ class Company extends Base_Controller {
 		$type = $this->input->post('type',true);
 
 		if ($keyword !== '' && $keyword !== null) $where['name|'] = $keyword;
-		if ($type !== '' && $type !== null) $where['type'] = $type;
+		if ($type !== '' && $type !== null && !empty($type)) $where['type'] = $type;
 		// 分页数据
         $page = intval($this->input->post('page',true));
         $page = empty($page) ? 1 : $page;