处理三方订单回调 异常 bug
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user