瀏覽代碼

formao-live
xhxu 3 年之前
父節點
當前提交
43abd63272
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BusinessCircleServiceImpl.java

+ 4
- 0
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BusinessCircleServiceImpl.java 查看文件

@@ -67,6 +67,10 @@ public class BusinessCircleServiceImpl implements BusinessCircleService {
String nonce = resource.getNonce();
String apiV3Key = this.payService.getConfig().getApiV3Key();
try {
System.out.println("cipherText="+cipherText);
System.out.println("associatedData="+associatedData);
System.out.println("nonce="+nonce);
System.out.println("apiV3Key="+apiV3Key);
return GSON.fromJson(AesUtils.decryptToString(associatedData, nonce, cipherText, apiV3Key), PaidResult.class);
} catch (GeneralSecurityException | IOException e) {
throw new WxPayException("解析报文异常!", e);


Loading…
取消
儲存