sign-artifacts
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java
index 2bddaa975e19e74d9d70a74ae91e5c95c725b624..e2ba3088bee2b4995a8811983e00a6fa84812ac4 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java
@@ -1032,7 +1032,7 @@ public interface WxPayService {
* @param sideLength 要生成的二维码的边长,如果为空,则取默认值400
* @return 生成的二维码的字节数组 byte [ ]
*/
- byte[] createScanPayQrcodeMode1(String productId, File logoFile, Integer sideLength);
+ byte[] createScanPayQrcodeMode1(String productId, File logoFile, Integer sideLength) throws Exception;
/**
*
@@ -1061,7 +1061,7 @@ public interface WxPayService {
* @param sideLength 要生成的二维码的边长,如果为空,则取默认值400
* @return 生成的二维码的字节数组 byte [ ]
*/
- byte[] createScanPayQrcodeMode2(String codeUrl, File logoFile, Integer sideLength);
+ byte[] createScanPayQrcodeMode2(String codeUrl, File logoFile, Integer sideLength) throws Exception;
/**
*
diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java
index 00046c8713b97d9ed291401b1f84a9643584193c..3027c5b7df91a000a74ceb295b3e40d68e1a2cf6 100644
--- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java
+++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java
@@ -840,7 +840,7 @@ public abstract class BaseWxPayServiceImpl implements WxPayService {
}
@Override
- public byte[] createScanPayQrcodeMode1(String productId, File logoFile, Integer sideLength) {
+ public byte[] createScanPayQrcodeMode1(String productId, File logoFile, Integer sideLength) throws Exception {
String content = this.createScanPayQrcodeMode1(productId);
return this.createQrcode(content, logoFile, sideLength);
}
@@ -870,11 +870,11 @@ public abstract class BaseWxPayServiceImpl implements WxPayService {
}
@Override
- public byte[] createScanPayQrcodeMode2(String codeUrl, File logoFile, Integer sideLength) {
+ public byte[] createScanPayQrcodeMode2(String codeUrl, File logoFile, Integer sideLength) throws Exception {
return this.createQrcode(codeUrl, logoFile, sideLength);
}
- private byte[] createQrcode(String content, File logoFile, Integer sideLength) {
+ private byte[] createQrcode(String content, File logoFile, Integer sideLength) throws Exception {
if (sideLength == null || sideLength < 1) {
return QrcodeUtils.createQrcode(content, logoFile);
}