|  | @@ -130,6 +130,8 @@ public class RoomServiceImpl implements RoomService {
 | 
	
		
			
				|  |  |      private VipGroupDao vipGroupDao;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private ImLiveBroadcastRoomService imLiveBroadcastRoomService;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private SysConfigService sysConfigService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public Integer getCurrentCourseId(String roomId) {
 | 
	
	
		
			
				|  | @@ -277,7 +279,12 @@ public class RoomServiceImpl implements RoomService {
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              // 直播课已结束
 | 
	
		
			
				|  |  | -            if (CourseStatusEnum.NOT_START == courseSchedule.getStatus()) {
 | 
	
		
			
				|  |  | +            Integer 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);
 | 
	
		
			
				|  |  | +            // 课程是否开始
 | 
	
		
			
				|  |  | +            if(CourseStatusEnum.NOT_START.equals(courseSchedule.getStatus()) && date.after(new Date())) {
 | 
	
		
			
				|  |  |                  throw new BizException("直播课未开始");
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |  
 |