diff --git a/application/libraries/Amplib.php b/application/libraries/Amplib.php index 5630d27b..e2551eb8 100644 --- a/application/libraries/Amplib.php +++ b/application/libraries/Amplib.php @@ -59,7 +59,6 @@ class Amplib { $websitehost = $this->CI->config->item('site_url'); $html_source_url = $this->CI->config->item('site_url') . $data['information']->ic_url; } - //获取网页当前源码,然后发送到信息平台 $html_source = GET_HTTP($html_source_url); if (!empty($html_source)) { diff --git a/application/third_party/htmlcompressor/controllers/index.php b/application/third_party/htmlcompressor/controllers/index.php index 999907c2..376836fa 100644 --- a/application/third_party/htmlcompressor/controllers/index.php +++ b/application/third_party/htmlcompressor/controllers/index.php @@ -157,7 +157,7 @@ class Index extends CI_Controller } if (substr($url, 0, 2) == '//') { //https或http - return urldecode(str_replace('//', 'https://', $url)); + return urldecode('https://'.substr($url, 2, strlen($url)-2)); //只替换开头的//,部分url不规范,有//在url中间 } return urldecode($host . $url); diff --git a/application/third_party/htmlcompressor/views/amp-template/ct.php b/application/third_party/htmlcompressor/views/amp-template/ct.php new file mode 100644 index 00000000..687125fe --- /dev/null +++ b/application/third_party/htmlcompressor/views/amp-template/ct.php @@ -0,0 +1,236 @@ + + + + +<!--@TITLE@--> + + + + + + + + + + + + + + + +
+
China Travel ® CUSTOMIZE
+
+ + +
+
+
+ +
+ + + + + + + + + + + \ No newline at end of file