🎨 【微信支付】服务接口增加获取微信支付通用媒体服务的方法

This commit is contained in:
ray Wang
2020-12-23 10:45:32 +08:00
committed by GitHub
parent 384fab5cf2
commit cbcba481b0
2 changed files with 12 additions and 0 deletions

View File

@@ -142,6 +142,12 @@ public interface WxPayService {
*/
EcommerceService getEcommerceService();
/**
* 微信支付通用媒体服务类
* @return
*/
MerchantMediaService getMerchantMediaService();
/**
* 设置企业付款服务类,允许开发者自定义实现类.
*

View File

@@ -64,6 +64,7 @@ public abstract class BaseWxPayServiceImpl implements WxPayService {
private RedpackService redpackService = new RedpackServiceImpl(this);
private PayScoreService payScoreService = new PayScoreServiceImpl(this);
private EcommerceService ecommerceService = new EcommerceServiceImpl(this);
private MerchantMediaService merchantMediaService =new MerchantMediaServiceImpl(this);
/**
* The Config.
@@ -95,6 +96,11 @@ public abstract class BaseWxPayServiceImpl implements WxPayService {
return ecommerceService;
}
@Override
public MerchantMediaService getMerchantMediaService() {
return merchantMediaService;
}
@Override
public void setEntPayService(EntPayService entPayService) {
this.entPayService = entPayService;