zouxuan 5 年之前
父节点
当前提交
eefa351aee
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      mec-im/src/main/java/com/ym/service/Impl/RoomServiceImpl.java

+ 3 - 2
mec-im/src/main/java/com/ym/service/Impl/RoomServiceImpl.java

@@ -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);