Pu Zhibing
2026-01-04 ffcaaa7e21b3a33aa2f8321bc198b8586b27dc30
ruoyi-service/ruoyi-payment/src/main/java/com/ruoyi/payment/controller/WxPayController.java
@@ -1,5 +1,6 @@
package com.ruoyi.payment.controller;
import com.alibaba.fastjson.JSON;
import com.fasterxml.jackson.core.type.TypeReference;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
@@ -174,8 +175,8 @@
    @PostMapping("refund/notify")
    public void refundNotify(HttpServletRequest request) throws IOException {
        try {
            Map<String, Object> params = wxV3Pay.verifyNotify(request, new TypeReference<Map<String, Object>>() {
            });
            Map<String, Object> params = wxV3Pay.verifyNotify(request, new TypeReference<Map<String, Object>>() {});
            log.info("退款结果回调:{}", JSON.toJSONString(params));
            // 商户订单号
            String out_trade_no = params.get("out_trade_no").toString();
            // 商户退款单号