Skip to content

Commit d18e11c

Browse files
committed
回复版本
1 parent 28e7e45 commit d18e11c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,17 @@ public class WxMpPayServiceImpl implements WxMpPayService {
7373
"REFUND_SOURCE_UNSETTLED_FUNDS"};
7474
protected final Logger log = LoggerFactory.getLogger(this.getClass());
7575
private WxMpService wxMpService;
76+
private WxMpConfigStorage config = null;
7677

7778
public WxMpPayServiceImpl(WxMpService wxMpService) {
7879
this.wxMpService = wxMpService;
7980
}
8081

8182
private WxMpConfigStorage getConfig(){
82-
return wxMpService.getWxMpConfigStorage();
83+
if(config == null){
84+
this.config = wxMpService.getWxMpConfigStorage();
85+
}
86+
return this.config;
8387
}
8488

8589
@Override

0 commit comments

Comments
 (0)