login
This commit is contained in:
14
app/Const/Filter.php
Normal file
14
app/Const/Filter.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
namespace App\Const;
|
||||
|
||||
class Filter
|
||||
{
|
||||
|
||||
const REQ_LOG_FILTER = [
|
||||
'password',
|
||||
'passwd',
|
||||
'token',
|
||||
'_token',
|
||||
];
|
||||
|
||||
}
|
||||
17
app/Const/RedisConst.php
Normal file
17
app/Const/RedisConst.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
namespace App\Const;
|
||||
class RedisConst{
|
||||
|
||||
const COMMON_EXP_TIME = 86400*60;
|
||||
|
||||
const UID_TOKENS = 'UID_TOKENS:';
|
||||
const TOKEN_UID = 'TOKEN_UID:';
|
||||
|
||||
|
||||
|
||||
const ORM_FIND_CACHE_SECOND = 120;
|
||||
|
||||
|
||||
const ORM_CACHE_USER = 'ORM_CACHE_USER:';
|
||||
}
|
||||
|
||||
9
app/Const/Responses.php
Normal file
9
app/Const/Responses.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
namespace App\Const;
|
||||
|
||||
class Responses{
|
||||
|
||||
const CODE_SUCCESS = 200;
|
||||
const CODE_ERROR = 10000;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user