增加response的事件机制;为login增加事件;发布新版本

This commit is contained in:
2023-09-23 14:50:24 +08:00
parent e176ed19e5
commit 08c340a2bf
6 changed files with 90 additions and 16 deletions

View 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'),
];
}
}