We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28e7e45 commit d18e11cCopy full SHA for d18e11c
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpPayServiceImpl.java
@@ -73,13 +73,17 @@ public class WxMpPayServiceImpl implements WxMpPayService {
73
"REFUND_SOURCE_UNSETTLED_FUNDS"};
74
protected final Logger log = LoggerFactory.getLogger(this.getClass());
75
private WxMpService wxMpService;
76
+ private WxMpConfigStorage config = null;
77
78
public WxMpPayServiceImpl(WxMpService wxMpService) {
79
this.wxMpService = wxMpService;
80
}
81
82
private WxMpConfigStorage getConfig(){
- return wxMpService.getWxMpConfigStorage();
83
+ if(config == null){
84
+ this.config = wxMpService.getWxMpConfigStorage();
85
+ }
86
+ return this.config;
87
88
89
@Override
0 commit comments