|
@@ -6394,7 +6394,7 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
String liveRoomId = getCourseScheduleLiveRoomId(courseSchedule, continueCourseTime, newCourseSchedules, courseScheduleTimes);
|
|
|
|
|
|
// 定时任务更新课程状态为进行中,判断当前课程状态是否匹配
|
|
|
- int studentRemindTime = Integer.parseInt(sysConfigService.findByParamName(SysConfigService.LIVE_CLASS_START_REMIND_TIME).getParanValue());
|
|
|
+ /*int studentRemindTime = Integer.parseInt(sysConfigService.findByParamName(SysConfigService.LIVE_CLASS_START_REMIND_TIME).getParanValue());
|
|
|
|
|
|
Date date = DateUtil.startDateAndEndTime(courseSchedule.getClassDate(), courseSchedule.getStartClassTime());
|
|
|
date = DateUtil.addMinutes(date, -studentRemindTime);
|
|
@@ -6402,7 +6402,7 @@ 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("直播课已结束");
|
|
|
}*/
|
|
|
|