|
|
|
@ -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) {
|
|
|
|
|