diff --git a/README.md b/README.md index 2176b435..d423b3cf 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # information-system 网前订单数量查看 https://cht.mycht.cn/info.php/look_order/status -商务加传统订单超过500页面报错,可用于监控 \ No newline at end of file +商务加传统订单超过500页面报错,可用于监控 + +test diff --git a/application/controllers/information.php b/application/controllers/information.php index 49428a4b..ac4f8a58 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -311,6 +311,8 @@ class Information extends CI_Controller //获取移动优先的模板,如果有的话 //增加判断站点,每个站点需要读取的模板不一样。 20210311 zp + //取消预览,严重影响速度 2023-08-15 ycc + /* if (is_mobile_first()) { $mobile_first_template_path = 'mobile_first/' . $this->config->item('site_code'); if (is_file(APPPATH . 'views/' . $mobile_first_template_path . EXT)) { @@ -326,9 +328,10 @@ class Information extends CI_Controller $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)) { $data['has_html_file'] = true; diff --git a/application/models/infoauthors_model.php b/application/models/infoauthors_model.php index 34a6a691..6d5193d0 100644 --- a/application/models/infoauthors_model.php +++ b/application/models/infoauthors_model.php @@ -12,7 +12,7 @@ class Infoauthors_model extends CI_Model function __construct() { parent::__construct(); - $this->HT = $this->load->database('HT', TRUE); + $this->HT = $this->load->database('INFORMATION', TRUE); } function init() diff --git a/application/models/recommends_and_tips_model.php b/application/models/recommends_and_tips_model.php index fd0e4a10..c91c282e 100644 --- a/application/models/recommends_and_tips_model.php +++ b/application/models/recommends_and_tips_model.php @@ -6,7 +6,7 @@ class recommends_and_tips_model extends CI_Model function __construct() { parent::__construct(); - $this->HT = $this->load->database('HT', TRUE); + $this->HT = $this->load->database('INFORMATION', TRUE); } @@ -60,4 +60,4 @@ class recommends_and_tips_model extends CI_Model } } -} \ No newline at end of file +}