From 5673597b121592171e9baf00069aac774f36df2c Mon Sep 17 00:00:00 2001 From: lmrwork <59361885@qq.com> Date: Fri, 19 Oct 2018 09:45:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0AMP=5FBODY=5FPC=5FSTATUS=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/info_amp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/info_amp.php b/application/controllers/info_amp.php index e205b625..583c899b 100644 --- a/application/controllers/info_amp.php +++ b/application/controllers/info_amp.php @@ -24,7 +24,7 @@ class Info_amp extends CI_Controller $json = $this->input->get_post('json'); $html = $this->input->get_post('html'); $pc_html = $this->input->post('pc_html'); - if ($pc_html) echo $pc_html;; + //if ($pc_html) echo $pc_html; $css = $this->input->get_post('css'); $schema = $this->input->get_post('schema'); $script = $this->input->get_post('script'); @@ -40,7 +40,7 @@ class Info_amp extends CI_Controller } //pc_html $meta = $this->InfoMetas_model->get($icid, 'AMP_BODY_PC'); - if ($meta === false) { + if (empty($meta)) { $this->InfoMetas_model->add($icid, 'AMP_BODY_PC', $pc_html); } else { $this->InfoMetas_model->update($icid, 'AMP_BODY_PC', $pc_html);