CN115134327A - Message processing method and device, electronic equipment and storage medium - Google Patents

Message processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115134327A
CN115134327A CN202210592821.3A CN202210592821A CN115134327A CN 115134327 A CN115134327 A CN 115134327A CN 202210592821 A CN202210592821 A CN 202210592821A CN 115134327 A CN115134327 A CN 115134327A
Authority
CN
China
Prior art keywords
rich media
media resource
message
publisher
target
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.)
Granted
Application number
CN202210592821.3A
Other languages
Chinese (zh)
Other versions
CN115134327B (en
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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202210592821.3A priority Critical patent/CN115134327B/en
Publication of CN115134327A publication Critical patent/CN115134327A/en
Application granted granted Critical
Publication of CN115134327B publication Critical patent/CN115134327B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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

Abstract

The present disclosure relates to a message processing method, a message processing apparatus, an electronic device, and a storage medium, wherein the method comprises: acquiring an instant message sent by a first client based on a target session; when the instant message is a shared message aiming at the rich media resource, determining a publisher of the target rich media resource corresponding to the shared message; sending a first notification message to the publisher; the first notification message indicates that the first client shared the target rich media resource in the target session. According to the method and the device, interaction with the publisher of the rich media resource is realized in the process of sharing the rich media resource based on the instant message session, so that the publisher can timely learn the sharing condition of the rich media resource published by the publisher, and the publisher can be further favorable for carrying out security control on the rich media resource published by the publisher based on the sharing condition.

Description

Message processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a message processing method and apparatus, an electronic device, and a storage medium.
Background
With the development of internet technology, IM (Instant Message) has become one of the main ways for users to communicate with each other.
At present, rich media resources can be shared in a form of message cards and the like in an IM-based session, for example, an online document can be shared in a group chat to realize multi-user editing of a collaborative office. In the related art, interaction between the sharing process of the rich media resource and the publisher of the rich media resource cannot be realized, so that the publisher cannot timely learn the sharing condition of the rich media resource published by the publisher, and further cannot perform security control on the rich media resource published by the publisher based on the sharing condition.
Disclosure of Invention
The present disclosure provides a message processing method, device and system, so as to at least solve the problem in the related art that interaction cannot be realized between the sharing process of a rich media resource and a publisher of the rich media resource. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a message processing method, including:
acquiring an instant message sent by a first client based on a target session;
when the instant message is a shared message aiming at the rich media resource, determining a publisher of the target rich media resource corresponding to the shared message;
sending a first notification message to the publisher; the first notification message indicates that the first client shared the target rich media resource in the target session.
In an exemplary embodiment, the determining the publisher of the target rich media resource corresponding to the shared message includes:
determining a target rich media resource identifier based on the rich media resource association information in the sharing message;
sending a publisher information acquisition request to a rich media resource server based on the target rich media resource identifier so that the rich media resource server determines a publisher identifier corresponding to the target rich media resource based on the target rich media resource identifier;
and receiving the publisher identification returned by the rich media resource server.
In an exemplary embodiment, the sending the first notification message to the publisher comprises:
acquiring a first client identifier of the first client and a session identifier of the target session;
generating a first notification message based on the first client identifier, the session identifier and the target rich media resource identifier;
sending the first notification message to the publisher.
In an exemplary embodiment, the method further comprises:
acquiring operation behavior information reported by a second client; the operation behavior information is generated based on a preset trigger operation aiming at the shared message in the target session, and the preset trigger operation is used for acquiring a target rich media resource corresponding to the shared message;
determining a publisher of the target rich media resource based on the operation behavior information;
sending a second notification message to the publisher; the second notification message indicates that the second client acquired the target rich media resource in the target session.
In an exemplary embodiment, the determining the publisher of the target rich media resource based on the operation behavior information includes:
determining a target rich media resource identifier corresponding to the operation behavior information;
sending a publisher information acquisition request to a rich media resource server based on the target rich media resource identifier so that the rich media resource server determines a publisher identifier corresponding to the target rich media resource based on the target rich media resource identifier;
and receiving the publisher identification returned by the rich media resource server.
In an exemplary embodiment, the sending the second notification message to the publisher comprises:
acquiring a second client identifier of the second client, a session identifier of the target session and the target rich media resource identifier;
generating a second notification message based on a second client identifier, the session identifier of the target session and the target rich media resource identifier;
and sending the second notification message to the publisher.
According to a second aspect of the embodiments of the present disclosure, there is provided a message processing method, including:
receiving a first notification message sent by an instant message server to a publisher of a target rich media resource; the publisher of the target rich media resource is the publisher of the target rich media resource, which is determined by the instant message server to correspond to the sharing message when the instant message server obtains the instant message sent by the first client based on the target session and the instant message is the sharing message aiming at the rich media resource;
wherein the first notification message indicates that the first client shared the target rich media resource in the target session.
In an exemplary embodiment, the method further comprises:
receiving a second notification message sent by the instant message server to the publisher of the target rich media resource; the publisher of the target rich media resource is the publisher of the target rich media resource which is obtained by the instant message server and reported by the second client, and the operation behavior information is determined to correspond to the operation behavior information, and is generated based on the preset trigger operation aiming at the sharing message in the target session;
wherein the second notification message indicates that the second client acquired the target rich media resource in the target session.
In an exemplary embodiment, the method further comprises:
responding to a permission setting instruction aiming at the target rich media resource, and acquiring permission information; the permission information indicates the permission of a target session object in the target session for the target rich media resource;
and setting the authority of the target rich media resource based on the authority information.
According to a third aspect of the embodiments of the present disclosure, there is provided a message processing apparatus including:
the instant message acquisition unit is configured to acquire instant messages sent by the first client based on the target session;
the first publisher determining unit is configured to determine a publisher of a target rich media resource corresponding to the shared message when the instant message is the shared message for the rich media resource;
a first message sending unit configured to perform sending a first notification message to the publisher; the first notification message indicates that the first client shared the target rich media resource in the target session.
In an exemplary embodiment, the first issuer determining unit includes:
a first resource identifier determining unit configured to determine a target rich media resource identifier based on rich media resource association information in the sharing message;
a first request sending unit configured to execute sending of a publisher information acquisition request to a rich media resource server based on the target rich media resource identifier, so that the rich media resource server determines a publisher identifier corresponding to the target rich media resource based on the target rich media resource identifier;
a first publisher identification receiving unit configured to perform receiving the publisher identification returned by the rich media resource server.
In one exemplary embodiment, the first message sending unit includes:
a first obtaining unit configured to perform obtaining a first client identifier of the first client and a session identifier of the target session;
a first message generating unit configured to execute generating a first notification message based on the first client identifier, the session identifier and the target rich media resource identifier;
a first message sending subunit configured to perform sending the first notification message to the publisher.
In an exemplary embodiment, the apparatus further comprises:
the second acquisition unit is configured to execute acquisition of the operation behavior information reported by the second client; the operation behavior information is generated based on a preset trigger operation aiming at the shared message in the target session, wherein the preset trigger operation is used for acquiring a target rich media resource corresponding to the shared message;
a second publisher determination unit configured to perform determining a publisher of the target rich media resource based on the operation behavior information;
a second message sending unit configured to perform sending of a second notification message to the publisher; the second notification message indicates that the second client acquired the target rich media resource in the target session.
In an exemplary embodiment, the second issuer determining unit includes:
a second resource identification determining unit configured to perform determining a target rich media resource identification corresponding to the operation behavior information;
a second request sending unit configured to execute sending of a publisher information acquisition request to a rich media resource server based on the target rich media resource identifier, so that the rich media resource server determines a publisher identifier corresponding to the target rich media resource based on the target rich media resource identifier;
and the second publisher identification receiving unit is configured to execute receiving the publisher identification returned by the rich media resource server.
In an exemplary embodiment, the second message sending unit includes:
a third obtaining unit configured to perform obtaining a second client identifier of the second client, a session identifier of the target session, and the target rich media resource identifier;
a second message generating unit configured to perform generating a second notification message based on a second client identifier, the session identifier of the target session, and the target rich media resource identifier;
a second message sending subunit configured to perform sending the second notification message to the publisher.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a message processing apparatus including:
a first notification message receiving unit configured to execute receiving a first notification message sent by an instant message server to a publisher of a target rich media resource; the publisher of the target rich media resource is the publisher of the target rich media resource, which is determined by the instant message server to correspond to the sharing message when the instant message server obtains the instant message sent by the first client based on the target session and the instant message is the sharing message aiming at the rich media resource;
wherein the first notification message indicates that the first client shared the target rich media resource in the target session.
In an exemplary embodiment, the apparatus further comprises:
a second notification message receiving unit configured to execute receiving a second notification message sent by the instant message server to the publisher of the target rich media resource; the publisher of the target rich media resource is the publisher of the target rich media resource, which acquires operation behavior information reported by a second client and determines the operation behavior information corresponding to the target rich media resource, wherein the operation behavior information is generated based on preset trigger operation aiming at the shared message in the target session;
wherein the second notification message indicates that the second client acquired the target rich media resource in the target session.
In an exemplary embodiment, the apparatus further comprises:
a permission information obtaining unit configured to execute permission setting instructions in response to the target rich media resource to obtain permission information; the permission information indicates the permission of a target session object in the target session for the target rich media resource;
and the permission setting unit is configured to execute permission setting on the target rich media resource based on the permission information.
According to a fifth aspect of an embodiment of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the message processing method of the first aspect or the second aspect.
According to a sixth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions of the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the message processing method of the first aspect or the second aspect.
According to a seventh aspect of embodiments of the present disclosure, there is provided a computer program product comprising computer programs/instructions which, when executed by a processor, implement the message processing method of the first or second aspect described above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
by acquiring an instant message sent by a first client based on a target session, and when the instant message is a sharing message aiming at a rich media resource, determining a publisher of the target rich media resource corresponding to the sharing message, and then sending a first notification message indicating that the first client shares the target rich media resource in the target session to the publisher, interaction between the publisher and the rich media resource is realized in the process of sharing the rich media resource based on the instant message session, so that the publisher can timely learn about the sharing condition of the rich media resource published by the publisher, and further, the publisher can perform security control on the rich media resource published by the publisher based on the sharing condition.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram of an application environment shown in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method of message processing in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating another message processing method in accordance with an illustrative embodiment;
FIG. 4a is a flow diagram illustrating another message processing method in accordance with an illustrative embodiment;
FIG. 4b is a flow diagram illustrating another method of message processing in accordance with an illustrative embodiment;
FIG. 5 is a block diagram illustrating the structure of a message processing apparatus in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating another message processing apparatus according to an example embodiment;
FIG. 7 is a block diagram illustrating the structure of a server in accordance with an exemplary embodiment;
fig. 8 is a block diagram illustrating a structure of a terminal according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in other sequences than those illustrated or described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in the present disclosure are both information and data that are authorized by the user or sufficiently authorized by various parties.
Referring to fig. 1, a schematic diagram of an application environment of a message processing method according to an exemplary embodiment is shown, where the application environment may include a first client 110, a second client 120, an instant message server 130, a rich media resource server 140, and a publisher client 150.
The client (110, 120, 150) may include a terminal of a smart phone, a desktop computer, a tablet computer, a notebook computer, a digital assistant, a smart wearable device, etc., or may include software running in the terminal, such as a web page provided by a service provider to a user, or an application provided by the service provider to the user, etc.
The servers (130, 140) may be independent physical servers, may also be a server cluster or a distributed system formed by a plurality of physical servers, may also be edge computing nodes, and may also be cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, Network services, cloud communications, middleware services, domain name services, security services, a CDN (Content Delivery Network), and big data and artificial intelligence platforms.
The client (110, 120, 150) and the server (130, 140) may be connected through a wired network or a wireless network.
Specifically, the first client 110 and the second client 120 are session objects in the target session, and may interact based on sending instant messages in the target session. In the embodiment of the present disclosure, the first client 110 is a sender of an instant message in a target session, and the second client 120 is a receiver of the instant message in the target session, where a session type of the target session may be a private chat or a group chat.
The publisher client 150 is a client corresponding to the shared rich media resource, and the rich media resource published by the publisher client 150 and the related information of the rich media resource are stored in the rich media resource server 140. The rich media resource server 140 may store the published rich media resource in a key-value form, where the key is a rich media resource identifier, the rich media resource identifier may uniquely identify one rich media resource, the value includes rich media resource related information and rich media resource, the rich media resource related information includes a publisher identifier for publishing the rich media resource, the publisher identifier is used to uniquely identify a publisher of the rich media resource, and the publisher identifier may be, for example, a publisher account.
The instant message server 130 is configured to provide an instant messaging service, in the embodiment of the present disclosure, the instant message server 130 may obtain an instant message sent by a first client based on a target session, and when the instant message is a sharing message for a rich media resource, determine a publisher of the target rich media resource corresponding to the sharing message, and further send a first notification message to the publisher, where the first notification message indicates that the first client shares the target rich media resource in the target session, so that the publisher can timely learn about a sharing condition of the target rich media resource, thereby implementing interaction between a sharing process of the rich media resource and a publisher of the rich media resource, and facilitating improvement of security control over the shared rich media resource.
The rich media is an information transmission method with animation, sound, video and interactivity, and comprises programming languages such as streaming media, sound, Flash (animation), Java (object-oriented programming language), Javascript (an interpreted scripting language), dynamicml (dynamic web page design) and the like, and can be applied to various network services such as website design, e-mail, Banner (Banner), Button (Button), pop-up advertisements, spot advertisements and the like. The rich media assets in the embodiments of the present disclosure refer to assets in a rich media form, which may include, but are not limited to, documents, pictures, videos, music, comics, novels, books, games, news, etc., and it will be understood by those skilled in the art that other types of rich media assets are equally suitable for and encompassed by the present disclosure.
Fig. 2 is a flowchart illustrating a message processing method according to an exemplary embodiment, where as shown in fig. 2, for example, the message processing method is applied to the instant message server shown in fig. 1, the method includes the following steps:
in step S201, an instant message sent by the first client based on the target session is acquired.
The session type of the target session may be a private chat session based on IM, or a group chat session.
In step S203, it is determined whether the instant message is a shared message for a rich media resource.
Specifically, the instant message server may extract the message content of the instant message, and if the message content includes link information or card information corresponding to the rich media resource, it is determined that the instant message is a shared message for the rich media resource, and at this time, step S205 may be executed; otherwise, if the instant message is not a shared message for the rich media resource, the processing corresponding to the message is finished.
In step S205, a publisher of the target rich media resource corresponding to the sharing message is determined.
In practical application, the published rich media resource and the related information thereof are stored in a rich media resource server, so that the instant message server can realize the interaction with the rich media resource server when determining the publisher of the target rich media resource corresponding to the shared message, and the method specifically comprises the following steps:
the instant message server determines a target rich media resource identifier based on the rich media resource association information in the shared message;
the instant message server sends a publisher information acquisition request to the rich media resource server based on the target rich media resource identifier, so that the rich media resource server determines the publisher identifier corresponding to the target rich media resource based on the target rich media resource identifier and returns;
and the instant message server receives the publisher identification returned by the rich media resource server.
The rich media resource association information may be rich media resource link information, and a target rich media resource identifier may be obtained through analysis of the rich media resource link information, where the target rich media resource identifier may uniquely identify one rich media resource, and for example, the target rich media resource identifier may be id (identity) information.
It is understood that the rich media resource server, while returning the publisher identification, may also return other relevant information for the target rich media resource, which may include, for example, the name of the target rich media resource, the publication time, etc.
In step S207, a first notification message is sent to the publisher.
Wherein the first notification message indicates that the first client shared the target rich media resource in the target session.
In a specific implementation, the instant message server may obtain a first client identifier and a session identifier of a target session, generate a first notification message based on the first client identifier, the session identifier, and the target rich media resource identifier, and send the first notification message to the publisher, so that the publisher, after receiving the first notification message, may learn, based on the first client identifier, the session identifier, and the target rich media resource identifier, which user shares which rich media resource in which session. It is to be understood that the first notification message may further include a sharing time, so that the publisher may learn a specific time when the target rich media resource is shared.
In practical applications, the instant messaging server may further generate a rich media resource sharing record, where the rich media resource sharing record may include the first client identifier, the session type (private chat or group chat), the generation time, the update time, and the like.
In the embodiment, the publisher of the target rich media resource corresponding to the sharing message is determined when the instant message is the sharing message for the rich media resource, and then the first notification message indicating that the first client shares the target rich media resource in the target session is sent to the publisher, so that the publisher of the target rich media resource can timely learn which user shares the rich media resource published by the publisher in which session, and the interaction between the sharing process of the rich media resource and the publisher of the rich media resource is realized, so that the publisher can timely learn the sharing condition of the rich media resource published by the publisher, and further the publisher can perform security control on the rich media resource published by the publisher based on the sharing condition.
In an exemplary embodiment, as shown in the flowchart of another message processing method shown in fig. 3, the method may further include:
in step S209, operation behavior information reported by the second client is obtained.
The operation behavior information is generated based on a preset trigger operation for a shared message in a target session, where the preset trigger operation is used to acquire a target rich media resource corresponding to the shared message, and for example, the preset trigger operation may be an operation such as clicking and long-pressing.
Specifically, the second client serves as a receiver of the shared message, and when a preset trigger operation is performed on the shared message in the target session, the second client may send corresponding operation behavior information to the instant message server, where the operation behavior information may include an operation time, a second client identifier, a session identifier of the target session, and a target rich media resource identifier in the operated shared message.
In step S211, a publisher of the target rich media asset is determined based on the operation behavior information.
In a specific implementation, the instant message server may obtain, through interaction with the rich media resource server, a publisher of the target rich media resource corresponding to the currently operated shared message, so that the step S211 may include, when implemented:
determining a target rich media resource identifier corresponding to the operation behavior information;
sending a publisher information acquisition request to the rich media resource server based on the target rich media resource identifier, so that the rich media resource server determines the publisher identifier corresponding to the target rich media resource based on the target rich media resource identifier and returns the publisher identifier;
and receiving the publisher identification returned by the rich media resource server.
Specifically, the instant message server may extract a target rich media resource identifier from the operation behavior information, and then send a publisher information acquisition request to the rich media resource server, where the publisher information acquisition request carries the target rich media resource identifier, and the rich media resource server searches for related information of the target rich media resource corresponding to the target rich media resource identifier in response to the publisher information acquisition request, where the related information includes a publisher identifier, such as a publisher account, and returns the publisher identifier to the instant message server, so that the instant message server may obtain the publisher identifier of the target rich media resource.
In step S213, a second notification message is sent to the publisher.
Wherein the second notification message indicates that the second client acquired the target rich media resource in the target session.
In a specific implementation, the instant message server may extract the second client identifier and the session identifier of the target session in the operation behavior information, generate a second notification message based on the second client identifier, the session identifier and the target rich media resource identifier, and send the second notification message to the publisher, so that the publisher, after receiving the second notification message, may learn, based on the second client identifier, the session identifier and the target rich media resource identifier, which user has acquired which rich media resource published by itself in which session. It is to be understood that the second notification message may also include the operation time, so that the publisher may learn the specific time at which the target rich media asset is acquired.
In practice, the instant message server may also generate a rich media resource acquired record, which may include the second client identification, the session type (private chat or group chat), the generation time and the update time, and so on.
In the above embodiment, by obtaining the operation behavior information reported by the second client, and determining the publisher of the target rich media resource corresponding to the operated sharing message based on the operation behavior information, and further send a second notification message to the publisher indicating that the second client obtained the target rich media resource in the target session, therefore, the publisher of the target rich media resource can timely know which user obtains the rich media resource published by the publisher in which session, thereby not only enhancing the interaction between the rich media resource sharing process and the publisher of the rich media resource, but also improves the integrity of the rich media resources in the IM system, so that the publisher can learn the sharing condition of the rich media resources published by the publisher in time, and the publisher can perform security control on the published rich media resource based on the sharing condition.
The following describes a message processing method according to an embodiment of the present disclosure with a publisher client as an execution subject, which may specifically include:
receiving a first notification message sent by an instant message server to a publisher of a target rich media resource; the publisher of the target rich media resource is the publisher of the target rich media resource, which is determined by the instant message server to correspond to the sharing message when the instant message server obtains the instant message sent by the first client based on the target session and the instant message is the sharing message aiming at the rich media resource;
wherein the first notification message indicates that the first client shared the target rich media resource in the target session.
Illustratively, the first notification message may include the first client identifier, the session identifier of the target session, and the target rich media resource identifier, but may also include other information, such as a sharing time, a target rich media resource publishing time, and the like.
In an exemplary embodiment, the publisher client may further receive a second notification message sent by the instant message server to the publisher of the target rich media resource; the publisher of the target rich media resource is the publisher of the target rich media resource which is obtained by the instant message server and reported by the second client, and the operation behavior information is determined to correspond to the operation behavior information, and is generated based on the preset trigger operation aiming at the sharing message in the target session;
wherein the second notification message indicates that the second client acquired the target rich media resource in the target session.
Illustratively, the second notification message may include the second client identification, the session identification of the target session, and the target rich media resource identification, but may also include other information, such as an operation time, etc.
In an exemplary embodiment, after receiving the second notification message, the publisher client may further include the following steps:
responding to a permission setting instruction aiming at the target rich media resource, and acquiring permission information; wherein the permission information indicates the permission of the target session object in the target session for the target rich media resource;
and setting the authority of the target rich media resource based on the authority information.
The target session object can comprise a second client, so that the publisher can realize permission setting aiming at the second client, and further flexibly control the security of the rich media resource published by the publisher.
In order to better understand the message processing method of the embodiment of the present disclosure, the rich media resource is an online document, and the following description is made with reference to the sending scenario shown in fig. 4a and the receiving scenario shown in fig. 4 b.
As shown in fig. 4a, a flow chart of another message processing method, when a first client shares an online document link in a target IM session, the first client sends a corresponding instant message to an IM server; the IM server acquires the instant message, judges that the instant message contains online document information, further extracts an online document identifier from the instant message, and sends a publisher information acquisition request to an online document server based on the online document identifier; the online document server responds to the publisher information acquisition request, determines publisher information (including publisher identification) of the corresponding online document based on the online document identification and returns; after obtaining the publisher identifier, the IM server sends a system push notification (i.e., a first notification message) to the publisher based on the publisher identifier, so as to indicate which user shares which online document of your in which session.
As shown in fig. 4b, in another flow chart of a message processing method, when a second client clicks the sharing message shared by a first client in a target session, the second client reports click behavior information to an IM server; the IM server acquires the click behavior information, extracts an online document identifier in the click behavior information, and sends a publisher information acquisition request to an online document server based on the online document identifier; the online document server responds to the publisher information acquisition request, determines publisher information (including publisher identification) of the corresponding online document based on the online document identification and returns; after obtaining the publisher identifier, the IM server sends a system push notification (i.e., a second notification message) to the publisher based on the publisher identifier to indicate which user browses which online document in which session.
Fig. 5 is a block diagram illustrating a structure of a message processing apparatus according to an exemplary embodiment. Referring to fig. 5, the message processing apparatus 500 includes:
an instant message acquiring unit 510 configured to perform acquiring an instant message sent by a first client based on a target session;
a first publisher determining unit 520, configured to determine, when the instant message is a shared message for a rich media resource, a publisher of a target rich media resource corresponding to the shared message;
a first message transmitting unit 530 configured to perform transmitting a first notification message to the publisher; the first notification message indicates that the first client shared the target rich media resource in the target session.
In an exemplary embodiment, the first issuer determining unit 520 includes:
a first resource identifier determining unit configured to determine a target rich media resource identifier based on rich media resource association information in the sharing message;
a first request sending unit configured to execute sending of a publisher information acquisition request to a rich media resource server based on the target rich media resource identifier, so that the rich media resource server determines a publisher identifier corresponding to the target rich media resource based on the target rich media resource identifier;
a first publisher identification receiving unit configured to perform receiving the publisher identification returned by the rich media resource server.
In an exemplary embodiment, the first message sending unit 530 includes:
a first obtaining unit configured to perform obtaining a first client identifier of the first client and a session identifier of the target session;
a first message generating unit configured to execute generating a first notification message based on the first client identifier, the session identifier and the target rich media resource identifier;
a first message sending subunit configured to perform sending the first notification message to the publisher.
In an exemplary embodiment, the apparatus 500 further comprises:
the second acquisition unit is configured to execute acquisition of the operation behavior information reported by the second client; the operation behavior information is generated based on a preset trigger operation aiming at the shared message in the target session, wherein the preset trigger operation is used for acquiring a target rich media resource corresponding to the shared message;
a second publisher determination unit configured to perform determining a publisher of the target rich media resource based on the operation behavior information;
a second message transmitting unit configured to perform transmission of a second notification message to the publisher; the second notification message indicates that the second client acquired the target rich media resource in the target session.
In an exemplary embodiment, the second issuer determining unit includes:
a second resource identification determining unit configured to perform determining a target rich media resource identification corresponding to the operation behavior information;
a second request sending unit configured to execute sending of a publisher information acquisition request to a rich media resource server based on the target rich media resource identifier, so that the rich media resource server determines a publisher identifier corresponding to the target rich media resource based on the target rich media resource identifier;
and the second publisher identification receiving unit is configured to execute receiving the publisher identification returned by the rich media resource server.
In an exemplary embodiment, the second message sending unit includes:
a third obtaining unit configured to perform obtaining a second client identifier of the second client, a session identifier of the target session, and the target rich media resource identifier;
a second message generating unit configured to perform generating a second notification message based on a second client identifier, the session identifier of the target session, and the target rich media resource identifier;
a second message sending subunit configured to perform sending the second notification message to the publisher.
Fig. 6 is a block diagram illustrating a structure of a message processing apparatus according to an exemplary embodiment. Referring to fig. 6, the message processing apparatus 600 includes:
a first notification message receiving unit 610 configured to perform receiving a first notification message sent by an instant message server to a publisher of a target rich media resource; the publisher of the target rich media resource is the publisher of the target rich media resource which is determined by the instant message server to correspond to the sharing message when the instant message server obtains the instant message sent by the first client based on the target session and the instant message is the sharing message aiming at the rich media resource;
wherein the first notification message indicates that the first client shared the target rich media resource in the target session.
In an exemplary embodiment, the apparatus 600 further comprises:
a second notification message receiving unit 620 configured to perform receiving a second notification message sent by the instant message server to the publisher of the target rich media resource; the publisher of the target rich media resource is the publisher of the target rich media resource which is obtained by the instant message server and reported by the second client, and the operation behavior information is determined to correspond to the operation behavior information, and is generated based on the preset trigger operation aiming at the sharing message in the target session;
wherein the second notification message indicates that the second client acquired the target rich media resource in the target session.
In an exemplary embodiment, the apparatus 600 further comprises:
a permission information obtaining unit configured to execute permission setting instructions in response to the target rich media resource to obtain permission information; the permission information indicates the permission of a target session object in the target session for the target rich media resource;
and the permission setting unit is configured to execute permission setting on the target rich media resource based on the permission information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In one exemplary embodiment, there is also provided an electronic device, comprising a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the message processing method provided in any of the above embodiments when executing the instructions stored in the memory.
Fig. 7 is a block diagram illustrating a server for message Processing according to an exemplary embodiment, and as shown in fig. 7, the server 700 may include one or more Central Processing Units (CPUs) 710 (the processors 710 may include but are not limited to Processing devices such as a microprocessor MCU or a programmable logic device FPGA), a memory 730 for storing data, and one or more storage media 720 (e.g., one or more mass storage devices) for storing an application 723 or data 722. Memory 730 and storage medium 720 may be, among other things, transient storage or persistent storage. The program stored in the storage medium 720 may include one or more modules, each of which may include a series of instruction operations for a server. Still further, central processor 710 may be configured to communicate with storage medium 720 and execute a series of instruction operations in storage medium 720 on server 700. The server 700 may also include one or more power supplies 760, one or more wired or wireless network interfaces 750, one or more input-output interfaces 740, and/or one or more operating systems 721, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The input/output interface 740 may be used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the server 700. In one example, the input/output Interface 740 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the input/output interface 740 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Fig. 8 is a block diagram illustrating a structure of a terminal for message processing according to an exemplary embodiment, in particular: the terminal may include RF (Radio Frequency) circuitry 810, memory 820 including one or more computer-readable storage media, an input unit 830, a display unit 840, a sensor 850, audio circuitry 860, a WiFi (wireless fidelity) module 870, a processor 880 including one or more processing cores, and a power supply 890. Those skilled in the art will appreciate that the terminal structure shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 810 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information from a base station and then processing the received downlink information by the one or more processors 880; in addition, data relating to uplink is transmitted to the base station. In general, RF circuit 810 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuit 810 may also communicate with networks and other terminals via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), and the like.
The memory 820 may be used to store software programs and modules, and the processor 880 executes various functional applications and data processing by operating the software programs and modules stored in the memory 820. The memory 820 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs required for functions, and the like; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 820 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 820 may also include a memory controller to provide the processor 880 and the input unit 830 access to the memory 820.
The input unit 830 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 830 may include a touch-sensitive surface 831 as well as other input devices 832. The touch-sensitive surface 831, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 831 (e.g., operations by a user on or near the touch-sensitive surface 831 using a finger, a stylus, or any other suitable object or attachment) and drive the corresponding connection device according to a predefined program. Alternatively, the touch-sensitive surface 831 can include two portions, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 880, and can receive and execute commands from the processor 880. In addition, the touch-sensitive surface 831 can be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 830 may include other input devices 832 in addition to the touch-sensitive surface 831. In particular, other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 840 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 840 may include a Display panel 841, and the Display panel 841 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like, as an option. Further, touch-sensitive surface 831 can overlay display panel 841 and, when a touch operation is detected on or near touch-sensitive surface 831, communicate to processor 880 to determine the type of touch event, whereupon processor 880 provides a corresponding visual output on display panel 841 in accordance with the type of touch event. Where touch-sensitive surface 831 and display panel 841 can be two separate components to implement input and output functions, touch-sensitive surface 831 can also be integrated with display panel 841 to implement input and output functions in some embodiments.
The terminal may also include at least one sensor 850, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 841 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 841 and/or backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the terminal is stationary, and can be used for applications of recognizing terminal gestures (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 860, speaker 861, microphone 862 may provide an audio interface between the user and the terminal. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the electrical signal is converted into a sound signal by the speaker 861 and output; on the other hand, the microphone 862 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 860, and outputs the audio data to the processor 880 for processing, and then transmits the audio data to, for example, another terminal via the RF circuit 810, or outputs the audio data to the memory 820 for further processing. The audio circuitry 860 may also include an earbud jack to provide communication of peripheral headphones with the terminal.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help the user send and receive e-mail, browse web page and access streaming media, etc. through WiFi module 870, which provides wireless broadband internet access for the user. Although fig. 8 shows WiFi module 870, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 880 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 820 and calling data stored in the memory 820, thereby performing overall monitoring of the terminal. Optionally, processor 880 may include one or more processing cores; preferably, the processor 880 may integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 880.
The terminal further includes a power supply 890 (e.g., a battery) for supplying power to the various components, which may preferably be logically coupled to the processor 880 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption. Power supply 890 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which are not described in detail herein. In this embodiment, the terminal further includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs include instructions for performing the client-side message processing method provided by the above-described method embodiments.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as a memory comprising instructions, executable by a processor of a respective apparatus to perform the above-described method is also provided. Alternatively, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided a computer program product comprising computer programs/instructions which, when executed by a processor, implement the message processing method provided in any of the above embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A message processing method, comprising:
acquiring an instant message sent by a first client based on a target session;
when the instant message is a shared message aiming at the rich media resource, determining a publisher of the target rich media resource corresponding to the shared message;
sending a first notification message to the publisher; the first notification message indicates that the first client shared the target rich media resource in the target session.
2. The method according to claim 1, wherein the determining the publisher of the target rich media resource corresponding to the shared message comprises:
determining a target rich media resource identifier based on the rich media resource association information in the sharing message;
sending a publisher information acquisition request to a rich media resource server based on the target rich media resource identifier so that the rich media resource server determines a publisher identifier corresponding to the target rich media resource based on the target rich media resource identifier;
and receiving the publisher identification returned by the rich media resource server.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
acquiring operation behavior information reported by a second client; the operation behavior information is generated based on a preset trigger operation aiming at the shared message in the target session, wherein the preset trigger operation is used for acquiring a target rich media resource corresponding to the shared message;
determining a publisher of the target rich media resource based on the operation behavior information;
sending a second notification message to the publisher; the second notification message indicates that the second client acquired the target rich media resource in the target session.
4. The method of claim 3, wherein the determining the publisher of the target rich media asset based on the operational behavior information comprises:
determining a target rich media resource identifier corresponding to the operation behavior information;
sending a publisher information acquisition request to a rich media resource server based on the target rich media resource identifier so that the rich media resource server determines a publisher identifier corresponding to the target rich media resource based on the target rich media resource identifier;
and receiving the publisher identification returned by the rich media resource server.
5. A message processing method, comprising:
receiving a first notification message sent by an instant message server to a publisher of a target rich media resource; the publisher of the target rich media resource is the publisher of the target rich media resource, which is determined by the instant message server to correspond to the sharing message when the instant message server obtains the instant message sent by the first client based on the target session and the instant message is the sharing message aiming at the rich media resource;
wherein the first notification message indicates that the first client shared the target rich media resource in the target session.
6. A message processing apparatus, comprising:
the instant message acquisition unit is configured to acquire instant messages sent by the first client based on the target session;
the first publisher determining unit is configured to determine a publisher of a target rich media resource corresponding to the shared message when the instant message is the shared message for the rich media resource;
a first message sending unit configured to perform sending a first notification message to the publisher; the first notification message indicates that the first client shared the target rich media resource in the target session.
7. A message processing apparatus, comprising:
a first notification message receiving unit configured to execute receiving a first notification message sent by an instant message server to a publisher of a target rich media resource; the publisher of the target rich media resource is the publisher of the target rich media resource, which is determined by the instant message server to correspond to the sharing message when the instant message server obtains the instant message sent by the first client based on the target session and the instant message is the sharing message aiming at the rich media resource;
wherein the first notification message indicates that the first client shared the target rich media resource in the target session.
8. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the message processing method of any one of claims 1 to 4 or the message processing method of claim 5.
9. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the message processing method of any of claims 1 to 4 or the message processing method of claim 5.
10. A computer program product comprising computer programs/instructions, characterized in that the computer programs/instructions, when executed by a processor, implement the message processing method of any one of claims 1 to 4 or the message processing method of claim 5.
CN202210592821.3A 2022-05-27 2022-05-27 Message processing method and device, electronic equipment and storage medium Active CN115134327B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210592821.3A CN115134327B (en) 2022-05-27 2022-05-27 Message processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210592821.3A CN115134327B (en) 2022-05-27 2022-05-27 Message processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115134327A true CN115134327A (en) 2022-09-30
CN115134327B CN115134327B (en) 2023-09-19

Family

ID=83377119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210592821.3A Active CN115134327B (en) 2022-05-27 2022-05-27 Message processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115134327B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017124932A1 (en) * 2016-01-21 2017-07-27 腾讯科技(深圳)有限公司 Resource sharing method and terminal
CN107958389A (en) * 2017-11-24 2018-04-24 恩平市枫王电器科技有限公司 A kind of information issue and retransmission method
CN108833266A (en) * 2018-07-04 2018-11-16 奇酷互联网络科技(深圳)有限公司 Dynamic shares management method, management equipment, storage medium and the terminal of message
CN109829064A (en) * 2019-01-31 2019-05-31 腾讯科技(深圳)有限公司 Media resource shares and playing method and device, storage medium and electronic device
CN114168220A (en) * 2021-12-02 2022-03-11 中国建设银行股份有限公司 Data processing and interaction method, device, equipment and storage medium of application program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017124932A1 (en) * 2016-01-21 2017-07-27 腾讯科技(深圳)有限公司 Resource sharing method and terminal
CN107958389A (en) * 2017-11-24 2018-04-24 恩平市枫王电器科技有限公司 A kind of information issue and retransmission method
CN108833266A (en) * 2018-07-04 2018-11-16 奇酷互联网络科技(深圳)有限公司 Dynamic shares management method, management equipment, storage medium and the terminal of message
CN109829064A (en) * 2019-01-31 2019-05-31 腾讯科技(深圳)有限公司 Media resource shares and playing method and device, storage medium and electronic device
CN114168220A (en) * 2021-12-02 2022-03-11 中国建设银行股份有限公司 Data processing and interaction method, device, equipment and storage medium of application program

Also Published As

Publication number Publication date
CN115134327B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
US11449955B2 (en) Information processing method and apparatus
US10304461B2 (en) Remote electronic service requesting and processing method, server, and terminal
JP6557741B2 (en) Picture combining method, terminal, and picture combining system
CN107204964B (en) Authority management method, device and system
WO2018196588A1 (en) Information sharing method, apparatus and system
CN106293738B (en) Expression image updating method and device
CN105630846B (en) Head portrait updating method and device
WO2015003636A1 (en) Method and device for interception of page elements
CN105227598B (en) Resource sharing method, device and system based on cloud storage
CN108809805B (en) Information interaction method and system and public account client
WO2015032284A1 (en) Method, terminal device, and system for instant messaging
CN108429668B (en) Message processing method, device, terminal and system
CN110300047B (en) Animation playing method and device and storage medium
CN105631059B (en) Data processing method, data processing device and data processing system
CN111274463A (en) Information display method and device based on IM contact person grouping setting and storage medium
CN109728918B (en) Virtual article transmission method, virtual article reception method, device, and storage medium
CN109145182B (en) Data acquisition method and device, computer equipment and system
US20220232287A1 (en) Method and device for acquiring virtual resource and storage medium
CN107798008B (en) Content pushing system, method and device
CN106209601B (en) State update message pushing method and device
CN106339402B (en) Method, device and system for pushing recommended content
CN115134327B (en) Message processing method and device, electronic equipment and storage medium
CN113094577B (en) Information display method, related equipment and storage medium
CN115002059B (en) Information processing method, information processing device, computer readable storage medium and computer equipment
CN109120654B (en) Information prompting method and device for server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant