feat : login wx
This commit is contained in:
26
app/Cache/Redis/Api/ApiRedisKey.php
Normal file
26
app/Cache/Redis/Api/ApiRedisKey.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Cache\Redis\Api;
|
||||
|
||||
class ApiRedisKey
|
||||
{
|
||||
/**
|
||||
* 注册/登录的锁
|
||||
* @param string $mobile
|
||||
* @return string
|
||||
*/
|
||||
public static function LoginAndRegisterByMobileLock(string $mobile): string
|
||||
{
|
||||
return 'login:or:register:mobile:'.$mobile;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册/登录的锁
|
||||
* @param string $code
|
||||
* @return string
|
||||
*/
|
||||
public static function LoginAndRegisterByCodeLock(string $code): string
|
||||
{
|
||||
return 'login:or:register:code:'.$code;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user