|
|
@@ -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))) {
|