wzh 5 년 전
부모
커밋
c91ee0ee08
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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);