|
@@ -771,6 +771,13 @@ public class RoomServiceImpl implements RoomService {
|
|
}
|
|
}
|
|
roomMemberDao.deleteUserByRidAndUid(e.getRid(), e.getUid());
|
|
roomMemberDao.deleteUserByRidAndUid(e.getRid(), e.getUid());
|
|
userDao.deleteByUid(e.getUid());
|
|
userDao.deleteByUid(e.getUid());
|
|
|
|
+ if("3".equals(e.getRid())){
|
|
|
|
+ try {
|
|
|
|
+ imHelper.stopRecord(e.getUid(),e.getRid());
|
|
|
|
+ } catch (Exception e1) {
|
|
|
|
+ e1.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
});
|
|
});
|
|
roomDao.deleteByRid(roomId.toString());
|
|
roomDao.deleteByRid(roomId.toString());
|
|
}
|
|
}
|
|
@@ -801,6 +808,7 @@ public class RoomServiceImpl implements RoomService {
|
|
if("recorded".equals(data.getType())){
|
|
if("recorded".equals(data.getType())){
|
|
msg.setRoomId("recorded" + roomId);
|
|
msg.setRoomId("recorded" + roomId);
|
|
}*/
|
|
}*/
|
|
|
|
+ imHelper.stopRecord(userId,roomId);
|
|
IMApiResultInfo apiResultInfo = imHelper.publishMessage(userId, roomId, msg, 1);
|
|
IMApiResultInfo apiResultInfo = imHelper.publishMessage(userId, roomId, msg, 1);
|
|
if (!apiResultInfo.isSuccess()) {
|
|
if (!apiResultInfo.isSuccess()) {
|
|
throw new ApiException(ErrorEnum.ERR_MESSAGE_ERROR);
|
|
throw new ApiException(ErrorEnum.ERR_MESSAGE_ERROR);
|