Browse Source

修改教师考勤为空的bug

zouxuan 4 years ago
parent
commit
2ae91bf4c5
1 changed files with 5 additions and 1 deletions
  1. 5 1
      mec-im/src/main/java/com/ym/service/Impl/RoomServiceImpl.java

+ 5 - 1
mec-im/src/main/java/com/ym/service/Impl/RoomServiceImpl.java

@@ -260,7 +260,11 @@ public class RoomServiceImpl implements RoomService {
         if (room == null) {
         if (room == null) {
             //如果房间不存在,删除除了自己之外的其他用户
             //如果房间不存在,删除除了自己之外的其他用户
 //            roomMemberDao.deleteRoomMember(roomId,userId);
 //            roomMemberDao.deleteRoomMember(roomId,userId);
-            saveRoom(roomId, roomId, curTime, display);
+            try {
+                saveRoom(roomId, roomId, curTime, display);
+            }catch (Exception e){
+                log.error("joinRoomSuccess saveRoom error: {}", e.getMessage());
+            }
             IMApiResultInfo resultInfo = imHelper.createGroup(new String[]{userId}, roomId, roomId);
             IMApiResultInfo resultInfo = imHelper.createGroup(new String[]{userId}, roomId, roomId);
             if (!resultInfo.isSuccess()) {
             if (!resultInfo.isSuccess()) {
                 log.error("joinRoomSuccess createGroup error: roomId={}, {}", roomId, resultInfo.getErrorMessage());
                 log.error("joinRoomSuccess createGroup error: roomId={}, {}", roomId, resultInfo.getErrorMessage());