|
|
|
@ -25,6 +25,8 @@ class Info_amp extends CI_Controller
|
|
|
|
|
$html = $this->input->get_post('html');
|
|
|
|
|
$pc_html = $this->input->post('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');
|
|
|
|
|
$schema = $this->input->get_post('schema');
|
|
|
|
|
$script = $this->input->get_post('script');
|
|
|
|
@ -45,6 +47,13 @@ class Info_amp extends CI_Controller
|
|
|
|
|
} else {
|
|
|
|
|
$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
|
|
|
|
|
$meta = $this->InfoMetas_model->get($icid, 'AMP_JSON');
|
|
|
|
|
if (empty($meta)) {
|
|
|
|
|