diff --git a/application/third_party/ctmobilefirst/models/api_model.php b/application/third_party/ctmobilefirst/models/api_model.php index ebb74ee5..c98ce570 100644 --- a/application/third_party/ctmobilefirst/models/api_model.php +++ b/application/third_party/ctmobilefirst/models/api_model.php @@ -9,7 +9,7 @@ class Api_model extends CI_Model { { parent::__construct(); $this->HT = $this->load->database('HT', TRUE); - + $this->InfoCT = $this->load->database('INFORMATION', TRUE); } var $dei_sn = 17; //组别ID @@ -195,8 +195,8 @@ class Api_model extends CI_Model { ,ic_url as url , ic_photo as pic1 ,(select top 1 im_value from infoMetas where im_key='meta_addon_picture_mobile' and im_ic_id=ic_id) as pic2 ,'1' as sortby - FROM dbo.infoContents - inner join infoStructures on ic_id=is_ic_id + FROM information_ct.dbo.infoContents + inner join information_ct.dbo.infoStructures on ic_id=is_ic_id WHERE is_sitecode='chinatravel' ".$whereInfo." and ic_status=1 ) as t @@ -314,7 +314,7 @@ class Api_model extends CI_Model { order by sortby "; - $qurey = $this->HT->query($sql,array($url."/%",$new_pid)); + $qurey = $this->InfoCT->query($sql,array($url."/%",$new_pid)); return $qurey->result(); } @@ -460,7 +460,7 @@ class Api_model extends CI_Model { AND icOld.ic_url = ? AND icOld.ic_sitecode = 'ct'"; - return $this->HT->query($sql, array($id,$oldUrl)); + return $this->InfoCT->query($sql, array($id,$oldUrl)); } }