BUGFIX:创建优惠券设置开始结束时间失败;开启stripe模块的接口文档

This commit is contained in:
2025-09-23 16:24:00 +08:00
parent 24fe265172
commit 1d006342fb
2 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ import java.util.List;
@Slf4j
@RestController
@RequestMapping("/api/stripe")
@ApiIgnore
//@ApiIgnore
public class StripeController {
@Resource

View File

@@ -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");