|
@@ -118,7 +118,8 @@ public class RoomServiceImpl implements RoomService {
|
|
|
log.error("joinRoom IM error: roomId={}, {}", roomId, resultInfo.getErrorMessage());
|
|
|
throw new ApiException(ErrorEnum.ERR_CREATE_ROOM_ERROR, resultInfo.getErrorMessage());
|
|
|
} else {
|
|
|
- scheduleManager.addExpiredTask(this, roomId);
|
|
|
+ destroyRoom(roomId);
|
|
|
+// scheduleManager.addExpiredTask(this, roomId);
|
|
|
}
|
|
|
} else {
|
|
|
display = roomList.get(0).getDisplay();
|
|
@@ -354,7 +355,7 @@ public class RoomServiceImpl implements RoomService {
|
|
|
public Boolean downgrade(String roomId, List<ReqChangeUserRoleData.ChangedUser> users) throws ApiException, Exception {
|
|
|
CheckUtils.checkArgument(roomId != null, "roomId must't be null");
|
|
|
CheckUtils.checkArgument(users.size() > 0, "the changed user list must't be null");
|
|
|
- String token = SecurityUtils.getAuthenticationValue();
|
|
|
+// String token = SecurityUtils.getAuthenticationValue();
|
|
|
SysUser authUser = sysUserFeignService.queryUserInfo();
|
|
|
String userId = authUser.getId().toString();
|
|
|
List<Room> roomList = roomDao.findByRid(roomId);
|