新增注册功能 通过手机号注册账号90%
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
@ -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) {
|
||||
//插入到尾部
|
||||
|
Reference in New Issue
Block a user