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

Commit 0a1032f0 authored by zhoujianping's avatar zhoujianping

1.支付宝小程序退款接口增加回调地址修改

parent 8ff0b928
......@@ -613,6 +613,16 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
if (response.getFundChange().equals("Y")) {
refundStatus = DragonConstant.RefundStatusEnum.STATUS_REFUNDED.getCode();
refundAt = DateUtil.format(response.getGmtRefundPay(), DateUtil.Formatter.yyyyMMddHHmmss);
//支付宝小程序全额退款不会异步通知
if(paymentType.equals(DragonConstant.REFUND_TYPE_APPLET_ALIPAY)){
Map<String, String> notifyMap = new HashMap<String, String>();
notifyMap.put("out_trade_no",code);
notifyMap.put("trade_no",response.getTradeNo());
notifyMap.put("out_biz_no",refundCode);
notifyMap.put("gmt_refund",refundAt);
//手动触发通知
dragonOrderRefundsService.aliPayRefundCallBack(JSON.toJSONString(notifyMap),paymentType);
}
} else {
refundStatus = DragonConstant.RefundStatusEnum.STATUS_REFUNDING.getCode();
}
......@@ -622,16 +632,6 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
new Object[]{nowTime, refundAt, refundStatus, refundCode},
DragonConstant.MysqlRedisQueueEnum.DRAGON_REFUND_KEY.getCode()
);
//支付宝小程序全额退款不会异步通知
if(paymentType.equals(DragonConstant.REFUND_TYPE_APPLET_ALIPAY)){
Map<String, String> notifyMap = new HashMap<String, String>();
notifyMap.put("out_trade_no",code);
notifyMap.put("trade_no",response.getTradeNo());
notifyMap.put("out_biz_no",refundCode);
notifyMap.put("gmt_refund",refundAt);
//手动触发通知
dragonOrderRefundsService.aliPayRefundCallBack(JSON.toJSONString(notifyMap),paymentType);
}
} catch (Exception e) {
e.printStackTrace();
channelDto.setResult("exception");
......
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