diff --git a/application/controllers/infofix.php b/application/controllers/infofix.php index a77b82e7..927d6a2a 100644 --- a/application/controllers/infofix.php +++ b/application/controllers/infofix.php @@ -236,21 +236,7 @@ class infofix extends CI_Controller function list_use_hb($site) { $rs = $this->infoContents_model->list_use_hb($site); - if ($rs) { - echo json_encode( - array( - 'state' => 0, - 'infos' => $rs, - ) - ); - } else { - echo json_encode( - array( - 'state' => -1, - 'msg' => 'not content by ' . $site - ) - ); - } + return $rs; } } diff --git a/application/models/infoContents_model.php b/application/models/infoContents_model.php index e9b5fa46..bda122b7 100644 --- a/application/models/infoContents_model.php +++ b/application/models/infoContents_model.php @@ -382,11 +382,6 @@ class InfoContents_model extends CI_Model AND c.ic_sitecode = ? "; $query = $this->HT->query($sql, array($site)); - $rs = $query->result(); - if ($rs) { - return $rs; - } else { - return FALSE; - } + return $query->result(); } }