处理三方订单回调 异常 bug

This commit is contained in:
GYJ
2025-01-05 17:02:26 +08:00
parent 7798c1ae10
commit 79bc357bb1

View File

@@ -183,6 +183,7 @@ public class WuyouController {
@PostMapping("/notify")
public String notify(HttpServletRequest request, NotifyDto notifyDto) {
try {
log.info("无忧支付回调, {}", notifyDto);
Map<String, Object> params = new HashMap<>();
params.put("callbacks", notifyDto.getCallbacks());
@@ -227,6 +228,9 @@ public class WuyouController {
payDetails.setThirdOrderNo(notifyDto.getOrder_sn());
ordersTask.updateOrderStatus(payDetails, order);
} catch (Exception e) {
log.error("无忧支付回调异常, 参数: {}", JSONObject.toJSONString(notifyDto), e);
}
return "success";
}