修复支付 导出最新sql
This commit is contained in:
@ -26,6 +26,10 @@ public class MerchantPayServiceConfigurer implements PayServiceConfigurer {
|
||||
|
||||
@Resource
|
||||
private JdbcTemplate jdbcTemplate;
|
||||
@Resource
|
||||
private AliPayMessageHandler aliPayMessageHandler;
|
||||
@Resource
|
||||
private WxPayMessageHandler wxPayMessageHandler;
|
||||
|
||||
/**
|
||||
* 商户配置
|
||||
@ -49,7 +53,7 @@ public class MerchantPayServiceConfigurer implements PayServiceConfigurer {
|
||||
public void configure(PayMessageConfigurer configurer) {
|
||||
PaymentPlatform aliPaymentPlatform = PaymentPlatforms.getPaymentPlatform(AliPaymentPlatform.PLATFORM_NAME);
|
||||
PaymentPlatform wxPaymentPlatform = PaymentPlatforms.getPaymentPlatform(WxPaymentPlatform.PLATFORM_NAME);
|
||||
configurer.addHandler(aliPaymentPlatform, new AliPayMessageHandler());
|
||||
configurer.addHandler(wxPaymentPlatform, new WxPayMessageHandler());
|
||||
configurer.addHandler(aliPaymentPlatform, aliPayMessageHandler);
|
||||
configurer.addHandler(wxPaymentPlatform, wxPayMessageHandler);
|
||||
}
|
||||
}
|
||||
|
@ -6,6 +6,7 @@ import com.egzosn.pay.ali.bean.AliPayMessage;
|
||||
import com.egzosn.pay.common.api.PayMessageHandler;
|
||||
import com.egzosn.pay.common.bean.PayOutMessage;
|
||||
import com.egzosn.pay.common.exception.PayErrorException;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Map;
|
||||
@ -15,7 +16,7 @@ import java.util.Map;
|
||||
* @author hupeng
|
||||
* @date 2023/7/15
|
||||
*/
|
||||
//@Component
|
||||
@Component
|
||||
public class AliPayMessageHandler implements PayMessageHandler<AliPayMessage, AliPayService> {
|
||||
|
||||
@Resource
|
||||
|
@ -7,6 +7,7 @@ import com.egzosn.pay.common.bean.PayOutMessage;
|
||||
import com.egzosn.pay.common.exception.PayErrorException;
|
||||
import com.egzosn.pay.wx.bean.WxPayMessage;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Map;
|
||||
@ -16,6 +17,7 @@ import java.util.Map;
|
||||
* @author hupeng
|
||||
* @date 2023/7/15
|
||||
*/
|
||||
@Component
|
||||
@Slf4j
|
||||
public class WxPayMessageHandler implements PayMessageHandler<WxPayMessage, PayService> {
|
||||
|
||||
|
Reference in New Issue
Block a user