diff --git a/pig-auth/src/main/java/com/pig4cloud/pig/auth/endpoint/PigTokenEndpoint.java b/pig-auth/src/main/java/com/pig4cloud/pig/auth/endpoint/PigTokenEndpoint.java index 689a5945..9ca34e78 100644 --- a/pig-auth/src/main/java/com/pig4cloud/pig/auth/endpoint/PigTokenEndpoint.java +++ b/pig-auth/src/main/java/com/pig4cloud/pig/auth/endpoint/PigTokenEndpoint.java @@ -186,7 +186,7 @@ public class PigTokenEndpoint { @PostMapping("/page") public R tokenList(@RequestBody Map params) { // 根据分页参数获取对应数据 - String key = String.format("%sauth_to_access:*", CacheConstants.PROJECT_OAUTH_ACCESS); + String key = String.format("%s::*", CacheConstants.PROJECT_OAUTH_ACCESS); int current = MapUtil.getInt(params, CommonConstants.CURRENT); int size = MapUtil.getInt(params, CommonConstants.SIZE); Set keys = redisTemplate.keys(key); diff --git a/pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/constant/CacheConstants.java b/pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/constant/CacheConstants.java index da36093c..0de69d68 100644 --- a/pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/constant/CacheConstants.java +++ b/pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/constant/CacheConstants.java @@ -27,7 +27,7 @@ public interface CacheConstants { /** * oauth 缓存前缀 */ - String PROJECT_OAUTH_ACCESS = "pig_oauth:access:"; + String PROJECT_OAUTH_ACCESS = "token::access_token"; /** * oauth 缓存令牌前缀