From 8778f46965c23bb6cdf394c3dbc2f962f0a26900 Mon Sep 17 00:00:00 2001 From: cyc Date: Mon, 25 Feb 2019 09:49:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=8A=A8=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third_party/htmlcompressor/controllers/index_gm.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/third_party/htmlcompressor/controllers/index_gm.php b/application/third_party/htmlcompressor/controllers/index_gm.php index c3a61ad6..51de9d93 100644 --- a/application/third_party/htmlcompressor/controllers/index_gm.php +++ b/application/third_party/htmlcompressor/controllers/index_gm.php @@ -370,8 +370,7 @@ class Index_gm extends CI_Controller //替换掉写在组件上的样式 $amp_template = preg_replace('/style=.+?[\'|"]/i', '', $amp_template); - echo $amp_template; - //echo json_encode(array('result' => 'ok', 'data' => array('amp' => $amp_template))); + echo json_encode(array('result' => 'ok', 'data' => array('amp' => $amp_template))); } //格式化url,保证请求的URL有域名,//更换为对应的域名路径