From ab663187b6efc7badbc457196317f0cd4262e3e7 Mon Sep 17 00:00:00 2001 From: "lmr@hainatravel.com" <59361885@qq.com> Date: Fri, 23 Feb 2018 15:40:23 +0800 Subject: [PATCH] fix amp v4 add css --- application/controllers/info_amp.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/application/controllers/info_amp.php b/application/controllers/info_amp.php index 57e2e19d..f9d96987 100644 --- a/application/controllers/info_amp.php +++ b/application/controllers/info_amp.php @@ -20,6 +20,7 @@ class Info_amp extends CI_Controller $icid = $this->input->post('icid'); $json = $this->input->post('json'); $html = $this->input->post('html'); + $css = $this->input->post('css'); $status = $this->input->post('status'); if ($icid && $json && $html) { try { @@ -37,6 +38,13 @@ class Info_amp extends CI_Controller } else { $this->InfoMetas_model->update($icid, 'AMP_JSON', $json); } + //css + $meta = $this->InfoMetas_model->get($icid, 'AMP_CSS'); + if ($meta === false) { + $this->InfoMetas_model->add($icid, 'AMP_CSS', $css); + } else { + $this->InfoMetas_model->update($icid, 'AMP_CSS', $css); + } //status $meta = $this->InfoMetas_model->get($icid, 'AMP_STATUS'); if ($meta === false) {