CN115361353A - Information interaction method, medium, device and computing equipment - Google Patents

Information interaction method, medium, device and computing equipment Download PDF

Info

Publication number
CN115361353A
CN115361353A CN202210979205.3A CN202210979205A CN115361353A CN 115361353 A CN115361353 A CN 115361353A CN 202210979205 A CN202210979205 A CN 202210979205A CN 115361353 A CN115361353 A CN 115361353A
Authority
CN
China
Prior art keywords
message
group
interactive
identifier
client
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
Application number
CN202210979205.3A
Other languages
Chinese (zh)
Inventor
金强
陈锦海
张旭
涂亮
曹偲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Netease Cloud Music Technology Co Ltd
Original Assignee
Hangzhou Netease Cloud Music Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Netease Cloud Music Technology Co Ltd filed Critical Hangzhou Netease Cloud Music Technology Co Ltd
Priority to CN202210979205.3A priority Critical patent/CN115361353A/en
Publication of CN115361353A publication Critical patent/CN115361353A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-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/10Multimedia information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the disclosure provides an information interaction method, a medium, a device and a computing device, which relate to the technical field of instant messaging, and the information interaction method comprises the following steps: the server receives an interactive message sent by the client, wherein the interactive message is sent by the client when responding to an execution instruction of the interactive message sent by the group member; the server side delivers the interactive message to a shared virtual space, and a long connecting channel is established between the shared virtual space and the client side, so that the client side monitors the interactive message in the shared virtual space through the long connecting channel; different groups share the shared virtual space; and when the client monitors the interactive message delivered to the shared virtual space by the server, the client displays the message content of the interactive message on the group chat interface corresponding to the group identifier according to the group identifier. The method and the device can ensure the flexibility of the chat group in use and ensure the real-time of the interactive message in contact under the condition that the number of members of the chat group is continuously increased.

Description

Information interaction method, medium, device and computing equipment
Technical Field
The embodiment of the disclosure relates to the technical field of instant messaging, in particular to an information interaction method, medium, device and computing equipment.
Background
This section is intended to provide a background or context to the embodiments of the disclosure recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
With the development of network and mobile communication, the application of instant messaging tools is more and more extensive. In the instant messaging tool, users with the same hobbies or characteristics can be gathered together to carry out group chat in a chat group establishing mode, and communication and exchange among a plurality of users are facilitated conveniently and efficiently.
In the related art, a chat group is usually provided with a fixed upper limit of the number of members, and support of a larger number of members is provided for some specific chat groups, for example, the number of members that can be supported is about ten thousand. However, with the increasing number of members of a chat group, the use of chat groups is not flexible enough.
Disclosure of Invention
The present disclosure provides an information interaction method, medium, apparatus, and computing device, to solve a problem that the use of a chat group is not flexible enough under a condition that the number of members of the chat group is continuously increased.
In a first aspect of the embodiments of the present disclosure, an information interaction method is provided, which is applied to a server, and includes:
receiving an interactive message sent by a client, wherein the interactive message comprises a group identifier, and the interactive message is sent when the client responds to an execution instruction of the interactive message sent by a group member;
delivering the interactive message to a shared virtual space, wherein a long connecting channel is established between the shared virtual space and a client side, so that the client side monitors the interactive message in the shared virtual space through the long connecting channel; different groups share the shared virtual space.
In a possible implementation manner, the information interaction method further includes: receiving a request message which is sent by a client and used for acquiring the initial unread message count of a group, wherein the request message carries a group identifier of the group and a last read message identifier of the group recorded by the client; acquiring an initial unread message count of a group and a message type corresponding to the initial unread message count according to the last read message identifier and the group identifier, wherein the message type comprises a non-reminding message, an owner-oriented message and an individual-oriented message; and sending the initial unread message count of the group and the message type corresponding to the initial unread message count to the client.
In a possible implementation manner, acquiring an initial unread message count of a group and a message type corresponding to the initial unread message count according to a last read message identifier and a group identifier includes: for each group, the following steps are performed: if the message type is a non-reminding message, acquiring a first cache message list corresponding to the non-reminding message according to the group identification, wherein the first cache message list is used for caching message identifications of the latest non-reminding messages with a preset number, and the preset number is a preset multiple of the explicit message count of the client; determining the number of messages with message identifiers larger than the last read message identifier in the first cache message list as an initial unread message count; if the message type is the owner-oriented message, acquiring a second cache message list corresponding to the owner-oriented message according to the group identifier, wherein the second cache message list is used for caching the message identifier of the owner-oriented message; determining the number of messages with message identifiers facing all people's messages in the second cache message list larger than the number of messages with the last read message identifiers as an initial unread message count; if the message type is personal message oriented, determining that the message number of the personal message oriented message in the memory storing the interactive message is larger than the message number of the last read message identification as the initial unread message count.
In a possible implementation manner, the information interaction method further includes: receiving an interactive message to be deleted sent by a client, wherein the interactive message to be deleted comprises a group identifier to which the interactive message to be deleted belongs and a message identifier of the interactive message to be deleted; deleting the interactive message to be deleted; and sending a notification message for deleting the interactive message to the client, wherein the notification message carries the group identifier to which the deleted interactive message belongs and the message identifier of the deleted interactive message.
In a possible implementation manner, before receiving the interactive message sent by the client, the information interaction method further includes: and in response to the execution instruction for configuring the user authority for the group, storing the user authority configured for the group so as to allow the group members with the user authority to send out the interactive messages in the group.
In a second aspect, an embodiment of the present disclosure provides an information interaction method, which is applied to a client, and includes:
responding to an execution instruction of the interactive message sent by the group member, and sending the interactive message to the server, wherein the interactive message comprises a group identifier;
when the interactive message delivered to the shared virtual space by the server is monitored, the message content of the interactive message is displayed on a group chat interface corresponding to the group identifier according to the group identifier; the shared virtual space and the client end are provided with a long connecting channel, and different groups share the shared virtual space.
In a possible implementation manner, the information interaction method further includes: responding to an execution instruction for displaying a group list, and sending a request message for acquiring the initial unread message count of the group to a server, wherein the request message carries a group identifier of the group and a last read message identifier of the group recorded by a client; receiving an initial unread message count of a group sent by a server and a message type corresponding to the initial unread message count, wherein the message type comprises a non-reminding message, an owner-oriented message and an individual-oriented message; and displaying the initial unread message count of the group on a display interface of the group list according to the group identification and the message type of the group.
In a possible implementation manner, after monitoring an interactive message delivered by a server to a shared virtual space, the information interaction method further includes: if the interactive message is not displayed on the group chat interface, increasing the unread message count of the group corresponding to the interactive message by a preset value according to the message type of the interactive message; and if the interactive message is displayed on the group chat interface, taking the message identifier of the interactive message as the last read message identifier.
In a possible implementation manner, the information interaction method further includes: responding to an execution instruction for deleting the interactive message, and sending the interactive message to be deleted to a server, wherein the interactive message to be deleted comprises a group identifier to which the interactive message to be deleted belongs and a message identifier of the interactive message to be deleted; receiving a notification message for deleting the interactive message sent by a server, wherein the notification message carries a group identifier to which the deleted interactive message belongs and a message identifier of the deleted interactive message; if the message identifier of the deleted interactive message is less than or equal to the last read message identifier corresponding to the group identifier, maintaining the unread message count of the group identifier; and if the message identifier of the deleted interactive message is larger than the last read message identifier corresponding to the group identifier, reducing the unread message count of the group identifier by a preset value.
In a possible implementation manner, the information interaction method further includes: and monitoring interactive messages sent by other users.
In a third aspect, an embodiment of the present disclosure provides an information interaction apparatus, which is applied to a server, and the information interaction apparatus includes:
the receiving module is used for receiving the interactive message sent by the client, wherein the interactive message comprises a group identifier, and the interactive message is sent when the client responds to the execution instruction of the interactive message sent by the group member;
the delivery module is used for delivering the interactive messages to the shared virtual space, and a long connecting channel is established between the shared virtual space and the client side so that the client side can monitor the interactive messages in the shared virtual space through the long connecting channel; different groups share the shared virtual space.
In a possible implementation, the receiving module is further configured to: receiving a request message which is sent by a client and used for acquiring the initial unread message count of a group, wherein the request message carries a group identifier of the group and a last read message identifier of the group recorded by the client; the information interaction device also comprises a first processing module, a second processing module and a third processing module, wherein the first processing module is used for acquiring the initial unread message count of the group and the message type corresponding to the initial unread message count according to the last read message identifier and the group identifier, and the message type comprises a non-reminding message, an all-person oriented message and an individual oriented message; and sending the initial unread message count of the group and the message type corresponding to the initial unread message count to the client.
In a possible implementation manner, the first processing module is specifically configured to: for each group, the following steps are performed: if the message type is a non-reminding message, acquiring a first cache message list corresponding to the non-reminding message according to the group identification, wherein the first cache message list is used for caching message identifications of the nearest non-reminding messages with a preset number, and the preset number is a preset multiple of the number of explicit messages of the client; determining the number of messages with message identifiers larger than the last read message identifier in the first cache message list as an initial unread message count; if the message type is the message facing to the owner, acquiring a second cache message list corresponding to the message facing to the owner according to the group identification, wherein the second cache message list is used for caching the message identification facing to the message facing to the owner; determining that the number of messages with message identifiers facing all messages in the second cache message list is larger than the number of messages with message identifiers which are read at last as an initial unread message count; and if the message type is personal-oriented message, determining that the number of messages of which the message identifications of the personal-oriented messages in the memory for storing the interactive messages are larger than the message identifications of the last read messages is the initial unread message count.
In a possible implementation, the receiving module is further configured to: receiving an interactive message to be deleted sent by a client, wherein the interactive message to be deleted comprises a group identifier to which the interactive message to be deleted belongs and a message identifier of the interactive message to be deleted; the information interaction device also comprises a second processing module used for deleting the interaction information to be deleted; and sending a notification message for deleting the interactive message to the client, wherein the notification message carries the group identifier to which the deleted interactive message belongs and the message identifier of the deleted interactive message.
In a possible implementation manner, the information interaction device further comprises a storage module, which is used for storing the user authority configured for the group in response to an execution instruction for configuring the user authority for the group before the receiving module receives the interaction message sent by the client, so as to allow the group member with the user authority to send out the interaction message in the group.
In a fourth aspect, an embodiment of the present disclosure provides an information interaction apparatus, which is applied to a client, where the information interaction apparatus includes:
the sending module is used for responding to an execution instruction of the interactive message sent by the group member and sending the interactive message to the server, and the interactive message comprises a group identifier;
the processing module is used for displaying the message content of the interactive message on a group chat interface corresponding to the group identifier according to the group identifier when the interactive message delivered to the shared virtual space by the server is monitored; the shared virtual space and the client end are provided with a long connecting channel, and different groups share the shared virtual space.
In one possible implementation, the sending module is further configured to: responding to an execution instruction for displaying a group list, and sending a request message for acquiring the initial unread message count of the group to a server, wherein the request message carries a group identifier of the group and a last read message identifier of the group recorded by a client; the information interaction device also comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving the initial unread message count of the group sent by the server and the message types corresponding to the initial unread message count, and the message types comprise non-reminding messages, all-person-oriented messages and personal-oriented messages; and the processing module is also used for displaying the initial unread message count of the group on a display interface of the group list according to the group identification and the message type of the group.
In one possible implementation, the processing module is further configured to: after monitoring the interactive message delivered to the shared virtual space by the server, if the interactive message is not displayed on the group chat interface, increasing the unread message count of the group corresponding to the interactive message by a preset value according to the message type of the interactive message; and if the interactive message is displayed on the group chat interface, taking the message identifier of the interactive message as the last read message identifier.
In one possible implementation, the sending module is further configured to: responding to an execution instruction for deleting the interactive message, and sending the interactive message to be deleted to a server, wherein the interactive message to be deleted comprises a group identifier to which the interactive message to be deleted belongs and a message identifier of the interactive message to be deleted; the processing module is further configured to receive a notification message for deleting the interactive message sent by the server, where the notification message carries the group identifier to which the deleted interactive message belongs and the message identifier of the deleted interactive message; if the message identifier of the deleted interactive message is less than or equal to the last read message identifier corresponding to the group identifier, maintaining the unread message count of the group identifier; and if the message identifier of the deleted interactive message is larger than the last read message identifier corresponding to the group identifier, reducing the unread message count of the group identifier by a preset value.
In one possible implementation, the processing module is further configured to: and monitoring interactive messages sent by other users.
In a fifth aspect, an embodiment of the present disclosure provides an information interaction system, including: a server and a client; a server, configured to execute the information interaction method according to the first aspect of the present disclosure; the client is used for executing the information interaction method according to the second aspect of the disclosure.
In a sixth aspect, an embodiment of the present disclosure provides a computing device, including: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored by the memory to implement the information interaction method according to the first aspect or the second aspect of the disclosure.
In a seventh aspect, an embodiment of the present disclosure provides a storage medium, where computer program instructions are stored in the storage medium, and when the computer program instructions are executed, the information interaction method according to the first aspect or the second aspect of the present disclosure is implemented.
In an eighth aspect, the present disclosure provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the information interaction method according to the first aspect or the second aspect of the present disclosure is implemented.
According to the information interaction method, the medium, the device and the computing equipment, the interactive message sent by the client is delivered to the shared virtual space through the server, and the long connecting channel is established between the shared virtual space and the client, so that when the client monitors the interactive message delivered to the shared virtual space by the server, the message content of the interactive message is displayed on the group chat interface corresponding to the group identifier according to the group identifier. According to the method and the system, different groups share one shared virtual space, the shared virtual space and the client side establish one long connecting channel, interactive messages under the same shared virtual space can be guaranteed to reach users in real time, and due to the fact that the shared virtual space does not have a fixed upper limit of the number of people, the method and the system can guarantee the using flexibility of the chat group and guarantee the real-time contact of the interactive messages under the condition that the number of members of the chat group is continuously increased.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present disclosure will become readily apparent from the following detailed description, which proceeds with reference to the accompanying drawings. Several embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
fig. 1 is a schematic view of an application scenario provided in the embodiment of the present disclosure;
fig. 2 is a schematic signaling interaction diagram of an information interaction method according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a group chat list included in a cloud circle according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram illustrating delivery of an interactive message in a cloud circle according to an embodiment of the present disclosure;
fig. 5 is a schematic signaling interaction diagram of an information interaction method according to another embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an information interaction apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an information interaction apparatus according to another embodiment of the present disclosure;
FIG. 8 is a schematic diagram of an information interaction system provided by an embodiment of the present disclosure;
FIG. 9 is a schematic illustration of a storage medium provided by an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of a computing device according to an embodiment of the present disclosure.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
The principles and spirit of the present disclosure will be described below with reference to several exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the present disclosure, and are not intended to limit the scope of the present disclosure in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software. The data referred to in the present disclosure may be data authorized by a user or sufficiently authorized by each party, and the embodiments/examples of the present disclosure may be combined with each other.
According to the embodiment of the disclosure, a method, a medium, a device and a computing device for information interaction are provided.
In this context, it is to be understood that the terms:
cloud circle: in an interest aggregation scene in a cloud music product, a user can join a cloud circle to become a cloud circle member, and a plurality of groups (namely chat groups) can be created under the cloud circle for interactive communication among the cloud circle members;
group (2): a chat scene for communication among a plurality of users through different types of messages such as texts, pictures and the like;
message unread count: a difference between a total number of messages in the group and a number of messages read by the group members;
@ count: the unread number of @ messages received by the group members, the @ messages comprising owner-oriented messages (i.e. @ All messages) and personal-oriented messages (i.e. @ personal messages).
Furthermore, the number of any elements in the drawings is intended to be illustrative and not restrictive, and any nomenclature is used for distinction only and not for any restrictive meaning.
The principles and spirit of the present disclosure are explained in detail below with reference to several representative embodiments of the present disclosure.
Summary of The Invention
The inventor finds that the chat group products commonly used in the industry at present are generally provided with a fixed upper limit of the number of people, and even if the members in the chat group are not necessarily on line at the same time, the existence of an ultra-large group cannot be supported. Support is provided for a large number of members for some specific chat groups, such as members that can be supported on the order of ten thousand. However, when the number of members of a chat group is increasing, the number of chat groups is limited, and thus the chat group is not flexibly used. In addition, aiming at the message delivered in the chat group, the writing mode is a write diffusion mode, and each chat group member has a message record to be received. And the unread message count of the chat group members in the chat group is maintained through the server. After the server delivers the message to the client, the client receives the read message and then informs the server of updating the state of the corresponding message and the count of the unread message. However, for an ultra-large group, as the number of members in the chat group increases, on one hand, the storage cost of the server increases, and on the other hand, as the number of members in the chat group increases, the timeliness of updating the unread count of each member in the chat group also causes a problem, and thus, the service cannot be stably and efficiently provided.
Based on the problems, the present disclosure provides an information interaction method, medium, device and computing device, which implement a super-large-scale chat group by sharing a virtual space, break through the upper limit of the number of people in the conventional chat group, and can ensure the flexibility of the chat group in use and the real-time of message access under the condition that the number of members in the chat group is continuously increased; and the unread message count and the @ count of the super-large scale chat group are realized through a combination mechanism of the client and the server, the unread message count and the @ count can be updated in time, the storage cost of the server is reduced, and stable and efficient service is provided.
Application scene overview
An application scenario of the scheme provided by the present disclosure is first illustrated with reference to fig. 1. Fig. 1 is a schematic view of an application scenario provided by an embodiment of the present disclosure, as shown in fig. 1, in the application scenario, a user enters a cloud circle through a mobile phone 101, the user is a member of the cloud circle, the mobile phone 101 acquires and displays a group chat list included in the cloud circle from a server 102, and each group chat in the group chat list displays an unread message count and an @ count. The user enters a group chat in the cloud circle to perform message interaction, specifically, the user sends an interactive message in the group chat interface, and the mobile phone 101 sends the interactive message to the server 102. The server 102 delivers the interactive message to the shared virtual space, and when the mobile phone 101 monitors the interactive message delivered to the shared virtual space by the server 102, the message content of the interactive message is displayed on the group chat interface. Wherein there is no upper limit to the number of cloud circle members.
It should be noted that fig. 1 is only a schematic diagram of an application scenario provided by the embodiment of the present disclosure, and the embodiment of the present disclosure does not limit the devices included in fig. 1, nor does it limit the positional relationship between the devices in fig. 1. For example, in the application scenario shown in fig. 1, a data storage device may be further included, and the data storage device may be an external memory with respect to the server 102 or an internal memory integrated in the server 102.
Exemplary method
A method for information interaction according to an exemplary embodiment of the present disclosure is described below with reference to fig. 2 in conjunction with the application scenario of fig. 1. It should be noted that the above application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present disclosure, and the embodiments of the present disclosure are not limited in this respect. Rather, embodiments of the present disclosure may be applied to any scenario where applicable.
First, an information interaction method is described by a specific embodiment.
Fig. 2 is a schematic signaling interaction diagram of an information interaction method according to an embodiment of the present disclosure. The method of the disclosed embodiments may be applied in a computing device, which may be a server or a cluster of servers, etc. As shown in fig. 2, the method of the embodiment of the present disclosure includes:
s201, the client responds to an execution instruction of the interactive message sent by the group member and sends the interactive message to the server, and the interactive message comprises a group identifier.
Accordingly, the server receives the interactive message sent by the client.
In the embodiment of the present disclosure, for example, a group member, such as a cloud circle member, may enter a group chat in a group chat list included in a cloud circle to perform message interaction. Fig. 3 is a schematic diagram of group chat lists contained in a cloud circle, and as shown in fig. 3, a presentation form of the group chat list contained in the cloud circle ABC on a client is shown, the group chat list of a discussion group exists under the cloud circle ABC, and the group chat list contains 4 group chats, namely, group chat 1 to group chat 4. The cloud circle members can enter any group chat to carry out message interaction.
In this step, after the group members of the group chat send out the interactive message, the client sends the interactive message to the server in response to the execution instruction that the group members send out the interactive message, where the interactive message includes a group identifier, and the group identifier is a group chat (Identification, ID) and is used to uniquely identify a group chat (group). It will be appreciated that each interactive message has a corresponding group identification. Accordingly, the server receives the interactive message sent by the client.
S202, the server side delivers the interactive messages to a shared virtual space, and a long connecting channel is established between the shared virtual space and the client side, so that the client side monitors the interactive messages in the shared virtual space through the long connecting channel; different groups share the shared virtual space.
In this step, the shared virtual space is, for example, a real-time chat room. In order to ensure that the interactive messages of different groups can reach in real time and display and remind in different groups, different groups share the shared virtual space, a long connecting channel is established between the shared virtual space and the client, different groups share the same long connecting channel, the interactive messages can reach conveniently, and meanwhile, the problem of connection maintenance when a plurality of long connections exist can be avoided. In addition, the shared virtual space does not have a fixed upper limit on the number of people. Illustratively, different groups use a real-time chat room for correspondence, and for interactive messages in the same chat room, the interactive messages can be guaranteed to reach the user in real time. The group itself is abstracted as a service entity, and a mapping relation is established with the corresponding group through the group identification. Fig. 4 is a schematic diagram illustrating delivery of an interactive message in a cloud circle according to an embodiment of the present disclosure, as shown in fig. 4, a long connection channel is established between a client and a chat room of a server, and the client monitors the interactive message in the chat room through the long connection channel. The cloud circle includes groups such as group 1 through group n. The client responds to the execution instruction of the interactive message sent by the group members in different groups and sends the interactive message to the server. The server stores the interactive message, delivers the interactive message to the chat room, namely delivers the interactive message to the long connecting channel, so that the client monitors the interactive message in the chat room through the long connecting channel.
S203, when the client monitors the interactive message delivered to the shared virtual space by the server, the client displays the message content of the interactive message on the group chat interface corresponding to the group identifier according to the group identifier.
It can be understood that the interactive message delivered to the shared virtual space by the server includes a group identifier, and the group identifier is used to identify a group to which the interactive message belongs, so that when the client monitors the interactive message delivered to the shared virtual space by the server, the client can display the message content of the interactive message on the group chat interface corresponding to the group identifier according to the group identifier.
According to the information interaction method provided by the embodiment of the disclosure, the interactive message sent by the client is delivered to the shared virtual space through the server, and the shared virtual space and the client establish a long connection channel, so that when the client monitors the interactive message delivered to the shared virtual space by the server, the message content of the interactive message is displayed on the group chat interface corresponding to the group identifier according to the group identifier. In the embodiment of the disclosure, different groups share one shared virtual space, and the shared virtual space and the client establish one long connection channel, so that for interactive messages in the same shared virtual space, the interactive messages can reach users in real time.
On the basis of the foregoing embodiment, optionally, before the server receives the interactive message sent by the client, the information interaction method provided in the embodiment of the present disclosure may further include: and the server side responds to the execution instruction for configuring the user authority for the group, and stores the user authority configured for the group so as to allow the group members with the user authority to send out the interactive messages in the group.
Exemplarily, the cloud circle users and the group users perform association mapping, and simultaneously support that all users in the cloud circle speak in different groups, and also support that exclusive user permissions are configured for different groups, such as only allowing users with corresponding permissions to speak in corresponding groups. And the server side responds to the execution instruction for configuring the user permission to the group and stores the user permission configured to the group. In addition, visibility rights of interactive messages between different groups can be handled in isolation through additional fields of the interactive messages.
On the basis of the foregoing embodiment, optionally, the information interaction method provided in the embodiment of the present disclosure may further include: the client monitors the interactive messages sent by other users.
It can be understood that, when the client sends the interactive message to the server in response to the execution instruction of the interactive message sent by the current user, the client may monitor the interactive message sent by other users at the same time, and display the message content of the interactive message sent by other users on the group chat interface.
Fig. 5 is a schematic signaling interaction diagram of an information interaction method according to another embodiment of the present disclosure. On the basis of the above embodiments, the embodiments of the present disclosure further illustrate how to perform information exchange. As shown in fig. 5, a method of an embodiment of the present disclosure may include:
s501, the client responds to an execution instruction for displaying the group list, and sends a request message for acquiring the initial unread message count of the group to the server, wherein the request message carries the group identifier of the group and the last read message identifier of the group recorded by the client.
Correspondingly, the server receives a request message sent by the client for acquiring the initial unread message count of the group.
It can be understood that on the basis of ensuring that the interactive message reaches the user in real time, unread counting of user dimensions and reminding capability of @ counting based on a chat scene also need to be realized. Considering that the number of the group members in an ultra-large scale exists in group chat, the problems of large maintenance data volume, weak counting updating real-time performance and the like exist in counting updating by directly adopting the server side in counting maintenance, and therefore, the counting calculation is carried out in a mode of matching the client side and the server side in counting. The client side obtains the unread count corresponding to each group which currently exists from the server side every time when the group list is opened, namely, the client side responds to an execution instruction for displaying the group list and sends a request message for obtaining the initial unread message count of the group to the server side, wherein the request message carries the group identification of the group and the last read message identification of the group recorded by the client side. Correspondingly, the server receives a request message sent by the client for acquiring the initial unread message count of the group.
S502, the server side obtains the initial unread message count of the group and the message type corresponding to the initial unread message count according to the last read message identifier and the group identifier.
Wherein the message types include non-alert messages, owner-oriented messages, and personal-oriented messages.
In this step, after receiving a request message sent by a client and used for acquiring an initial unread message count of a group, a server may acquire the initial unread message count of the group and a message type corresponding to the initial unread message count according to a group identifier of the group carried by the request message and a last read message identifier of the group recorded by the client.
Further, optionally, the obtaining, by the server, the initial unread message count of the group and the message type corresponding to the initial unread message count according to the last read message identifier and the group identifier may include: for each group, the following steps are performed: if the message type is a non-reminding message, acquiring a first cache message list corresponding to the non-reminding message according to the group identification, wherein the first cache message list is used for caching message identifications of the latest non-reminding messages with a preset number, and the preset number is a preset multiple of the explicit message count of the client; determining the number of messages with message identifiers larger than the last read message identifier in the first cache message list as an initial unread message count; if the message type is the owner-oriented message, acquiring a second cache message list corresponding to the owner-oriented message according to the group identifier, wherein the second cache message list is used for caching the message identifier of the owner-oriented message; determining the number of messages with message identifiers facing all people's messages in the second cache message list larger than the number of messages with the last read message identifiers as an initial unread message count; and if the message type is personal-oriented message, determining that the number of messages of which the message identifications of the personal-oriented messages in the memory for storing the interactive messages are larger than the message identifications of the last read messages is the initial unread message count.
Illustratively, the server does not maintain its unread count for each user, but instead maintains a list of new messages as a whole. Specifically, firstly, a globally unique and monotonically increasing interactive message ID is generated for each interactive message in the group; the interactive message ID is implemented, for example, in a home key self-increment ID manner based on the underlying database. Secondly, while performing database persistent storage on each interactive message, the server maintains a limited-length latest message list ordered cache, taking the message type as a non-reminding message as an example, that is, maintains a first cache message list for caching message identifiers of the latest interactive messages with a preset number (that is, the length of the cache message list), where the preset number (that is, the length of the cache message list) is, for example, 1.5 times of the number of explicit messages of the client. Considering the status behaviors of the interactive message, such as passive deletion (for example, the interactive message contains sensitive content and needs to be deleted), the length of the message list needs to be redundantly cached, and the problem of inconsistent message counts is avoided.
In this embodiment, if the message type is a non-alert message, the server performs calculation according to the first cache message list corresponding to each group, searches for a sorting position of the last read message identifier of the group recorded by the client in the first cache message list, and determines that the number of messages in the first cache message list, in which the message identifiers are greater than the last read message identifier, is an initial unread message count, that is, obtains an initial unread message count in the current usage cycle. If the message type is the message facing to the owner, the server side acquires a second cache message list corresponding to the message facing to the owner according to the group identification; determining the number of messages with message identifiers facing all people's messages in the second cache message list larger than the number of messages with the last read message identifiers as an initial unread message count; if the message type is personal-oriented message, the memory storing the interactive message is, for example, a database, the server performs offset query through the database according to the group identifier, and determines that the number of messages, which are larger than the number of the messages identified by the last read message and oriented to the personal message in the memory storing the interactive message, is the initial unread message count.
S503, the server side sends the initial unread message count of the group and the message type corresponding to the initial unread message count to the client side.
Correspondingly, the client receives the initial unread message count of the group sent by the server and the message type corresponding to the initial unread message count.
In this step, after obtaining the initial unread message count of the group and the message type corresponding to the initial unread message count, the server may send the initial unread message count of the group and the message type corresponding to the initial unread message count to the client. Correspondingly, the client receives the initial unread message count of the group sent by the server and the message type corresponding to the initial unread message count.
S504, the client displays the initial unread message count of the group on the display interface of the group list according to the group identification and the message type of the group.
In this step, after receiving the initial unread message count of the group and the message type corresponding to the initial unread message count sent by the server, the client may display the initial unread message count of the interactive messages corresponding to different message types on each group in the display interface of the group list according to the group identifier and the message type of the group. For example, an initial unread message count for non-alert messages, an initial unread message count for all messages, and an initial unread message count for personal messages are displayed on a group.
Further, optionally, after the client monitors the interactive message delivered to the shared virtual space by the server, the information interaction method provided by the embodiment of the present disclosure may further include: if the interactive message is not displayed on the group chat interface, the client increases the unread message count of the group corresponding to the interactive message by a preset value according to the message type of the interactive message; and if the interactive message is displayed on the group chat interface, the client takes the message identifier of the interactive message as the last read message identifier.
It can be understood that, after the client receives each interactive message sent by the server and performs local exposure display (i.e., display on the group chat interface) on the interactive message, the client needs to use the message identifier of the interactive message as a last read message identifier, i.e., a last read message identifier of the local record group of the client. When the server side issues a new interactive message and the client side is not exposed locally (i.e. not displayed in the group chat interface), the client side increases the unread message count of the group corresponding to the interactive message by a preset value according to the message type of the interactive message, i.e. the client side adds the unread count locally, wherein the preset value is 1 for example.
And S505, the client responds to the execution instruction of the interactive message sent by the group member and sends the interactive message to the server, wherein the interactive message comprises the group identifier.
Accordingly, the server receives the interactive message sent by the client.
For a detailed description of this step, reference may be made to the description related to S201 in the embodiment shown in fig. 2, and details are not described here.
S506, the server side delivers the interactive messages to a shared virtual space, and a long connecting channel is established between the shared virtual space and the client side, so that the client side monitors the interactive messages in the shared virtual space through the long connecting channel; different groups share the shared virtual space.
For a detailed description of this step, reference may be made to the related description of S202 in the embodiment shown in fig. 2, and details are not repeated here.
And S507, when the client monitors the interactive message delivered to the shared virtual space by the server, displaying the message content of the interactive message on the group chat interface corresponding to the group identifier according to the group identifier.
For a detailed description of this step, reference may be made to the related description of S203 in the embodiment shown in fig. 2, and details are not repeated here.
S508, the client responds to the execution instruction for deleting the interactive message and sends the interactive message to be deleted to the server, wherein the interactive message to be deleted comprises the group identifier to which the interactive message to be deleted belongs and the message identifier of the interactive message to be deleted.
Correspondingly, the server receives the interactive message to be deleted, which is sent by the client.
Illustratively, after a group member deletes an interactive message in the group chat interface, the client sends the interactive message to be deleted to the server in response to an execution instruction for deleting the interactive message, where the interactive message to be deleted includes a group identifier to which the interactive message to be deleted belongs and a message identifier of the interactive message to be deleted. Accordingly, the server receives the interactive message to be deleted, which is sent by the client.
S509, the server deletes the interactive message to be deleted.
In this step, the server may delete the interactive message to be deleted from the stored interactive message list according to the group identifier to which the interactive message to be deleted belongs and the message identifier of the interactive message to be deleted.
S510, the server side sends a notification message for deleting the interactive message to the client side, and the notification message carries the group identifier to which the deleted interactive message belongs and the message identifier of the deleted interactive message.
Correspondingly, the client receives the notification message of deleting the interactive message sent by the server.
In this step, after deleting the interactive message to be deleted, the server sends a notification message for deleting the interactive message to the client, and accordingly, the client receives the notification message for deleting the interactive message sent by the server.
S511, if the message identifier of the deleted interactive message is less than or equal to the last read message identifier corresponding to the group identifier, the client maintains the unread message count of the group identifier.
It can be understood that, when the client receives the notification message for deleting the interactive message sent by the server, the last read message identifier corresponding to the group identifier is compared with the message identifier of the deleted interactive message, and if the message identifier of the deleted interactive message is less than or equal to the last read message identifier corresponding to the group identifier, the client maintains the unread message count of the group identifier, that is, keeps the unread message count.
S512, if the message identifier of the deleted interactive message is larger than the last read message identifier corresponding to the group identifier, the client reduces the unread message count of the group identifier by a preset value.
In this step, the client compares the last read message identifier corresponding to the group identifier with the message identifier of the deleted interactive message, and if the message identifier of the deleted interactive message is greater than the last read message identifier corresponding to the group identifier, the client decreases the unread message count of the group identifier by a preset value, such as 1.
It should be noted that, in the embodiment of the present disclosure, the execution sequence of the steps S501, S505, and S508 is not limited.
According to the information interaction method provided by the embodiment of the disclosure, the interactive message sent by the client is delivered to the shared virtual space through the server, and the shared virtual space and the client establish a long connection channel, so that when the client monitors the interactive message delivered to the shared virtual space by the server, the message content of the interactive message is displayed on the group chat interface corresponding to the group identifier according to the group identifier. In the embodiment of the disclosure, different groups share one shared virtual space, the shared virtual space and the client establish one long connection channel, and the shared virtual space has no fixed upper limit of the number of people, so that the flexibility of the chat group can be ensured under the condition that the number of members of the chat group is continuously increased, and the real-time performance of the interactive message touch is ensured. On the basis, through a combination mechanism of the client and the server, the unread messages of different message types are counted, and the unread messages can be updated in time, so that the storage cost of the server is reduced, and stable and efficient service is provided.
Exemplary devices
Having described the media of the exemplary embodiments of the present disclosure, the information interaction device of the exemplary embodiments of the present disclosure will next be described with reference to fig. 6 and 7. The apparatus according to the exemplary embodiment of the present disclosure may implement each process in the foregoing information interaction method embodiment, and achieve the same function and effect.
Fig. 6 is a schematic structural diagram of an information interaction device according to an embodiment of the present disclosure, which is applied to a server. As shown in fig. 6, the information interaction apparatus 600 according to the embodiment of the present disclosure includes: a receiving module 601 and a delivery module 602. Wherein:
the receiving module 601 is configured to receive an interactive message sent by a client, where the interactive message includes a group identifier, and the interactive message is sent by the client when the client responds to an execution instruction of the interactive message sent by a group member.
A delivery module 602, configured to deliver the interactive message to a shared virtual space, where a long connection channel is established between the shared virtual space and the client, so that the client monitors the interactive message in the shared virtual space through the long connection channel; different groups share the shared virtual space.
In a possible implementation, the receiving module 601 may further be configured to: receiving a request message which is sent by a client and used for acquiring the initial unread message count of a group, wherein the request message carries a group identifier of the group and a last read message identifier of the group recorded by the client; the information interaction device further comprises a first processing module 603, configured to obtain an initial unread message count of the group and a message type corresponding to the initial unread message count according to the last read message identifier and the group identifier, where the message type includes a non-reminder message, an owner-oriented message, and an individual-oriented message; and sending the initial unread message count of the group and the message type corresponding to the initial unread message count to the client.
In a possible implementation, the first processing module 603 may specifically be configured to: for each group, the following steps are performed: if the message type is a non-reminding message, acquiring a first cache message list corresponding to the non-reminding message according to the group identification, wherein the first cache message list is used for caching message identifications of the nearest non-reminding messages with a preset number, and the preset number is a preset multiple of the number of explicit messages of the client; determining the number of messages with message identifiers larger than the last read message identifier in the first cache message list as an initial unread message count; if the message type is the owner-oriented message, acquiring a second cache message list corresponding to the owner-oriented message according to the group identifier, wherein the second cache message list is used for caching the message identifier of the owner-oriented message; determining that the number of messages with message identifiers facing all messages in the second cache message list is larger than the number of messages with message identifiers which are read at last as an initial unread message count; and if the message type is personal-oriented message, determining that the number of messages of which the message identifications of the personal-oriented messages in the memory for storing the interactive messages are larger than the message identifications of the last read messages is the initial unread message count.
In a possible implementation, the receiving module 601 may further be configured to: receiving an interactive message to be deleted sent by a client, wherein the interactive message to be deleted comprises a group identifier to which the interactive message to be deleted belongs and a message identifier of the interactive message to be deleted; the information interaction device further comprises a second processing module 604, configured to delete an interaction message to be deleted; and sending a notification message for deleting the interactive message to the client, wherein the notification message carries the group identifier to which the deleted interactive message belongs and the message identifier of the deleted interactive message.
In a possible implementation manner, the information interaction apparatus further includes a storage module 605, configured to store the user permission configured for the group in response to the execution instruction for configuring the user permission for the group before the receiving module receives the interaction message sent by the client, so as to allow the group member possessing the user permission to send out the interaction message in the group.
The apparatus of the embodiment of the present disclosure may be configured to execute the scheme of the server in any method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 7 is a schematic structural diagram of an information interaction device according to another embodiment of the present disclosure, which is applied to a client. As shown in fig. 7, an information interaction apparatus 700 according to an embodiment of the present disclosure includes: a sending module 701 and a processing module 702. Wherein:
the sending module 701 is configured to send an interactive message to the server in response to an execution instruction of the interactive message sent by the group member, where the interactive message includes the group identifier.
The processing module 702 is configured to, when monitoring an interactive message delivered by a server to a shared virtual space, display, according to a group identifier, a message content of the interactive message on a group chat interface corresponding to the group identifier; the shared virtual space and the client end are provided with a long connecting channel, and different groups share the shared virtual space.
In a possible implementation, the sending module 701 may further be configured to: responding to an execution instruction for displaying the group list, and sending a request message for acquiring the initial unread message count of the group to a server, wherein the request message carries a group identifier of the group and a last read message identifier of the group recorded by a client; the information interaction device further includes a receiving module 703, configured to receive an initial unread message count of a group sent by a server and a message type corresponding to the initial unread message count, where the message type includes a non-reminder message, an owner-oriented message, and an individual-oriented message; the processing module 702 may be further configured to display an initial unread message count of the group on a display interface of the group list according to the group identifier and the message type of the group.
In one possible implementation, the processing module 702 may be further configured to: after monitoring the interactive message delivered to the shared virtual space by the server, if the interactive message is not displayed on the group chat interface, increasing the unread message count of the group corresponding to the interactive message by a preset value according to the message type of the interactive message; and if the interactive message is displayed on the group chat interface, taking the message identifier of the interactive message as the last read message identifier.
In a possible implementation, the sending module 701 may further be configured to: responding to an execution instruction for deleting the interactive message, and sending the interactive message to be deleted to a server, wherein the interactive message to be deleted comprises a group identifier to which the interactive message to be deleted belongs and a message identifier of the interactive message to be deleted; the processing module 702 is further configured to receive a notification message for deleting the interactive message sent by the server, where the notification message carries a group identifier to which the deleted interactive message belongs and a message identifier of the deleted interactive message; if the message identifier of the deleted interactive message is less than or equal to the last read message identifier corresponding to the group identifier, maintaining the unread message count of the group identifier; and if the message identifier of the deleted interactive message is larger than the last read message identifier corresponding to the group identifier, reducing the unread message count of the group identifier by a preset value.
In one possible implementation, the processing module 702 may be further configured to: and monitoring the interactive messages sent by other users.
The apparatus of the embodiment of the present disclosure may be configured to execute the scheme of the client in any method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 8 is a schematic diagram of an information interaction system according to an embodiment of the present disclosure, and as shown in fig. 8, a business processing system 800 includes a server 801 and a client 802, and the server 801 is in communication connection with the client 802. The server 801 may adopt the structure of the embodiment of the apparatus in fig. 6, and accordingly, may execute the technical solution in the embodiment in fig. 2 or fig. 5, and the implementation principle and the technical effect are similar, which are not described herein again. The client 802 may adopt the structure of the embodiment of the apparatus in fig. 7, and accordingly, may execute the technical solution in the embodiment of fig. 2 or fig. 5, which has similar implementation principle and technical effect, and is not described herein again.
Exemplary Medium
Having described the method of the exemplary embodiment of the present disclosure, next, a storage medium of the exemplary embodiment of the present disclosure will be described with reference to fig. 9.
Fig. 9 is a schematic diagram of a storage medium according to an embodiment of the disclosure. Referring to fig. 9, a storage medium 900 stores therein a program product for implementing the above method according to an embodiment of the present disclosure, which may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. The readable signal medium may also be any readable medium other than a readable storage medium.
Program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN).
Exemplary computing device
Having described the methods, media, and apparatus of the exemplary embodiments of the present disclosure, a computing device of the exemplary embodiments of the present disclosure is next described with reference to fig. 10.
The computing device 1000 shown in fig. 10 is only one example and should not impose any limitations on the functionality or scope of use of embodiments of the disclosure.
Fig. 10 is a schematic structural diagram of a computing device provided in an embodiment of the present disclosure, and as shown in fig. 10, the computing device 1000 is represented in the form of a general-purpose computing device. Components of computing device 1000 may include, but are not limited to: the at least one processing unit 1001 and the at least one storage unit 1002 are connected to a bus 1003 that connects different system components (including the processing unit 1001 and the storage unit 1002). Illustratively, the processing unit 1001 may be embodied as a processor, the storage unit 1002 stores computer-executable instructions, and the processing unit 1001 executes the computer-executable instructions stored by the storage unit 1002 to implement the information interaction method described above.
The bus 1003 includes a data bus, a control bus, and an address bus.
The storage unit 1002 may include readable media in the form of volatile memory, such as Random Access Memory (RAM) 10021 and/or cache memory 10022, and may further include readable media in the form of non-volatile memory, such as Read Only Memory (ROM) 10023.
The storage unit 1002 may also include a program/utility 10025 having a set (at least one) of program modules 10024, such program modules 10024 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Computing device 1000 may also communicate with one or more external devices 1004 (e.g., keyboard, pointing device, etc.). Such communication may occur via input/output (I/O) interface 1005. Moreover, computing device 1000 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through network adapter 1006. As shown in fig. 10, network adapter 1006 communicates with the other modules of computing device 1000 via bus 1003. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computing device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the information interaction device are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module, in accordance with embodiments of the present disclosure. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Further, while the operations of the disclosed methods are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
While the spirit and principles of the present disclosure have been described with reference to several particular embodiments, it is to be understood that the present disclosure is not limited to the particular embodiments disclosed, nor is the division of aspects, which is for convenience only as the features in such aspects may not be combined to benefit. The disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (10)

1. An information interaction method is applied to a server side, and comprises the following steps:
receiving an interactive message sent by a client, wherein the interactive message comprises a group identifier, and the interactive message is sent when the client responds to a group member to send an execution instruction of the interactive message;
delivering the interactive message to a shared virtual space, wherein the shared virtual space and the client establish a long connecting channel so that the client monitors the interactive message in the shared virtual space through the long connecting channel; different groups share the shared virtual space.
2. The information interaction method of claim 1, further comprising:
receiving a request message sent by the client for acquiring an initial unread message count of a group, wherein the request message carries a group identifier of the group and a last read message identifier of the group recorded by the client;
according to the last read message identification and the group identification, obtaining an initial unread message count of the group and a message type corresponding to the initial unread message count, wherein the message type comprises a non-reminding message, an owner-oriented message and an individual-oriented message;
and sending the initial unread message count of the group and the message type corresponding to the initial unread message count to the client.
3. The information interaction method according to claim 2, wherein the obtaining an initial unread message count of the group and a message type corresponding to the initial unread message count according to the last read message identifier and the group identifier comprises:
for each group, the following steps are performed:
if the message type is a non-reminding message, acquiring a first cache message list corresponding to the non-reminding message according to the group identification, wherein the first cache message list is used for caching message identifications of the latest non-reminding messages with a preset number, and the preset number is a preset multiple of the explicit message count of the client; determining the number of messages with message identifiers larger than the last read message identifier in the first cache message list as the initial unread message count;
if the message type is the owner-oriented message, acquiring a second cache message list corresponding to the owner-oriented message according to the group identifier, wherein the second cache message list is used for caching the message identifier of the owner-oriented message; determining that the number of messages with message identifiers facing all messages in the second cache message list larger than the number of messages with the last read message identifiers is the initial unread message count;
and if the message type is personal-oriented message, determining that the number of messages of which the message identifications facing to the personal message in the memory storing the interactive message are larger than the message identifications of the last read message is the initial unread message count.
4. The information interaction method according to any one of claims 1 to 3, further comprising:
receiving an interactive message to be deleted sent by the client, wherein the interactive message to be deleted comprises a group identifier to which the interactive message to be deleted belongs and a message identifier of the interactive message to be deleted;
deleting the interactive message to be deleted;
and sending a notification message for deleting the interactive message to the client, wherein the notification message carries the group identifier to which the deleted interactive message belongs and the message identifier of the deleted interactive message.
5. The information interaction method according to any one of claims 1 to 3, further comprising, before receiving the interaction message sent by the client, the following steps:
and responding to an execution instruction for configuring the user authority for the group, and storing the user authority configured for the group so as to allow the group members with the user authority to send out the interactive messages in the group.
6. An information interaction method is applied to a client, and comprises the following steps:
responding to an execution instruction of an interactive message sent by a group member, and sending the interactive message to a server, wherein the interactive message comprises a group identifier;
when the interactive message delivered to the shared virtual space by the server is monitored, displaying the message content of the interactive message on a group chat interface corresponding to the group identifier according to the group identifier; and a long connecting channel is established between the shared virtual space and the client, and different groups share the shared virtual space.
7. The information interaction method of claim 6, further comprising:
responding to an execution instruction for displaying a group list, and sending a request message for acquiring an initial unread message count of a group to the server, wherein the request message carries a group identifier of the group and a last read message identifier of the group recorded by the client;
receiving an initial unread message count of the group and a message type corresponding to the initial unread message count, wherein the message type comprises a non-reminding message, an owner-oriented message and an individual-oriented message;
and displaying the initial unread message count of the group on a display interface of the group list according to the group identifier of the group and the message type.
8. The information interaction method of claim 7, further comprising, after monitoring the interaction message delivered by the server to a shared virtual space, the following steps:
if the interactive message is not displayed on the group chat interface, increasing the unread message count of the group corresponding to the interactive message by a preset value according to the message type of the interactive message;
and if the interactive message is displayed on the group chat interface, taking the message identifier of the interactive message as the last read message identifier.
9. The information interaction method according to any one of claims 6 to 8, further comprising:
responding to an execution instruction for deleting the interactive message, and sending the interactive message to be deleted to the server, wherein the interactive message to be deleted comprises a group identifier to which the interactive message to be deleted belongs and a message identifier of the interactive message to be deleted;
receiving a notification message for deleting the interactive message sent by the server, wherein the notification message carries a group identifier to which the deleted interactive message belongs and a message identifier of the deleted interactive message;
if the message identifier of the deleted interactive message is less than or equal to the last read message identifier corresponding to the group identifier, maintaining the unread message count of the group identifier;
and if the message identifier of the deleted interactive message is larger than the last read message identifier corresponding to the group identifier, reducing the unread message count of the group identifier by a preset value.
10. The information interaction method according to any one of claims 6 to 8, further comprising:
and monitoring interactive messages sent by other users.
CN202210979205.3A 2022-08-16 2022-08-16 Information interaction method, medium, device and computing equipment Pending CN115361353A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210979205.3A CN115361353A (en) 2022-08-16 2022-08-16 Information interaction method, medium, device and computing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210979205.3A CN115361353A (en) 2022-08-16 2022-08-16 Information interaction method, medium, device and computing equipment

Publications (1)

Publication Number Publication Date
CN115361353A true CN115361353A (en) 2022-11-18

Family

ID=84001678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210979205.3A Pending CN115361353A (en) 2022-08-16 2022-08-16 Information interaction method, medium, device and computing equipment

Country Status (1)

Country Link
CN (1) CN115361353A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170187653A1 (en) * 2015-12-29 2017-06-29 Line Corporation Information processing device, control method for information processing device, and program
CN107342929A (en) * 2016-08-10 2017-11-10 杭州朗和科技有限公司 A kind of sending method of new message notification, apparatus and system
CN107465592A (en) * 2016-06-03 2017-12-12 苏宁云商集团股份有限公司 A kind of method for message interaction and system
US20180063042A1 (en) * 2016-08-26 2018-03-01 International Business Machines Corporation Building a virtual group for chatting groups in an instant messaging client
CN112291134A (en) * 2019-07-23 2021-01-29 腾讯科技(深圳)有限公司 Information prompting method, device, equipment and storage medium
CN113168660A (en) * 2018-11-09 2021-07-23 连普乐士株式会社 Message management method, readable storage medium, computer system and electronic device
WO2022017411A1 (en) * 2020-07-22 2022-01-27 维沃移动通信有限公司 Unread message display method and apparatus, and electronic device and storage medium
CN114461116A (en) * 2022-01-07 2022-05-10 北京快乐茄信息技术有限公司 Unread message processing method and device, electronic equipment and storage medium
US20220200940A1 (en) * 2020-04-30 2022-06-23 Beijing Bytedance Network Technology Co., Ltd. Information interaction method and apparatus, server, system and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170187653A1 (en) * 2015-12-29 2017-06-29 Line Corporation Information processing device, control method for information processing device, and program
CN107465592A (en) * 2016-06-03 2017-12-12 苏宁云商集团股份有限公司 A kind of method for message interaction and system
CN107342929A (en) * 2016-08-10 2017-11-10 杭州朗和科技有限公司 A kind of sending method of new message notification, apparatus and system
US20180063042A1 (en) * 2016-08-26 2018-03-01 International Business Machines Corporation Building a virtual group for chatting groups in an instant messaging client
CN113168660A (en) * 2018-11-09 2021-07-23 连普乐士株式会社 Message management method, readable storage medium, computer system and electronic device
CN112291134A (en) * 2019-07-23 2021-01-29 腾讯科技(深圳)有限公司 Information prompting method, device, equipment and storage medium
US20220200940A1 (en) * 2020-04-30 2022-06-23 Beijing Bytedance Network Technology Co., Ltd. Information interaction method and apparatus, server, system and storage medium
WO2022017411A1 (en) * 2020-07-22 2022-01-27 维沃移动通信有限公司 Unread message display method and apparatus, and electronic device and storage medium
CN114461116A (en) * 2022-01-07 2022-05-10 北京快乐茄信息技术有限公司 Unread message processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102917011A (en) Cloud-based broker service for digital assistants
CN109902255B (en) Page mixed browsing record generation method, device, equipment and storage medium
CN107153599B (en) Method and equipment for recording and playing back user operation
CN111190888A (en) Method and device for managing graph database cluster
CN111897694A (en) Method, device and equipment for processing messages in applet and storage medium
WO2021013247A1 (en) Method and device for running applet, and computer storage medium
CN101388891A (en) Apparatus and method for managing presence information of a presentity
CN111831618A (en) Data writing method, data reading method, device, equipment and storage medium
WO2023165256A1 (en) Information generation method and apparatus, and electronic device
JP2023527060A (en) Mail processing method, device, device and medium
CN111581239A (en) Cache refreshing method and electronic equipment
US20190324763A1 (en) Insertion of custom activities in an orchestrated application suite
CN111586177B (en) Cluster session loss prevention method and system
CN112198999A (en) Task information processing method and device and server
CN111510499B (en) Communication method, device, equipment and storage medium
CN112925584A (en) Scene-based file configuration method, device, storage medium, and program product
CN109445966B (en) Event processing method, device, medium and computing equipment
CN110716911B (en) Data processing method and device, electronic equipment and storage medium
CN115361353A (en) Information interaction method, medium, device and computing equipment
CN114449040B (en) Configuration issuing method and device based on cloud platform
CN113722007B (en) Configuration method, device and system of VPN branch equipment
CN112527529B (en) Message processing method and device, electronic equipment and storage medium
US11277300B2 (en) Method and apparatus for outputting information
CN115220640A (en) Method, electronic device and computer program product for processing data
US11842077B2 (en) Method, device, and computer program product for transmitting data for object storage

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