mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-11-07 19:40:49 +08:00
feat(notice): NoticeSended 事件与登录提醒内置监听
This commit is contained in:
@@ -45,8 +45,10 @@ use app\common\command\tools\log\ToolsLogShow;
|
||||
use app\common\command\tools\log\ToolsLogStats;
|
||||
use app\common\command\Test;
|
||||
use app\common\event\AdminLoginSuccess\LogEvent;
|
||||
use app\common\event\AdminLoginSuccess\NoticeEvent;
|
||||
use app\common\event\AdminLoginType\DemoEvent;
|
||||
use app\common\event\AdminMenuTab\DemoEvent as AdminMenuTabDemoEvent;
|
||||
use app\common\event\NoticeSended\LogEvent as NoticeSendedLogEvent;
|
||||
use app\common\provider\ExceptionHandle;
|
||||
use app\common\provider\Request;
|
||||
use app\common\provider\View;
|
||||
@@ -68,6 +70,7 @@ class UlthonAdminService extends Service
|
||||
'LogWrite' => [],
|
||||
'AdminLoginSuccess' => [
|
||||
LogEvent::class,
|
||||
NoticeEvent::class,
|
||||
],
|
||||
'AdminLoginType' => [
|
||||
DemoEvent::class,
|
||||
@@ -75,6 +78,9 @@ class UlthonAdminService extends Service
|
||||
'AdminMenuTab' => [
|
||||
AdminMenuTabDemoEvent::class,
|
||||
],
|
||||
'NoticeSended' => [
|
||||
NoticeSendedLogEvent::class,
|
||||
],
|
||||
];
|
||||
|
||||
$this->app->event->listenEvents($event_listen);
|
||||
|
||||
Reference in New Issue
Block a user