Authored by tanling

Merge branch 'hotfix_0621_comments回滚' into test6.9.7

... ... @@ -137,6 +137,12 @@ public class CouponServiceImpl implements ICouponService {
// 校验是否可以领取(重复领取,时间是否合法,状态)
checkCanAcquire(uid, couponToken, couponAndType);
}
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);
}
// 校验 优惠券发放总数
checkAndAddCouponSendNum(uid, couponToken);
... ... @@ -262,10 +268,6 @@ public class CouponServiceImpl implements ICouponService {
throw new ServiceException(ServiceError.PROMOTION_COUPON_HAS_RECEIVED);
}
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);
}
}
... ...