shangke 2 lat temu
rodzic
commit
dccff3fbbf

+ 2 - 2
mec-biz/src/main/java/com/ym/mec/biz/service/impl/CourseScheduleServiceImpl.java

@@ -6287,9 +6287,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()

+ 2 - 1
mec-web/src/main/java/com/ym/mec/web/controller/CourseScheduleController.java

@@ -205,7 +205,8 @@ public class CourseScheduleController extends BaseController {
                 }
                 if(DateUtil.minutesBetween(new Date(),oldCourseSchedule.getStartClassTime()) < Integer.parseInt(startRemindTime)
                  && DateUtil.minutesBetween(new Date(),oldCourseSchedule.getEndClassTime()) >= 0){
-                    throw new BizException("直播课课程开始前{}分钟不允许调整",startRemindTime);
+                    // FIXME: 测试环境暂时注释
+                    // throw new BizException("直播课课程开始前{}分钟不允许调整",startRemindTime);
                 }
             }
         }