liujunchi 2 rokov pred
rodič
commit
7c73bd67e3

+ 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());
         }