From 86a77a982498f41d50d09916c1261daeab6611d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Wed, 25 Apr 2018 11:41:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=B7=E8=AF=AD=E7=AB=99=E7=82=B9=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E8=87=AA=E5=B7=B1=E6=9C=8D=E5=8A=A1=E5=99=A8=E7=9A=84?= =?UTF-8?q?css=E7=B2=BE=E7=AE=80=E6=9C=8D=E5=8A=A1=EF=BC=8C=E4=B8=BA?= =?UTF-8?q?=E4=BA=86=E6=8F=90=E9=AB=98=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third_party/htmlcompressor/controllers/index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/third_party/htmlcompressor/controllers/index.php b/application/third_party/htmlcompressor/controllers/index.php index c0f4cb25..c7eeb38b 100644 --- a/application/third_party/htmlcompressor/controllers/index.php +++ b/application/third_party/htmlcompressor/controllers/index.php @@ -96,7 +96,11 @@ class Index extends CI_Controller { } //echo $js_content; //把网页内容和css提交到purifycss处理 - $optimize_css = GET_HTTP('http://184.172.113.219:33033/', 'html_source=' . urlencode($htmlsource) . '&html_css=' . urlencode($css_content), 'POST'); + $purifycss_server='http://184.172.113.219:33033/'; + if($this->config->item('site_code')=='gm'){ + $purifycss_server='http://158.177.67.52:13331/'; + } + $optimize_css = GET_HTTP($purifycss_server, 'html_source=' . urlencode($htmlsource) . '&html_css=' . urlencode($css_content), 'POST'); if (empty($optimize_css)) { $this->output->set_status_header(500); echo 'css精简错误';