From acbf779d0bf6af558b1172199a2fbe1b7578a3d5 Mon Sep 17 00:00:00 2001 From: Jimmy Liow Date: Tue, 21 May 2024 09:35:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=20optimize=20=E5=81=9A?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=9B=BE=E7=89=87=E5=AE=BD=E9=AB=98=E7=9B=AE?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index e0bf1a7e..55a90a91 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -2330,7 +2330,7 @@ class Information extends CI_Controller } } - // 集合页面反馈标签 + // 集合页面反馈标签 $feedback_city_array = []; preg_match_all('^^', $information->ic_content, $feedback_city_array); if (!empty($feedback_city_array)) { @@ -2401,9 +2401,12 @@ class Information extends CI_Controller $template = str_replace('', '', $template); } - //设置图片尺寸 - if (is_dir('D:/wwwroot/origin-images.chinahighlights.com') && is_dir('D:/wwwroot/origin-www.asiahighlights.com')) { - $template = $this->html_optimize_lib->set_image_size_local($template, 'D:/wwwroot/origin-www.asiahighlights.com', 'D:/wwwroot/origin-images.chinahighlights.com'); + // 设置图片尺寸 + // 优化过图片目录:D:\wwwroot\origin-images.chinahighlights.com\optimize\ + $www_local_path = 'D:/wwwroot/origin-www.asiahighlights.com'; + $image_local_path = 'D:/wwwroot/origin-images.asiahighlights.com/optimize'; + if (is_dir($www_local_path) && is_dir($image_local_path)) { + $template = $this->html_optimize_lib->set_image_size_local($template, $www_local_path, $image_local_path); } else { $template = $this->html_optimize_lib->set_image_size($template); }