diff --git a/application/controllers/information.php b/application/controllers/information.php index adf6a95e..b9a683e8 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -913,8 +913,17 @@ class Information extends CI_Controller } } + // 检查图片地址格式 + $parsed_photo = $information->ic_photo; + $parsed_photo_url = parse_url($information->ic_photo); + if ( + (!isset($parsed_photo_url['host']) || !isset($parsed_photo_url['scheme'])) && isset($parsed_photo_url['path']) + ) { + $parsed_photo = 'https://images.chinahighlights.com' . $parsed_photo_url['path']; + } + $data_H1['ic_title'] = $information->ic_title; - $data_H1['ic_photo'] = $information->ic_photo; + $data_H1['ic_photo'] = $parsed_photo; $data_H1['breadcrumb_data'] = $breadcrumb_data; $data_H1['ads_by_google'] = $ads_by_google; $data_H1['ic_datetime'] = $information->ic_datetime; @@ -1702,6 +1711,22 @@ class Information extends CI_Controller } } + // 未勾选In Article 广告时,加入标签 ,让 ezoic 识别出该页面不展示广告。 + $meta_google_ad_article = get_meta($information->ic_id, 'meta_google_ad_article'); + if (empty($meta_google_ad_article) || !$meta_google_ad_article) { + $template = str_replace( + '', + '', + $template + ); + } else { + $template = str_replace( + '', + '', + $template + ); + } + $why_us_covid_list_pc = $this->load->view( $template_path . '-why-us-covid-list-pc', array(), diff --git a/application/third_party/trainsystem/controllers/addorders.php b/application/third_party/trainsystem/controllers/addorders.php index 87151452..5bb18194 100644 --- a/application/third_party/trainsystem/controllers/addorders.php +++ b/application/third_party/trainsystem/controllers/addorders.php @@ -790,6 +790,10 @@ class addorders extends CI_Controller{ $passagersdata[$i]->countryCode = ""; $passagersdata[$i]->contactMobile = ""; $passagersdata[$i]->contactEmail = ""; + if (!empty($PassagerInfo->BPE_Nationality)){ + $passagersdata[$i]->regionCode = $PassagerInfo->BPE_Nationality; //国家简码 美国us ,中国cn + } + $i++; } //乘客人信息 diff --git a/application/third_party/trainsystem/controllers/pages.php b/application/third_party/trainsystem/controllers/pages.php index 35bb6d95..b4c46a50 100644 --- a/application/third_party/trainsystem/controllers/pages.php +++ b/application/third_party/trainsystem/controllers/pages.php @@ -55,14 +55,15 @@ class pages extends CI_Controller{ $list->cols_id=$cols_id; } - //查询聚合余额 - $back_data = GetPost_http("http://op.juhe.cn/trainTickets/balance.php?key=79f03107b921ef31310bd40a1415c1cb"); - $back_data = json_decode($back_data); - if(!empty($back_data->result)){ - $list->balance = $back_data->result; - }else{ - $list->balance = "NULL"; - } + // //查询聚合余额 + // $back_data = GetPost_http("http://op.juhe.cn/trainTickets/balance.php?key=79f03107b921ef31310bd40a1415c1cb"); + // $back_data = json_decode($back_data); + // if(!empty($back_data->result)){ + // $list->balance = $back_data->result; + // }else{ + // $list->balance = "NULL"; + // } + $list->balance = "NULL"; // print_r(json_encode($list)); $this->load->view('common/header'); $this->load->view('homepage',$list); diff --git a/application/third_party/trainsystem/models/BIZ_train_model.php b/application/third_party/trainsystem/models/BIZ_train_model.php index 8f561894..040b5437 100644 --- a/application/third_party/trainsystem/models/BIZ_train_model.php +++ b/application/third_party/trainsystem/models/BIZ_train_model.php @@ -23,6 +23,7 @@ class BIZ_train_model extends CI_Model { ,(case ISDATE(BPE_PassExpdate) when 1 then CONVERT(VARCHAR(10),CONVERT(datetime,BPE_PassExpdate,120),120) else null end) as BPE_PassExpdate + ,(select top 1 COI_Code from COuntryInfo where COI_SN=bbp.BPE_Nationality) as BPE_Nationality FROM BIZ_BookPeople bbp WHERE BPE_SN in(".$bpe_sn.") "; @@ -55,6 +56,8 @@ class BIZ_train_model extends CI_Model { ,(case ISDATE(BPE_PassExpdate) when 1 then CONVERT(VARCHAR(10),CONVERT(datetime,BPE_PassExpdate,120),120) else null end) as BPE_PassExpdate + ,(select top 1 COI_Code from COuntryInfo where COI_SN=bbp.BPE_Nationality) as BPE_Nationality + ,(select top 1 COI_ID from COuntryInfo where COI_SN=bbp.BPE_Nationality) as Nationality FROM BIZ_BookPeople bbp WHERE EXISTS( SELECT TOP 1 1 diff --git a/application/third_party/trainsystem/views/homepage.php b/application/third_party/trainsystem/views/homepage.php index 0d0db302..096ec0f8 100644 --- a/application/third_party/trainsystem/views/homepage.php +++ b/application/third_party/trainsystem/views/homepage.php @@ -137,6 +137,7 @@ function selseat(seat){
|
-
- 1-to-1 Expert Planning-Your tour will be tailor-made to suit you by a destination expert. Your personal - travel advisor will always reply within 24 hours. +![]() Save Your Time+
|
-
- Personal Journeys-Enjoy having your own personal local guide and ride. Explore destinations at your own - pace. Have as much flexibility as possible. +![]() Maximize Your Flexibility+
|
+
-
- Authentic Experiences-Go beyond the sightseeing. Understand the destinations by practicing the local - culture and interacting with local people. +![]() Ensure Your Satisfactory+
|
-
- One-Stop Service-Leave all the booking work to us, including international and internal - transportation, visas, hotels, meals, and activities. +
+ Celebrate Your Journey+
|