diff --git a/bd-third/src/main/java/com/hzs/third/pay/service/impl/RefundServiceImpl.java b/bd-third/src/main/java/com/hzs/third/pay/service/impl/RefundServiceImpl.java index 70324f37..83accf53 100644 --- a/bd-third/src/main/java/com/hzs/third/pay/service/impl/RefundServiceImpl.java +++ b/bd-third/src/main/java/com/hzs/third/pay/service/impl/RefundServiceImpl.java @@ -2,7 +2,6 @@ package com.hzs.third.pay.service.impl; import cn.hutool.json.JSONUtil; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.hzs.common.core.domain.R; import com.hzs.common.core.enums.*; import com.hzs.common.core.utils.CommonUtil; import com.hzs.common.core.utils.DateUtils; @@ -14,6 +13,7 @@ import com.hzs.common.domain.third.pay.TOnlineRefund; import com.hzs.common.domain.third.pay.ext.TOnlineRefundExt; import com.hzs.sale.refund.ISaRefundServiceApi; import com.hzs.third.pay.config.AllInPayConfig; +import com.hzs.third.pay.config.JdPayBankProperties; import com.hzs.third.pay.config.JdPayConfig; import com.hzs.third.pay.config.JdPayWechatAlipayProperties; import com.hzs.third.pay.constants.AllInPayConstants; @@ -56,8 +56,8 @@ public class RefundServiceImpl implements IRefundService { @Resource(name = "jdPayBank") private JdPay jdPay; - @Resource - private JdPayWechatAlipayProperties jdPayWechatAlipayProperties; + @Autowired + private JdPayBankProperties jdPayBankProperties; @Autowired private ITOnlinePaymentService itOnlinePaymentService; @@ -376,7 +376,7 @@ public class RefundServiceImpl implements IRefundService { // 货币种类 .currency("CNY") // 退款回调地址 - .notifyUrl(jdPayWechatAlipayProperties.getRefundNotifyUrl()) + .notifyUrl(jdPayBankProperties.getRefundNotifyUrl()) // 回传信息 // .returnParams("") .build(); @@ -432,7 +432,7 @@ public class RefundServiceImpl implements IRefundService { .currency("CNY") .tradeDate(now) .returnParams("") - .notifyUrl(jdPayWechatAlipayProperties.getRefundNotifyUrl()) + .notifyUrl(jdPayBankProperties.getRefundNotifyUrl()) .build(); JdPayDivisionAccountRefund divisionAccountRefund = new JdPayDivisionAccountRefund();