清理技术债务;增加后台登录成功事件;

This commit is contained in:
2023-09-09 13:43:29 +08:00
parent 1b0ae546c3
commit a2c14391b1
5 changed files with 55 additions and 23 deletions

View 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}");
}
}