diff --git a/application/models/logs_model.php b/application/models/logs_model.php index 4e839c71..ceafbfdd 100644 --- a/application/models/logs_model.php +++ b/application/models/logs_model.php @@ -158,15 +158,15 @@ class Logs_model extends CI_Model { function list_backup_meta($is_id, $meta_code) { $this->init(); $this->top_num = 50; - $this->log_res_id = $this->HT->escape($is_id); - $this->log_action = 'backup_meta_'.$meta_code; + $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"; return $this->get_list(); } //制定读取信息meta内容,lmr - 2020/03/23 function pick_backup_meta($log_id) { $this->init(); $this->top_num = 1; - $this->log_id = $this->HT->escape($log_id); + $this->log_id = " AND il.log_id =" . $this->HT->escape($log_id); return $this->get_list(); }