增减 AMP PC CSS

hotfix/远程访问多媒体中心
lmrwork 7 years ago
parent 39a6fba79d
commit 61a86b10c1

@ -25,6 +25,8 @@ class Info_amp extends CI_Controller
$html = $this->input->get_post('html'); $html = $this->input->get_post('html');
$pc_html = $this->input->post('pc_html'); $pc_html = $this->input->post('pc_html');
if ($pc_html == 0) $pc_html = ''; if ($pc_html == 0) $pc_html = '';
$pc_css = $this->input->post('pc_css');
if ($pc_css == 0) $pc_css = '';
$css = $this->input->get_post('css'); $css = $this->input->get_post('css');
$schema = $this->input->get_post('schema'); $schema = $this->input->get_post('schema');
$script = $this->input->get_post('script'); $script = $this->input->get_post('script');
@ -45,6 +47,13 @@ class Info_amp extends CI_Controller
} else { } else {
$this->InfoMetas_model->update($icid, 'AMP_BODY_PC', $pc_html); $this->InfoMetas_model->update($icid, 'AMP_BODY_PC', $pc_html);
} }
//pc_css
$meta = $this->InfoMetas_model->get($icid, 'AMP_CSS_PC');
if (empty($meta)) {
$this->InfoMetas_model->add($icid, 'AMP_CSS_PC', $pc_css);
} else {
$this->InfoMetas_model->update($icid, 'AMP_CSS_PC', $pc_css);
}
//json //json
$meta = $this->InfoMetas_model->get($icid, 'AMP_JSON'); $meta = $this->InfoMetas_model->get($icid, 'AMP_JSON');
if (empty($meta)) { if (empty($meta)) {

Loading…
Cancel
Save