From c4a8721ea7f5e75dee49fcdb6a397dd9c69a3712 Mon Sep 17 00:00:00 2001 From: LMR <59361885@qq.com> Date: Thu, 13 Apr 2023 10:24:21 +0800 Subject: [PATCH] fix gm product type --- application/config/config.php | 30 ++++++++++++++++++++++++- application/controllers/information.php | 3 ++- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/application/config/config.php b/application/config/config.php index caac5e44..afb68a64 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -887,6 +887,34 @@ $config['InfoType_product'] = array( '移动端' => 'pd_phone', ); +//产品类型 - 德语 +$config['InfoType_product_gm'] = array( + '不设置' => 'none', + '线路' => 'pd_tour', + '包价线路' => 'pd_package', + '信息页' => 'pd_info', + '移动端' => 'pd_phone', + '------' => 'none', + '首页' => 'root', + '基本数据' => 'n_facts', + '国家艺术' => 'n_arts', + '国家文化' => 'n_culture', + '国家概述' => 'n_overview', + '国家图片' => 'n_photos', + '国家景点' => 'n_attraction', + '国家旅游' => 'n_travel', + '国家交通' => 'n_transport', + '国家天气' => 'n_weather', + '国家节庆' => 'n_festival', + '国家美食' => 'n_food', + '国家历史' => 'n_history', + '国家地图' => 'n_map', + '民族传统和文化遗产' => 'n_national', + '产品附加信息' => 'product', + '旅游工具箱' => 'n_tools', + +); + //公民游 $config['InfoType_citizen'] = array( '不设置' => 'none', @@ -1131,4 +1159,4 @@ $config['media_image_url_remote2'] = 'http://116.251.217.48:3581/upload'; /* End of file config.php */ /* Location: ./application/config/config.php */ -header('Cache-Control: no-cache'); \ No newline at end of file +header('Cache-Control: no-cache'); diff --git a/application/controllers/information.php b/application/controllers/information.php index 5682bba4..432d599b 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -247,6 +247,7 @@ class Information extends CI_Controller $this->config->set_item('templates', $this->config->item('templates_product_i')); } else if ($this->config->item('site_code') === 'gm') { $this->config->set_item('templates', $this->config->item('templates_product_gm')); + $data['infoTypeList'] = $this->config->item('InfoType_product_gm'); } else { $this->config->set_item('templates', $this->config->item('templates_product')); } @@ -2290,4 +2291,4 @@ class Information extends CI_Controller echo json_encode($data); return true; } -} +} \ No newline at end of file