mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-08 02:52:49 +08:00
清理技术债务;增加后台登录成功事件;
This commit is contained in:
15
app/common/event/AdminLoginSuccess/LogEvent.php
Normal file
15
app/common/event/AdminLoginSuccess/LogEvent.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\event\AdminLoginSuccess;
|
||||
|
||||
use app\admin\model\SystemAdmin;
|
||||
use think\facade\Log;
|
||||
|
||||
class LogEvent
|
||||
{
|
||||
public function handle(SystemAdmin $system_admin)
|
||||
{
|
||||
// 事件监听处理
|
||||
Log::report("admin login success,{$system_admin->username}");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user