BUGFIX:创建优惠券设置开始结束时间失败;开启stripe模块的接口文档
This commit is contained in:
@@ -34,7 +34,7 @@ import java.util.List;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/stripe")
|
@RequestMapping("/api/stripe")
|
||||||
@ApiIgnore
|
//@ApiIgnore
|
||||||
public class StripeController {
|
public class StripeController {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
|
|||||||
@@ -1583,8 +1583,8 @@ public class StripeServiceImpl implements StripeService {
|
|||||||
if (Objects.nonNull(productCoupons)){
|
if (Objects.nonNull(productCoupons)){
|
||||||
// 2、查绑定的Coupons是否存在以及是否过期
|
// 2、查绑定的Coupons是否存在以及是否过期
|
||||||
long epochSecondNow = Instant.now().getEpochSecond();
|
long epochSecondNow = Instant.now().getEpochSecond();
|
||||||
Long redeemBy = productCoupons.getRedeemBy();
|
// Long redeemBy = productCoupons.getRedeemBy();
|
||||||
if (redeemBy < epochSecondNow){
|
if (Objects.nonNull(productCoupons.getRedeemBy()) && productCoupons.getRedeemBy() < epochSecondNow){
|
||||||
String msg = BusinessException.getMessageFromResource("this.promotion.code.has.expired");
|
String msg = BusinessException.getMessageFromResource("this.promotion.code.has.expired");
|
||||||
checkCouponsVO.setMessage(msg);
|
checkCouponsVO.setMessage(msg);
|
||||||
checkCouponsVO.setStatus("expired");
|
checkCouponsVO.setStatus("expired");
|
||||||
|
|||||||
Reference in New Issue
Block a user