소스 검색

no message

wzh 4 년 전
부모
커밋
9f879f16c2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      api/application/controllers/Common.php

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

@@ -221,7 +221,7 @@ class Common extends CI_Controller {
 
     public function model_nav(){
         $supId = intval($this->input->post('supId',true));
-        if (empty($supId)) exit(json_result('0007',$this->response['0007']));
+        if (empty($supId)) exit(json_result('0000',$this->response['0000'],['list'=>array()]));
 
         $list = $this->db->query('select id,name from model_info where supId = '.$supId)->result_array();
         exit(json_result('0000',$this->response['0000'],['list'=>$list]));