mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-10-14 05:40:25 +00:00
fix: 微信V2退款回调退款号处理失败
This commit is contained in:
@@ -128,9 +128,9 @@ public class WechatRefundCallbackService {
|
|||||||
// 回调数据
|
// 回调数据
|
||||||
callbackInfo.setCallbackData(BeanUtil.beanToMap(result));
|
callbackInfo.setCallbackData(BeanUtil.beanToMap(result));
|
||||||
// 网关退款号
|
// 网关退款号
|
||||||
callbackInfo.setOutTradeNo(result.getTransactionId());
|
callbackInfo.setOutTradeNo(result.getRefundId());
|
||||||
// 退款号
|
// 退款号
|
||||||
callbackInfo.setTradeNo(result.getRefundId());
|
callbackInfo.setTradeNo(result.getOutRefundNo());
|
||||||
// 退款状态 - 成功
|
// 退款状态 - 成功
|
||||||
if (Objects.equals(RefundStatus.SUCCESS, result.getRefundStatus())){
|
if (Objects.equals(RefundStatus.SUCCESS, result.getRefundStatus())){
|
||||||
callbackInfo.setTradeStatus(RefundStatusEnum.SUCCESS.getCode());
|
callbackInfo.setTradeStatus(RefundStatusEnum.SUCCESS.getCode());
|
||||||
|
@@ -39,7 +39,7 @@ public class RefundOrder extends MchAppBaseEntity implements ToResult<RefundOrde
|
|||||||
/** 通道支付订单号 */
|
/** 通道支付订单号 */
|
||||||
private String outOrderNo;
|
private String outOrderNo;
|
||||||
|
|
||||||
/** 支付标题 */
|
/** 退款标题 */
|
||||||
private String title;
|
private String title;
|
||||||
|
|
||||||
/** 退款号 */
|
/** 退款号 */
|
||||||
|
Reference in New Issue
Block a user