Authored by wujiexiang

领取不需要校验券使用开始、结束时间

... ... @@ -211,18 +211,6 @@ public class CouponServiceImpl implements ICouponService {
throw new ServiceException(ServiceError.PROMOTION_COUPON_HAS_RECEIVED);
}
// 验证优惠券的领取时间(开始时间没到,结束时间已过,状态不对)
int now = DateUtil.getCurrentTimeSecond();
if (couponAndType.getCoupon().getStartTime() > now){
logger.info("couponrulebo not arrive get start time:{},{}", uid, couponToken);
throw new ServiceException(ServiceError.PROMOTION_COUPON_NOT_ARRIVE_GET_START_TIME);
}
if (couponAndType.getCoupon().getEndTime() < now){
logger.info("couponrulebo is expired:{},{}", uid, couponToken);
throw new ServiceException(ServiceError.PROMOTION_COUPON_TIME_OUT_CAN_NOT_GET);
}
if (couponAndType.getCoupon().getStatus() != CouponsStatusEnum.VALID.getCode()){
logger.info("couponrulebo status is not valid:{},{}",uid, couponToken);
throw new ServiceException(ServiceError.PROMOTION_COUPON_IS_NOT_VAILD);
... ...