From 3fb7e990d97c700195c92c095572438b2262cb0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Wed, 15 Dec 2021 16:51:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=9E=AE=E5=BA=93=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third_party/ctmobilefirst/models/api_model.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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)); } }