feat: admin login

This commit is contained in:
2024-10-27 00:34:45 +08:00
parent 3a39ff3790
commit d76e37a81d
18 changed files with 698 additions and 3 deletions

View File

@@ -13,6 +13,8 @@ return [
'handler' => [
'http' => [
Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class,
App\Exception\Handler\AdminExceptionHandler::class,
App\Exception\Handler\ValidationDataExceptionHandler::class,
App\Exception\Handler\AppExceptionHandler::class,
],
],

View File

@@ -0,0 +1,20 @@
<?php
/**
* This config file is part of item.
*
* @author ctexthuang
* @contact ctexthuang@qq.com
*/
declare(strict_types=1);
use function Hyperf\Support\env;
return [
// api 返回加密/解密 key
'api_return_key' => env('API_RETURN_KEY','hhl@shenzhen'),
// jwt 加密 key
'jwt_key' => env('JWT_KEY','hhl@shenzhen'),
// jwt 过期时间
'jwt_expire' => env('JWT_EXPIRE',86400 * 30),
];