Showing
1 changed file
with
0 additions
and
12 deletions
@@ -211,18 +211,6 @@ public class CouponServiceImpl implements ICouponService { | @@ -211,18 +211,6 @@ public class CouponServiceImpl implements ICouponService { | ||
211 | throw new ServiceException(ServiceError.PROMOTION_COUPON_HAS_RECEIVED); | 211 | throw new ServiceException(ServiceError.PROMOTION_COUPON_HAS_RECEIVED); |
212 | } | 212 | } |
213 | 213 | ||
214 | - // 验证优惠券的领取时间(开始时间没到,结束时间已过,状态不对) | ||
215 | - int now = DateUtil.getCurrentTimeSecond(); | ||
216 | - if (couponAndType.getCoupon().getStartTime() > now){ | ||
217 | - logger.info("couponrulebo not arrive get start time:{},{}", uid, couponToken); | ||
218 | - throw new ServiceException(ServiceError.PROMOTION_COUPON_NOT_ARRIVE_GET_START_TIME); | ||
219 | - } | ||
220 | - | ||
221 | - if (couponAndType.getCoupon().getEndTime() < now){ | ||
222 | - logger.info("couponrulebo is expired:{},{}", uid, couponToken); | ||
223 | - throw new ServiceException(ServiceError.PROMOTION_COUPON_TIME_OUT_CAN_NOT_GET); | ||
224 | - } | ||
225 | - | ||
226 | if (couponAndType.getCoupon().getStatus() != CouponsStatusEnum.VALID.getCode()){ | 214 | if (couponAndType.getCoupon().getStatus() != CouponsStatusEnum.VALID.getCode()){ |
227 | logger.info("couponrulebo status is not valid:{},{}",uid, couponToken); | 215 | logger.info("couponrulebo status is not valid:{},{}",uid, couponToken); |
228 | throw new ServiceException(ServiceError.PROMOTION_COUPON_IS_NOT_VAILD); | 216 | throw new ServiceException(ServiceError.PROMOTION_COUPON_IS_NOT_VAILD); |
-
Please register or login to post a comment