diff --git a/application/controllers/information.php b/application/controllers/information.php index 77731d11..2c6e5fbe 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -5751,8 +5751,8 @@ class Information extends CI_Controller { $data = []; #region 公用数据 - //$apiurl = "http://202.103.68.104:61/info.php"; //本地测试 - $apiurl = "https://ct.mycht.cn/info.php"; //网前 + $apiurl = "http://202.103.68.104:61/info.php"; //本地测试 + //$apiurl = "https://ct.mycht.cn/info.php"; //网前 //先准备数据,采用直接赋值视图然后返回视图字符串的模式,不使用一次次替换视图模板内容的模式。 $data["TITLE"] = $information->ic_seo_title; @@ -5787,8 +5787,8 @@ class Information extends CI_Controller { } //主样式表,内联模式 - //$apiweb="http://202.103.68.104:107"; //本地测试 - $apiweb = "https://www.hualiyingtravel.com"; + $apiweb="http://202.103.68.104:107"; //本地测试 + //$apiweb = "https://www.hualiyingtravel.com"; $cssUrl = $apiweb . "/css/css3/base.css?v=" . time(); $main_css_string = compress_css(GET_HTTP($cssUrl)); $data["MAINCSS"] = ''; @@ -5884,69 +5884,7 @@ class Information extends CI_Controller { $productType = ""; $productCode = ""; if ($meta_ct_page_type == "daytripdetail") { - //一日游 - if (! empty($meta_ct_page_type)) { - $productType = $meta_ct_page_type; - } - $meta_ct_page_value = get_meta($information->ic_id, 'meta_ct_page_value'); - if (! empty($meta_ct_page_value)) { - $productCode = $meta_ct_page_value; - } - - //一日游表单的替换 - $DayTripData["productCode"] = $productCode; - $DayTripData["picture_mobile"] = get_meta($information->ic_id, 'meta_addon_picture_mobile'); - $DayTripData["picture_pc"] = get_meta($information->ic_id, 'meta_addon_picture'); - $DayTripData["TITLE"] = $information->ic_title; - - $arrCAD = ['HLYCAD-S', 'HLYCAD-V', 'HLYCAD-P']; //水灯节 - $arrCAD_EN = ['QM-NUT-V', 'QM-NUT-P']; //水灯节英文 - //$arrTest = ['QM-9-A','QM-9-B','QM-9-C']; - - if (in_array($productCode, $arrCAD) || in_array($productCode, $arrCAD_EN)) { //水灯节,中英文分别调用不同模板 - /**替换左右结构的线路表单标签 2024-7-4*/ - if (strpos($ic_content, '') !== false) { - //准备数据 - - $InfoData = new stdClass(); //传递用来计算的信息平台数据 - //附加选项 - $t_excludedate = get_meta($information->ic_id, "meta_trippest_excludedate"); - $t_includedate = get_meta($information->ic_id, "meta_trippest_includedate"); - $t_excludemonth = get_meta($information->ic_id, "meta_trippest_excludemonth"); - $InfoData->t_excludedate = $t_excludedate; - $InfoData->t_includedate = $t_includedate; - $InfoData->t_excludemonth = $t_excludemonth; - - $DayTripData["InfoData"] = $InfoData; //传递信息平台数据 - - $linktour = get_meta($information->ic_id, 'meta_trainspread_linktour'); //关联线路 - if (! empty($linktour)) { - $paramCode = $productCode . "," . $linktour; - } else { - $paramCode = $productCode; - } - - //产品汉特信息,测试地址:http://202.103.68.104:61/info.php/thirdparty/ctmobilefirst/api/getDaytripDetail/?webcode=hly¶m=QM-9-A,QM-9-B,QM-9-C - $TourData = json_decode(GET_HTTP($apiurl . "/thirdparty/ctmobilefirst/api/getDaytripDetail/?webcode=hlyen¶m=" . $paramCode)); - $DayTripData["TourData"] = $TourData; - - //替换模板 - if (in_array($productCode, $arrCAD_EN)) { - $template_form_daydetail = $this->load->view($template_path . '-cad-form-en', $DayTripData, true); //英文模板内容 - } else { - $template_form_daydetail = $this->load->view($template_path . '-cad-form', $DayTripData, true); //中文模板内容 - } - $ic_content = str_replace('', $template_form_daydetail, $ic_content); - } - } else if (1 == 2) { //默认,暂时没有 - - $addonJs .= ''; - $data["ADDONCSS"] .= ''; - - $template_form_daydetail = $this->load->view($template_path . '-daydetail-form', $DayTripData, true); //模板内容 - //使用simple_html_dom_lib库来进行表单添加 - $ic_content = $this->html_optimize_lib->add_htmlcode($ic_content, "#maincontent", $template_form_daydetail); - } + $addonJs .= ''; } if ($meta_ct_page_type == "tourdetail") {