|
|
|
@@ -95,7 +95,8 @@ public class RedisCacheAspect { |
|
|
|
// 接口路径 reqPath => /api/xxx |
|
|
|
String reqPath = requestUrl.substring(requestUrl.indexOf("/api/")); |
|
|
|
if (cache.md5()) { |
|
|
|
redisKey = StringUtils.join(reqPath, DELIMITER_KEY, tenantId, DELIMITER_KEY, HashUtil.md5(StringUtils.join(token,args, DELIMITER_PARAMS))); |
|
|
|
String md5Before = StringUtils.join(args, DELIMITER_PARAMS); |
|
|
|
redisKey = StringUtils.join(reqPath, DELIMITER_KEY, tenantId, DELIMITER_KEY, HashUtil.md5(StringUtils.join(token, md5Before, DELIMITER_PARAMS))); |
|
|
|
} else { |
|
|
|
redisKey = StringUtils.join(reqPath, DELIMITER_KEY, tenantId, DELIMITER_KEY, StringUtils.join(token,args, DELIMITER_PARAMS)); |
|
|
|
} |
|
|
|
|