|
@@ -32,6 +32,7 @@ import com.ym.mec.biz.dal.dao.*;
|
|
|
import com.ym.mec.biz.dal.dto.BasicUserDto;
|
|
|
import com.ym.mec.biz.dal.dto.RongyunBasicUserDto;
|
|
|
import com.ym.mec.biz.dal.entity.*;
|
|
|
+import com.ym.mec.biz.dal.enums.CourseStatusEnum;
|
|
|
import com.ym.mec.biz.dal.enums.GroupType;
|
|
|
import com.ym.mec.biz.dal.enums.TeachModeEnum;
|
|
|
import com.ym.mec.biz.service.*;
|
|
@@ -263,6 +264,15 @@ public class RoomServiceImpl implements RoomService {
|
|
|
// 网络课形式:RTC房间,直播间
|
|
|
if (GroupType.LIVE == courseSchedule.getGroupType()) {
|
|
|
|
|
|
+ // 直播课已结束
|
|
|
+ if (CourseStatusEnum.NOT_START == courseSchedule.getStatus()) {
|
|
|
+ throw new BizException("直播课未开始");
|
|
|
+ }
|
|
|
+
|
|
|
+ if (CourseStatusEnum.OVER == courseSchedule.getStatus()) {
|
|
|
+ throw new BizException("直播课已结束");
|
|
|
+ }
|
|
|
+
|
|
|
if (Optional.ofNullable(joinRoom).orElse(true)) {
|
|
|
|
|
|
String joinImGroupKey = "joinImGroup:" + roomId;
|