From 733a6474ec8c4dce32fe428f3374c9b10845249c Mon Sep 17 00:00:00 2001 From: terrfly Date: Fri, 16 Jul 2021 17:47:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20import=20sun.misc.BASE64De?= =?UTF-8?q?coder=20=E7=9A=84=E5=BC=95=E7=94=A8=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/jeequan/jeepay/core/utils/JeepayKit.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/jeepay-core/src/main/java/com/jeequan/jeepay/core/utils/JeepayKit.java b/jeepay-core/src/main/java/com/jeequan/jeepay/core/utils/JeepayKit.java index 05d4ca3..ce6cf2b 100644 --- a/jeepay-core/src/main/java/com/jeequan/jeepay/core/utils/JeepayKit.java +++ b/jeepay-core/src/main/java/com/jeequan/jeepay/core/utils/JeepayKit.java @@ -20,9 +20,7 @@ import com.jeequan.jeepay.core.constants.CS; import com.jeequan.jeepay.core.exception.BizException; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; -import sun.misc.BASE64Decoder; -import java.io.IOException; import java.io.UnsupportedEncodingException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; @@ -34,7 +32,7 @@ import java.util.regex.Pattern; /* * jeepay工具类 -* +* * @author terrfly * @site https://www.jeepay.vip * @date 2021/6/8 16:50 @@ -42,13 +40,7 @@ import java.util.regex.Pattern; @Slf4j public class JeepayKit { - public static byte[] AES_KEY = null; - static{ - try { - AES_KEY = new BASE64Decoder().decodeBuffer("4ChT08phkz59hquD795X7w=="); - } catch (IOException e) { - } - } + public static byte[] AES_KEY = "4ChT08phkz59hquD795X7w==".getBytes(); /** 加密 **/ public static String aesEncode(String str){