|
|
|
@ -13,6 +13,7 @@ class Info_amp extends CI_Controller
|
|
|
|
|
$this->load->model('InfoMetas_model');
|
|
|
|
|
$this->load->model('InfoContents_model');
|
|
|
|
|
$this->load->model('Information_model');
|
|
|
|
|
$this->load->model('Logs_model');
|
|
|
|
|
$this->site_code = $this->config->item('site_code');
|
|
|
|
|
//CORS
|
|
|
|
|
header('Access-Control-Allow-Origin:*');
|
|
|
|
@ -33,10 +34,12 @@ class Info_amp extends CI_Controller
|
|
|
|
|
$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($icid, '<style>'.$pc_css.'</style>'.$pc_html);
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
if ($icid && $json && $html) {
|
|
|
|
|
try {
|
|
|
|
@ -68,6 +71,7 @@ class Info_amp extends CI_Controller
|
|
|
|
|
} else {
|
|
|
|
|
$this->InfoMetas_model->update($icid, 'AMP_JSON', $json);
|
|
|
|
|
}
|
|
|
|
|
$this->Logs_model->backup_meta($icid, $json, 'AMP_JSON');
|
|
|
|
|
//css
|
|
|
|
|
$meta = $this->InfoMetas_model->get($icid, 'AMP_CSS');
|
|
|
|
|
if ($meta === FALSE) {
|
|
|
|
|