mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 10:32:48 +08:00
增加response的事件机制;为login增加事件;发布新版本
This commit is contained in:
17
app/common/event/AdminLoginIndex/Index.php
Normal file
17
app/common/event/AdminLoginIndex/Index.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\event\AdminLoginIndex;
|
||||
|
||||
class Index
|
||||
{
|
||||
public function handle($params)
|
||||
{
|
||||
$controller = $params['controller'];
|
||||
|
||||
$controller->assign('captcha',1);
|
||||
|
||||
return [
|
||||
'response' => $controller->fetch('login/ext/index'),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user