记得上下班打卡 | git大法好,push需谨慎

Commit 54d59c7a authored by 胡佳晨's avatar 胡佳晨

`提交支付宝 退款回调`

parent 4a5227f6
...@@ -413,14 +413,13 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService ...@@ -413,14 +413,13 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
LocalDateTime nowTime = LocalDateTime.now(); LocalDateTime nowTime = LocalDateTime.now();
try { try {
AliPayRefundReturnCallBackDto callBackDto = JsonUtils.fromJson(jsonStr, AliPayRefundReturnCallBackDto.class); AliPayRefundReturnCallBackDto callBackDto = JsonUtils.fromJson(jsonStr, AliPayRefundReturnCallBackDto.class);
log.debug("DATA = " + callBackDto);
AlipayTradeFastpayRefundQueryRequest request = new AlipayTradeFastpayRefundQueryRequest();//创建API对应的request类 AlipayTradeFastpayRefundQueryRequest request = new AlipayTradeFastpayRefundQueryRequest();//创建API对应的request类
log.debug("AlipayTradeFastpayRefundQueryRequest -> data = " + JSON.toJSONString(request));
request.setBizContent("{" + request.setBizContent("{" +
"\"out_trade_no\":\"" + callBackDto.getOutTradeNo() + "\"," + "\"out_trade_no\":\"" + callBackDto.getOutTradeNo() + "\"," +
"\"trade_no\":\"" + callBackDto.getTradeNo() + "\"," + "\"trade_no\":\"" + callBackDto.getTradeNo() + "\"," +
"\"out_request_no\":\"" + callBackDto.getOutBizNo() + "\"}"); //设置业务参数 "\"out_request_no\":\"" + callBackDto.getOutBizNo() + "\"}"); //设置业务参数
AlipayTradeFastpayRefundQueryResponse response = PayAlipayUtils.getInstance().getHttpClient().execute(request); AlipayTradeFastpayRefundQueryResponse response = PayAlipayUtils.getInstance().getHttpClient().execute(request);
log.debug("AlipayTradeFastpayRefundQueryRequest -> data = " + JSON.toJSONString(response));
if (response.getRefundChannelStatus().equalsIgnoreCase("SUCCESS")) { if (response.getRefundChannelStatus().equalsIgnoreCase("SUCCESS")) {
try { try {
sendMySqlRedis( sendMySqlRedis(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment