From 44cdc90f6c3e67fc6dff9b3e8d8edf7c4d23242f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Thu, 16 Dec 2021 10:49:25 +0800 Subject: [PATCH] fix --- .../third_party/ctmobilefirst/models/api_model.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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