处理三方订单回调 异常 bug
This commit is contained in:
@@ -183,6 +183,7 @@ public class WuyouController {
|
|||||||
|
|
||||||
@PostMapping("/notify")
|
@PostMapping("/notify")
|
||||||
public String notify(HttpServletRequest request, NotifyDto notifyDto) {
|
public String notify(HttpServletRequest request, NotifyDto notifyDto) {
|
||||||
|
try {
|
||||||
log.info("无忧支付回调, {}", notifyDto);
|
log.info("无忧支付回调, {}", notifyDto);
|
||||||
Map<String, Object> params = new HashMap<>();
|
Map<String, Object> params = new HashMap<>();
|
||||||
params.put("callbacks", notifyDto.getCallbacks());
|
params.put("callbacks", notifyDto.getCallbacks());
|
||||||
@@ -227,6 +228,9 @@ public class WuyouController {
|
|||||||
|
|
||||||
payDetails.setThirdOrderNo(notifyDto.getOrder_sn());
|
payDetails.setThirdOrderNo(notifyDto.getOrder_sn());
|
||||||
ordersTask.updateOrderStatus(payDetails, order);
|
ordersTask.updateOrderStatus(payDetails, order);
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("无忧支付回调异常, 参数: {}", JSONObject.toJSONString(notifyDto), e);
|
||||||
|
}
|
||||||
return "success";
|
return "success";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user