From e09584800a57b4c472656dc5dd4e6be3cc39ec5b Mon Sep 17 00:00:00 2001 From: yang <2119157836@qq.com> Date: Thu, 6 Feb 2025 17:57:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor(mcwl-pay):=20=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E5=AE=9D=E8=BD=AC=E8=B4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/mcwl/pay/service/impl/AliPayServiceImpl.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mcwl-pay/src/main/java/com/mcwl/pay/service/impl/AliPayServiceImpl.java b/mcwl-pay/src/main/java/com/mcwl/pay/service/impl/AliPayServiceImpl.java index 71606e4..dd8de85 100644 --- a/mcwl-pay/src/main/java/com/mcwl/pay/service/impl/AliPayServiceImpl.java +++ b/mcwl-pay/src/main/java/com/mcwl/pay/service/impl/AliPayServiceImpl.java @@ -266,6 +266,14 @@ public class AliPayServiceImpl implements AliPayService { AlipayFundTransUniTransferResponse response = alipayClient.certificateExecute(request); System.out.println(response.getBody()); + if (response.getCode().equals("40004")) { + + // TODO 余额不足,发送邮件提现 + + return AjaxResult.error("系统繁忙,请稍后重试"); + } + + if (response.isSuccess()) { System.out.println("调用成功"); BigDecimal wallet = new BigDecimal(sysUser.getWallet().toString());