From 28e7e454b90a7a10af701f340bc4926b8d83dcb6 Mon Sep 17 00:00:00 2001 From: aimilin6688 Date: Wed, 14 Dec 2016 11:41:37 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BF=A1=E6=81=AF=E4=B8=8D=E8=83=BD=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E8=AE=BE=E7=BD=AEBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/mp/api/impl/WxMpPayServiceImpl.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpPayServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpPayServiceImpl.java index 84655a86..875d4e4e 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpPayServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpPayServiceImpl.java @@ -73,17 +73,13 @@ public class WxMpPayServiceImpl implements WxMpPayService { "REFUND_SOURCE_UNSETTLED_FUNDS"}; protected final Logger log = LoggerFactory.getLogger(this.getClass()); private WxMpService wxMpService; - private WxMpConfigStorage config = null; public WxMpPayServiceImpl(WxMpService wxMpService) { this.wxMpService = wxMpService; } private WxMpConfigStorage getConfig(){ - if(config == null){ - this.config = wxMpService.getWxMpConfigStorage(); - } - return this.config; + return wxMpService.getWxMpConfigStorage(); } @Override From d18e11cc4e25e335087e61977a64969d0bc17203 Mon Sep 17 00:00:00 2001 From: aimilin6688 Date: Wed, 14 Dec 2016 12:07:01 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/mp/api/impl/WxMpPayServiceImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpPayServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpPayServiceImpl.java index 875d4e4e..84655a86 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpPayServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpPayServiceImpl.java @@ -73,13 +73,17 @@ public class WxMpPayServiceImpl implements WxMpPayService { "REFUND_SOURCE_UNSETTLED_FUNDS"}; protected final Logger log = LoggerFactory.getLogger(this.getClass()); private WxMpService wxMpService; + private WxMpConfigStorage config = null; public WxMpPayServiceImpl(WxMpService wxMpService) { this.wxMpService = wxMpService; } private WxMpConfigStorage getConfig(){ - return wxMpService.getWxMpConfigStorage(); + if(config == null){ + this.config = wxMpService.getWxMpConfigStorage(); + } + return this.config; } @Override From 95d87231fa2d02e405724be08336a907b338470a Mon Sep 17 00:00:00 2001 From: aimilin6688 Date: Wed, 14 Dec 2016 12:10:47 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dconfig=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E6=8C=87=E5=AE=9ABug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/mp/api/impl/WxMpPayServiceImpl.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpPayServiceImpl.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpPayServiceImpl.java index f195f922..4675946c 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpPayServiceImpl.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpPayServiceImpl.java @@ -48,17 +48,13 @@ public class WxMpPayServiceImpl implements WxMpPayService { "REFUND_SOURCE_UNSETTLED_FUNDS"}; private final Logger log = LoggerFactory.getLogger(this.getClass()); private WxMpService wxMpService; - private WxMpConfigStorage config = null; public WxMpPayServiceImpl(WxMpService wxMpService) { this.wxMpService = wxMpService; } private WxMpConfigStorage getConfig() { - if (config == null) { - this.config = wxMpService.getWxMpConfigStorage(); - } - return this.config; + return wxMpService.getWxMpConfigStorage(); } @Override