From 9aa52c58d3f7dcc9c73cd7cab3584c9f90067b2c Mon Sep 17 00:00:00 2001 From: cyc Date: Thu, 27 Dec 2018 15:55:06 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=B0=86=E5=BE=B7=E8=AF=ADAMP=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E4=B8=AD=E7=9A=84=E5=BA=95=E9=83=A8=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E4=B8=BA=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third_party/htmlcompressor/views/amp-template/gm.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/application/third_party/htmlcompressor/views/amp-template/gm.php b/application/third_party/htmlcompressor/views/amp-template/gm.php index 6855e9d4..9a526e26 100644 --- a/application/third_party/htmlcompressor/views/amp-template/gm.php +++ b/application/third_party/htmlcompressor/views/amp-template/gm.php @@ -27,12 +27,8 @@ - +@AMP-COMMON-FOOTER@ +
From b81cc40f820fdee6e25b68da661b1c5c4980edb9 Mon Sep 17 00:00:00 2001 From: cyc Date: Thu, 27 Dec 2018 16:17:00 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BE=B7=E8=AF=ADAMP?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third_party/htmlcompressor/views/amp-template/gm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/third_party/htmlcompressor/views/amp-template/gm.php b/application/third_party/htmlcompressor/views/amp-template/gm.php index 9a526e26..3dfa24ea 100644 --- a/application/third_party/htmlcompressor/views/amp-template/gm.php +++ b/application/third_party/htmlcompressor/views/amp-template/gm.php @@ -27,7 +27,7 @@ -@AMP-COMMON-FOOTER@ +@AMP-COMMON-FOOTER@
From e28bb0995b2580782b07c4b51d45c4619bb6d89f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Fri, 28 Dec 2018 10:03:25 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0AMP=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/libraries/Amplib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/libraries/Amplib.php b/application/libraries/Amplib.php index e2551eb8..e04bf36d 100644 --- a/application/libraries/Amplib.php +++ b/application/libraries/Amplib.php @@ -14,6 +14,7 @@ class Amplib { $this->CI = & get_instance(); $this->CI->load->model('Information_model'); $this->CI->load->model('InfoMetas_model'); + $this->CI->load->model('Logs_model'); } public function edit($ic_id) { @@ -88,6 +89,9 @@ class Amplib { //CH的页面没有canonical内容,在这里帮补上 $textarea_htmlcode = str_replace('', $this->CI->config->item('site_url') . $data['information']->ic_url, $textarea_htmlcode); + //备份修改的代码 + $this->CI->Logs_model->write('backup_amp', $ic_id, $textarea_htmlcode); + //AMP格式验证 if ($amp_status !== '0') {//只有发布的时候才需要验证 //把AMP网页内容到purifycss处理,内置了AMP-Validator