fix amp builder

hotfix/远程访问多媒体中心
LMR 8 years ago
parent a9b58bc1a3
commit 4a98643778

@ -29,6 +29,13 @@ class Info_amp extends CI_Controller
$schema = $this->input->get_post('schema'); $schema = $this->input->get_post('schema');
$script = $this->input->get_post('script'); $script = $this->input->get_post('script');
$status = $this->input->get_post('status'); $status = $this->input->get_post('status');
//如果源信息的内容为空,则插入内容。
$info = $this->InfoContents_model->get_ic_contents2($icid);
if ($info && empty($info->ic_content)) {
$this->InfoContents_model->force_update($ic_id, '<style>'.$pc_css.'</style>'.$pc_html);
}
if ($icid && $json && $html) { if ($icid && $json && $html) {
try { try {
//html //html

@ -85,6 +85,14 @@ class InfoContents_model extends CI_Model
return $query; return $query;
} }
//删除信息
function force_update($ic_id, $ic_content)
{
$sql = "UPDATE infoContents SET ic_content = N? WHERE ic_id = ?";
$query = $this->HT->query($sql, array($ic_content, $ic_id));
return $query;
}
//删除信息 //删除信息
function Delete($ic_id) function Delete($ic_id)
{ {

Loading…
Cancel
Save