|
|
|
@ -13,11 +13,11 @@ class infofix extends CI_Controller
|
|
|
|
|
$this->load->model('infoContents_model');
|
|
|
|
|
$this->load->model('infoMetas_model');
|
|
|
|
|
$this->site_code = $this->input->get('site_code') ? $this->input->get('site_code') : $this->config->item('site_code');
|
|
|
|
|
header('Access-Control-Allow-Origin: *');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function list_info_by_keys()
|
|
|
|
|
{
|
|
|
|
|
header('Access-Control-Allow-Origin: *');
|
|
|
|
|
// 防止超时
|
|
|
|
|
set_time_limit(0);
|
|
|
|
|
|
|
|
|
@ -116,7 +116,6 @@ class infofix extends CI_Controller
|
|
|
|
|
|
|
|
|
|
function update_info_by_keys()
|
|
|
|
|
{
|
|
|
|
|
header('Access-Control-Allow-Origin: *');
|
|
|
|
|
// json参数
|
|
|
|
|
$site = $this->input->get_post('site');
|
|
|
|
|
$keys = $this->input->get_post('keys');
|
|
|
|
@ -193,7 +192,6 @@ class infofix extends CI_Controller
|
|
|
|
|
*/
|
|
|
|
|
function get_by_icid($ic_id)
|
|
|
|
|
{
|
|
|
|
|
header('Access-Control-Allow-Origin: *');
|
|
|
|
|
$ic = $this->infoContents_model->get_ic_contents2($ic_id);
|
|
|
|
|
$json = $this->infoMetas_model->get($ic_id, 'AMP_JSON');
|
|
|
|
|
$use = $this->infoMetas_model->get($ic_id, 'AMP_BODY_PC_STATUS');
|
|
|
|
@ -218,7 +216,6 @@ class infofix extends CI_Controller
|
|
|
|
|
|
|
|
|
|
function update_by_icid()
|
|
|
|
|
{
|
|
|
|
|
header('Access-Control-Allow-Origin: *');
|
|
|
|
|
$ic_id = $this->input->get_post('ic_id');
|
|
|
|
|
$ic_content = $this->input->get_post('ic_content');
|
|
|
|
|
$this->infoContents_model->force_update($ic_id, $ic_content);
|
|
|
|
|