From b3284af265efb7df84eb0fe241f29252ee272288 Mon Sep 17 00:00:00 2001 From: xhxu Date: Mon, 29 Nov 2021 14:43:34 +0800 Subject: [PATCH] add pay --- .../java/com/iformall/service/pay/PayServiceFactory.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mallinkService/src/main/java/com/iformall/service/pay/PayServiceFactory.java b/mallinkService/src/main/java/com/iformall/service/pay/PayServiceFactory.java index 62a32c339..1429e6448 100644 --- a/mallinkService/src/main/java/com/iformall/service/pay/PayServiceFactory.java +++ b/mallinkService/src/main/java/com/iformall/service/pay/PayServiceFactory.java @@ -4,6 +4,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; 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 org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -54,6 +55,9 @@ public class PayServiceFactory { @Autowired WxRefundAdapterService wxRefundService; + + @Autowired + TtRefundAdapterService ttRefundService; @Autowired WxCashOutAdapterService WxCashOutService; @@ -97,6 +101,7 @@ public class PayServiceFactory { refundMap = new ConcurrentHashMap(); refundMap.put(EnumPayWay.PAY_WAY_WECHAT.getCode(), wxRefundService); refundMap.put(EnumPayWay.PAY_WAY_WECHAT_MA.getCode(), wxRefundService); + refundMap.put(EnumPayWay.PAY_WAY_TT.getCode(), ttRefundService); } return refundMap; }