diff --git a/IJPay-Core/src/main/java/com/ijpay/core/kit/WxPayKit.java b/IJPay-Core/src/main/java/com/ijpay/core/kit/WxPayKit.java index 27b6e077af832e8717d79f7af0a3b51d3e245348..a812508d24bd5dbe0d0a2a8dcc3ddc581646420b 100644 --- a/IJPay-Core/src/main/java/com/ijpay/core/kit/WxPayKit.java +++ b/IJPay-Core/src/main/java/com/ijpay/core/kit/WxPayKit.java @@ -669,9 +669,12 @@ public class WxPayKit { nonceStr.getBytes(StandardCharsets.UTF_8), cipherText ); - } - } - return null; + }else { + throw new Exception("签名错误"); + } + }else { + throw new Exception("证书序列号错误"); + } } /**