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

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

Info

Publication number
CN114979087A
CN114979087A CN202210738483.XA CN202210738483A CN114979087A CN 114979087 A CN114979087 A CN 114979087A CN 202210738483 A CN202210738483 A CN 202210738483A CN 114979087 A CN114979087 A CN 114979087A
Authority
CN
China
Prior art keywords
resource identifier
target
original
message
target resource
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
CN202210738483.XA
Other languages
Chinese (zh)
Other versions
CN114979087B (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 CN202210738483.XA priority Critical patent/CN114979087B/en
Publication of CN114979087A publication Critical patent/CN114979087A/en
Application granted granted Critical
Publication of CN114979087B publication Critical patent/CN114979087B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application provides a message processing method, a message processing device, message processing equipment and a storage medium. In some embodiments of the present application, a server receives an original resource identifier sent by a sender device, generates a target resource identifier including the original resource identifier according to the original resource identifier, stores a copy of target resource, and reduces occupation and storage cost of storage resources of the server by mapping a new target resource identifier to the original resource identifier; sending the target resource identifier to sender equipment, and generating a target message containing the target resource identifier by the sender equipment according to the target resource identifier; the target message and the target resource sent by the sender equipment are sent to the receiver equipment, and the target resource is sent again by using the new target resource identifier, so that the target resource does not need to be uploaded for multiple times, and the message sending efficiency is improved.

Description

Message processing method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing a message.
Background
Real-time communication is a real-time communication system that allows two or more people to communicate text messages, files, voice and video in real time using a network.
The sharing of messages often occurs in real-time communication scenes, common messages can be shared in a forwarding mode, some scenes may be a picture sharing a composite message (including pictures, characters and the like), often a user can select to copy the picture directly by a right key, then the picture is directly copied to other conversations, and due to the fact that the messages need to be sent again, the default picture still needs to be uploaded, and the messages can be sent after relevant storage.
At present, the message needs to occupy more storage resources, and the message sending efficiency is low.
Disclosure of Invention
The application provides a message processing method, a message processing device, message processing equipment and a message processing storage medium, which are used for at least solving the problems that the existing message needs to occupy more storage resources and the message sending efficiency is low.
The technical scheme of the application is as follows:
an embodiment of the present application provides a message processing method, including:
receiving an original resource identifier sent by a sender device, wherein the original resource identifier is an identifier added by a server when a target resource is stored;
generating a target resource identifier containing the original resource identifier according to the original resource identifier;
sending the target resource identifier to sender equipment, so that the sender equipment generates a target message containing the target resource identifier according to the target resource identifier;
and sending the target message and the target resource sent by the sender equipment to receiver equipment.
Optionally, the sending the target message and the target resource sent by the sender device to a receiver device includes:
sending the target message to the receiving party equipment so that the receiving party equipment generates a resource request carrying the target resource identifier according to the target resource identifier contained in the target message;
determining the target resource corresponding to the target resource identifier according to the received resource request sent by the receiver equipment;
and sending the target resource to the receiver equipment.
Optionally, the determining, according to the received resource request sent by the receiver device, the target resource corresponding to the target resource identifier includes:
analyzing the received resource request sent by the receiver equipment to obtain the target resource identifier;
analyzing the target resource identifier to obtain an original resource identifier;
and searching the target resource corresponding to the original resource identifier.
Optionally, the sending the target message and the target resource sent by the sender device to a receiver device includes:
parsing the target resource identifier from the target message;
analyzing the target resource identifier to obtain an original resource identifier;
searching the target resource corresponding to the original resource identifier;
and sending the target resource and the target message to the receiver equipment.
An embodiment of the present application further provides a message processing method, including:
responding to the copy operation of the target resource, and acquiring an original resource identifier of the target resource;
responding to the operation of pasting the target resource to a message edit box, and comparing the original resource identifier with at least one resource identifier stored locally;
and under the condition that the resource identifier which is consistent with the original resource identifier in comparison exists in the at least one resource identifier, the original resource identifier is sent to a server so that the server can generate a target resource identifier containing the original resource identifier according to the original resource identifier.
Optionally, after the sending the original resource identifier to a server, the method further comprises:
receiving the target resource identifier sent by the server;
generating a target message containing the target resource identifier according to the target resource identifier;
and sending the target message to the server so that the server can send the target message and the target resource to a receiver device.
An embodiment of the present application further provides a message processing apparatus, including:
the receiving module is used for receiving an original resource identifier sent by the sender equipment, wherein the original resource identifier is an identifier added by the server when the target resource is stored;
a generating module, configured to generate a target resource identifier including the original resource identifier according to the original resource identifier;
a first sending module, configured to send the target resource identifier to sender equipment, so that the sender equipment generates a target message including the target resource identifier according to the target resource identifier;
and the second sending module is used for sending the target message and the target resource sent by the sender equipment to the receiver equipment.
An embodiment of the present application further provides a message processing apparatus, including:
an obtaining module, configured to obtain an original resource identifier of a target resource in response to a copy operation on the target resource;
the comparison module is used for responding to the operation of pasting the target resource to the message edit box and comparing the original resource identifier with at least one resource identifier stored locally;
and a third sending module, configured to send the original resource identifier to a server when a resource identifier that is consistent with the original resource identifier in comparison exists in the at least one resource identifier, so that the server generates a target resource identifier including the original resource identifier according to the original resource identifier.
An embodiment of the present application further provides an electronic device, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the steps of the above method.
The embodiment of the present application also provides a computer-readable storage medium, where the computer instructions are used to make the computer execute the steps in the above-mentioned method.
Embodiments of the present application further provide a computer program product, which includes a computer program/instruction, and the computer program/instruction, when executed by a processor, implement the steps in the above method.
The embodiment of the present application also provides a computer-readable storage medium, where the computer instructions are used to make the computer execute the steps in the above-mentioned method. The technical scheme provided by the embodiment of the application at least has the following beneficial effects:
in some embodiments of the present application, a server receives an original resource identifier sent by a sender device, generates a target resource identifier including the original resource identifier according to the original resource identifier, stores a copy of target resource, and reduces occupation and storage cost of storage resources of the server by mapping a new target resource identifier to the original resource identifier; sending the target resource identifier to sender equipment, and generating a target message containing the target resource identifier by the sender equipment according to the target resource identifier; the target message and the target resource sent by the sender equipment are sent to the receiver equipment, and the target resource is sent again by using the new target resource identifier, so that the target resource does not need to be uploaded for multiple times, and the message sending efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application and are not to be construed as limiting the application.
Fig. 1 is a schematic structural diagram of a message sending system according to an exemplary embodiment of the present application;
fig. 2a is a schematic flowchart of a message processing method according to an exemplary embodiment of the present application;
fig. 2b is a schematic flowchart of another message processing method according to an exemplary embodiment of the present application;
fig. 3 is a flowchart illustrating another message processing method according to an exemplary embodiment of the present application;
fig. 4 is a flowchart illustrating another message processing method according to an exemplary embodiment of the present application;
fig. 5 is a block diagram illustrating a structure of a message processing apparatus according to an exemplary embodiment of the present application;
fig. 6 is a block diagram illustrating a structure of a message processing apparatus according to an exemplary embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present application 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 this application and in the drawings described above 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 application described herein are capable of operation in sequences other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
In the present application, the user information related to the present application includes, but is not limited to: user device information and user personal information; the user information collection, storage, use, processing, transmission, provision, publication and other processes in the application all conform to the regulations of relevant laws and regulations and do not violate the good customs of the public order.
The sharing of messages often occurs in real-time communication scenes, common messages can be shared in a forwarding mode, some scenes may be a picture sharing a composite message (including pictures, characters and the like), often a user can select to copy the picture directly by a right key, then the picture is directly copied to other conversations, and due to the fact that the messages need to be sent again, the default picture still needs to be uploaded, and the messages can be sent after relevant storage.
When a user shares a message for multiple times, the same resource needs to be uploaded for multiple times, so that more storage resources of the server are occupied, and the storage cost of the server is increased; the message sending process is complicated, and the message sending efficiency is reduced.
In some embodiments of the present application, a server receives an original resource identifier sent by a sender device, generates a target resource identifier including the original resource identifier according to the original resource identifier, stores a copy of target resource, and reduces occupation and storage cost of storage resources of the server by mapping a new target resource identifier to the original resource identifier; sending the target resource identifier to sender equipment, and generating a target message containing the target resource identifier by the sender equipment according to the target resource identifier; the target message and the target resource sent by the sender equipment are sent to the receiver equipment, and the target resource is sent again by using the new target resource identifier, so that the target resource does not need to be uploaded for multiple times, and the message sending efficiency is improved.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a message sending system 10 according to an exemplary embodiment of the present application. As shown in fig. 1, the message transmission system 10 includes a sender device 10a, a server 10b, and a receiver device 10 c. Wherein a communication connection is established between the sender device 10a, the receiver device 10c and the server 10 b. The sender device 10a, the server 10b and the receiver device 10c presented in fig. 1 are only exemplary and do not limit the implementation form thereof.
In this embodiment, the sender device 10a and the receiver device 10c may be connected to the server 10b by wire or wirelessly, the sender device 10a and the receiver device 10c may establish communication connection with the server 10b by using communication methods such as WIFI, bluetooth, and infrared, or the sender device 10a and the receiver device 10c may also establish communication connection with the server 10b by using a mobile network. The network format of the mobile network may be any one of 2G (gsm), 2.5G (gprs), 3G (WCDMA, TD-SCDMA, CDMA2000, UTMS), 4G (LTE), 4G + (LTE +), 5G-Advanced, WiMax, etc.
In this embodiment, the type of the sender device 10a is not limited, the sender device 10a may be any type of device that performs message sending, and the sender device 10a includes, but is not limited to, any one of the following: mobile phones, personal desktop computers, notebook computers, tablet computers, smart televisions and smart speakers.
In the present embodiment, the type of the server 10b is not limited. For example, the server 10b may be a conventional server, a cloud host, a virtual center, or the like. The server 10b mainly includes a processor, a hard disk, a memory, a system bus, and the like, and a general computer architecture type.
In this embodiment, the type of the receiver device 10c is not limited, the receiver device 10c may be any device that receives a message, and the receiver device 10c includes, but is not limited to, any one of the following: mobile phones, personal desktop computers, notebook computers, tablet computers, smart televisions and smart speakers.
It should be noted that the target resource is an entity object that can be carried by the message. Target resources include, but are not limited to: pictures, text, and video.
The resource identifier is a character string for identifying a certain resource. Wherein multiple resource identifiers may identify the same resource, one resource identifier maps to one resource, and not to multiple resources.
The following describes the sender device 10a sending a message containing a target resource to the receiver device 10c for the first time:
in this embodiment, the sender device 10a obtains a target resource in response to a selection operation of the target resource; the sender device 10a sends the target resource to the server 10b in response to the sending operation for the target resource. After receiving the target resource, the server 10b stores the target resource and generates an original resource identifier; the server 10b sends the original resource identifier to the sender device 10a, and the sender device 10a generates an original message containing the original resource identifier according to the original resource identifier; sending the original message to the server 10 b; the server 10b sends the original message and the target resource to the recipient device 10 c.
It should be noted that, when the target resource is a target picture, the target picture includes picture binary information and picture basic information. The picture basic information includes a picture type, a picture size, and the like.
For example, an instant messaging application interface is presented on the display screen of the sender device 10a, the instant messaging application interface including a message edit box and a send control; the sender device 10a inputs the target picture into the message edit box in response to an operation of the user to select the target picture from the local; in response to a trigger operation on a sending control on the communication application interface, sending the target picture to the server 10 b; after receiving the target picture, the server 10b stores the target picture according to the data of the user and the current session; the storage structure adopts a K-V structure, wherein K is an original resource identifier of a target picture, and V is picture binary information; the server 10b sends the original resource identifier of the target picture to the sender device 10 a; after receiving the original resource identifier of the target picture, the sender device 10a generates an original message including the original resource identifier, and sets the message type of the original message as a picture type message. The sender device 10a sends the original message to the server 10 b; the server 10b sends the original message and the target resource to the recipient device 10 c.
In the above embodiment, the server 10b sends the original message and the target resource to the receiver device 10c, including but not limited to the following modes:
the first sending mode is as follows: the server 10b analyzes the original resource identifier from the original message, and searches for a target resource corresponding to the original resource identifier; the target resource and the original message are sent to the recipient device 10 c.
And a second transmission mode: the server 10b sends the original message to the recipient device 10 c; after receiving the original message, the receiving-party device 10c generates a resource request carrying the original resource identifier according to the original resource identifier contained in the original message; the receiver device 10c sends the resource request to the server 10b, and the server 10b determines the target resource corresponding to the original resource identifier according to the received resource request sent by the receiver device 10 c; the target resource is sent to the recipient device 10 c.
In the first sending mode, after receiving the original message sent by the sending device 10a, the server 10b parses the original resource identifier from the original message; searching a target resource corresponding to the original resource identifier from a database according to the original resource identifier; the target resource and the original message are sent directly to the recipient device 10 c. The receiver device 10c does not need to request the server 10b to acquire the target resource again, and the message sending efficiency is improved.
For example, after receiving the original message sent by the sender device 10a, the server 10b parses the original resource identifier from the original message; searching a target picture corresponding to the original resource identifier from a database according to the original resource identifier; the target picture and the original message are sent directly to the recipient device 10 c. After receiving the original message and the target picture, the receiving-side device 10c obtains the content of the original message by parsing.
In the second transmission mode, the server 10b transmits the original message to the receiver device 10 c; after receiving the original message, the receiving-party device 10c generates a resource request carrying the original resource identifier according to the original resource identifier contained in the original message; the receiver device 10c sends the resource request to the server 10b, and the server 10b receives the resource request and analyzes the resource request to obtain an original resource identifier; the server 10b searches the target resource corresponding to the original resource identifier from the database; the target resource is sent to the recipient device 10 c. The receiver device 10c needs to request the server 10b for the target resource again.
For example, the server 10b sends the original message to the recipient device 10 c; after receiving the original message, the receiving device 10c generates a resource request carrying the original resource identifier according to the original resource identifier included in the original message; the receiver device 10c sends the resource request to the server 10b, and the server 10b receives the resource request and analyzes the resource request to obtain an original resource identifier; the server 10b searches a target picture corresponding to the original resource identifier from the database; the target picture is sent to the recipient device 10 c. The receiver device 10c needs to request the server 10b again for the target picture. The receiver device 10c receives the original message and the target picture to obtain the content of the original message.
The following describes the sender device 10a sending a message containing a target resource to the receiver device 10c for a non-first time:
in this embodiment, the sender device 10a obtains an original resource identifier of a target resource in response to a copy operation on the target resource; the sender device 10a, in response to the operation of pasting the target resource to the message edit box, compares the original resource identifier with at least one resource identifier stored locally; in the case that there is a resource identifier that matches the original resource identifier in the at least one resource identifier, the sender device 10a sends the original resource identifier to the server 10b, and receives the original resource identifier sent by the sender device 10a, where the original resource identifier is an identifier added by the server when storing the target resource; generating a target resource identifier containing the original resource identifier according to the original resource identifier, storing a copy of target resource by the server, and mapping the new target resource identifier to the original resource identifier to reduce the occupation and storage cost of the storage resource of the server; sending the target resource identifier to the sender device 10a, and generating a target message containing the target resource identifier by the sender device 10a according to the target resource identifier; the sender device 10a sends the target message and the target resource sent by the sender device to the receiver device 10 c. And the new target resource identifier is utilized to resend the target resource without uploading the target resource for multiple times, so that the message sending efficiency is improved.
In the above-described embodiment, the sender device 10a acquires the original resource identifier of the target resource in response to the copy operation on the target resource. One way to achieve this is that the sender device 10a obtains the target resource in response to a selection operation on the target resource; responding to the triggering operation of the copying key, and generating a copying instruction of the target resource; the sender device 10a acquires the original resource identifier corresponding to the target resource from the local according to the copy instruction.
For example, the sender device 10a acquires a target picture in response to a selection operation of the target picture in the history message; responding to the triggering operation of a copying key, and generating a copying instruction of the target picture; the sender device 10a acquires the original resource identifier corresponding to the target picture from the local according to the copy instruction.
In the above embodiment, the sender device 10a compares the original resource identifier with at least one resource identifier stored locally in response to the operation of pasting the target resource to the message edit box. For example, in response to the operation of pasting the target resource to the message edit box, the sender device 10a compares the original resource identifier corresponding to the target picture with at least one resource identifier stored locally to generate a comparison result; in the case that there is a resource identifier that matches the original resource identifier in the at least one resource identifier, the sender device 10a sends the original resource identifier to the server 10 b; under the condition that the resource identifier which is consistent with the original resource identifier in comparison does not exist in at least one resource identifier, the sender device 10a sends the target picture to the server 10 b; the server 10b performs a storage operation on the target picture.
In the above embodiment, the server 10b receives the original resource identifier sent by the sender device 10 a; and generating a target resource identifier according to the resource identifier and a preset resource identifier generation rule, wherein the target resource identifier comprises an original resource identifier, and mapping a new target resource identifier to an old original resource identifier so as to store the reference relationship between the resources. The server 10b, after generating the target resource identifier, sends the target resource identifier to the sender device 10 a.
The sender device 10a receives the target resource identifier sent by the server 10 b; generating a target message containing the target resource identifier according to the target resource identifier; the sender device 10a sends the target message to the server 10b for the server 10b to send the target message and the target resource to the recipient device 10 c.
In an alternative embodiment, the server 10b sends the target message and the target resource to the recipient device 10 c. Including but not limited to the following transmission modes:
and a third sending mode: the server 10b sends the target message to the receiver device 10c, and the receiver device 10c generates a resource request carrying a target resource identifier according to the target resource identifier contained in the target message; the server 10b determines a target resource corresponding to the target resource identifier according to the received resource request sent by the receiver device 10 c; the server 10b sends the target resource to the recipient device 10 c.
And a fourth sending mode: the server 10b parses the target resource identifier from the target message; the server 10b analyzes the target resource identifier to obtain an original resource identifier; the server 10b searches for a target resource corresponding to the original resource identifier; the server 10b sends the target resource and the target message to the recipient device 10 c.
In the third sending mode, after the server 10b receives the target message sent by the sender device 10a, the server 10b sends the target message to the receiver device 10 c; the receiver device 10c generates a resource request carrying the target resource identifier according to the target resource identifier included in the target message; the receiver device 10c sends the resource request to the server 10b, and the server 10b determines the target resource corresponding to the target resource identifier according to the received resource request sent by the receiver device 10 c; the server 10b sends the target resource to the recipient device 10 c.
The server 10b determines a target resource corresponding to the target resource identifier according to the received resource request sent by the receiver device 10 c. One way to implement this is to parse a received resource request sent by the receiver device to obtain a target resource identifier; analyzing the target resource identifier to obtain an original resource identifier; and searching a target resource corresponding to the original resource identifier.
For example, after the server 10b receives the target message sent by the sender device 10a, the server 10b sends the target message to the receiver device 10 c; the receiver device 10c generates a resource request carrying the target picture identifier according to the target picture identifier contained in the target message; the receiver equipment 10c sends the resource request to the server 10b, and the server 10b analyzes the received resource request sent by the receiver equipment to obtain a target picture identifier; the server 10b analyzes the target picture identifier to obtain an original resource identifier; searching a target picture corresponding to the original resource identifier; the server 10b sends the target picture to the recipient device 10 c.
In the fourth sending mode, after the server 10b receives the target message sent by the sender device 10a, the server 10b parses the target resource identifier from the target message; the server 10b analyzes the target resource identifier to obtain an original resource identifier; the server 10b searches for a target resource corresponding to the original resource identifier; the server 10b sends the target resource and the target message directly to the recipient device 10 c. The receiver device 10c does not need to request the server 10b to acquire the target resource again, and the message sending efficiency is improved.
For example, after the server 10b receives the target message sent by the sender device 10a, the server 10b parses the target picture identifier from the target message; the server 10b analyzes the target picture identifier to obtain an original resource identifier; the server 10b searches a target picture corresponding to the original resource identifier from a database according to the original resource identifier; the server 10b sends the target picture and the target message directly to the recipient device 10 c. After receiving the target message and the target picture, the receiving party device 10c obtains the original message content by parsing.
The embodiment of the application improves the efficiency of sending the resource messages, does not need to upload the server for multiple times, and simplifies the flow; the method reduces the reservation of one share of the same resource by the server and reduces the storage cost of the server.
In addition to the message sending system 10 provided above, some embodiments of the present application also provide a message processing method, and the message processing method provided herein may depend on the message sending system 10, but is not limited to the message sending system 10 provided in the above embodiments.
From the perspective of a server, fig. 2a is a schematic flowchart of a message processing method according to an exemplary embodiment of the present application. As shown in fig. 2a, the method comprises:
s211: receiving an original resource identifier sent by a sender device, wherein the original resource identifier is an identifier added by a server when a target resource is stored;
s212: generating a target resource identifier containing the original resource identifier according to the original resource identifier;
s213: sending the target resource identifier to the sender equipment, so that the sender equipment generates a target message containing the target resource identifier according to the target resource identifier;
s214: and sending the target message and the target resource sent by the sender equipment to the receiver equipment.
From the perspective of the sender device, fig. 2b is a flowchart illustrating another message processing method provided in an exemplary embodiment of the present application. As shown in fig. 2b, the method comprises:
s221: responding to the copy operation of the target resource, and acquiring an original resource identifier of the target resource;
s222: in response to the operation of pasting the target resource to the message edit box, comparing the original resource identifier with at least one resource identifier stored locally;
s223: and under the condition that the resource identifier which is consistent with the original resource identifier in comparison exists in at least one resource identifier, the original resource identifier is sent to the server so that the server can generate a target resource identifier containing the original resource identifier according to the original resource identifier.
In this embodiment, the type of the sender device is not limited, and the sender device may be all types of devices that perform message sending, and the sender device includes, but is not limited to, any of the following: mobile phones, personal desktop computers, notebook computers, tablet computers, smart televisions and smart speakers.
In the present embodiment, the type of the server is not limited. For example, the server may be a conventional server, a cloud host, a virtual center, or the like server device. The server mainly comprises a processor, a hard disk, a memory, a system bus and the like, and a general computer architecture type.
In this embodiment, the type of the receiver device is not limited, and the receiver device may be all forms of devices that perform message reception, and the receiver device includes, but is not limited to, any one of the following: mobile phones, personal desktop computers, notebook computers, tablet computers, smart televisions and smart speakers.
It should be noted that the target resource is an entity object that can be carried by the message. Target resources include, but are not limited to: pictures, text, and video.
The resource identifier is a character string for identifying a certain resource. Wherein multiple resource identifiers may identify the same resource, one resource identifier maps to one resource, and not to multiple resources.
The following describes the first time a sender device sends a message containing a target resource to a receiver device:
in this embodiment, the sender device obtains a target resource in response to a selection operation of the target resource; the sender device sends the target resource to the server in response to a sending operation of the target resource. After receiving the target resource, the server stores the target resource and generates an original resource identifier; the server sends the original resource identifier to the sender equipment, and the sender equipment generates an original message containing the original resource identifier according to the original resource identifier; sending the original message to a server; the server sends the original message and the target resource to the recipient device.
It should be noted that, when the target resource is a target picture, the target picture includes picture binary information and picture basic information. The picture basic information includes a picture type, a picture size, and the like.
For example, an instant messaging application interface is displayed on a display screen of the sender device, and the instant messaging application interface comprises a message editing frame and a sending control; the method comprises the steps that a sender device responds to an operation that a user selects a target picture from local, and inputs the target picture into a message edit box; responding to a trigger operation of a sending control on the communication application interface, and sending the target picture to a server; after receiving the target picture, the server stores the target picture according to the data of the user and the current session; the storage structure adopts a K-V structure, wherein K is an original resource identifier of a target picture, and V is picture binary information; the server sends the original resource identifier of the target picture to the sender equipment; after receiving the original resource identifier of the target picture, the sender device generates an original message containing the original resource identifier, and sets the message type of the original message as a picture type message. The sender equipment sends the original message to a server; the server sends the original message and the target resource to the recipient device.
In the above embodiment, the server sends the original message and the target resource to the recipient device, which includes but is not limited to the following sending manners:
the first sending mode is as follows: the server analyzes an original resource identifier from the original message and searches a target resource corresponding to the original resource identifier; the target resource and the original message are sent to the recipient device.
And a second transmission mode: the server sends the original message to the receiver equipment; after receiving the original message, the receiving party equipment generates a resource request carrying the original resource identifier according to the original resource identifier contained in the original message; the receiver equipment sends the resource request to the server, and the server determines the target resource corresponding to the original resource identifier according to the received resource request sent by the receiver equipment; the target resource is sent to the recipient device.
In the first sending mode, after receiving an original message sent by a sender device, a server analyzes an original resource identifier from the original message; searching a target resource corresponding to the original resource identifier from a database according to the original resource identifier; the target resource and the original message are sent directly to the recipient device. The receiving party equipment does not need to request the server for obtaining the target resource again, and the sending efficiency of the message is improved.
For example, after receiving an original message sent by a sender device, a server parses an original resource identifier from the original message; searching a target picture corresponding to the original resource identifier from a database according to the original resource identifier; and directly sending the target picture and the original message to the receiver equipment. And after receiving the original message and the target picture, the receiving party equipment analyzes the original message to obtain the content of the original message.
In the second sending mode, the server sends the original message to the receiver equipment; after receiving the original message, the receiving party equipment generates a resource request carrying the original resource identifier according to the original resource identifier contained in the original message; the receiver equipment sends the resource request to the server, and the server receives the resource request and analyzes the resource request to obtain an original resource identifier; the server searches a target resource corresponding to the original resource identifier from a database; the target resource is sent to the recipient device. The receiving device needs to request the server for obtaining the target resource again.
For example, the server sends the original message to the recipient device; after receiving the original message, the receiving party equipment generates a resource request carrying the original resource identifier according to the original resource identifier contained in the original message; the receiver equipment sends the resource request to the server, and the server receives the resource request and analyzes the resource request to obtain an original resource identifier; the server searches a target picture corresponding to the original resource identifier from a database; and sending the target picture to the receiver equipment. The receiving device needs to request the server for obtaining the target picture again. And after receiving the original message and the target picture, the receiving party equipment obtains the content of the original message.
The following describes that a sender device sends a message containing a target resource to a receiver device for a non-first time:
in this embodiment, the sender device obtains an original resource identifier of a target resource in response to a copy operation on the target resource; the sender equipment responds to the operation of pasting the target resource to the message edit box, and compares the original resource identifier with at least one locally stored resource identifier; under the condition that a resource identifier which is consistent with the original resource identifier in comparison exists in at least one resource identifier, sending the original resource identifier to a server by the sender equipment, and receiving the original resource identifier sent by the sender equipment, wherein the original resource identifier is an identifier added by the server when the target resource is stored; generating a target resource identifier containing the original resource identifier according to the original resource identifier, storing a copy of target resource by the server, and mapping the new target resource identifier to the original resource identifier to reduce the occupation and storage cost of the storage resource of the server; sending the target resource identifier to sender equipment, and generating a target message containing the target resource identifier by the sender equipment according to the target resource identifier; and the sender equipment sends the target message and the target resource sent by the sender equipment to the receiver equipment. And the new target resource identifier is utilized to resend the target resource without uploading the target resource for multiple times, so that the message sending efficiency is improved.
In the above embodiment, the sender device obtains the original resource identifier of the target resource in response to the copy operation on the target resource. One way to achieve this is that the sender device responds to the selected operation on the target resource to obtain the target resource; responding to the triggering operation of the copying key, and generating a copying instruction of the target resource; and the sender equipment acquires the original resource identifier corresponding to the target resource from the local according to the copying instruction.
For example, the sender device acquires a target picture in response to a selection operation of the target picture in the history message; responding to the triggering operation of the copying key, and generating a copying instruction of the target picture; and the sender equipment locally acquires the original resource identifier corresponding to the target picture according to the copying instruction.
In the above embodiment, the sender device compares the original resource identifier with at least one resource identifier stored locally in response to the operation of pasting the target resource to the message edit box. For example, in response to an operation of pasting a target resource to a message edit box, sender equipment compares an original resource identifier corresponding to a target picture with at least one resource identifier stored locally to generate a comparison result; under the condition that the resource identifier which is consistent with the original resource identifier in comparison exists in at least one resource identifier, the sender equipment sends the original resource identifier to the server; under the condition that the resource identifier which is consistent with the original resource identifier in comparison does not exist in at least one resource identifier, sending party equipment sends the target picture to a server; and the server stores the target picture.
In the above embodiment, the server receives an original resource identifier sent by the sender device; and generating a target resource identifier according to the resource identifier and a preset resource identifier generation rule, wherein the target resource identifier comprises an original resource identifier, and mapping a new target resource identifier to an old original resource identifier so as to store the reference relationship between the resources. The server sends the target resource identifier to the sender device after generating the target resource identifier.
The method comprises the steps that a sender device receives a target resource identifier sent by a server; generating a target message containing the target resource identifier according to the target resource identifier; the sending party equipment sends the target message to the server so that the server can send the target message and the target resource to the receiving party equipment.
In an alternative embodiment, the server sends the targeted message and the targeted resource to the recipient device. Including but not limited to the following transmission modes:
and a third sending mode: the server sends the target message to the receiver equipment, and the receiver equipment generates a resource request carrying the target resource identifier according to the target resource identifier contained in the target message; the server determines a target resource corresponding to the target resource identifier according to the received resource request sent by the receiver equipment; the server sends the target resource to the recipient device.
And a fourth sending mode: the server analyzes the target resource identifier from the target message; the server analyzes the target resource identifier to obtain an original resource identifier; the server searches a target resource corresponding to the original resource identifier; the server sends the target resource and the target message to the recipient device.
In the third sending mode, after the server receives the target message sent by the sender equipment, the server sends the target message to the receiver equipment; the receiving party equipment generates a resource request carrying a target resource identifier according to the target resource identifier contained in the target message; the receiver equipment sends the resource request to the server, and the server determines the target resource corresponding to the target resource identifier according to the received resource request sent by the receiver equipment; the server sends the target resource to the recipient device.
The server determines the target resource corresponding to the target resource identifier according to the received resource request sent by the receiver equipment. One way to implement this is to parse a received resource request sent by the receiver device to obtain a target resource identifier; analyzing the target resource identifier to obtain an original resource identifier; and searching a target resource corresponding to the original resource identifier.
For example, after receiving a target message sent by a sender device, a server sends the target message to a receiver device; the receiving party equipment generates a resource request carrying the target picture identifier according to the target picture identifier contained in the target message; the receiver equipment sends the resource request to the server, and the server analyzes the received resource request sent by the receiver equipment to obtain a target picture identifier; the server analyzes the target picture identifier to obtain an original resource identifier; searching a target picture corresponding to the original resource identifier; and the server sends the target picture to the receiver equipment.
In the fourth sending mode, after the server receives the target message sent by the sender equipment, the server analyzes the target resource identifier from the target message; the server analyzes the target resource identifier to obtain an original resource identifier; the server searches a target resource corresponding to the original resource identifier; the server sends the target resource and the target message directly to the receiver device. The receiving party equipment does not need to request the server for obtaining the target resource again, and the sending efficiency of the message is improved.
For example, after receiving a target message sent by a sender device, the server parses a target picture identifier from the target message; the server analyzes the target picture identifier to obtain an original resource identifier; the server searches a target picture corresponding to the original resource identifier from a database according to the original resource identifier; and the server directly sends the target picture and the target message to the receiver equipment. And after receiving the target message and the target picture, the receiving party equipment analyzes the target message and the target picture to obtain the original message content.
The embodiment of the application improves the efficiency of sending the resource messages, does not need to upload the server for multiple times, and simplifies the flow; the server is reduced to reserve one part of the same resource, and the storage cost of the server is reduced.
Based on the description of the foregoing embodiments, fig. 3 is a flowchart illustrating another message processing method according to an exemplary embodiment of the present application. As shown in fig. 3, the method includes:
s301: a server receives an original resource identifier sent by sender equipment;
s302: the server generates a target resource identifier containing the original resource identifier according to the original resource identifier;
s303: the server sends the target resource identifier to the sender device;
s304: the sender equipment generates a target message containing the target resource identifier according to the target resource identifier;
s305: the sender equipment sends the target message to a server;
s306: the server sends the target message and the target resource to the recipient device.
Based on the description of the foregoing embodiments, fig. 4 is a flowchart illustrating another message processing method provided in the exemplary embodiment of the present application. As shown in fig. 4, the method includes:
s401: responding to the copy operation of the target resource, and acquiring an original resource identifier of the target resource;
s402: in response to the operation of pasting the target resource to the message edit box, comparing the original resource identifier with at least one resource identifier stored locally;
s403: under the condition that the resource identifier which is consistent with the original resource identifier in comparison exists in at least one resource identifier, the original resource identifier is sent to the server;
s404: receiving an original resource identifier sent by a sender device, wherein the original resource identifier is an identifier added by a server when a target resource is stored;
s405: generating a target resource identifier containing the original resource identifier according to the original resource identifier;
s406: sending the target resource identifier to the sender equipment, so that the sender equipment generates a target message containing the target resource identifier according to the target resource identifier;
s407: and sending the target message and the target resource sent by the sender equipment to the receiver equipment.
In the embodiment of the method, the server receives an original resource identifier sent by the sender equipment, generates a target resource identifier containing the original resource identifier according to the original resource identifier, stores a target resource, and reduces the occupation and storage cost of the storage resource of the server by mapping a new target resource identifier to the original resource identifier; sending the target resource identifier to sender equipment, and generating a target message containing the target resource identifier by the sender equipment according to the target resource identifier; the target message and the target resource sent by the sender equipment are sent to the receiver equipment, and the target resource is sent again by using the new target resource identifier, so that the target resource does not need to be uploaded for multiple times, and the message sending efficiency is improved.
Fig. 5 is a block diagram of a message processing apparatus 50 according to an exemplary embodiment of the present application. As shown in fig. 5, the message processing apparatus 50 includes a receiving module 51, a generating module 52, a first sending module 53 and a second sending module 54.
The receiving module 51 is configured to receive an original resource identifier sent by a sender device, where the original resource identifier is an identifier added by a server when storing a target resource;
a generating module 52, configured to generate a target resource identifier including an original resource identifier according to the original resource identifier;
a first sending module 53, configured to send the target resource identifier to the sender device, so that the sender device generates a target message including the target resource identifier according to the target resource identifier;
and a second sending module 54, configured to send the target message and the target resource sent by the sender device to the receiver device.
Optionally, the second sending module 54, when sending the target message and the target resource sent by the sender device to the receiver device, is configured to:
sending the target message to the receiving party equipment so that the receiving party equipment generates a resource request carrying the target resource identifier according to the target resource identifier contained in the target message; determining a target resource corresponding to the target resource identifier according to the received resource request sent by the receiver equipment; the target resource is sent to the recipient device.
Optionally, when determining the target resource corresponding to the target resource identifier according to the received resource request sent by the receiver device, the second sending module 54 is configured to:
analyzing a received resource request sent by receiver equipment to obtain a target resource identifier;
analyzing the target resource identifier to obtain an original resource identifier;
and searching a target resource corresponding to the original resource identifier.
Optionally, the second sending module 54, when sending the target message and the target resource sent by the sender device to the receiver device, is configured to:
resolving a target resource identifier from the target message;
analyzing the target resource identifier to obtain an original resource identifier;
searching a target resource corresponding to the original resource identifier;
the target resource and the target message are sent to the recipient device.
Fig. 6 is a block diagram of a message processing apparatus 60 according to an exemplary embodiment of the present application. As shown in fig. 6, the message processing apparatus 60 includes an obtaining module 61, a comparing module 62 and a third sending module 63.
The obtaining module 61 is configured to, in response to a copy operation on a target resource, obtain an original resource identifier of the target resource;
a comparison module 62, configured to compare the original resource identifier with at least one resource identifier stored locally in response to an operation of pasting the target resource to the message edit box;
a third sending module 63, configured to send the original resource identifier to the server when a resource identifier that is consistent with the original resource identifier in the comparison exists in the at least one resource identifier, so that the server generates a target resource identifier including the original resource identifier according to the original resource identifier.
Optionally, the third sending module 63 is further configured to:
receiving a target resource identifier sent by a server;
generating a target message containing the target resource identifier according to the target resource identifier;
and sending the target message to the server so that the server sends the target message and the target resource to the receiver equipment.
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. Meanwhile, the text processing device disclosed by the invention also has the beneficial effects corresponding to the text processing method.
Fig. 7 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure. As shown in fig. 7, the electronic apparatus includes: a memory 701 and a processor 702. In addition, the electronic device further includes necessary components such as a power supply component 703 and a communication component 704.
The memory 701 is used for storing a computer program and may be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device.
The memory 701 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A communication component 704 for data transmission with other devices.
Processor 702, which may execute computer instructions stored in memory 701 for: receiving an original resource identifier sent by a sender device, wherein the original resource identifier is an identifier added by a server when a target resource is stored; generating a target resource identifier containing the original resource identifier according to the original resource identifier; sending the target resource identifier to the sender equipment, so that the sender equipment generates a target message containing the target resource identifier according to the target resource identifier; and sending the target message and the target resource sent by the sender equipment to the receiver equipment.
Optionally, the processor 702, when sending the target message and the target resource sent by the sender device to the receiver device, is configured to:
sending the target message to the receiving party equipment so that the receiving party equipment generates a resource request carrying the target resource identifier according to the target resource identifier contained in the target message;
determining a target resource corresponding to the target resource identifier according to the received resource request sent by the receiver equipment;
the target resource is sent to the recipient device.
Optionally, the processor 702, when determining a target resource corresponding to the target resource identifier according to the received resource request sent by the receiver device, is configured to:
analyzing a received resource request sent by receiver equipment to obtain a target resource identifier;
analyzing the target resource identifier to obtain an original resource identifier;
and searching a target resource corresponding to the original resource identifier.
Optionally, the processor 702, when sending the target message and the target resource sent by the sender device to the receiver device, is configured to:
resolving a target resource identifier from the target message;
analyzing the target resource identifier to obtain an original resource identifier;
searching a target resource corresponding to the original resource identifier;
the target resource and the target message are sent to the recipient device.
Fig. 8 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure. As shown in fig. 8, the electronic apparatus includes: a memory 801 and a processor 802. In addition, the electronic device also comprises necessary components such as a power supply component 803, a communication component 804 and a display 805.
The memory 801 is used to store computer programs and may be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device.
The memory 801 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A communication component 804 configured to communicate data with other devices.
The processor 802, may execute computer instructions stored in the memory 801 for: responding to the copy operation of the target resource, and acquiring an original resource identifier of the target resource; in response to the operation of pasting the target resource to the message edit box, comparing the original resource identifier with at least one resource identifier stored locally; and under the condition that the resource identifier which is consistent with the original resource identifier in comparison exists in at least one resource identifier, the original resource identifier is sent to the server so that the server can generate a target resource identifier containing the original resource identifier according to the original resource identifier.
Optionally, the processor 802, after sending the original resource identifier to the server, is further operable to:
receiving a target resource identifier sent by a server;
generating a target message containing the target resource identifier according to the target resource identifier;
and sending the target message to the server so that the server sends the target message and the target resource to the receiver equipment.
Correspondingly, the embodiment of the application also provides a computer readable storage medium storing the computer program. The computer-readable storage medium stores a computer program, and the computer program, when executed by one or more processors, causes the one or more processors to perform the steps in the method embodiments of fig. 2a or 2 b.
Accordingly, embodiments of the present application also provide a computer program product, which includes a computer program/instruction, and the computer program/instruction is executed by a processor to perform each step in the method embodiments of fig. 2a or fig. 2 b.
The communication components of fig. 7 and 8 described above are configured to facilitate communication between the device in which the communication component is located and other devices in a wired or wireless manner. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, a mobile communication network such as 2G, 3G, 4G/LTE, 5G, or the like, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
The power supply components of fig. 7 and 8 described above provide power to the various components of the device in which the power supply components are located. The power components may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device in which the power component is located.
The display screen in fig. 8 described above includes a screen, which may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The electronic equipment further comprises an audio component.
An audio component configurable to output and/or input an audio signal. For example, the audio component includes a Microphone (MIC) configured to receive an external audio signal when the device in which the audio component is located is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in a memory or transmitted via a communication component. In some embodiments, the audio assembly further comprises a speaker for outputting audio signals.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
In the embodiments of the apparatus, the device, the storage medium, and the computer program product described above, the server receives an original resource identifier sent by a sender device, generates a target resource identifier including the original resource identifier according to the original resource identifier, stores a copy of the target resource, and reduces the occupation and storage cost of the storage resource of the server by mapping a new target resource identifier to the original resource identifier; sending the target resource identifier to sender equipment, and generating a target message containing the target resource identifier by the sender equipment according to the target resource identifier; the target message and the target resource sent by the sender equipment are sent to the receiver equipment, and the target resource is sent again by using the new target resource identifier, so that the target resource does not need to be uploaded for multiple times, and the message sending efficiency is improved.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present application and are presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A message processing method, comprising:
receiving an original resource identifier sent by a sender device, wherein the original resource identifier is an identifier added by a server when a target resource is stored;
generating a target resource identifier containing the original resource identifier according to the original resource identifier;
sending the target resource identifier to sender equipment, so that the sender equipment generates a target message containing the target resource identifier according to the target resource identifier;
and sending the target message and the target resource sent by the sender equipment to receiver equipment.
2. The method of claim 1, wherein sending the target message and the target resource sent by the sender device to a receiver device comprises:
sending the target message to the receiving party equipment so that the receiving party equipment generates a resource request carrying the target resource identifier according to the target resource identifier contained in the target message;
determining the target resource corresponding to the target resource identifier according to the received resource request sent by the receiver equipment;
and sending the target resource to the receiver equipment.
3. The method of claim 2, wherein the determining the target resource corresponding to the target resource identifier according to the received resource request sent by the receiver device comprises:
analyzing the received resource request sent by the receiver equipment to obtain the target resource identifier;
analyzing the target resource identifier to obtain an original resource identifier;
and searching the target resource corresponding to the original resource identifier.
4. The method of claim 1, wherein sending the target message and the target resource sent by the sender device to a receiver device comprises:
parsing the target resource identifier from the target message;
analyzing the target resource identifier to obtain an original resource identifier;
searching the target resource corresponding to the original resource identifier;
and sending the target resource and the target message to the receiver equipment.
5. A message processing method, comprising:
responding to the copy operation of the target resource, and acquiring an original resource identifier of the target resource;
in response to the operation of pasting the target resource to a message edit box, comparing the original resource identifier with at least one resource identifier stored locally;
and under the condition that the resource identifier which is consistent with the original resource identifier in comparison exists in the at least one resource identifier, the original resource identifier is sent to a server, so that the server can generate a target resource identifier containing the original resource identifier according to the original resource identifier.
6. The method of claim 5, wherein after the sending the original resource identifier to a server, the method further comprises:
receiving the target resource identifier sent by the server;
generating a target message containing the target resource identifier according to the target resource identifier;
and sending the target message to the server so that the server can send the target message and the target resource to a receiver device.
7. A message processing apparatus, comprising:
the receiving module is used for receiving an original resource identifier sent by the sender equipment, wherein the original resource identifier is an identifier added by the server when the target resource is stored;
a generating module, configured to generate a target resource identifier including the original resource identifier according to the original resource identifier;
a first sending module, configured to send the target resource identifier to sender equipment, so that the sender equipment generates a target message including the target resource identifier according to the target resource identifier;
and the second sending module is used for sending the target message and the target resource sent by the sender equipment to the receiver equipment.
8. A message processing apparatus, comprising:
an obtaining module, configured to obtain an original resource identifier of a target resource in response to a copy operation on the target resource;
the comparison module is used for responding to the operation of pasting the target resource to the message edit box and comparing the original resource identifier with at least one resource identifier stored locally;
and a third sending module, configured to send the original resource identifier to a server when a resource identifier that is consistent with the original resource identifier in comparison exists in the at least one resource identifier, so that the server generates a target resource identifier including the original resource identifier according to the original resource identifier.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to carry out the steps in the method according to any one of claims 1-4 or 5-6.
10. A computer readable storage medium, wherein the computer instructions are configured to cause the computer to perform the steps of the method of any one of claims 1-4 or 5-6.
CN202210738483.XA 2022-06-27 2022-06-27 Message processing method, device, equipment and storage medium Active CN114979087B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210738483.XA CN114979087B (en) 2022-06-27 2022-06-27 Message processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210738483.XA CN114979087B (en) 2022-06-27 2022-06-27 Message processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114979087A true CN114979087A (en) 2022-08-30
CN114979087B CN114979087B (en) 2024-02-06

Family

ID=82965782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210738483.XA Active CN114979087B (en) 2022-06-27 2022-06-27 Message processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114979087B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821057A (en) * 2011-06-09 2012-12-12 腾讯科技(深圳)有限公司 File sending method, device and system
WO2015117554A1 (en) * 2014-02-10 2015-08-13 Tencent Technology (Shenzhen) Company Limited Data processing method, apparatus, and terminal device
CN105100141A (en) * 2014-05-04 2015-11-25 腾讯科技(深圳)有限公司 Multimedia content network sharing method, multimedia content network sharing device and multimedia content network sharing system
US20170214642A1 (en) * 2016-01-27 2017-07-27 Vonage Network Llc Systems and methods for managing delivery of media content to user communication terminals
CN107547352A (en) * 2016-06-24 2018-01-05 腾讯科技(深圳)有限公司 Document sending method, apparatus and system
US20200327001A1 (en) * 2017-12-08 2020-10-15 Boe Technology Group Co., Ltd. Message processing method and system, storage medium and electronic device
CN114115756A (en) * 2020-08-31 2022-03-01 华为终端有限公司 Data sharing method, graphical user interface, related equipment and system
WO2022089121A1 (en) * 2020-10-27 2022-05-05 华为技术有限公司 Method and apparatus for processing push message

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821057A (en) * 2011-06-09 2012-12-12 腾讯科技(深圳)有限公司 File sending method, device and system
WO2015117554A1 (en) * 2014-02-10 2015-08-13 Tencent Technology (Shenzhen) Company Limited Data processing method, apparatus, and terminal device
CN105100141A (en) * 2014-05-04 2015-11-25 腾讯科技(深圳)有限公司 Multimedia content network sharing method, multimedia content network sharing device and multimedia content network sharing system
US20170214642A1 (en) * 2016-01-27 2017-07-27 Vonage Network Llc Systems and methods for managing delivery of media content to user communication terminals
CN107547352A (en) * 2016-06-24 2018-01-05 腾讯科技(深圳)有限公司 Document sending method, apparatus and system
US20200327001A1 (en) * 2017-12-08 2020-10-15 Boe Technology Group Co., Ltd. Message processing method and system, storage medium and electronic device
CN114115756A (en) * 2020-08-31 2022-03-01 华为终端有限公司 Data sharing method, graphical user interface, related equipment and system
WO2022089121A1 (en) * 2020-10-27 2022-05-05 华为技术有限公司 Method and apparatus for processing push message

Also Published As

Publication number Publication date
CN114979087B (en) 2024-02-06

Similar Documents

Publication Publication Date Title
US11106420B2 (en) Method, device, system and storage medium for information transmission and data processing
US9129023B2 (en) Connected address book systems and methods
CN106547547B (en) data acquisition method and device
KR20130005406A (en) Method and apparatus for transmitting message in portable terminnal
CN110390641B (en) Image desensitizing method, electronic device and storage medium
CN104468469A (en) Method and system for arranging by using mobile terminal
CN110674624A (en) Method and system for editing image and text
CN110945467B (en) Disturbance-free method and terminal
CN104636164A (en) Generating method and device for starting page
CN112491861A (en) Login state synchronization method, device and storage medium
JP2016524767A (en) Instant message management method, apparatus, program, and recording medium
CN113596175A (en) Scene synchronization method, terminal, server and system
CN111917813A (en) Communication method, device, equipment, system and storage medium
CN112114804A (en) Application program generation method, device and system
CN110875947A (en) Data processing method and edge node equipment
EP3230904B1 (en) Terminal apparatus and method for search contents
CN112052391A (en) Data pushing method, device and system
CN114979087B (en) Message processing method, device, equipment and storage medium
KR102095666B1 (en) Information input methods, devices, programs and storage media
CN114025317A (en) Multimedia resource propagation method, device, server, terminal and storage medium
CN114239531A (en) Template recommendation method and device, electronic equipment and storage medium
CN117201827B (en) Text processing method, system, device, equipment, medium and program product
KR20130138597A (en) System for data common service, apparatus and method for data common service
CN114647808A (en) Picture display and picture processing method, device, equipment and storage medium
CN115186180A (en) Interface display control and information processing method, equipment 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