auth
This commit is contained in:
24
app/Const/VrCode.php
Normal file
24
app/Const/VrCode.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
namespace App\Const;
|
||||
|
||||
class VrCode{
|
||||
|
||||
const REDIS_CACHE_EXPIRE = 300;
|
||||
const TOPIC_REGISTER = 1;
|
||||
const TOPIC_RESET_PASSWD = 2;
|
||||
const TOPIC_RESET_GOOGLE_AUTH = 3;
|
||||
const TOPIC_SET_WALLET_PASSWD = 4;
|
||||
const TOPIC = [
|
||||
self::TOPIC_REGISTER,
|
||||
self::TOPIC_RESET_PASSWD,
|
||||
self::TOPIC_RESET_GOOGLE_AUTH,
|
||||
self::TOPIC_SET_WALLET_PASSWD,
|
||||
];
|
||||
const TOPIC_PREFIX = [
|
||||
self::TOPIC_REGISTER => 'vrcode:register:',
|
||||
self::TOPIC_RESET_PASSWD => 'vrcode:reset_passwd:',
|
||||
self::TOPIC_RESET_GOOGLE_AUTH => 'vrcode:reset_google_auth:',
|
||||
self::TOPIC_SET_WALLET_PASSWD => 'vrcode:set_wallet_passwd:',
|
||||
];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user