hotfix/远程访问多媒体中心
lmrwork 8 years ago
parent beddc4c832
commit cab8500327

@ -22,6 +22,7 @@ class Info_amp extends CI_Controller
$json = $this->input->post('json');
$html = $this->input->post('html');
$css = $this->input->post('css');
$script = $this->input->post('script');
$status = $this->input->post('status');
if ($icid && $json && $html) {
try {
@ -46,6 +47,13 @@ class Info_amp extends CI_Controller
} else {
$this->InfoMetas_model->update($icid, 'AMP_CSS', $css);
}
//script
$meta = $this->InfoMetas_model->get($icid, 'AMP_SCRIPT');
if ($meta === false) {
$this->InfoMetas_model->add($icid, 'AMP_SCRIPT', $script);
} else {
$this->InfoMetas_model->update($icid, 'AMP_SCRIPT', $script);
}
//status
$meta = $this->InfoMetas_model->get($icid, 'AMP_STATUS');
if ($meta === false) {

@ -533,7 +533,7 @@
<div class="col-xs-24 btn-sm"></div>
<div class="col-xs-7">
<label>
信息标题 &nbsp;
信息标题 & ID: <?php echo $information->ic_id; ?>
</label>
</div>
<div class="col-xs-17 text-right">

Loading…
Cancel
Save