新增注册功能 通过手机号注册账号90%

This commit is contained in:
WangHao
2021-04-18 20:36:23 +08:00
parent af5faf60df
commit 4131d8bdca
17 changed files with 557 additions and 228 deletions

View File

@ -186,13 +186,13 @@ public interface ISqMenuService
/**
*
* 显示l时间内 只能访问i次
* 通用 工具类 显示l时间内 只能访问i次
*
* @param phoneRegister 功能标识符
* @param userId 用户id
* @param flag 用户id或者uid 等唯一标识符
* @param time 时间单位秒
* @param i 次数
* @return
*/
Boolean countRepetition(String phoneRegister, Long userId, long time, int i);
Boolean countRepetition(String phoneRegister, Long flag, long time, int i);
}

View File

@ -335,9 +335,9 @@ public class SqMenuServiceImpl implements ISqMenuService
@Override
public Boolean countRepetition(String state, Long userId, long time, int i) {
public Boolean countRepetition(String state, Long flag, long time, int i) {
String key = RedisKey.BOOKMARK + state + RedisKey.CONNECTOR + userId.toString();
String key = RedisKey.BOOKMARK + state + RedisKey.CONNECTOR + flag.toString();
Long count = redisUtil.lLen(key);
if (count.intValue() < i) {
//插入到尾部