|
@@ -3175,8 +3175,7 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
|
|
|
//课程结束时间必须在21:00之前
|
|
|
if(DateUtil.getHour(newCourseSchedule.getEndClassTime()) > 20 && DateUtil.getMinute(newCourseSchedule.getEndClassTime()) > 0){
|
|
|
- // FIXME: 测试环境暂时放开
|
|
|
- // throw new BizException("课程结束时间不能超过21:00,请重新调整上课时间");
|
|
|
+ throw new BizException("课程结束时间不能超过21:00,请重新调整上课时间");
|
|
|
}
|
|
|
|
|
|
//判断上课时间是否跨天
|
|
@@ -6311,9 +6310,9 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
if(CourseStatusEnum.NOT_START.equals(courseSchedule.getStatus()) && date.after(new Date())) {
|
|
|
throw new BizException("直播课暂未开启,请稍后重试");
|
|
|
}
|
|
|
- if (CourseStatusEnum.OVER == courseSchedule.getStatus()) {
|
|
|
+ /*if (CourseStatusEnum.OVER == courseSchedule.getStatus()) {
|
|
|
throw new BizException("直播课已结束");
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
// 直播间配置
|
|
|
ImLiveBroadcastRoom liveBroadcastRoom = imLiveBroadcastRoomService.lambdaQuery()
|