From 79abe93744161007bf03d628747085bd251479f2 Mon Sep 17 00:00:00 2001 From: xupei Date: Fri, 28 Feb 2025 14:27:36 +0800 Subject: [PATCH] =?UTF-8?q?Stripe=20=E5=9B=9E=E8=B0=83=E5=88=A4=E7=A9=BA?= =?UTF-8?q?=E5=B9=B6=E7=9B=B4=E6=8E=A5=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ai/da/service/impl/StripeServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ai/da/service/impl/StripeServiceImpl.java b/src/main/java/com/ai/da/service/impl/StripeServiceImpl.java index 1ab296c9..b35b2ff6 100644 --- a/src/main/java/com/ai/da/service/impl/StripeServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/StripeServiceImpl.java @@ -392,9 +392,9 @@ public class StripeServiceImpl implements StripeService { Charge charge = (Charge) stripeObject; String orderNo = charge.getDescription().replace("AiDA - ", ""); OrderInfo orderInfo = orderInfoService.getOrderByOrderNo(orderNo); - if (Objects.isNull(orderInfo.getId())){ + if (Objects.isNull(orderInfo)){ // 说明该回调不是从AiDA订阅获得 - response = Boolean.TRUE; + return true; } if (event.getType().equals("charge.failed")){ // 添加支付信息 && 更新支付信息