Skip to content

Commit 95d8723

Browse files
committed
修复config不能指定Bug
1 parent 7babecf commit 95d8723

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpPayServiceImpl.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,13 @@ public class WxMpPayServiceImpl implements WxMpPayService {
4848
"REFUND_SOURCE_UNSETTLED_FUNDS"};
4949
private final Logger log = LoggerFactory.getLogger(this.getClass());
5050
private WxMpService wxMpService;
51-
private WxMpConfigStorage config = null;
5251

5352
public WxMpPayServiceImpl(WxMpService wxMpService) {
5453
this.wxMpService = wxMpService;
5554
}
5655

5756
private WxMpConfigStorage getConfig() {
58-
if (config == null) {
59-
this.config = wxMpService.getWxMpConfigStorage();
60-
}
61-
return this.config;
57+
return wxMpService.getWxMpConfigStorage();
6258
}
6359

6460
@Override

0 commit comments

Comments
 (0)