소스 검색

修复支付配置信息不能重复设置BUG

aimilin6688 8 년 전
부모
커밋
28e7e454b9
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpPayServiceImpl.java

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

@@ -73,17 +73,13 @@ public class WxMpPayServiceImpl implements WxMpPayService {
     "REFUND_SOURCE_UNSETTLED_FUNDS"};
   protected final Logger log = LoggerFactory.getLogger(this.getClass());
   private WxMpService wxMpService;
-  private WxMpConfigStorage config = null;
 
   public WxMpPayServiceImpl(WxMpService wxMpService) {
     this.wxMpService = wxMpService;
   }
   
   private WxMpConfigStorage getConfig(){
-    if(config == null){
-      this.config = wxMpService.getWxMpConfigStorage();
-    }
-    return this.config;
+      return  wxMpService.getWxMpConfigStorage();
   }
 
   @Override