From 1ae00b67df7206d2868604bb9360a9fbbcec8310 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 16 Jun 2020 14:19:05 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E5=8D=95=E5=85=83?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wxpay/service/impl/BaseWxPayServiceImplTest.java | 2 +- .../binarywang/wxpay/testbase/ApiTestModule.java | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImplTest.java index c12c38195b..779916162c 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImplTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImplTest.java @@ -67,7 +67,7 @@ public void testUnifiedOrder() throws WxPayException { request.setSignType(SignType.HMAC_SHA256); WxPayUnifiedOrderResult result = this.payService.unifiedOrder(request); log.info(result.toString()); -// log.warn(this.payService.getWxApiData().toString()); + log.warn(this.payService.getWxApiData().toString()); } /** diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/testbase/ApiTestModule.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/testbase/ApiTestModule.java index d46c98c426..b29b1af16c 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/testbase/ApiTestModule.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/testbase/ApiTestModule.java @@ -1,11 +1,5 @@ package com.github.binarywang.wxpay.testbase; -import java.io.IOException; -import java.io.InputStream; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - import com.github.binarywang.wxpay.config.WxPayConfig; import com.github.binarywang.wxpay.service.WxPayService; import com.github.binarywang.wxpay.service.impl.WxPayServiceImpl; @@ -13,6 +7,11 @@ import com.google.inject.Module; import com.thoughtworks.xstream.XStream; import me.chanjar.weixin.common.util.xml.XStreamInitializer; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.io.IOException; +import java.io.InputStream; /** * The type Api test module. @@ -29,6 +28,7 @@ public void configure(Binder binder) { } XmlWxPayConfig config = this.fromXml(XmlWxPayConfig.class, inputStream); + config.setIfSaveApiData(true); WxPayService wxService = new WxPayServiceImpl(); wxService.setConfig(config);