From 64bcd775906dd3a8b3206ac4869e3c2891ac3e30 Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 26 Nov 2020 12:04:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/Oplog.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/admin/controller/Oplog.php b/app/admin/controller/Oplog.php index 09d97c560..a3a74df9c 100644 --- a/app/admin/controller/Oplog.php +++ b/app/admin/controller/Oplog.php @@ -89,6 +89,7 @@ class Oplog extends Controller sysconf($name, $value); } $GLOBALS['oplogs'] = []; + sysoplog('系统运维管理', '修改系统日志行为配置'); $this->success('日志配置成功!'); } } @@ -101,6 +102,7 @@ class Oplog extends Controller public function clear() { if ($this->app->db->name($this->table)->whereRaw('1=1')->delete() !== false) { + sysoplog('系统运维管理', '成功清理所有日志数据'); $this->success('日志清理成功!'); } else { $this->error('日志清理失败,请稍候再试!');