浏览代码

fix:退款

liujunchi 2 年之前
父节点
当前提交
7c73bd67e3
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      mec-thirdparty/src/main/java/com/ym/mec/thirdparty/adapay/Payment.java

+ 4 - 1
mec-thirdparty/src/main/java/com/ym/mec/thirdparty/adapay/Payment.java

@@ -146,9 +146,12 @@ public class Payment {
 
     public static BaseResult<Map<String ,Object>> refundPayment(Map<String, Object> refundParams) {
 
+        LOGGER.info("退款对象信息:{}",refundParams);
+        String transNo = refundParams.get("transNo").toString();
+        refundParams.remove("transNo");
         Map<String, Object> res;
         try {
-            res = Refund.create(refundParams.get("transNo").toString(), refundParams);
+            res = Refund.create(transNo, refundParams);
         } catch (BaseAdaPayException e) {
             return BaseResult.failed(e.getMessage());
         }