From cce4da313168ab659d97081c4a74a4d20239725d Mon Sep 17 00:00:00 2001 From: cena <5328278@qq.com> Date: Thu, 22 Apr 2021 16:35:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BC=82=E5=B8=B8=E6=96=B9?= =?UTF-8?q?=E4=BE=BF=E6=8E=92=E6=9F=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ijpay/core/kit/WxPayKit.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 27b6e07..a812508 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("证书序列号错误"); + } } /** -- Gitee