def _notice_others_self_quit(self): # 广播用户离线事件(逐个房间通知离开事件) leave_noticer = ConchLeaveRoomEventNoticer(HornerPacketHandler.COMMUNICATION_EVENT, HornerPacketHandler.EVT_TALK_LEAVEROOM) leave_noticer.setSessId(self.sess_id) leave_noticer.changeSuccess() if self.role == LiveRequest.ROLE_VISITOR: leave_noticer.setIsVisitor() room_id_list = Chatroom.allPaticipatedRoom(self.company_id, self.sess_id) for r_id in room_id_list: chat_room = Chatroom(self.company_id, r_id) if chat_room.isLoadSuccess(): chat_room.broadcast(self.live_request_list, leave_noticer.toString(), [self.sess_id])