mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-31 02:28:25 +08:00
修复config不能指定Bug
This commit is contained in:
@ -48,17 +48,13 @@ public class WxMpPayServiceImpl implements WxMpPayService {
|
|||||||
"REFUND_SOURCE_UNSETTLED_FUNDS"};
|
"REFUND_SOURCE_UNSETTLED_FUNDS"};
|
||||||
private final Logger log = LoggerFactory.getLogger(this.getClass());
|
private final Logger log = LoggerFactory.getLogger(this.getClass());
|
||||||
private WxMpService wxMpService;
|
private WxMpService wxMpService;
|
||||||
private WxMpConfigStorage config = null;
|
|
||||||
|
|
||||||
public WxMpPayServiceImpl(WxMpService wxMpService) {
|
public WxMpPayServiceImpl(WxMpService wxMpService) {
|
||||||
this.wxMpService = wxMpService;
|
this.wxMpService = wxMpService;
|
||||||
}
|
}
|
||||||
|
|
||||||
private WxMpConfigStorage getConfig() {
|
private WxMpConfigStorage getConfig() {
|
||||||
if (config == null) {
|
return wxMpService.getWxMpConfigStorage();
|
||||||
this.config = wxMpService.getWxMpConfigStorage();
|
|
||||||
}
|
|
||||||
return this.config;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user