|
|
|
@ -23,6 +23,7 @@ class Info_amp extends CI_Controller
|
|
|
|
|
$icid = $this->input->get_post('icid');
|
|
|
|
|
$json = $this->input->get_post('json');
|
|
|
|
|
$html = $this->input->get_post('html');
|
|
|
|
|
$pc_html = $this->input->get_post('pc_html');
|
|
|
|
|
$css = $this->input->get_post('css');
|
|
|
|
|
$schema = $this->input->get_post('schema');
|
|
|
|
|
$script = $this->input->get_post('script');
|
|
|
|
@ -36,6 +37,13 @@ class Info_amp extends CI_Controller
|
|
|
|
|
} else {
|
|
|
|
|
$this->InfoMetas_model->update($icid, 'AMP_BODY', $html);
|
|
|
|
|
}
|
|
|
|
|
//pc_html
|
|
|
|
|
$meta = $this->InfoMetas_model->get($icid, 'AMP_BODY_PC');
|
|
|
|
|
if ($meta === false) {
|
|
|
|
|
$this->InfoMetas_model->add($icid, 'AMP_BODY_PC', $pc_html);
|
|
|
|
|
} else {
|
|
|
|
|
$this->InfoMetas_model->update($icid, 'AMP_BODY_PC', $pc_html);
|
|
|
|
|
}
|
|
|
|
|
//json
|
|
|
|
|
$meta = $this->InfoMetas_model->get($icid, 'AMP_JSON');
|
|
|
|
|
if ($meta === false) {
|
|
|
|
|