|
|
|
@ -152,22 +152,23 @@ class Logs_model extends CI_Model {
|
|
|
|
|
|
|
|
|
|
//备份信息meta内容,lmr - 2020/03/12
|
|
|
|
|
function backup_meta($is_id, $log_content, $meta_code) {
|
|
|
|
|
$this->write('backup_meta_'.$meta_code, $is_id, $log_content);
|
|
|
|
|
return $this->HT->last_id('infoLogs');
|
|
|
|
|
$add_icid_time_flug = 'backup_meta_'.$meta_code.'_'. $is_id.'_'.time();
|
|
|
|
|
$this->write($add_icid_time_flug, $is_id, $log_content);
|
|
|
|
|
return $add_icid_time_flug;
|
|
|
|
|
}
|
|
|
|
|
//列表信息meta内容,lmr - 2020/03/23
|
|
|
|
|
function list_backup_meta($is_id, $meta_code) {
|
|
|
|
|
$this->init();
|
|
|
|
|
$this->top_num = 50;
|
|
|
|
|
$this->log_res_id = " AND il.log_res_id =" . $this->HT->escape($is_id);
|
|
|
|
|
$this->log_action = " AND il.log_action = 'backup_meta_".$meta_code."'";
|
|
|
|
|
$this->log_action = " AND il.log_action like 'backup_meta_".$meta_code."_%'";
|
|
|
|
|
return $this->get_list();
|
|
|
|
|
}
|
|
|
|
|
//制定读取信息meta内容,lmr - 2020/03/23
|
|
|
|
|
function pick_backup_meta($log_id) {
|
|
|
|
|
function pick_backup_meta($action) {
|
|
|
|
|
$this->init();
|
|
|
|
|
$this->top_num = 1;
|
|
|
|
|
$this->log_id = " AND il.log_id =" . $this->HT->escape($log_id);
|
|
|
|
|
$this->action = " AND il.action =" . $this->HT->escape($action);
|
|
|
|
|
return $this->get_list();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|