|
@@ -113,7 +113,7 @@ public class RoomServiceImpl implements RoomService {
|
|
imHelper.stopRecord(userId,roomId);
|
|
imHelper.stopRecord(userId,roomId);
|
|
}
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
|
|
|
+ /*@Override
|
|
public RoomResult joinRecorded(Long examRegistrationId) throws Exception {
|
|
public RoomResult joinRecorded(Long examRegistrationId) throws Exception {
|
|
StudentExamResultApiDto examResult = eduUserFeignService.getExamResult(examRegistrationId);
|
|
StudentExamResultApiDto examResult = eduUserFeignService.getExamResult(examRegistrationId);
|
|
// String roomId = examResult.getRoomId();
|
|
// String roomId = examResult.getRoomId();
|
|
@@ -158,10 +158,10 @@ public class RoomServiceImpl implements RoomService {
|
|
}
|
|
}
|
|
if (memberList.isEmpty()) {
|
|
if (memberList.isEmpty()) {
|
|
saveRoomMember(userId,sysUser.getAvatar(), realName, recordedRoomId, Student.getValue(), true,true, date,examRegistrationId);
|
|
saveRoomMember(userId,sysUser.getAvatar(), realName, recordedRoomId, Student.getValue(), true,true, date,examRegistrationId);
|
|
- /*IMApiResultInfo resultInfo = imHelper.joinGroup(new String[]{userId}, recordedRoomId, recordedRoomId);
|
|
|
|
|
|
+ *//*IMApiResultInfo resultInfo = imHelper.joinGroup(new String[]{userId}, recordedRoomId, recordedRoomId);
|
|
if (!resultInfo.isSuccess()) {
|
|
if (!resultInfo.isSuccess()) {
|
|
throw new ApiException(ErrorEnum.ERR_CREATE_ROOM_ERROR, resultInfo.getErrorMessage());
|
|
throw new ApiException(ErrorEnum.ERR_CREATE_ROOM_ERROR, resultInfo.getErrorMessage());
|
|
- }*/
|
|
|
|
|
|
+ }*//*
|
|
userResult.setMicrophone(true);
|
|
userResult.setMicrophone(true);
|
|
userResult.setCamera(true);
|
|
userResult.setCamera(true);
|
|
userResult.setHandUp(false);
|
|
userResult.setHandUp(false);
|
|
@@ -208,7 +208,7 @@ public class RoomServiceImpl implements RoomService {
|
|
this.publishMessage(eduUserFeignService.getPublishMessage(examRegistrationId));
|
|
this.publishMessage(eduUserFeignService.getPublishMessage(examRegistrationId));
|
|
}
|
|
}
|
|
return roomResult;
|
|
return roomResult;
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
|
|
|
|
private BaseResponse getBaseResponse(BaseResponse baseResponse){
|
|
private BaseResponse getBaseResponse(BaseResponse baseResponse){
|
|
baseResponse.setErrCode(500);
|
|
baseResponse.setErrCode(500);
|
|
@@ -357,7 +357,7 @@ public class RoomServiceImpl implements RoomService {
|
|
}
|
|
}
|
|
roomResult.setExamFlag(examRoom.getExamFlag());
|
|
roomResult.setExamFlag(examRoom.getExamFlag());
|
|
List<RoomMember> roomMembers = roomMemberDao.findByRid(roomId);
|
|
List<RoomMember> roomMembers = roomMemberDao.findByRid(roomId);
|
|
- roomResult.setMembers(roomMembers);
|
|
|
|
|
|
+ roomResult.setMembers(roomMembers,examRoom.getShieldUserId());
|
|
// List<Whiteboard> whiteboardList = whiteboardDao.findByRid(roomId);
|
|
// List<Whiteboard> whiteboardList = whiteboardDao.findByRid(roomId);
|
|
// roomResult.setWhiteboards(whiteboardList);
|
|
// roomResult.setWhiteboards(whiteboardList);
|
|
log.info("join success: roomId = {}, userId = {}, userName={}, role = {}", roomId, userId, roleEnum);
|
|
log.info("join success: roomId = {}, userId = {}, userName={}, role = {}", roomId, userId, roleEnum);
|