调整统一provider目录;增加content事件的快速登录案例;

This commit is contained in:
2023-09-15 14:33:34 +08:00
parent a2c14391b1
commit 4d9434454e
15 changed files with 167 additions and 65 deletions

View File

@@ -0,0 +1,23 @@
<?php
namespace app\common\event\AdminLoginType;
use think\facade\Env;
use think\facade\View;
class DemoEvent
{
public function handle()
{
$content = '';
if (Env::get('adminsystem.is_demo', false)) {
$content = View::layout(false)->fetch('login/ext/demo');
}
// 事件监听处理
return [
'view_content' => $content,
];
}
}