Browse Source

add pay

release_toaliyun_real
xhxu 4 years ago
parent
commit
b3284af265
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      mallinkService/src/main/java/com/iformall/service/pay/PayServiceFactory.java

+ 5
- 0
mallinkService/src/main/java/com/iformall/service/pay/PayServiceFactory.java View File

@@ -4,6 +4,7 @@ import java.util.Map;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;


import com.iformall.service.pay.service.pay.douyin.miniApp.TtMiniAppPayAdapterService; import com.iformall.service.pay.service.pay.douyin.miniApp.TtMiniAppPayAdapterService;
import com.iformall.service.pay.service.refund.douyin.TtRefundAdapterService;
import com.iformall.service.pay.service.share.douyin.TtPayShareService; import com.iformall.service.pay.service.share.douyin.TtPayShareService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@@ -54,6 +55,9 @@ public class PayServiceFactory {
@Autowired @Autowired
WxRefundAdapterService wxRefundService; WxRefundAdapterService wxRefundService;

@Autowired
TtRefundAdapterService ttRefundService;
@Autowired @Autowired
WxCashOutAdapterService WxCashOutService; WxCashOutAdapterService WxCashOutService;
@@ -97,6 +101,7 @@ public class PayServiceFactory {
refundMap = new ConcurrentHashMap<Integer, RefundPayAdapterService>(); refundMap = new ConcurrentHashMap<Integer, RefundPayAdapterService>();
refundMap.put(EnumPayWay.PAY_WAY_WECHAT.getCode(), wxRefundService); refundMap.put(EnumPayWay.PAY_WAY_WECHAT.getCode(), wxRefundService);
refundMap.put(EnumPayWay.PAY_WAY_WECHAT_MA.getCode(), wxRefundService); refundMap.put(EnumPayWay.PAY_WAY_WECHAT_MA.getCode(), wxRefundService);
refundMap.put(EnumPayWay.PAY_WAY_TT.getCode(), ttRefundService);
} }
return refundMap; return refundMap;
} }


Loading…
Cancel
Save