diff --git a/jsowell-pile/src/main/java/com/jsowell/adapay/service/AdapayService.java b/jsowell-pile/src/main/java/com/jsowell/adapay/service/AdapayService.java index d12053d8b..6915186d5 100644 --- a/jsowell-pile/src/main/java/com/jsowell/adapay/service/AdapayService.java +++ b/jsowell-pile/src/main/java/com/jsowell/adapay/service/AdapayService.java @@ -702,6 +702,9 @@ public class AdapayService { if (settleCount == null) { throw new BusinessException("", "申请取现接口发生异常"); } + if (AdapayStatusEnum.FAILED.getValue().equals(settleCount.get("status"))) { + throw new BusinessException((String) settleCount.get("error_code"), (String) settleCount.get("error_msg")); + } String id = (String) settleCount.get("id");