feat : login wx

This commit is contained in:
2024-11-11 17:04:10 +08:00
parent 83a38d5001
commit 3a5739ee19
20 changed files with 844 additions and 4 deletions

View 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;
}
}