Authored by tanling

fixbugs

... ... @@ -116,7 +116,7 @@ public class CouponServiceImpl implements ICouponService {
// 有效期
Range<Integer> validityRange = null;
if (validityDay != null){
if (validityDay != null && validityDay!=0){
Integer now = DateUtil.getCurrentTimeSecond();
Integer end = (int) LocalDateTime.of(LocalDate.now().plusDays(validityDay), LocalTime.MAX).toEpochSecond(ZoneOffset.of("+8"));
validityRange = Range.open(now, end);
... ...