From 9cd2036c01a8a8122a17666c7a2f82ed0e6ec588 Mon Sep 17 00:00:00 2001 From: LMR <59361885@qq.com> Date: Mon, 23 Mar 2020 10:46:49 +0800 Subject: [PATCH] +2 fix bugs --- application/models/logs_model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); }