wzh 5 anos atrás
pai
commit
c91ee0ee08
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      api/application/controllers/Company.php

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

@@ -82,9 +82,8 @@ class Company extends Base_Controller {
 		$where = array();
 
 		$type = intval($this->input->post('type',true));
-		if (empty($type)) exit(json_result('0007',$this->response['0007']));
 
-		$where['type'] = $type;
+		if (!empty($type)) $where['type'] = $type;
 
         $list = $this->Company_model->get_list($where, 'id,name',null, null, 'name asc,id desc', NUll);