wzh 4 lat temu
rodzic
commit
9f879f16c2
1 zmienionych plików z 1 dodań i 1 usunięć
  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]));