Bladeren bron

fix: 消费服务
1.人员卡余加密密钥获取错误问题

luoyb 1 jaar geleden
bovenliggende
commit
5b20741d36

+ 3 - 0
ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/utils/YcEncryptUtil.java

@@ -14,6 +14,8 @@ import org.dromara.common.redis.utils.RedisUtils;
 import javax.crypto.Cipher;
 import javax.crypto.spec.SecretKeySpec;
 import java.nio.charset.StandardCharsets;
+import java.util.HashMap;
+import java.util.Map;
 
 /**
  * name: YcEncryptUtil
@@ -121,6 +123,7 @@ public class YcEncryptUtil extends EncryptUtils {
      */
     public static String getBalanceSecretKey(String publicKey, String data) {
         String secretKey;
+        Map<String, String> mapUserKey = new HashMap<>();
         //String cacheKey = StrUtil.replace(CacheNames.USER_SECRET_KEY, "30d", data);
         String cacheKey = CacheNames.USER_SECRET_KEY + ":" + data;
         if (ObjectUtil.isNotNull(RedisUtils.getCacheObject(cacheKey))) {