Disclosure of Invention
The application provides a method and a system for managing a voice chat room, which aim to realize the management of different terminal users in the same voice chat room.
In a first aspect, to achieve the above object, the present application provides a method for managing a voice chat room, the method comprising:
the member management server acquires an operation request sent by a management terminal;
analyzing the operation request, and acquiring a preset operation type and a user identifier contained in the operation request, wherein the preset operation type comprises at least one of kicking, banning words, inviting to get on the wheat and joining in a blacklist;
and sending the operation request to a voice chat room management server.
Further, after sending the operation request to the voice chat room management server, the method further includes:
and the voice chat room management server synchronously executes the operation corresponding to the preset operation type on the user corresponding to the user identification, and feeds back an operation result to the member management server.
Further, after sending the operation request to the voice chat room management server, the method further includes:
and the voice chat room management server asynchronously executes the operation corresponding to the preset operation type on the user corresponding to the user identification, and feeds back an operation result to the member management server.
Further, before the member management server obtains the operation request sent by the management terminal, the method further includes:
and the member management server requests user information from the voice chat room management server according to a preset access frequency, wherein the user information comprises at least one of a user identifier, a user state or a user source.
Further, before the member management server obtains the operation request sent by the management terminal, the method further includes:
the management terminal obtains the voice information of the user through the resources provided by the voice chat room management server for the user.
In a second aspect, the present application further provides a system for managing a voice chat room, comprising: the system comprises a chat room management server, a management terminal and a member management server;
the member management server is used for acquiring an operation request sent by the management terminal;
analyzing the operation request, and acquiring a preset operation type and a user identifier contained in the operation request, wherein the preset operation type comprises at least one of kicking people, banning words, inviting to go to the home and joining in a blacklist;
and sending the operation request to a voice chat room management server.
Further, the voice chat room management server is configured to synchronously execute an operation corresponding to the preset operation type on the user corresponding to the user identifier, and feed back an operation result to the member management server.
Further, the voice chat room management server is configured to asynchronously execute an operation corresponding to the preset operation type on the user corresponding to the user identifier, and feed back an operation result to the member management server.
Further, the member management server is used for requesting user information from the voice chat room management server according to a preset access frequency, wherein the user information comprises at least one of a user identifier, a user state or a user source.
Further, the management terminal is used for obtaining the voice information of the user through the resource provided by the voice chat room management server to the user.
In a third aspect, to achieve the above object, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any one of the methods of managing a voice chat room of the first aspect.
In a fourth aspect, to achieve the above object, the present application provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method for managing a voice chat room according to any of the first aspect when executing the program.
According to the technical scheme, the method and the system for managing the voice chat room, provided by the embodiment of the application, can acquire the operation request sent by the management terminal through the member management server; analyzing the operation request, and acquiring a preset operation type and a user identifier contained in the operation request, wherein the preset operation type comprises at least one of kicking, banning words, inviting to get on the wheat and joining in a blacklist; and sending the operation request to a voice chat room management server, and synchronously or asynchronously executing the operation corresponding to the preset operation type on the user corresponding to the user identifier by the chat room management server, and feeding back an operation result to the member management server to realize the management of different terminal users in the same voice chat room. The application aims at a chat room system which adopts a chat room resource mode and can realize multi-terminal intercommunication, an independent member management server is added, the server is logically accessed to a voice resource management server, a user of the voice chat room management server is managed through the member management server, and the management content comprises: view source, forbid words, kick out, etc. The member management server is an independent access type service, and the normal operation of the running voice chat room can not be influenced in the access process. The system does not need additional support of the original chat room, and can realize the effects of cross-system, easy access and mutual independence.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Detailed Description
The features and advantages of the present application will become more apparent and appreciated from the following detailed description of the application.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
In the description of the present application, it should be noted that the terms "upper", "lower", "inner", "outer", "front", "rear", "left" and "right" and the like indicate orientations or positional relationships based on operational states of the present application, and are only used for convenience of description and simplification of description, but do not indicate or imply that the system or element being referred to must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present application. Furthermore, the terms "first," "second," "third," and "fourth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
To solve the above problems, the present application provides a method and system for managing a voice chat room, and the following describes in detail a specific embodiment of the present application with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a method for managing a voice chat room according to a first embodiment of the present invention, and as shown in fig. 1, the method includes steps S101 to S104.
S101: the member management server obtains the operation request sent by the management terminal.
S102: analyzing the operation request, and acquiring a preset operation type and a user identifier contained in the operation request, wherein the preset operation type comprises at least one of kicking people, banning words, inviting to go to the home and joining in a blacklist.
S103: and sending the operation request to a voice chat room management server.
S104: and the voice chat room management server synchronously executes the operation corresponding to the preset operation type on the user corresponding to the user identification, and feeds back an operation result to the member management server.
Before the member management server obtains the operation request sent by the management terminal, the method further comprises the following steps: and the member management server requests user information from the chat room management server according to a preset access frequency, wherein the user information comprises at least one of a user identifier, a user state or a user source. The management terminal obtains the voice information of the user through the resources provided by the voice chat room management server for the user.
And the voice chat room management server synchronously executes the operation corresponding to the preset operation type on the user corresponding to the user identification, and after feeding back the operation result to the member management server, the member management server feeds back the operation result to the management terminal.
The chat room management server opens room resources for each voice chat room, the room resources including server addresses, ports, room identifiers, and the like. The resource allocation users can be users who enter into a chat room through an IVR system, users who enter into a website chat room through an APP, and users who enter into a voice chat room through an APP. The terminals of the members of each voice chat room comprise PSTN phone, webpage, APP and the like, and the protocol for accessing the voice chat room can comprise: HTTP, FLASH, rtmp, etc., the languages for implementing access may include: c + +, PHP, and the like. The different scene implementation modes depend on the implementation modes of the application programs of different terminals, and users of different terminals perform voice interaction in the same voice chat room.
In order to realize the management of different terminal users in the same voice chat room, the method and the system uniformly manage the users of the room management server of the voice chat room through the member management server of the chat room, and the management contents comprise: view source, forbid, kick out, etc. The room management server of the voice chat room is an independent access type service, and the normal operation of the running voice chat room can not be influenced in the access process.
As shown in fig. 4, the voice chat room management server in the present application includes two parts, one is room resource management of the voice chat room, which is used to manage the service logic of the user terminal accessing the voice chat room, and allocate the address and port of the voice resource to the user terminal, and the user terminal accesses the module to obtain the address and port of the available voice resource, and after establishing communication with the address and port, it can perform voice transmission. And the other is a group of voice chat room resources, each user terminal has different resource addresses and ports, and the user terminal realizes voice transmission by communicating with the address terminal, including inputting the voice of the user terminal, outputting the voices of other terminals and the like.
The member management server accesses the voice chat room management server to acquire service logic data corresponding to each resource, wherein the service logic data comprise a user identifier and a user state and are used for managing the user and the occupation state of the resource. The access frequency of the member management server and the voice chat room management server can be preset so as to ensure that the user information and the user state can be obtained in time. The acquired service logic data can be stored in a database, and a message can be sent to a web server of the management terminal through the IVRS and then sent to the management terminal for processing.
The management terminal can be a web page which is in one-way communication with the voice chat room resource group and can listen to voice information of all users; the web server of the management terminal can access the database in the member management server to realize log access to the service logic of the chat room, and can also receive messages from the member management server to realize real-time display of the service logic. As shown in fig. 2, after a user clicks a management menu and selects a management mode, the management terminal sends an operation request, such as kicking, banning, etc., to the member management server, and the member management server performs uniform transfer to operate the management resources of the voice chat room, so as to achieve the management effect.
The method and the system aim at a chat room system which adopts a chat room resource mode and can realize multi-terminal intercommunication, add an independent member management server, and logically access the voice resource management server by the member management server without the support of the original chat room system, thereby realizing the effects of cross-system, easy access and mutual independence.
Fig. 3 is a flowchart illustrating a method for managing a voice chat room according to a second embodiment of the present invention, and as shown in fig. 3, the method includes steps S101 to S105.
S101: the member management server obtains the operation request sent by the management terminal.
S102: analyzing the operation request, and acquiring a preset operation type and a user identifier contained in the operation request, wherein the preset operation type comprises at least one of kicking people, banning words, inviting to go to the home and joining in a blacklist.
S103: and sending the operation request to a voice chat room management server.
S105: and the voice chat room management server asynchronously executes the operation corresponding to the preset operation type on the user corresponding to the user identification, and feeds back an operation result to the member management server.
Before the member management server obtains the operation request sent by the management terminal, the method further comprises the following steps: and the member management server requests user information from the chat room management server according to a preset access frequency, wherein the user information comprises at least one of a user identifier, a user state or a user source. The management terminal acquires the voice information of the user through the voice chat room management server.
In a second embodiment, if there are many concurrent operation requests, the voice chat room management server asynchronously executes the operation corresponding to the preset operation type on the user corresponding to the user identifier, so as to prevent data congestion. Specifically, the voice chat management server places the received operation request in a task queue to be executed, takes out the corresponding operation request from the task queue to be executed for execution according to the service of the executed task, and feeds back the operation result to the member management server.
Corresponding to the embodiment of the method for managing the voice chat room provided by the application, the application also provides an embodiment of a system for managing the voice chat room. Referring to fig. 4, a schematic structural diagram of a system for managing a voice chat room provided in an embodiment of the present application is shown, where the system includes:
the management server 100 of the voice chat room, the management terminal 200, and also includes a member management server 300;
the member management server 300 is configured to obtain an operation request sent by the management terminal 200;
analyzing the operation request, and acquiring a preset operation type and a user identifier contained in the operation request, wherein the preset operation type comprises at least one of kicking, banning words, inviting to get on the wheat and joining in a blacklist;
sending the operation request to the voice chat room management server 100;
the voice chat room management server 100 is configured to synchronously or asynchronously perform an operation corresponding to the preset operation type on the user corresponding to the user identifier, and feed back an operation result to the member management server 300.
The membership management server 300 is further configured to request user information from the chat room management server according to a preset access frequency, where the user information includes at least one of a user identifier, a user status, or a user source.
The management terminal 200 is used to acquire the voice information of the user through the voice chat room management server 100.
According to the method and the system for managing the voice chat room, the member management server acquires the operation request sent by the management terminal; analyzing the operation request, and acquiring a preset operation type and a user identifier contained in the operation request, wherein the preset operation type comprises at least one of kicking, banning words, inviting to get on the wheat and joining in a blacklist; and sending the operation request to a voice chat room management server, and synchronously or asynchronously executing the operation corresponding to the preset operation type on the user corresponding to the user identifier by the chat room management server, and feeding back an operation result to the member management server to realize the management of different terminal users in the same voice chat room.
The application aims at a chat room system which adopts a chat room resource mode and can realize multi-terminal intercommunication, an independent member management server is added, the server is logically accessed into a voice resource management server, a user of the voice chat room management server is uniformly managed through the member management server, and the management content comprises the following steps: view source, forbid, kick out, etc. The member management server is an independent access type service, and the normal operation of the running voice chat room can not be influenced in the access process. The support of the original chat room system is not needed, and the effects of cross-system, easy access and mutual independence can be realized.
According to the method and the system for managing the voice chat room, the embodiment of the application also provides a readable storage medium and computer equipment. The readable storage medium stores executable program, which when executed by the processor implements the steps of the above method for managing a voice chat room; the computer device includes a memory, a processor, and an executable program stored on the memory and executable on the processor, the processor implementing the steps of the method for managing a voice chat room described above when executing the program.
The present application has been described in detail with reference to specific embodiments and illustrative examples, but the description is not intended to limit the application. Those skilled in the art will appreciate that various equivalent substitutions, modifications or improvements may be made to the embodiments and implementations thereof without departing from the spirit and scope of the present application, and are within the scope of the present application. The protection scope of this application is subject to the appended claims.