From d044ac6d8aa78927b4aa5f0ecf0da682d186afda Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Tue, 28 Apr 2020 16:34:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catch/system/model/LoginLog.php | 22 +++++++++++++++++ catch/system/model/OperateLog.php | 40 +++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 catch/system/model/LoginLog.php create mode 100644 catch/system/model/OperateLog.php diff --git a/catch/system/model/LoginLog.php b/catch/system/model/LoginLog.php new file mode 100644 index 0000000..7933805 --- /dev/null +++ b/catch/system/model/LoginLog.php @@ -0,0 +1,22 @@ +field([$this->aliasField('*')]) + ->catchJoin(Users::class, 'id', 'creator_id', ['username as creator']) + ->order($this->aliasField('id'), 'desc') + ->paginate(); + } +} \ No newline at end of file