From 81da61b828e29b7745e1382dfbbaeb685dc083ef Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 23 一月 2024 17:17:55 +0800 Subject: [PATCH] 抖音转链修改 --- utils/src/main/java/com/qq/weixin/mp/aes/AesException.java | 114 ++++++++++++++++++++++++++++---------------------------- 1 files changed, 57 insertions(+), 57 deletions(-) diff --git a/utils/src/main/java/com/qq/weixin/mp/aes/AesException.java b/utils/src/main/java/com/qq/weixin/mp/aes/AesException.java index 8780849..b352580 100644 --- a/utils/src/main/java/com/qq/weixin/mp/aes/AesException.java +++ b/utils/src/main/java/com/qq/weixin/mp/aes/AesException.java @@ -1,57 +1,57 @@ -package com.qq.weixin.mp.aes; - -@SuppressWarnings("serial") -public class AesException extends Exception { - public final static int OK = 0; - public final static int ValidateSignatureError = -40001; - public final static int ParseXmlError = -40002; - public final static int ComputeSignatureError = -40003; - public final static int IllegalAesKey = -40004; - public final static int ValidateCorpidError = -40005; - public final static int EncryptAESError = -40006; - public final static int DecryptAESError = -40007; - public final static int IllegalBuffer = -40008; - // public final static int EncodeBase64Error = -40009; - // public final static int DecodeBase64Error = -40010; - // public final static int GenReturnXmlError = -40011; - - private int code; - - private static String getMessage(int code) { - switch (code) { - case ValidateSignatureError: - return "绛惧悕楠岃瘉閿欒"; - case ParseXmlError: - return "xml瑙f瀽澶辫触"; - case ComputeSignatureError: - return "sha鍔犲瘑鐢熸垚绛惧悕澶辫触"; - case IllegalAesKey: - return "SymmetricKey闈炴硶"; - case ValidateCorpidError: - return "corpid鏍¢獙澶辫触"; - case EncryptAESError: - return "aes鍔犲瘑澶辫触"; - case DecryptAESError: - return "aes瑙e瘑澶辫触"; - case IllegalBuffer: - return "瑙e瘑鍚庡緱鍒扮殑buffer闈炴硶"; - // case EncodeBase64Error: - // return "base64鍔犲瘑閿欒"; - // case DecodeBase64Error: - // return "base64瑙e瘑閿欒"; - // case GenReturnXmlError: - // return "xml鐢熸垚澶辫触"; - default: - return null; // cannot be - } - } - - public int getCode() { - return code; - } - - AesException(int code) { - super(getMessage(code)); - this.code = code; - } -} +package com.qq.weixin.mp.aes; + +@SuppressWarnings("serial") +public class AesException extends Exception { + public final static int OK = 0; + public final static int ValidateSignatureError = -40001; + public final static int ParseXmlError = -40002; + public final static int ComputeSignatureError = -40003; + public final static int IllegalAesKey = -40004; + public final static int ValidateCorpidError = -40005; + public final static int EncryptAESError = -40006; + public final static int DecryptAESError = -40007; + public final static int IllegalBuffer = -40008; + // public final static int EncodeBase64Error = -40009; + // public final static int DecodeBase64Error = -40010; + // public final static int GenReturnXmlError = -40011; + + private int code; + + private static String getMessage(int code) { + switch (code) { + case ValidateSignatureError: + return "绛惧悕楠岃瘉閿欒"; + case ParseXmlError: + return "xml瑙f瀽澶辫触"; + case ComputeSignatureError: + return "sha鍔犲瘑鐢熸垚绛惧悕澶辫触"; + case IllegalAesKey: + return "SymmetricKey闈炴硶"; + case ValidateCorpidError: + return "corpid鏍¢獙澶辫触"; + case EncryptAESError: + return "aes鍔犲瘑澶辫触"; + case DecryptAESError: + return "aes瑙e瘑澶辫触"; + case IllegalBuffer: + return "瑙e瘑鍚庡緱鍒扮殑buffer闈炴硶"; + // case EncodeBase64Error: + // return "base64鍔犲瘑閿欒"; + // case DecodeBase64Error: + // return "base64瑙e瘑閿欒"; + // case GenReturnXmlError: + // return "xml鐢熸垚澶辫触"; + default: + return null; // cannot be + } + } + + public int getCode() { + return code; + } + + AesException(int code) { + super(getMessage(code)); + this.code = code; + } +} -- Gitblit v1.8.0