From fffc866a7a6f8b8336ba0382d616ee5a84ed779d Mon Sep 17 00:00:00 2001 From: "lmr@hainatravel.com" <59361885@qq.com> Date: Thu, 28 Dec 2017 15:45:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=99=E6=80=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 47c23426..e9951170 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -531,13 +531,13 @@ class Information extends CI_Controller { $information = $this->Information_model->Detail($url); $tmp = $url; //判断是否是更新信息 - // 产品页面不能生成静态页面,比如/beijing/hotel/只是为了在导航显示一个链接,如果生成了静态页面,网前只会显示一个空白页面了 + // 产品页面不能生成静态页面,比如/beijing/hotel/只是为了在导航显示一个链接,如果生成了静态页面,网前只会显示一个空白页面了 if (!empty($information->ic_content)) { - //先尝试删除静态文件。 - //$try_del = $this->config->item('site_url') . '/index.php/welcome/update_cache/delete_only?static_html_url=' . $url; - //file_get_contents($try_del); $url = $this->config->item('site_url') . '/index.php/information/detail/?static_html_url=' . $url; } else { + //先尝试删除静态文件。 + $try_del = $this->config->item('site_url') . '/index.php/welcome/update_cache/delete_only?static_html_url=' . $url; + file_get_contents($try_del); $url = $this->config->item('site_url') . '/index.php/welcome/update_cache/?static_html_url=' . $url; } if (isset($information->ic_type) && $information->ic_type == 'product') {