|
|
@ -519,8 +519,9 @@ class Info_amp extends CI_Controller
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$json = $this->input->get_post('json');
|
|
|
|
$json = $this->input->get_post('json');
|
|
|
|
$icid = $this->input->get_post('icid');
|
|
|
|
$icid = $this->input->get_post('icid');
|
|
|
|
|
|
|
|
$action = $this->input->get_post('action') ? '_' . $this->input->get_post('action') : '';
|
|
|
|
if ($json && $icid) {
|
|
|
|
if ($json && $icid) {
|
|
|
|
$code = $this->Logs_model->backup_meta($icid, $json, 'AMP_HISTORY');
|
|
|
|
$code = $this->Logs_model->backup_meta($icid, $json, 'AMP_HISTORY' . $action);
|
|
|
|
echo json_encode(array(
|
|
|
|
echo json_encode(array(
|
|
|
|
"succ" => true,
|
|
|
|
"succ" => true,
|
|
|
|
"info" => $this->Logs_model->pick_backup_meta($code)
|
|
|
|
"info" => $this->Logs_model->pick_backup_meta($code)
|
|
|
|