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有域名,//更换为对应的域名路径