diff --git a/application/third_party/ctmobilefirst/models/api_model.php b/application/third_party/ctmobilefirst/models/api_model.php index b97491ef..afe522ab 100644 --- a/application/third_party/ctmobilefirst/models/api_model.php +++ b/application/third_party/ctmobilefirst/models/api_model.php @@ -268,7 +268,7 @@ class Api_model extends CI_Model { inner join infoStructures on ic_id=is_ic_id where is_id = ? "; - $query = $this->HT->query ($sql ,array($new_pid)); + $query = $this->InfoCT->query ($sql ,array($new_pid)); if ($query->num_rows()>0){ $url = $query->row()->ic_url; @@ -314,10 +314,7 @@ class Api_model extends CI_Model { order by sortby "; - - echo ("url:".$url."/%".",pid:".$new_pid."
"); - echo ("sql:".$sql); - die(); + $qurey = $this->InfoCT->query($sql,array($url."/%",$new_pid)); return $qurey->result(); }