|
|
|
@@ -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<Integer, RefundPayAdapterService>(); |
|
|
|
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; |
|
|
|
} |
|
|
|
|