feat: admin login
This commit is contained in:
@@ -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,
|
||||
],
|
||||
],
|
||||
|
||||
20
config/autoload/system.php
Normal file
20
config/autoload/system.php
Normal 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),
|
||||
];
|
||||
Reference in New Issue
Block a user