1.修改实名认证rediskey
This commit is contained in:
@@ -137,7 +137,7 @@ public class ApiAccessLimitUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean getCertAuthIsAccessAllowed(String id, String key, Integer count) {
|
public static boolean getCertAuthIsAccessAllowed(String id, String key, Integer count) {
|
||||||
String redisKey = generateRedisKey(key, id);
|
String redisKey = "app:updateLimit:auth:" + key + ":" + id;
|
||||||
Object countObj = redisUtils.get(redisKey);
|
Object countObj = redisUtils.get(redisKey);
|
||||||
if (countObj == null) {
|
if (countObj == null) {
|
||||||
return true;
|
return true;
|
||||||
@@ -146,7 +146,7 @@ public class ApiAccessLimitUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void setCertAuthIsAccessAllowed(String id, String key, Integer count, String timeFormat) {
|
public static void setCertAuthIsAccessAllowed(String id, String key, Integer count, String timeFormat) {
|
||||||
String redisKey = generateRedisKey(key, id);
|
String redisKey = "app:updateLimit:auth:" + key + ":" + id;
|
||||||
Object countObj = redisUtils.get(redisKey);
|
Object countObj = redisUtils.get(redisKey);
|
||||||
if (countObj == null) {
|
if (countObj == null) {
|
||||||
long expireAt;
|
long expireAt;
|
||||||
|
|||||||
Reference in New Issue
Block a user