瀏覽代碼

支付的回调接口

姜永辉 2 年之前
父節點
當前提交
e47067e874
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/main/java/com/dk/mdm/controller/wxapi/basic/WechatPayController.java

+ 3 - 0
src/main/java/com/dk/mdm/controller/wxapi/basic/WechatPayController.java

@@ -61,6 +61,7 @@ public class WechatPayController {
     @PostMapping("/notify/order/{appId}")
     @PostMapping("/notify/order/{appId}")
     public String parseOrderNotifyResult(@PathVariable(value = "appId") String appId, @RequestBody String xmlData)
     public String parseOrderNotifyResult(@PathVariable(value = "appId") String appId, @RequestBody String xmlData)
             throws WxPayException {
             throws WxPayException {
+        log.info("parseOrderNotifyResult--0" + appId + "---" + xmlData);
         WxPayService wxPayService = wechatPayService.getWxPayService();
         WxPayService wxPayService = wechatPayService.getWxPayService();
         final WxPayOrderNotifyResult notifyResult = wxPayService.parseOrderNotifyResult(xmlData);
         final WxPayOrderNotifyResult notifyResult = wxPayService.parseOrderNotifyResult(xmlData);
         // 另起线程处理业务
         // 另起线程处理业务
@@ -68,6 +69,7 @@ public class WechatPayController {
             @Override
             @Override
             public void run() {
             public void run() {
                 String resultCode = notifyResult.getResultCode();
                 String resultCode = notifyResult.getResultCode();
+                log.info("parseOrderNotifyResult--1" + resultCode );
                 // 支付成功
                 // 支付成功
                 if (resultCode.equals("SUCCESS")) {
                 if (resultCode.equals("SUCCESS")) {
                     // 处理支付成功逻辑
                     // 处理支付成功逻辑
@@ -81,6 +83,7 @@ public class WechatPayController {
                 }
                 }
             }
             }
         });
         });
+        log.info("parseOrderNotifyResult--10000-成功"  );
         return WxPayNotifyResponse.success("成功");
         return WxPayNotifyResponse.success("成功");
     }
     }