前端目录调整

This commit is contained in:
molong
2022-05-12 21:23:18 +08:00
parent fe38e19924
commit a37870c93b
145 changed files with 3090 additions and 7244 deletions

45
config/jwt.php Normal file
View File

@@ -0,0 +1,45 @@
<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------
use app\model\user\Users;
return [
'stores' => [
'api' => [
'sso' => [
'enable' => false,
],
'token' => [
'unique_id_key' => 'uid',
'signer_key' => 'tensent',
'not_before' => 0,
'expires_at' => 3600,
'refresh_ttL' => 7200,
'signer' => 'Lcobucci\JWT\Signer\Hmac\Sha256',
'type' => 'Header',
'relogin_code' => 50001,
'refresh_code' => 50002,
'iss' => 'client.tensent',
'aud' => 'server.tensent',
'automatic_renewal' => false,
],
'user' => [
'bind' => true,
'class' => null,
]
]
],
'manager' => [
// 缓存前缀
'prefix' => 'jwt',
// 黑名单缓存名
'blacklist' => 'blacklist',
// 白名单缓存名
'whitelist' => 'whitelist'
]
];