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