|
@@ -64,7 +64,7 @@ public class ManageService {
|
|
|
if(redisUtil.hasKey(redisKey)){
|
|
|
String value = redisUtil.get(redisKey);
|
|
|
if("5".equals(value)){
|
|
|
- throw new BusinessException(-1,"频繁登录失败,请五分钟后再次尝试登录");
|
|
|
+ throw new BusinessException(ResultCode.LOGIN_NUM_MUCH);
|
|
|
}
|
|
|
Integer num = Integer.parseInt(value) + 1;
|
|
|
redisUtil.set(redisKey,num.toString(),60);
|