Merge branch 'master' of github.com:hainatravel/information-system into master

hotfix/paypal-note
candice 2 years ago
commit dc05cefa84

@ -2,3 +2,5 @@
网前订单数量查看 https://cht.mycht.cn/info.php/look_order/status 网前订单数量查看 https://cht.mycht.cn/info.php/look_order/status
商务加传统订单超过500页面报错可用于监控 商务加传统订单超过500页面报错可用于监控
test

@ -311,6 +311,8 @@ class Information extends CI_Controller
//获取移动优先的模板,如果有的话 //获取移动优先的模板,如果有的话
//增加判断站点,每个站点需要读取的模板不一样。 20210311 zp //增加判断站点,每个站点需要读取的模板不一样。 20210311 zp
//取消预览,严重影响速度 2023-08-15 ycc
/*
if (is_mobile_first()) { if (is_mobile_first()) {
$mobile_first_template_path = 'mobile_first/' . $this->config->item('site_code'); $mobile_first_template_path = 'mobile_first/' . $this->config->item('site_code');
if (is_file(APPPATH . 'views/' . $mobile_first_template_path . EXT)) { if (is_file(APPPATH . 'views/' . $mobile_first_template_path . EXT)) {
@ -326,9 +328,10 @@ class Information extends CI_Controller
$data['mobile_first_template'] = '没有找到移动模板'; $data['mobile_first_template'] = '没有找到移动模板';
} }
} }
*/
//CT判断是否生成静态文件 //判断是否生成静态文件
if ($this->config->item("site_code") == "chinatravel") { if (is_mobile_first()) {
//查找是否有静态文件 //查找是否有静态文件
if ($this->html_file_helper('find', $data['information']->ic_url)) { if ($this->html_file_helper('find', $data['information']->ic_url)) {
$data['has_html_file'] = true; $data['has_html_file'] = true;

@ -12,7 +12,7 @@ class Infoauthors_model extends CI_Model
function __construct() function __construct()
{ {
parent::__construct(); parent::__construct();
$this->HT = $this->load->database('HT', TRUE); $this->HT = $this->load->database('INFORMATION', TRUE);
} }
function init() function init()

@ -6,7 +6,7 @@ class recommends_and_tips_model extends CI_Model
function __construct() function __construct()
{ {
parent::__construct(); parent::__construct();
$this->HT = $this->load->database('HT', TRUE); $this->HT = $this->load->database('INFORMATION', TRUE);
} }

Loading…
Cancel
Save