|
|
|
@ -516,27 +516,45 @@ class Info_amp extends CI_Controller
|
|
|
|
|
$json = $this->input->get_post('json');
|
|
|
|
|
$icid = $this->input->get_post('icid');
|
|
|
|
|
if ($json && $icid) {
|
|
|
|
|
echo json_encode($this->Logs_model->backup_meta($icid, $json, 'AMP_HISTORY'));
|
|
|
|
|
echo json_encode(array(
|
|
|
|
|
"succ" => true,
|
|
|
|
|
"info" => $this->Logs_model->backup_meta($icid, $json, 'AMP_HISTORY')
|
|
|
|
|
));
|
|
|
|
|
} else {
|
|
|
|
|
echo 'error';
|
|
|
|
|
echo json_encode(array(
|
|
|
|
|
"succ" => false,
|
|
|
|
|
"message" => "save_history() -> 参数传递错误。"
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function list_history() {
|
|
|
|
|
$icid = $this->input->get_post('icid');
|
|
|
|
|
if ($icid) {
|
|
|
|
|
echo json_encode($this->Logs_model->list_backup_meta($icid, 'AMP_HISTORY'));
|
|
|
|
|
echo json_encode(array(
|
|
|
|
|
"succ" => true,
|
|
|
|
|
"info" => $this->Logs_model->list_backup_meta($icid, 'AMP_HISTORY')
|
|
|
|
|
));
|
|
|
|
|
} else {
|
|
|
|
|
echo 'error';
|
|
|
|
|
echo json_encode(array(
|
|
|
|
|
"succ" => false,
|
|
|
|
|
"message" => "list_history() -> 参数传递错误。"
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function pick_history() {
|
|
|
|
|
$log_id = $this->input->get_post('log_id');
|
|
|
|
|
if ($log_id) {
|
|
|
|
|
echo json_encode($this->Logs_model->pick_backup_meta($log_id));
|
|
|
|
|
echo json_encode(array(
|
|
|
|
|
"succ" => true,
|
|
|
|
|
"info" => $this->Logs_model->pick_backup_meta($log_id)
|
|
|
|
|
));
|
|
|
|
|
} else {
|
|
|
|
|
echo 'error';
|
|
|
|
|
echo json_encode(array(
|
|
|
|
|
"succ" => false,
|
|
|
|
|
"message" => "pick_history() -> 参数传递错误。"
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|