From 3e6c03d8e6dc6e330ac4217d2ed0d486ca8baee5 Mon Sep 17 00:00:00 2001 From: ycc Date: Tue, 19 Jan 2021 12:05:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=B2=A1=E6=9C=89cache=20pat?= =?UTF-8?q?h=E7=9A=84=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index a7f72047..9ebb58e0 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -336,13 +336,14 @@ class Information extends CI_Controller //主样式表,内联模式 $main_css_string=compress_css(GET_HTTP('https://proxy-data.chinahighlights.com/css/mobile-first.css')); $data['mobile_first_template'] = str_replace('', '', $data['mobile_first_template']); + //查找是否有静态文件 + if ($this->html_file_helper('find', $data['information']->ic_url)) { + $data['has_html_file'] = true; + } } else { $data['mobile_first_template'] = '没有找到移动模板'; } - //查找是否有静态文件 - if ($this->html_file_helper('find', $data['information']->ic_url)) { - $data['has_html_file'] = true; - } + $this->load->view('bootstrap3/header', $data); $this->load->view('bootstrap3/information_edit');