Disclosure of Invention
Embodiments of the present invention provide a message interaction method and system, which can alleviate the problem that messages displayed in a chat interface are confused, and a publisher cannot conveniently know the reading condition of the sent messages by other members.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides a message interaction method, including:
receiving a message sent by a publisher terminal, and publishing the message in a group, wherein the group consists of at least two account numbers, and the publisher terminal corresponds to one account number;
if the identification content is detected to exist in the message, receiving confirmation information, wherein the confirmation information is sent by a receiver terminal after the message is displayed, and the receiver terminal corresponds to account numbers except one account number in the group;
and generating state information by using the counted quantity value and sending the state information to the publisher terminal, wherein the quantity value is used for representing the quantity of the receiver terminals which send the confirmation information, and the state information is used for displaying the quantity value at the corresponding position of the publisher terminal for displaying the message.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the receiving, if it is detected that the message includes the identification content, acknowledgment information includes:
if the message is detected to have the identification content, extracting a user identification from the identification content, and determining a receiver terminal pointed by the identification content according to the user identification;
and receiving confirmation information sent by the receiver terminal pointed by the identification content.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, the generating state information by using the counted quantity value and sending the state information to the publisher terminal includes:
according to the currently received confirmation information, determining a receiver terminal which has sent the confirmation information and a receiver terminal which has not sent the confirmation information in the receiver terminals which are pointed by the identification content;
and generating state information according to the quantity value, the user identification corresponding to the receiver terminal which has sent the confirmation information and the user identification of the receiver terminal which has not sent the confirmation information, and sending the state information to the publisher terminal.
In a second aspect, an embodiment of the present invention provides a message interaction method, including:
acquiring a message input by a user through a group interface, and sending the message to a group server, wherein the group consists of at least two account numbers, the publisher terminal corresponds to one of the account numbers, and the message comprises identification content;
receiving state information sent by the group server, and displaying a quantity value at a corresponding position displayed in the group interface by the message according to the state information, wherein the quantity value is used for representing the quantity of receiver terminals sending confirmation information, the confirmation information is sent to the group server by the receiver terminals after the message is displayed, and the receiver terminals correspond to account numbers except one account number in the group.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the method further includes:
according to the user identification in the state information, screening the user identification of the receiver terminal which has sent the confirmation information and the user identification of the receiver terminal which has not sent the confirmation information in the user identification of the receiver terminal which is pointed by the identification content;
and generating a skip link and displaying the skip link at a corresponding position of the message displayed in the group interface, wherein the skip link is used for pointing to an interface displaying an unread list and/or a read list, the read list is used for representing the user identifier of the receiver terminal which has sent the confirmation information, and the unread list is used for representing the user identifier of the receiver terminal which has not sent the confirmation information.
In a third aspect, an embodiment of the present invention provides a message interaction method, including:
receiving a message issued by a group server, wherein the message is sent to the group server by an issuer terminal in the group, the group consists of at least two account numbers, the issuer terminal corresponds to one of the account numbers, and the receiver terminal corresponds to account numbers except for one of the account numbers in the group;
and when the message is detected to be displayed in the current interface, sending confirmation information to the group server, wherein the confirmation information is used for counting the number of the receiver terminals displaying the message by the group server.
With reference to the third aspect, in a first possible implementation manner of the third aspect, the sending, when it is detected that the message is displayed in the current interface, confirmation information to the group server includes:
displaying a prompt icon after receiving the message;
and when the operation that the user clicks the prompt icon is detected, displaying the message in the current group interface, and sending confirmation information to the group server.
With reference to the third aspect, in a second possible implementation manner of the third aspect, the sending, when it is detected that the message is displayed in the current interface, confirmation information to the group server includes:
after receiving the message, scrolling and displaying the content of the group interface according to the sliding operation of the user;
when detecting that the content of the message appears in the current group interface, sending confirmation information to the group server.
In a fourth aspect, an embodiment of the present invention provides a message interaction system, including: the system comprises a group server, a publisher terminal and at least one receiver terminal;
the publisher terminal is used for acquiring a message input by a user through a group interface and sending the message to a group server, the group is composed of at least two account numbers, the publisher terminal corresponds to one account number, the receiver terminal corresponds to account numbers in the group except for one account number, and the message comprises identification content;
the group server is used for receiving the message sent by the publisher terminal and publishing the message in a group;
the receiver terminal is used for receiving the message issued by the group server in the group; when the message is detected to be displayed in the current interface, sending confirmation information to the group server;
the group server is further configured to receive confirmation information if the identification content in the message is detected, generate status information by using a counted quantity value and send the status information to the publisher terminal, where the quantity value is used to indicate the number of the recipient terminals that sent the confirmation information, and the status information is used for the publisher terminal to display the quantity value at a corresponding position where the message is displayed;
the publisher terminal is further configured to receive the status information sent by the group server, and display a quantity value at a corresponding position of the message displayed in the group interface according to the status information.
With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the group server is specifically configured to, if it is detected that the message includes an identifier content, extract a user identifier from the identifier content, and determine, according to the user identifier, a receiver terminal to which the identifier content points; receiving confirmation information sent by the receiver terminal pointed by the identification content;
then according to the currently received confirmation information, determining a receiver terminal which has sent the confirmation information and a receiver terminal which has not sent the confirmation information in the receiver terminals pointed by the identification content; generating state information according to the quantity value, the user identification corresponding to the receiver terminal which has sent the confirmation information and the user identification of the receiver terminal which has not sent the confirmation information, and sending the state information to the publisher terminal;
the receiver terminal is specifically configured to obtain, according to the user identifier in the state information, a user identifier of the receiver terminal that has sent the confirmation information and a user identifier of the receiver terminal that has not sent the confirmation information by screening from the user identifiers of the receiver terminals to which the identification content points; and generating a skip link and displaying the skip link at a corresponding position displayed in the group interface by the message, wherein the skip link is used for pointing to an interface displaying an unread list and/or a read list, the read list is used for representing the user identifier of the receiver terminal which has sent the confirmation information, and the unread list is used for representing the user identifier of the receiver terminal which has not sent the confirmation information.
The message interaction method and the message interaction system provided by the embodiment of the invention can automatically count the read state of the group message and report the read state back to the publisher terminal, thereby solving the problems that the messages displayed in the chat interface in the prior art are disordered and the publisher cannot conveniently know the read conditions of other members for the sent messages.
Detailed Description
In order to make the technical solutions of the present invention better understood, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments. Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or coupled. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items. It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The message interaction method provided by the embodiment of the present invention can be specifically implemented on a system as shown in fig. 1, where the system includes a group server, a publisher terminal, and at least one recipient terminal. In this embodiment, the terminal of the issuing party and the terminal of the receiving party are only terminal devices divided according to the sending and receiving order of one message, and are not limited to the hardware structure of the terminal devices, for example: the terminal 1 sends the message 1 to the group server, the terminal 2 receives the message 1 issued by the group server and displays the message 1 on a group chat interface displayed on a display unit (such as a touch screen, a display and the like) of the terminal 2, so that the terminal 1 is an issuer terminal of the message 1, and the terminal 2 is a receiver terminal of the message 1; after that, the terminal 2 sends the message 2 to the group server, and the terminal 1 receives the message 2 issued by the group server and displays the message 2 on the group chat interface displayed on the display unit (such as a touch screen, a display and the like) of the terminal 1, so that the terminal 2 is the issuer terminal of the message 2, and the terminal 1 is the receiver terminal of the message 2. Further, under the condition that multiple terminals correspond to one user account, the group server identifies terminal equipment used when the current user account logs in according to the currently received message or information.
The terminal Device disclosed in this embodiment may be implemented as a single Device, or integrated into various different terminal devices, such as a Personal Computer, a smart phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), or a Wearable Device (Wearable Device). The group server disclosed in the present embodiment may specifically be a server device for managing group-based information interaction services. The group server in this embodiment is specifically a device that includes elements such as a processor, a hard disk, a memory, a system bus, and a communication interface and is used to provide a computing service, and is implemented as a single server device or integrated into a device cluster including server devices.
An embodiment of the present invention provides a message interaction method, which may be specifically used in a group server shown in fig. 1, where as shown in fig. 2, the method includes:
and S01, receiving the message sent by the publisher terminal, and publishing the message in the group.
The group can be a temporarily established online instant chat group; or a chat group which is established after the website of the operator is registered and exists for a long time; in this embodiment, the group may be not only a chat group, a chat room, or the like, but also a short message sending and receiving group or other types of groups for performing message interaction among a plurality of user terminals. In this embodiment, the group includes at least two accounts, and the issuer terminal corresponds to one of the accounts.
The message sent by the publisher terminal may specifically be text information, picture information, a piece of audio information, a piece of video information, and the like, which are input by a user through an input device (such as a keyboard, a mouse, a microphone, a touch screen of the publisher terminal, and the like connected to the publisher terminal).
And S02, receiving confirmation information if the message is detected to have the identification content.
The identification content may specifically be a specific character, picture information, a specific piece of audio information, a specific piece of video information, or the like. If no identifying content is detected in the message, additional processing is performed after the message is published in the group.
And S03, generating state information by using the counted quantity value and sending the state information to the publisher terminal.
And the confirmation information is sent by the receiver terminal after the message is displayed, and the receiver terminal corresponds to the account except for one account in the group. The quantity value is used for representing the quantity of the receiving party terminals which send the confirmation information, and the state information is used for the issuing party terminal to display the quantity value at the corresponding position of the message. For example: as shown in fig. 3, the receiving terminal may query the display position of the message in the group chat interface and display the quantity value close to the display position, for example: the number of people who have read.
In this embodiment, the identifier content may further include a user identifier pointing to the specified user, so that the group server counts the reading condition of the message by the user pointed to by the user identifier. The specific manner of receiving the confirmation information if the identification content is detected to exist in the message may include:
and if the message is detected to have the identification content, extracting the user identification from the identification content, and determining the receiver terminal pointed by the identification content according to the user identification. And receiving confirmation information sent by the receiver terminal to which the identification content points.
The user identifier may be information such as names, nicknames, ID numbers, and the like of members in the group. For example: the group message publisher inputs the message through the terminal device (wherein the terminal device of the group message publisher can be understood as the publisher terminal) and sends the message to the group server, and includes the character "@" in the input message, and includes the name of the designated member in the group after the "@", or includes the characters used for representing the member coverage such as "all members" after the "@". After the group server broadcasts the message to all members in the group, the group server records the number of the read persons according to the received confirmation information, and adds 1 to the number of the read persons representing the current number value after receiving one piece of confirmation information. And the publisher terminal may be notified while the quantity value is refreshed each time so that the publisher terminal updates the quantity value.
Further, the user identifier in this embodiment may also be information pointing to non-group members, such as names, nicknames, ID numbers, and the like of members outside the group. The message sent by the publisher terminal to the group server may also be sent to the terminal device of the non-group member to which the user identifier points, wherein the terminal device of the non-group member may also serve as the receiver terminal. And when the terminal equipment of the non-group member sends confirmation information to the group server after displaying the message, the group server updates the quantity value according to the confirmation information sent by the terminal equipment of the non-group member.
In this embodiment, based on the user identifier pointing to the designated user in the identifier content, the group server may count the recipient terminal that has sent the confirmation information and the recipient terminal that has not sent the confirmation information, thereby determining the user that has sent the confirmation information and the user that has not sent the confirmation information, and notifying the publisher terminal. Specifically, the generating state information by using the counted quantity value and sending the state information to the publisher terminal may include:
and according to the currently received confirmation information, determining a receiver terminal which has sent the confirmation information and a receiver terminal which has not sent the confirmation information in the receiver terminals pointed by the identification content. And generating state information according to the quantity value, the user identification corresponding to the receiver terminal which has sent the confirmation information and the user identification of the receiver terminal which has not sent the confirmation information, and sending the state information to the publisher terminal.
For example: as shown in fig. 4, a portion displaying the number value in fig. 3 is specifically a connection generated by the receiving-side terminal, and the connection points to an interface for displaying a detailed information list of the number of people read/unread. And when the publisher terminal detects that the user clicks the connection operation, jumping to an interface for displaying a detailed information list of the number of the read people/the number of the unread people.
The message interaction method provided by the embodiment of the invention can automatically count the read state of the group message and report the read state back to the publisher terminal, thereby relieving the problems that the messages displayed in the chat interface in the prior art are disordered and the publisher cannot conveniently know the read conditions of other members for the sent messages.
An embodiment of the present invention further provides a message interaction method, which may be specifically used for a publisher terminal shown in fig. 1, where the method, as shown in fig. 5, includes:
and S11, acquiring the message input by the user through the group interface, and sending the message to the group server.
The group comprises at least two account numbers, the publisher terminal corresponds to one of the account numbers, and the message comprises identification content.
S12, receiving the state information sent by the group server, and displaying a quantity value at the corresponding position of the message displayed in the group interface according to the state information.
The quantity value is used for representing the quantity of the receiver terminals which send confirmation information, the confirmation information is sent to the group server by the receiver terminals after the message is displayed, and the receiver terminals correspond to the account numbers except one account number in the group.
Further, the execution flow on the publisher terminal further includes:
and the publisher terminal screens the user identification of the receiver terminal which has sent the confirmation information and the user identification of the receiver terminal which has not sent the confirmation information in the user identification of the receiver terminal which is pointed by the identification content according to the user identification in the state information.
Further, the user identification may be a name, ID number, nickname, etc. of a group member, and may also be a character representing a specific member set, such as: the @ membership, the user identification is the "membership", then the user identification points to all members in the group at this time; for another example: "@ woman commemoration", the user identification is "woman commemoration", then the user identification points to all members of the group whose gender information is "woman".
And the publisher terminal generates a jump link and displays the jump link at a corresponding position of the message displayed in the group interface.
The corresponding position may be the front end, the upper end, the lower end of the message or other areas adjacent to the display position of the message in the group interface. The skip link is used for pointing to an interface for displaying an unread list and/or a read list, the read list is used for representing the user identification of the receiver terminal which has sent the confirmation information, and the unread list is used for representing the user identification of the receiver terminal which has not sent the confirmation information. For example: as shown in fig. 4, the jump link is in the form of a character "@ N people read" and is displayed at the front end of the corresponding position of the message displayed in the group interface, after the message is broadcast to all members in the group by the group server, the group server records the number of people read according to the received confirmation information, and adds 1 to the numerical value N every time a confirmation information is received. If the user clicks the skip link, as shown in fig. 6, the display interface of the publisher terminal skips to an interface displaying the unread list and the read list; or as shown in fig. 7, in a mobile terminal with a limited screen size, such as a smart phone or a tablet computer, the unread list and the displayed read list may be displayed in different interfaces respectively, and switched back and forth by a sliding operation of the user.
The message interaction method provided by the embodiment of the invention can automatically count the read state of the group message and report the read state back to the publisher terminal, thereby relieving the problems that the messages displayed in the chat interface in the prior art are disordered and the publisher cannot conveniently know the read conditions of other members for the sent messages.
An embodiment of the present invention further provides a message interaction method, which may be specifically used for a receiver terminal shown in fig. 1, where the method, as shown in fig. 8, includes:
s21, receiving the message issued by the group server, the message is sent to the group server by the issuing terminal in the group.
The group comprises at least two account numbers, the publisher terminal corresponds to one of the account numbers, and the receiver terminal corresponds to account numbers in the group except for the account number.
And S22, when the message is detected to be displayed in the current interface, sending confirmation information to the group server.
Wherein the confirmation information is used for the group server to count the number of the receiver terminals which have displayed the message. For example: and the receiver terminal displays a prompt icon after receiving the message. When the operation that the user clicks the prompt icon is detected, the message is displayed in the current group interface, and confirmation information is sent to the group server, such as: and after the user clicks the prompt icon, the interface of the receiver terminal jumps to the group interface, and automatically turns pages to the position of the message in the group interface, so that the message is displayed in the current interface of the receiver terminal.
For another example: after receiving the message, the receiving terminal scrolls and displays the content of the group interface according to the sliding operation of the user, such as: and turning down the page group interface through the sliding operation of the user on the touch screen of the receiver terminal. When detecting that the content of the message appears in the current group interface, sending confirmation information to the group server.
The message interaction method provided by the embodiment of the invention can automatically count the read state of the group message and report the read state back to the publisher terminal, thereby relieving the problems that the messages displayed in the chat interface in the prior art are disordered and the publisher cannot conveniently know the read conditions of other members for the sent messages.
An embodiment of the present invention further provides a system as shown in fig. 1, where the system includes a group server, a publisher terminal, and at least one recipient terminal. Referring to the interaction process shown in fig. 9, wherein:
the publisher terminal is used for acquiring a message input by a user through a group interface and sending the message to a group server, the group is composed of at least two account numbers, the publisher terminal corresponds to one account number, the receiver terminal corresponds to account numbers except for one account number in the group, and the message comprises identification content.
And the group server is used for receiving the message sent by the publisher terminal and publishing the message in the group.
The receiver terminal is used for receiving the message issued by the group server in the group. And sending confirmation information to the group server when the message is detected to be displayed in the current interface.
The group server is further configured to receive confirmation information if the identification content in the message is detected, generate status information by using a counted quantity value, and send the status information to the publisher terminal, where the quantity value is used to indicate the number of the recipient terminals that sent the confirmation information, and the status information is used for the publisher terminal to display the quantity value at a corresponding position where the message is displayed.
The publisher terminal is further configured to receive the status information sent by the group server, and display a quantity value at a corresponding position of the message displayed in the group interface according to the status information.
In this embodiment, the group server is specifically configured to, if it is detected that the identification content exists in the message, extract a user identifier from the identification content, and determine, according to the user identifier, a receiver terminal to which the identification content points. And receiving confirmation information sent by the receiver terminal to which the identification content points.
And then according to the currently received confirmation information, determining a receiver terminal which has sent the confirmation information and a receiver terminal which has not sent the confirmation information in the receiver terminals pointed by the identification content. And generating state information according to the quantity value, the user identification corresponding to the receiver terminal which has sent the confirmation information and the user identification of the receiver terminal which has not sent the confirmation information, and sending the state information to the publisher terminal.
The receiver terminal is specifically configured to filter, according to the user identifier in the state information, the user identifier of the receiver terminal to which the identification content points, to obtain the user identifier of the receiver terminal that has sent the confirmation information and the user identifier of the receiver terminal that has not sent the confirmation information. And generating a skip link and displaying the skip link at a corresponding position displayed in the group interface by the message, wherein the skip link is used for pointing to an interface displaying an unread list and/or a read list, the read list is used for representing the user identifier of the receiver terminal which has sent the confirmation information, and the unread list is used for representing the user identifier of the receiver terminal which has not sent the confirmation information.
The message interaction system provided by the embodiment of the invention can automatically count the read state of the group message and report the read state back to the publisher terminal, thereby relieving the problems that the messages displayed in the chat interface in the prior art are disordered and the publisher cannot conveniently know the read conditions of other members for the sent messages.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like. The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.