修复支付配置信息不能重复设置BUG
This commit is contained in:
@@ -73,17 +73,13 @@ public class WxMpPayServiceImpl implements WxMpPayService {
|
|||||||
"REFUND_SOURCE_UNSETTLED_FUNDS"};
|
"REFUND_SOURCE_UNSETTLED_FUNDS"};
|
||||||
protected final Logger log = LoggerFactory.getLogger(this.getClass());
|
protected 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