add
This commit is contained in:
@ -63,4 +63,9 @@ public class ConfigConstant {
|
||||
* 默认最大允许错误次数
|
||||
*/
|
||||
public static final Integer DEFAULT_LOGIN_ERROR_MAX_COUNT = 5;
|
||||
|
||||
/**
|
||||
* 默认最大黑名单过期时间(单位分钟)
|
||||
*/
|
||||
public static final Long DEFAULT_MAX_BLACKLIST_EXPIRE_TIME = 30L;
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
package com.qiaoba.common.redis.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.qiaoba.common.base.constants.BaseConstant;
|
||||
import com.qiaoba.common.base.constants.TenantConstant;
|
||||
import com.qiaoba.common.base.context.BaseContext;
|
||||
@ -258,7 +257,7 @@ public class RedisServiceImpl implements RedisService {
|
||||
public String addTenantPrefix(String key) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(TenantConstant.TENANT_KEY_PREFIX).append(BaseContext.getTenantId()).append(BaseConstant.COLON_JOIN_STR).append(key);
|
||||
log.debug(StrUtil.format("拼接后的RedisKey: {}", sb.toString()));
|
||||
log.debug("拼接后的RedisKey: {}", sb.toString());
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@ -266,7 +265,7 @@ public class RedisServiceImpl implements RedisService {
|
||||
public String removeTenantPrefix(String key) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(TenantConstant.TENANT_KEY_PREFIX).append(BaseContext.getTenantId()).append(BaseConstant.COLON_JOIN_STR);
|
||||
log.debug(StrUtil.format("去除拼接后的RedisKey: {}", key.replace(sb.toString(), "")));
|
||||
log.debug("去除拼接后的RedisKey: {}", key.replace(sb.toString(), ""));
|
||||
return key.replace(sb.toString(), "");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user