Skip to content

Commit cbcba48

Browse files
authored
🎨 【微信支付】服务接口增加获取微信支付通用媒体服务的方法
1 parent 384fab5 commit cbcba48

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ public interface WxPayService {
142142
*/
143143
EcommerceService getEcommerceService();
144144

145+
/**
146+
* 微信支付通用媒体服务类
147+
* @return
148+
*/
149+
MerchantMediaService getMerchantMediaService();
150+
145151
/**
146152
* 设置企业付款服务类,允许开发者自定义实现类.
147153
*

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public abstract class BaseWxPayServiceImpl implements WxPayService {
6464
private RedpackService redpackService = new RedpackServiceImpl(this);
6565
private PayScoreService payScoreService = new PayScoreServiceImpl(this);
6666
private EcommerceService ecommerceService = new EcommerceServiceImpl(this);
67+
private MerchantMediaService merchantMediaService =new MerchantMediaServiceImpl(this);
6768

6869
/**
6970
* The Config.
@@ -95,6 +96,11 @@ public EcommerceService getEcommerceService() {
9596
return ecommerceService;
9697
}
9798

99+
@Override
100+
public MerchantMediaService getMerchantMediaService() {
101+
return merchantMediaService;
102+
}
103+
98104
@Override
99105
public void setEntPayService(EntPayService entPayService) {
100106
this.entPayService = entPayService;

0 commit comments

Comments
 (0)