登录验证

This commit is contained in:
2025-06-06 10:38:31 +08:00
parent 50e962c4aa
commit d75a9e1ae1
9 changed files with 415 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
<?php
return [
'secret' => getenv('JWT_SECRET_KEY'), // 替换为高强度的密钥
'algorithm' => getenv('JWT_ALGORITHM'), // 加密算法
'expire' => getenv('JWT_EXPIRATION'), // 过期时间
];
+2 -1
View File
@@ -23,6 +23,7 @@ return [
app\middleware\Lang::class
],
'console' => [
app\middleware\Lang::class
app\middleware\Lang::class,
app\middleware\ConsoleAuthMiddleware::class,
]
];
+2
View File
@@ -120,6 +120,8 @@ Route::group('/applet', function() {
// ====== ====== ====== 后台管理 ====== ====== ======
Route::group('/console', function() {
// 协议管理
Route::any('/user/login', [\app\console\controller\AdminsController::class, 'login']);
// 协议管理
Route::any('/agt/list', [\app\console\controller\AgreementController::class, 'index']);
Route::any('/agt/add', [\app\console\controller\AgreementController::class, 'add']);