From 1d006342fbf91b6a16d69824869502c8bba73563 Mon Sep 17 00:00:00 2001 From: xupei Date: Tue, 23 Sep 2025 16:24:00 +0800 Subject: [PATCH] =?UTF-8?q?BUGFIX=EF=BC=9A=E5=88=9B=E5=BB=BA=E4=BC=98?= =?UTF-8?q?=E6=83=A0=E5=88=B8=E8=AE=BE=E7=BD=AE=E5=BC=80=E5=A7=8B=E7=BB=93?= =?UTF-8?q?=E6=9D=9F=E6=97=B6=E9=97=B4=E5=A4=B1=E8=B4=A5;=E5=BC=80?= =?UTF-8?q?=E5=90=AFstripe=E6=A8=A1=E5=9D=97=E7=9A=84=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ai/da/controller/StripeController.java | 2 +- src/main/java/com/ai/da/service/impl/StripeServiceImpl.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/ai/da/controller/StripeController.java b/src/main/java/com/ai/da/controller/StripeController.java index 07ab7a5d..3f24e539 100644 --- a/src/main/java/com/ai/da/controller/StripeController.java +++ b/src/main/java/com/ai/da/controller/StripeController.java @@ -34,7 +34,7 @@ import java.util.List; @Slf4j @RestController @RequestMapping("/api/stripe") -@ApiIgnore +//@ApiIgnore public class StripeController { @Resource 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 c2a4bf2d..5ab6c216 100644 --- a/src/main/java/com/ai/da/service/impl/StripeServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/StripeServiceImpl.java @@ -1583,8 +1583,8 @@ public class StripeServiceImpl implements StripeService { if (Objects.nonNull(productCoupons)){ // 2、查绑定的Coupons是否存在以及是否过期 long epochSecondNow = Instant.now().getEpochSecond(); - Long redeemBy = productCoupons.getRedeemBy(); - if (redeemBy < epochSecondNow){ +// Long redeemBy = productCoupons.getRedeemBy(); + if (Objects.nonNull(productCoupons.getRedeemBy()) && productCoupons.getRedeemBy() < epochSecondNow){ String msg = BusinessException.getMessageFromResource("this.promotion.code.has.expired"); checkCouponsVO.setMessage(msg); checkCouponsVO.setStatus("expired");