fix amp v4 add css

hotfix/远程访问多媒体中心
lmr@hainatravel.com 8 years ago
parent 38d183a646
commit ab663187b6

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

Loading…
Cancel
Save