diff --git a/application/third_party/ctmobilefirst/models/api_model.php b/application/third_party/ctmobilefirst/models/api_model.php index c98ce570..1a9516d8 100644 --- a/application/third_party/ctmobilefirst/models/api_model.php +++ b/application/third_party/ctmobilefirst/models/api_model.php @@ -179,8 +179,8 @@ class Api_model extends CI_Model { WHERE im_key = 'meta_product_code' AND im_ic_id = ic_id )) AS code - FROM dbo.infoContents - INNER JOIN infoStructures ON ic_id = is_ic_id + FROM information_ct.infoContents + INNER JOIN information_ct.infoStructures ON ic_id = is_ic_id WHERE is_sitecode = 'chinatravel'".$whereInfo." AND ic_status = 1 )) @@ -191,9 +191,9 @@ class Api_model extends CI_Model { SELECT * from ( select ic_url_title as title - ,(select top 1 im_value from infoMetas where im_key='meta_product_code' and im_ic_id=ic_id) as code + ,(select top 1 im_value from information_ct.dbo.infoMetas where im_key='meta_product_code' and im_ic_id=ic_id) as code ,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 + ,(select top 1 im_value from information_ct.dbo.infoMetas where im_key='meta_addon_picture_mobile' and im_ic_id=ic_id) as pic2 ,'1' as sortby FROM information_ct.dbo.infoContents inner join information_ct.dbo.infoStructures on ic_id=is_ic_id