CN110958174A - Real-time communication method and system based on multi-role account system, server and medium - Google Patents
Real-time communication method and system based on multi-role account system, server and medium Download PDFInfo
- Publication number
- CN110958174A CN110958174A CN201911216556.3A CN201911216556A CN110958174A CN 110958174 A CN110958174 A CN 110958174A CN 201911216556 A CN201911216556 A CN 201911216556A CN 110958174 A CN110958174 A CN 110958174A
- Authority
- CN
- China
- Prior art keywords
- role
- conversation
- real
- account
- receiving
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L51/046—Interoperability with other network applications or services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/07—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
- H04L51/18—Commands or executable codes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/52—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a real-time communication method and a system, a server and a medium based on a multi-role account system, which receive a real-time message communication instruction sent by a conversation initiating role, wherein the real-time message notification instruction at least comprises a conversation receiving role name and conversation content; then, searching an account corresponding to the conversation receiving role according to the conversation receiving role name; finally, the conversation content is sent to a conversation receiving account, and a notification prompt that the conversation receiving role receives the real-time message is sent to an account corresponding to the conversation receiving role, so that the social network object is raised from the entity account to the virtual role, the interestingness of social contact is increased, and the loss of the message is avoided by notifying and prompting the account to which the role belongs.
Description
Technical Field
The invention relates to the technical field of network social contact, in particular to a real-time communication method and system based on a multi-role account system, a server and a medium.
Background
In the existing account system, the information interaction between roles is actually the information interaction between accounts, different roles under the same account cannot perform information interaction, the interestingness of social contact is reduced, the real-time message communication mode between roles requires that a legal initiating role and a conversation receiving role must be on line at the same time, and if the conversation receiving role is not on line, the conversation receiving role cannot receive messages, so that the messages are lost.
Disclosure of Invention
In view of this, embodiments of the present invention provide a real-time communication method and system, a server, and a medium based on a multi-role account system, so that not only the social interest can be increased, but also the loss of messages can be avoided.
In a first aspect of the embodiments of the present invention, a real-time communication method based on a multi-role account system is provided, where the real-time communication method based on the multi-role account system includes the following steps:
receiving a real-time message communication instruction sent by a conversation initiating role, wherein the real-time message notification instruction at least comprises a conversation receiving role name and conversation content;
searching an account corresponding to the conversation receiving role according to the conversation receiving role name;
and sending the conversation content to a conversation receiving account, and sending a notification prompt that the conversation receiving role receives the real-time message to an account corresponding to the conversation receiving role.
In a second aspect of the embodiments of the present invention, a real-time communication system based on a multi-role account system is provided, where the real-time communication system based on the multi-role account system includes the following functional modules:
the command receiving module is configured to receive a real-time message communication command sent by a conversation initiating role;
the role searching module is configured to search an account corresponding to the conversation receiving role according to the conversation receiving role name in the real-time message notification instruction;
and the message notification module is configured to send the conversation content to the conversation receiving account and send a notification prompt that the conversation receiving role receives the real-time message to the account corresponding to the conversation receiving role.
In a third aspect of the embodiments of the present invention, there is provided a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the real-time communication method based on the multi-role account system when executing the computer program.
In a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is provided, where a computer program is stored, and when being executed by a processor, the computer program implements the steps of the real-time communication method based on the multi-role account system as described above.
The invention provides a real-time communication method and system based on a multi-role account system, a server and a medium, which receive a real-time message communication instruction sent by a conversation initiating role, wherein the real-time message notification instruction at least comprises a conversation receiving role name and conversation content; then, searching an account corresponding to the conversation receiving role according to the conversation receiving role name; finally, the conversation content is sent to a conversation receiving account, and a notification prompt that the conversation receiving role receives the real-time message is sent to an account corresponding to the conversation receiving role, so that the social network object is raised from the entity account to the virtual role, the interestingness of social contact is increased, and the loss of the message is avoided by notifying and prompting the account to which the role belongs.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a block diagram of a flow chart of a real-time communication method based on a multi-role account system according to an embodiment of the present invention;
fig. 2 is a functional block diagram of a real-time communication system based on a multi-role account system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a real-time communication method based on a multi-role account system, where the real-time communication method based on the multi-role account system includes the following steps:
s1, receiving a real-time message communication instruction sent by a conversation initiating role, wherein the real-time message notification instruction at least comprises a conversation receiving role name and conversation content;
s2, searching an account corresponding to the conversation receiving role according to the conversation receiving role name;
and S3, sending the conversation content to a conversation receiving account, and sending a notification prompt that the conversation receiving role receives the real-time message to the account corresponding to the conversation receiving role.
In order to better explain the technical scheme of the invention, the following description illustrates that a, B, C and d four roles are arranged below an account A, three roles of e, f and g are arranged below an account B, two roles of h and i are arranged below an account C, a current role a sends a real-time message to a role e, firstly, a system searches the account B corresponding to the role e according to a real-time message communication instruction initiated by the role a, then checks whether the account B is online, and directly sends real-time conversation content to the role e if the role e is online currently; and when the conversation receiving role is not on line instantly, sending a notification prompt that the conversation receiving role receives the real-time message to the conversation receiving account. That is, if the character e is not online currently, the system sends the conversation content to the account B for storage, and sends a notification of 'the character e receives a message' to the account B.
The account corresponding to the conversation receiving role is all accounts including the account corresponding to the conversation initiating role, and when the account corresponding to the conversation receiving role and the account corresponding to the conversation initiating role are the same account, namely the interaction between different roles under the same account, a notification prompt that the conversation receiving account receives a real-time message is directly sent to the conversation initiating role. For example, there are four roles a, b, c, and d under account a, and now role a sends a real-time message to role b, account a will receive a notification that "role b receives the message".
The conversation receiving role is one or more roles, and may be multiple roles under the same account, or may be roles under one or more accounts, however, when multiple conversation receiving roles exist simultaneously, the multiple conversation receiving roles need to exist in the same social scene at the same time, and the real-time message notification instruction sent by the conversation initiating role also includes a conversation social scene.
When a role a sends a real-time message aiming at a social scene M to three roles B, e and h at the same time, firstly, the system searches an account A corresponding to the role B and an account B corresponding to the role e according to a real-time message communication instruction initiated by the role a, searches an account C corresponding to the role h and checks whether the accounts A, B, C are all online, if the account A is online, the account B is not online and the account C is online, the system sends conversation content to the account B for storage, the account B receives a notification that the role e receives a message aiming at the social scene M when logging in next time, then further checks whether the roles B and h are online, if the role B is not online and the role h is not online but the role i is online, the account A receives the notification that the role B receives the message aiming at the social scene M, and simultaneously sends the conversation content to the account C for storage, and sends a notification to account C that role h received a message for social scenario M.
The invention provides a real-time communication method based on a multi-role account system, which receives a real-time message communication instruction sent by a conversation initiating role, wherein the real-time message notification instruction at least comprises a conversation receiving role name and conversation content; then, searching an account corresponding to the conversation receiving role according to the conversation receiving role name; finally, the conversation content is sent to a conversation receiving account, and a notification prompt that the conversation receiving role receives the real-time message is sent to an account corresponding to the conversation receiving role, so that the social network object is raised from the entity account to the virtual role, the interestingness of social contact is increased, and the loss of the message is avoided by notifying and prompting the account to which the role belongs.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
The above mainly describes a real-time communication method based on the multi-role account system, and a real-time communication system based on the multi-role account system will be described in detail below.
Fig. 2 is a functional block diagram of a real-time communication system based on a multi-role account system according to an embodiment of the present invention. As shown in fig. 2, the real-time communication system based on the multi-role account system includes the following functional modules:
an instruction receiving module 10 configured to receive a real-time message communication instruction issued by a conversation initiating character;
the role searching module 20 is configured to search an account corresponding to the conversation receiving role according to the conversation receiving role name in the real-time message notification instruction;
and the message notification module 30 is configured to send the conversation content to the conversation receiving account, and send a notification prompt that the conversation receiving role receives the real-time message to the account corresponding to the conversation receiving role.
Fig. 3 is a schematic diagram of a server structure for real-time communication based on the multi-role account hierarchy according to an embodiment of the present invention. The server is a device for providing computing services, and generally refers to a computer with high computing power, which is provided to a plurality of users through a network. As shown in fig. 3, the server 4 of this embodiment includes: a memory 41, a processor 42, and a system bus 43, the memory 41 including an executable program 411 stored thereon, it being understood by those skilled in the art that the terminal device structure shown in fig. 3 does not constitute a limitation of the terminal device, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The following specifically describes each constituent component of the terminal device with reference to fig. 3:
the memory 41 may be used to store software programs and modules, and the processor 42 executes various functional applications and data processing of the terminal by operating the software programs and modules stored in the memory 41. The memory 41 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 41 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The executable program 411 based on the multi-role account system real-time communication method is contained in the memory 41, the executable program 411 can be divided into one or more modules/units, the one or more modules/units are stored in the memory 41 and executed by the processor 42 to complete the transmission of the notification and obtain the notification implementation process, and the one or more modules/units can be a series of computer program instruction segments capable of completing specific functions and are used for describing the execution process of the computer program 411 in the server 4. For example, the computer program 411 may be divided into an acquisition module, a comparison module, a concatenation module and a sending module.
The processor 42 is a control center of the server, connects various parts of the entire terminal device with various interfaces and lines, performs various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory 41 and calling data stored in the memory 41, thereby monitoring the terminal as a whole. Alternatively, processor 42 may include one or more processing units; preferably, the processor 42 may integrate an application processor, which primarily handles operating systems, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 42.
The system bus 43 is used to connect functional units inside the computer, and can transmit data information, address information, and control information, and may be, for example, a PCI bus, an ISA bus, a VESA bus, or the like. The instructions of the processor 42 are transmitted to the memory 41 through the bus, the memory 41 feeds back data to the processor 42, and the system bus 43 is responsible for data and instruction interaction between the processor 42 and the memory 41. Of course, the system bus 43 may also access other devices such as network interfaces, display devices, etc.
The server at least includes a CPU, a chipset, a memory, a disk system, and the like, and other components are not described herein again.
In the embodiment of the present invention, the executable program executed by the processor 42 included in the terminal specifically includes: a real-time communication method based on a multi-role account system comprises the following steps:
receiving a real-time message communication instruction sent by a conversation initiating role, wherein the real-time message notification instruction at least comprises a conversation receiving role name and conversation content;
searching an account corresponding to the conversation receiving role according to the conversation receiving role name;
and sending the conversation content to a conversation receiving account, and sending a notification prompt that the conversation receiving role receives the real-time message to an account corresponding to the conversation receiving role.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the modules, elements, and/or method steps of the various embodiments described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A real-time communication method based on a multi-role account system is characterized by comprising the following steps:
receiving a real-time message communication instruction sent by a conversation initiating role, wherein the real-time message notification instruction at least comprises a conversation receiving role name and conversation content;
searching an account corresponding to the conversation receiving role according to the conversation receiving role name;
and sending the conversation content to a conversation receiving account, and sending a notification prompt that the conversation receiving role receives the real-time message to an account corresponding to the conversation receiving role.
2. The multi-role account system-based real-time communication method according to claim 1, wherein the account corresponding to the conversation recipient role is all accounts including the account corresponding to the conversation initiator role.
3. The multi-role account hierarchy based real-time communication method of claim 1, wherein the conversation receiving role is one or more roles.
4. The multi-role account system based real-time communication method of claim 3, wherein when there are multiple conversation-receiving roles simultaneously, the multiple conversation-receiving roles need to exist simultaneously in the same social scene.
5. The multi-role account hierarchy based real-time communication method of claim 4, wherein when a plurality of conversation receiving roles exist simultaneously, the real-time message notification instruction further comprises a conversation social scene.
6. The multi-role account system-based real-time communication method of claim 1, wherein when the account corresponding to the session receiving role and the account corresponding to the session initiating role are the same account, a notification that the session receiving account receives the real-time message is directly sent to the session initiating role.
7. The multi-role account system-based real-time communication method of claim 1, wherein when the session receiving role is not on-line instantly, a notification that the session receiving role receives the real-time message is sent to the session receiving account.
8. A real-time communication system based on a multi-role account system is characterized by comprising the following functional modules:
the command receiving module is configured to receive a real-time message communication command sent by a conversation initiating role;
the role searching module is configured to search an account corresponding to the conversation receiving role according to the conversation receiving role name in the real-time message notification instruction;
and the message notification module is configured to send the conversation content to the conversation receiving account and send a notification prompt that the conversation receiving role receives the real-time message to the account corresponding to the conversation receiving role.
9. A server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of the multi-role accountability real-time communication method according to any one of claims 1 to 7.
10. A computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the multi-role based accounting system real-time communication method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911216556.3A CN110958174A (en) | 2019-12-02 | 2019-12-02 | Real-time communication method and system based on multi-role account system, server and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911216556.3A CN110958174A (en) | 2019-12-02 | 2019-12-02 | Real-time communication method and system based on multi-role account system, server and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110958174A true CN110958174A (en) | 2020-04-03 |
Family
ID=69979454
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911216556.3A Pending CN110958174A (en) | 2019-12-02 | 2019-12-02 | Real-time communication method and system based on multi-role account system, server and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110958174A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101047662A (en) * | 2006-04-20 | 2007-10-03 | 华为技术有限公司 | Method and system for implementing multi-identity immediate message communication and present service of single account number |
CN104320327A (en) * | 2014-10-28 | 2015-01-28 | 深圳市多彩人生技术有限公司 | Method and system for enabling multiple roles of one account of social network to be online simultaneously |
US20150295864A1 (en) * | 2009-04-02 | 2015-10-15 | International Business Machines Corporation | Preferred name presentation in online environments |
CN105991420A (en) * | 2015-02-27 | 2016-10-05 | 深圳市兆面信息技术有限公司 | Instant communication software and social circle privacy classification isolation method and system |
CN107046496A (en) * | 2016-02-05 | 2017-08-15 | 李盈 | A kind of based role carries out method, server and the system of instant session |
CN107360083A (en) * | 2017-07-29 | 2017-11-17 | 成都牵牛草信息技术有限公司 | The method that instant messaging account contact person and default address list are preset according to the communication relations between role |
CN107770035A (en) * | 2016-08-16 | 2018-03-06 | 中兴通讯股份有限公司 | A kind of method and apparatus for pushing offline notification |
CN110384931A (en) * | 2019-06-10 | 2019-10-29 | 北京字节跳动网络技术有限公司 | A kind of polygonal color interactive approach, device, medium and electronic equipment |
-
2019
- 2019-12-02 CN CN201911216556.3A patent/CN110958174A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101047662A (en) * | 2006-04-20 | 2007-10-03 | 华为技术有限公司 | Method and system for implementing multi-identity immediate message communication and present service of single account number |
US20150295864A1 (en) * | 2009-04-02 | 2015-10-15 | International Business Machines Corporation | Preferred name presentation in online environments |
CN104320327A (en) * | 2014-10-28 | 2015-01-28 | 深圳市多彩人生技术有限公司 | Method and system for enabling multiple roles of one account of social network to be online simultaneously |
CN105991420A (en) * | 2015-02-27 | 2016-10-05 | 深圳市兆面信息技术有限公司 | Instant communication software and social circle privacy classification isolation method and system |
CN107046496A (en) * | 2016-02-05 | 2017-08-15 | 李盈 | A kind of based role carries out method, server and the system of instant session |
CN107770035A (en) * | 2016-08-16 | 2018-03-06 | 中兴通讯股份有限公司 | A kind of method and apparatus for pushing offline notification |
CN107360083A (en) * | 2017-07-29 | 2017-11-17 | 成都牵牛草信息技术有限公司 | The method that instant messaging account contact person and default address list are preset according to the communication relations between role |
CN110384931A (en) * | 2019-06-10 | 2019-10-29 | 北京字节跳动网络技术有限公司 | A kind of polygonal color interactive approach, device, medium and electronic equipment |
Non-Patent Citations (2)
Title |
---|
ABIGAILSUNNY: "《百度经验 https://jingyan.baidu.com/article/f54ae2fc4e390e1e92b849df.html》", 9 March 2019 * |
匿名用户: "《百度知道 https://zhidao.baidu.com/question/603716244.html》", 13 October 2013 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112132942B (en) | Three-dimensional scene roaming real-time rendering method | |
CN110062004A (en) | A kind of message handling system and method based on Internet of Things fidonetFido | |
CN110582998A (en) | Group communication method and device, computer storage medium and computer equipment | |
CN102957594A (en) | Message queue-based message processing method, related device and system | |
CN108712320A (en) | Information push method and device | |
CN112994981A (en) | Method and device for adjusting time delay data, electronic equipment and storage medium | |
CN104601448A (en) | Method and device for handling virtual card | |
CN111200653B (en) | Multi-platform communication method, multi-platform communication device and intermediate server | |
CN106846033A (en) | Data processing method, device and electronic equipment | |
CN110958174A (en) | Real-time communication method and system based on multi-role account system, server and medium | |
CN114710496B (en) | Multi-node load balancing method and device | |
CN111416851A (en) | Method for session synchronization among multiple load balancers and load balancer | |
CN105978853B (en) | Session scheduling method, scheduling server and terminal | |
CN103731501A (en) | Mobile-terminal-based multi-people cooperative management method and system for backlogs | |
CN113706097A (en) | Business approval method, device, equipment and storage medium | |
CN109450885B (en) | Network data interception method and device, electronic equipment and storage medium | |
CN113419880A (en) | Cloud mobile phone root authority acquisition method, related device and computer program product | |
CN112073505A (en) | Method for unloading on cloud server, control device and storage medium | |
CN111416852A (en) | Method for session synchronization among multiple load balancers and load balancer | |
CN105391619A (en) | Method for ensuring information display sequence and electronic equipment | |
CN106603604A (en) | Method and device of triggering transaction processing motion | |
CN115589391B (en) | Instant messaging processing method, device and equipment based on block chain and storage medium | |
CN111163123A (en) | Service request processing method and device | |
CN114978786B (en) | Method and device for converting third party interface into system standard interface | |
CN116440504B (en) | Game resource processing method, device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200403 |
|
RJ01 | Rejection of invention patent application after publication |