Procházet zdrojové kódy

[券码详情][修改]:优化

release_toaliyun_real
Stormeye Wu před 6 roky
rodič
revize
c257c1c8df
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. +2
    -1
      mallinkCApi/src/main/java/com/iformall/aop/RedisCacheAspect.java

+ 2
- 1
mallinkCApi/src/main/java/com/iformall/aop/RedisCacheAspect.java Zobrazit soubor

@@ -92,7 +92,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));
}


Načítá se…
Zrušit
Uložit