|
|
@ -146,6 +146,25 @@ public class PayNotifyController { |
|
|
.timestamp(timestamp) |
|
|
.timestamp(timestamp) |
|
|
.body(requestBody.toString()) |
|
|
.body(requestBody.toString()) |
|
|
.build(); |
|
|
.build(); |
|
|
|
|
|
|
|
|
|
|
|
//新版本微信公钥的支付回调 |
|
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
WxPayOrderNotifyResult notify = mpWxPayService.notify(requestBody.toString()); |
|
|
|
|
|
|
|
|
|
|
|
PayNotifyMessageDTO message = new PayNotifyMessageDTO(); |
|
|
|
|
|
message.setOutTradeNo(Long.valueOf(notify.getOutTradeNo())); |
|
|
|
|
|
message.setMemberId(Long.valueOf(notify.getAttach())); |
|
|
|
|
|
message.setTradeStatus(Transaction.TradeStateEnum.SUCCESS); |
|
|
|
|
|
message.setPayTime(new Date()); |
|
|
|
|
|
message.setTradeNo(notify.getTransactionId()); |
|
|
|
|
|
h5OrderService.payCallBack(message); |
|
|
|
|
|
|
|
|
|
|
|
return; |
|
|
|
|
|
}catch (Exception e){ |
|
|
|
|
|
log.error("新版本微信公钥的支付回调异常:{}", e.getMessage()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
log.info("【requestParam】" + JSONObject.toJSON(requestParam)); |
|
|
log.info("【requestParam】" + JSONObject.toJSON(requestParam)); |
|
|
//初始化了 RSAAutoCertificateConfig |
|
|
//初始化了 RSAAutoCertificateConfig |
|
|
Config config = WechatPayConfig.getInstance(); |
|
|
Config config = WechatPayConfig.getInstance(); |
|
|
|