|
@@ -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]));
|