秒杀活动为空,则不反回秒杀时间段,直接返回异常,告知今日无活动

This commit is contained in:
Chopper 2021-08-27 11:21:58 +08:00
parent 3a14e96c5d
commit 603c1d6935

View File

@ -101,7 +101,11 @@ public class SeckillApplyServiceImpl extends ServiceImpl<SeckillApplyMapper, Sec
timelineVoS.add(seckillTimelineVO); timelineVoS.add(seckillTimelineVO);
} }
} }
if (timelineVoS.size() > 0) {
return timelineVoS; return timelineVoS;
} else {
throw new ServiceException(ResultCode.SECKILL_NOT_START_ERROR);
}
} }
@Override @Override