Information processing method and device, electronic equipment and storage medium
By replacing the location identifier during information processing, the problems of data consumption and waiting time during copy and paste are solved, achieving efficient information transmission and access control.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2026-03-31
AI Technical Summary
During information communication, existing technologies require downloading and copying resources such as images and videos into the session, which results in data consumption and user waiting time, especially when transmitting between different clients.
By replacing the location identifier during the copy and paste process, the source data is not downloaded. Instead, the source data is mapped through a second location identifier, thereby enabling resource association and access control.
It reduces data consumption and user waiting time, improves information transmission efficiency, and achieves precise access control, preventing unauthorized access.
Smart Images

Figure CN116155869B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and more particularly to an information processing method, apparatus, electronic device, and storage medium. Background Technology
[0002] When communicating with other users, such as through a communication client, you may receive pictures, videos, etc. When copying and pasting the received pictures and videos into the conversation, you need to download the received pictures and videos, then copy and paste them into the conversation to send. Summary of the Invention
[0003] This disclosure provides an information processing method, apparatus, electronic device, and storage medium.
[0004] The following technical solution is adopted in this disclosure.
[0005] In some embodiments, this disclosure provides an information processing method, including:
[0006] In response to a first operation event that copies the first information, the data of the first information is copied, and a first location identifier associated with the target resource in the first information is obtained, wherein the first information includes the target resource;
[0007] In response to a second operation event that pastes and sends copied data, the system obtains a second location identifier of the source data based on a first location identifier, associates the target resource in the second information to be sent with the second location identifier, and sends the second information.
[0008] Among them, the first location identifier and the second location identifier are different identifiers of the source data corresponding to the target resource in the first information in the server.
[0009] In some embodiments, this disclosure provides an information processing apparatus, including:
[0010] The copying unit is configured to respond to a first operation event of copying first information, copy the data of the first information, and obtain a first location identifier associated with the target resource in the first information, wherein the first information includes the target resource;
[0011] The control unit is configured to respond to a second operation event of pasting copied data and sending it, obtain a second location identifier of the source data based on a first location identifier, associate the target resource in the second information to be sent with the second location identifier, and send the second information;
[0012] Among them, the first location identifier and the second location identifier are different identifiers of the source data corresponding to the target resource in the first information in the server.
[0013] In some embodiments, this disclosure provides an electronic device, including: at least one memory and at least one processor;
[0014] The memory is used to store program code, and the processor is used to call the program code stored in the memory to execute the above method.
[0015] In some embodiments, this disclosure provides a computer-readable storage medium for storing program code that, when run by a processor, causes the processor to perform the methods described above.
[0016] The information processing method provided in this disclosure associates the target resource in the second information with a second location identifier, thereby enabling the recipient of the second information to view the source data on the server through the second location identifier. Thus, during the copy-paste sending process, there is no need to download the source data; instead, the source data is mapped using the second location identifier. Attached Figure Description
[0017] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and elements are not necessarily drawn to scale.
[0018] Figure 1 This is a flowchart of an information processing method according to an embodiment of the present disclosure.
[0019] Figure 2 This is a diagram showing the relationship between the resource linker, source data, and location identifier in an embodiment of this disclosure.
[0020] Figure 3 This is an interaction diagram of the information processing method according to an embodiment of this disclosure.
[0021] Figure 4 This is a partial flowchart of an information processing method according to an embodiment of the present disclosure.
[0022] Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. Detailed Implementation
[0023] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0024] It should be understood that the various steps described in the method embodiments of this disclosure can be performed in sequence and / or in parallel. Furthermore, method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0025] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0026] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0027] It should be noted that the use of the word "a" in this disclosure is illustrative rather than restrictive, and those skilled in the art should understand that it should be understood as "one or more" unless otherwise expressly indicated in the context.
[0028] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0029] The solutions provided by the embodiments of this disclosure will be described in detail below with reference to the accompanying drawings.
[0030] like Figure 1 As shown, Figure 1 This is a flowchart of an information processing method according to an embodiment of the present disclosure, which includes the following steps.
[0031] S11. In response to a first operation event of copying the first information, copy the data of the first information and obtain the first location identifier associated with the target resource in the first information, wherein the first information includes the target resource.
[0032] In some embodiments, the method proposed in this disclosure can be used on a client, such as a communication client, which can be instant messaging software or an office platform with communication functions. The first information can be a conversation message or content from an online document. The first operation event can be a copy operation event, which can be performed by selecting the first information. The first information contains a target resource, which can be rich text, such as images, videos, or documents. The first information can be rich text information. The first location identifier links to the source data of the target resource in the first information on the server. In some embodiments, the target resource in the first information can be a thumbnail of the source data, which can be a video or an image. When the source data is a document, the target resource in the first information can be a document icon. In other embodiments, if the source data has already been downloaded, the target resource in the first information can be the downloaded source data. Taking the first message as an image session message as an example, when an image session message is received, a thumbnail of the image will be displayed. After the user clicks on the image, they can click to view the original image and download the original image from the server. If the user does not click to download the original image, the thumbnail in the session message is the target resource in the first message. If the user downloads the original image, the downloaded original image can be the target resource in the first message.
[0033] S12. In response to the second operation event of pasting and sending copied data, obtain the second location identifier of the source data based on the first location identifier, associate the target resource in the second information to be sent with the second location identifier, and send the second information.
[0034] In some embodiments, after copying the first information, the data of the first information is stored in the clipboard. The copied data from the clipboard is pasted to form the second information, which is then sent. At this time, the second location identifier of the source data is obtained based on the first location identifier. The first and second location identifiers are different identifiers of the source data corresponding to the target resource in the first information on the server. The target resource in the sent second information is associated with the second location identifier, not the first location identifier. In some embodiments, because the data of the first information is copied, the second information contains the target resource, but the location identifier of the target resource in the sent second information is the second location identifier, not the first location identifier; that is, this disclosure replaces the location identifier. In some embodiments, if the source data is downloaded through the first information, it is not necessary to upload the source data when sending the second information, because the source data can be linked through the second location identifier.
[0035] In some embodiments, when using copy-paste for sending, if rich text resources such as images, videos, and documents are copied and then pasted for sending, the source data of the rich text resources needs to be downloaded from the server first. This consumes bandwidth and requires the user to wait for the download process, causing inconvenience, especially when the first and second information are located on different clients. In some embodiments of this disclosure, when copying the first information and pasting it as the second information for sending, the source data on the server is not downloaded. Instead, the location identifier is replaced. By associating the target resource in the second information with the second location identifier, the recipient of the second information can view the source data on the server through the second location identifier. Thus, during the copy-paste sending process, there is no need to download the source data; instead, the source data is mapped through the location identifier.
[0036] In some embodiments of this disclosure, the first location identifier includes first permission information for accessing source data. When accessing a target resource via the first information, the first permission information in the first location identifier is used to determine whether access to the source data is permitted. In some embodiments, the second location identifier includes second permission information for accessing source data. When accessing a target resource via the second information, the second permission information in the second location identifier is used to determine whether access to the source data is permitted. Thus, target resources pointing to the same source data have different permission information in the first information and the second information.
[0037] In some embodiments, recipients of different information often have different permissions. For example, when both the first and second information are session messages, the recipients of the messages have different access permissions to the source data. If the target resource in the second information is associated with the first location identifier, this could cause the recipient of the second information to access the source data through the first permission information in the first location identifier, potentially leading to unauthorized access or permission reduction. Therefore, the target resources in the first and second information are associated with different location identifiers, and the first and second permission information are written into the first and second location identifiers respectively, thereby achieving precise permission control and avoiding unauthorized access.
[0038] In some embodiments of this disclosure, in response to a second operation event of pasting and sending copied data, obtaining a second location identifier of the source data based on a first location identifier, associating a target resource in the second information to be sent with the second location identifier, and sending the second information includes: in response to a paste operation of pasting copied data, inputting second information at the paste location, wherein the target resource in the pasted second information is associated with the first location identifier; in response to a sending operation of sending the second information, obtaining the second location identifier of the source data, replacing the location identifier associated with the target resource in the second information with the second location identifier from the first location identifier, and sending the second information.
[0039] In some embodiments of this disclosure, after copying the data of the first information, the second information is generated when pasting the copied data. At this time, the target resource in the second information is associated with the first location identifier. When sending the second information, the second location identifier is obtained to replace the first location identifier in associating it with the target resource in the second information. This way, the second location identifier is obtained when sending rather than when pasting, thus avoiding the problem of wasting resources by obtaining the second location identifier when the user has not sent the pasted data.
[0040] In some embodiments of this disclosure, inputting second information at the paste location includes: rendering and displaying the target resource in the second information at the paste location based on a first positioning identifier. In some embodiments, the target resource in the second information needs to be rendered at the paste location. In this case, rendering is first performed based on the first positioning identifier. For example, if the first information is information already available locally, the first positioning identifier is associated with the target resource in the first information. Therefore, the target resource in the first information can be found through the first positioning identifier. When pasting and displaying the second information, the second positioning identifier has not yet been obtained. Therefore, the target resource in the second information is rendered and displayed first using the first positioning identifier. For example, if the first information is image information, the source data is the original image, and the target resource can be a thumbnail of the image, the thumbnail in the first information can be obtained from the cache based on the first positioning identifier and displayed in the second information.
[0041] In some embodiments of this disclosure, after the sending operation of the second information is performed, and before the location identifier associated with the target resource in the second information is replaced by the second location identifier, the target resource in the second information is rendered and displayed in the display area of the sent information based on the first location identifier. In some embodiments, if the target resource in the second information is not displayed temporarily after the sending operation is performed but before the location identifier is replaced, it will lead to a poor user experience. Therefore, after the sending operation is performed, the second information is immediately displayed in the display area of the sent information, but at this time the second information has not actually been sent and the location identifier has not been replaced. At this time, the target resource in the second information is rendered and displayed first using the first location identifier. For example, if the first information is image information, the source data is the original image, and the target resource can be a thumbnail of the image, the thumbnail in the first information can be obtained from the cache based on the first location identifier and displayed in the second information. After obtaining the second location identifier, replacing the first location identifier with the second location identifier, and associating it with the target resource in the second information, the second information is actually sent. However, the user will not notice this, and their usage habits will not change, because the second information is displayed in the area of the sent information after the user performs the sending operation.
[0042] In some embodiments of this disclosure, the method further includes: in response to a first operation event of copying the first information, setting the tag of the target resource in the copied data to a first state;
[0043] In response to the sending operation of the second information, the status of the tag of the target resource in the second information to be sent is determined; if the status of the tag of the target resource in the second information to be sent is the first status, the second location identifier of the source data is obtained, the location identifier associated with the target resource in the second information is replaced by the second location identifier from the first location identifier, the tag of the target resource in the second information is set to the second status, and the second information is sent; or, if the status of the tag of the target resource in the second information to be sent is the second status, the content of the second information is uploaded to the server and the second information is sent.
[0044] In some embodiments, during step S11, an additional step is performed to set the tag of the target resource in the copied data to a first state. The first state can refer to a state where the tag value is a first value, such as true. For example, the tag could be the `need_copy` tag, and the value of the `need_copy` tag is set to true. When sending the second information, the state of the target resource in the second information to be sent is verified. If it is in the first state, and the second location identifier of the source data needs to be obtained, the location identifier associated with the target resource in the second information is replaced from the first location identifier to the second location identifier. The tag of the target resource in the second information is set to a second state, such as a state where the tag value is a second value, such as false. For example, the tag could be the `need_copy` tag, and the value of the `need_copy` tag is set to false. The second information is then sent. Otherwise, the second information is sent directly without obtaining the second location identifier. By setting the tag, the cases where obtaining the second location identifier is required and those where it is not are distinguished.
[0045] In some embodiments of this disclosure, obtaining a second location identifier for source data based on a first location identifier includes: requesting a second location identifier from a server based on the first location identifier; and receiving a second location identifier generated and returned by the server. In some embodiments, the method proposed in this disclosure can be used by a communication client, which sends a request to the server to obtain a second location identifier. The request may include the first location identifier. The server can locate the source data based on the first location identifier, thereby generating a second location identifier for the source data and sending it back to the communication client.
[0046] In some embodiments of this disclosure, the server stores source data and a resource linker. The resource linker is linked to the source data. Different location identifiers of the source data are linked to resource connectors and then linked to the source data through the resource linker. After generating a second location identifier, the server links the second location identifier to the source data through the resource connector.
[0047] In some embodiments, such as Figure 2 As shown, this diagram illustrates the relationship between the resource linker, source data, and various location identifiers. It reveals that the resource linker is the only one that directly links to the source data, while the location identifiers access the source data through the resource linker. By configuring the resource linker instead of directly linking the location identifiers to the source data, the security of the source data storage is improved.
[0048] In some embodiments, the resource linker stores resource information of the source data, including upload information, copy count, and index of the source data. In some embodiments, the source data is directly linked through the resource linker, allowing access to the source data. In some embodiments, operations such as accessing and modifying the source data can be performed using a location identifier.
[0049] In some instances of this disclosure, the target resource in the first information is a thumbnail of the source data; in some embodiments, the target resource in the second information is a thumbnail of the source data. For example, if the source data is a video, image, or document, the target resource in the first information can be a video thumbnail, image thumbnail, or document thumbnail.
[0050] In some embodiments of this disclosure, a first location identifier is used to replace the target resource in the copied first information data. In some embodiments, the first location identifier is associated with the target resource in the first information, and the first location identifier can be used to replace the target resource in the copied first information data, thereby reducing cache usage.
[0051] In some embodiments of this disclosure, a first operation event for copying first information includes: a first operation event for copying first information that has been sent or received in a first session of a communication client, wherein the first information is a session message of the first session; a second operation event for pasting and sending the copied data includes: a second operation event for pasting the copied data into an input box of a second session of a communication client and sending it to the second session, wherein the second information is a session message of the second session.
[0052] In some embodiments, the method proposed in this disclosure can be used in a communication client. The first information is a session message sent or received in a first session. The user copies the first information, pastes it into the input box of a second session, and sends it. This solves the problem that the source data needs to be downloaded before pasting and sending a copied session message. In related technologies, if the session message is copied and pasted and sent without downloading the source data, only a thumbnail of the source data is sent.
[0053] In some embodiments of this disclosure, the first operation event of copying the first information includes: copying the first information in the input box of the third session of the communication client, wherein when the first information is entered in the input box of the third session, the source data is uploaded to the server, or the source data is stored in the server before the first operation event of copying the first information; the second operation event of pasting and sending the copied data includes: pasting the copied data in the input box of the fourth session of the communication client and sending it to the fourth session.
[0054] In some embodiments, there are two scenarios when the first information is entered into the input box of the third session: One is that the first information is manually entered by the user, in which case the source data is located locally. When the first information is entered into the input box of the third session, it is automatically uploaded to the server, so that the server has the source data. The other scenario is that the first information is copied from another location, such as from another session. In this case, the server already has the source data. Then, it is pasted into the input box of the fourth session to generate the second information, which is then sent.
[0055] To better illustrate the methods proposed in the embodiments of this disclosure, the following is combined with... Figure 2 and Figure 3 A specific implementation example is proposed. Figure 2 The rich text copy unit and clipboard are two modules in the communication client. Before a user requests to copy the first piece of information as rich text, permission control filtering is performed to determine if the user has copying permissions and if the first piece of information contains the target resource for rich text. When copying the first piece of information, a copy request is sent to the communication client. The rich text copy unit of the communication client queries the tags of rich text such as images and videos in the first piece of information, marks the tags as the first state, and then writes the copied data of the first piece of information to the clipboard, where the copied data of the first piece of information is stored. When the user requests to paste, it requests to read data from the clipboard, and the clipboard returns the data stored therein, thus returning the copied first piece of information to the client. At this time, the second piece of information is still rendered and displayed using the first positioning identifier of the target resource in the first piece of information. When sending the second piece of information, such as... Figure 3As shown, a copied rich text message (second information) is sent. On the communication client, the target resource in the second information is first displayed on the screen based on the first location identifier. Before sending, the second information is iterated to determine the tag status. If the tag status is in the first state, the server's interface is called to obtain the second location identifier. Then, the location identifier of the target resource in the second information is changed to the second location identifier, and the tag status is modified to the second state. If the tag status is not in the first state, the resource data in the copied rich text message is uploaded to the server, and then the second information is sent. In this embodiment, the user implements resource copying and copying to different locations on the communication client based on the second location identifier. Finally, the receiver can access the source data on the server based on the second location identifier.
[0056] This disclosure also proposes an information processing apparatus, comprising:
[0057] The copying unit is configured to respond to a first operation event of copying first information, copy the data of the first information, and obtain a first location identifier associated with the target resource in the first information, wherein the first information includes the target resource;
[0058] The control unit is configured to respond to a second operation event of pasting copied data and sending it, obtain a second location identifier of the source data based on a first location identifier, associate the target resource in the second information to be sent with the second location identifier, and send the second information;
[0059] Among them, the first location identifier and the second location identifier are different identifiers of the source data corresponding to the target resource in the first information in the server.
[0060] In some embodiments, the first location identifier includes first permission information for accessing the source data; when accessing the target resource through the first information, it is determined whether access to the source data is permitted based on the first permission information in the first location identifier; and / or,
[0061] The second location identifier includes second permission information for accessing the source data. When accessing the target resource through the second information, it is determined whether the source data can be accessed based on the second permission information in the second location identifier.
[0062] In some embodiments, in response to a second operation event of pasting copied data and sending it, a second location identifier of the source data is obtained based on the first location identifier, the target resource in the second information to be sent is associated with the second location identifier, and the second information is sent, including:
[0063] In response to the paste operation of the copied data, second information is entered at the paste location, wherein the target resource in the pasted second information is associated with the first location identifier;
[0064] In response to the sending operation of sending the second information, the second location identifier of the source data is obtained, the location identifier associated with the target resource in the second information is replaced by the second location identifier instead of the first location identifier, and the second information is sent.
[0065] In some embodiments, entering second information at the paste location includes: rendering and displaying the target resource in the second information at the paste location based on the first location identifier; and / or,
[0066] After the sending operation of the second information is performed, and before the location identifier associated with the target resource in the second information is replaced by the second location identifier, the target resource in the second information is rendered and displayed in the display area of the sent information based on the first location identifier.
[0067] In some embodiments, the control unit is further configured to set the tag of the target resource in the copied data to a first state in response to a first operation event that copies the first information;
[0068] In response to the sending operation of the second information, the status of the tag of the target resource in the second information to be sent is determined; if the status of the tag of the target resource in the second information to be sent is the first status, the second location identifier of the source data is obtained, the location identifier associated with the target resource in the second information is replaced by the second location identifier instead of the first location identifier, the tag of the target resource in the second information is set to the second status, and the second information is sent; or, if the status of the tag of the target resource in the second information to be sent is the second status, the content of the second information is uploaded to the server and the second information is sent.
[0069] In some embodiments, obtaining a second location identifier for the source data based on the first location identifier includes: requesting the second location identifier from the server based on the first location identifier;
[0070] Receive the second location identifier generated and returned by the server.
[0071] In some embodiments, the server stores the source data and a resource linker, the resource linker is linked to the source data, different location identifiers of the source data are linked to the resource connector and linked to the source data through the resource linker, and after generating the second location identifier, the server links the second location identifier to the source data through the resource connector.
[0072] In some embodiments, the resource connector includes upload information of the source data, the number of times the source data is copied, and the index of the source data;
[0073] In some embodiments, the source data can be obtained through the resource linker;
[0074] In some embodiments, the source data can be manipulated via the location identifier.
[0075] In some embodiments, the source data includes: images, videos, audio, or documents;
[0076] In some embodiments, the target resource in the first information is a thumbnail of the source data;
[0077] In some embodiments, the target resource in the second information is a thumbnail of the source data;
[0078] In some embodiments, the copying unit is further configured to replace the target resource in the first information with the first location identifier in the copied data of the first information.
[0079] In some embodiments, the first operation event of copying the first information includes: a first operation event of copying the first information that has been sent or received in the first session of the communication client, wherein the first information is a session message of the first session;
[0080] The second operation event of pasting and sending the copied data includes: pasting the copied data into the input box of the second session of the communication client and sending it to the second session, wherein the second information is a session message in the second session.
[0081] In some embodiments, the first operation event of copying the first information includes: copying the first information in the input box of the third session of the communication client, wherein when the first information is entered in the input box of the third session, the source data is uploaded to the server, or the source data is stored in the server before the first operation event of copying the first information;
[0082] The second operation event of pasting and sending the copied data includes: pasting the copied data into the input box of the fourth session of the communication client and sending it to the fourth session.
[0083] For embodiments of the apparatus, since they basically correspond to the method embodiments, relevant details can be found in the descriptions of the method embodiments. The apparatus embodiments described above are merely illustrative, and the modules described as separate modules may or may not be separate. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0084] The methods and apparatus of this disclosure have been described above based on embodiments and application examples. Furthermore, this disclosure also provides an electronic device and a computer-readable storage medium, which are described below.
[0085] The following is for reference. Figure 5 The figure illustrates a structural schematic of an electronic device (e.g., a terminal device or server) 800 suitable for implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in the figure is merely an example and should not be construed as limiting the functionality and scope of the embodiments of the present disclosure.
[0086] Electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 802 or a program loaded from storage device 808 into random access memory (RAM) 803. RAM 803 also stores various programs and data required for the operation of electronic device 800. The processing device 801, ROM 802, and RAM 803 are interconnected via bus 804. Input / output (I / O) interface 805 is also connected to bus 804.
[0087] Typically, the following devices can be connected to I / O interface 805: input devices 806 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 807 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 808 including, for example, magnetic tapes, hard disks, etc.; and communication devices 809. Communication device 809 allows electronic device 800 to communicate wirelessly or wiredly with other devices to exchange data. Although an electronic device 800 with various devices is shown in the figure, it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0088] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by a processing device 801, it performs the functions defined in the methods of embodiments of this disclosure.
[0089] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0090] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0091] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0092] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods of the present disclosure.
[0093] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0094] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0095] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units are not, in some cases, intended to limit the specific unit.
[0096] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0097] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0098] According to one or more embodiments of this disclosure, an information processing method is provided, comprising:
[0099] In response to a first operation event of copying first information, the data of the first information is copied, and a first location identifier associated with the target resource in the first information is obtained, wherein the first information includes the target resource;
[0100] In response to a second operation event that pastes and sends copied data, a second location identifier of the source data is obtained based on the first location identifier, the target resource in the second information to be sent is associated with the second location identifier, and the second information is sent.
[0101] Wherein, the first location identifier and the second location identifier are different identifiers of the source data corresponding to the target resource in the first information in the server.
[0102] According to one or more embodiments of this disclosure, an information processing method is provided, wherein a first location identifier includes first permission information for accessing the source data, and when accessing the target resource through the first information, it is determined whether access to the source data is permitted based on the first permission information in the first location identifier; and / or,
[0103] The second location identifier includes second permission information for accessing the source data. When accessing the target resource through the second information, it is determined whether the source data can be accessed based on the second permission information in the second location identifier.
[0104] According to one or more embodiments of this disclosure, an information processing method is provided, which, in response to a second operation event of pasting copied data and sending it, obtains a second location identifier of the source data based on a first location identifier, associates a target resource in a second message to be sent with the second location identifier, and sends the second message, including:
[0105] In response to the paste operation of the copied data, second information is entered at the paste location, wherein the target resource in the pasted second information is associated with the first location identifier;
[0106] In response to the sending operation of sending the second information, the second location identifier of the source data is obtained, the location identifier associated with the target resource in the second information is replaced by the second location identifier instead of the first location identifier, and the second information is sent.
[0107] According to one or more embodiments of this disclosure, an information processing method is provided, which inputs second information at a paste location, including: rendering and displaying a target resource in the second information at the paste location based on a first positioning identifier; and / or,
[0108] After the sending operation of the second information is performed, and before the location identifier associated with the target resource in the second information is replaced by the second location identifier, the target resource in the second information is rendered and displayed in the display area of the sent information based on the first location identifier.
[0109] According to one or more embodiments of this disclosure, an information processing method is provided, the method further comprising:
[0110] In response to the first operation event of copying the first information, the tag of the target resource in the copied data is set to the first state;
[0111] In response to the sending operation of the second information, the status of the tag of the target resource in the second information to be sent is determined; if the status of the tag of the target resource in the second information to be sent is the first status, the second location identifier of the source data is obtained, the location identifier associated with the target resource in the second information is replaced by the second location identifier instead of the first location identifier, the tag of the target resource in the second information is set to the second status, and the second information is sent; or, if the status of the tag of the target resource in the second information to be sent is the second status, the content of the second information is uploaded to the server and the second information is sent.
[0112] According to one or more embodiments of this disclosure, an information processing method is provided, which obtains a second location identifier of source data based on a first location identifier, including:
[0113] Request the second location identifier from the server based on the first location identifier;
[0114] Receive the second location identifier generated and returned by the server.
[0115] According to one or more embodiments of this disclosure, an information processing method is provided, wherein the server stores the source data and the resource linker, the resource linker is linked to the source data, different location identifiers of the source data are linked to the resource connector and linked to the source data through the resource linker, and after generating the second location identifier, the server links the second location identifier to the source data through the resource connector.
[0116] According to one or more embodiments of this disclosure, an information processing method is provided that satisfies at least one of the following:
[0117] The resource connector includes the upload information of the source data, the number of times the source data is copied, and the index of the source data;
[0118] The source data can be obtained through the resource linker;
[0119] The source data can be manipulated through the location identifier.
[0120] According to one or more embodiments of this disclosure, an information processing method is provided that satisfies at least one of the following:
[0121] The source data includes: images, videos, audio, or documents;
[0122] The target resource in the first information is a thumbnail of the source data;
[0123] The target resource in the second information is a thumbnail of the source data;
[0124] The target resource in the first information is replaced with the first location identifier in the copied data of the first information.
[0125] According to one or more embodiments of this disclosure, an information processing method is provided.
[0126] The first operation event for copying the first information includes: a first operation event for copying the first information that has been sent or received in the first session of the communication client, wherein the first information is the session message of the first session;
[0127] The second operation event of pasting and sending the copied data includes: pasting the copied data into the input box of the second session of the communication client and sending it to the second session, wherein the second information is a session message in the second session.
[0128] According to one or more embodiments of this disclosure, an information processing method is provided, wherein a first operation event for copying first information includes: a first operation event for copying the first information in an input box of a third session of a communication client, wherein when the first information is entered in the input box of the third session, the source data is uploaded to a server, or the source data is stored in the server before the first operation event for copying the first information.
[0129] The second operation event of pasting and sending the copied data includes: pasting the copied data into the input box of the fourth session of the communication client and sending it to the fourth session.
[0130] According to one or more embodiments of this disclosure, an information processing apparatus is provided, comprising:
[0131] The copying unit is configured to respond to a first operation event of copying first information, copy the data of the first information, and obtain a first location identifier associated with a target resource in the first information, wherein the first information includes the target resource;
[0132] The control unit is configured to respond to a second operation event of pasting copied data and sending it, obtain a second location identifier of the source data based on the first location identifier, associate the target resource in the second information to be sent with the second location identifier, and send the second information;
[0133] Wherein, the first location identifier and the second location identifier are different identifiers of the source data corresponding to the target resource in the first information in the server.
[0134] According to one or more embodiments of the present disclosure, an electronic device is provided, including: at least one memory and at least one processor;
[0135] The at least one memory is used to store program code, and the at least one processor is used to call the program code stored in the at least one memory to execute the method described in any one of the above.
[0136] According to one or more embodiments of the present disclosure, a computer-readable storage medium is provided for storing program code that, when executed by a processor, causes the processor to perform the methods described above.
[0137] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0138] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0139] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. An information processing method characterized by comprising: The method comprises: in response to a first operation event of copying first information, copying data of the first information, obtaining a first positioning identifier associated with a target resource in the first information, the first information comprising the target resource; in response to a second operation event of pasting the copied data and sending, obtaining a second positioning identifier of source data based on the first positioning identifier, associating the target resource in the second information to be sent with the second positioning identifier, and sending the second information; wherein the first positioning identifier and the second positioning identifier are different identifiers of the source data corresponding to the target resource in the first information in the server; obtaining the second positioning identifier of the source data based on the first positioning identifier comprises: requesting the second positioning identifier from the server based on the first positioning identifier; and receiving the second positioning identifier generated and returned by the server.
2. The method of claim 1, wherein: the first positioning identifier comprises first permission information for accessing the source data, and when the target resource is accessed through the first information, it is determined whether the source data can be accessed according to the first permission information in the first positioning identifier; and / or, the second positioning identifier comprises second permission information for accessing the source data, and when the target resource is accessed through the second information, it is determined whether the source data can be accessed according to the second permission information in the second positioning identifier.
3. The method of claim 1, wherein, in response to the second operation event of pasting the copied data and sending, obtaining the second positioning identifier of the source data based on the first positioning identifier, associating the target resource in the second information to be sent with the second positioning identifier, and sending the second information, comprising: in response to a paste operation of pasting the copied data, inputting second information at the paste location, wherein the target resource in the pasted second information is associated with the first positioning identifier; in response to a sending operation of sending the second information, obtaining the second positioning identifier of the source data, replacing the positioning identifier associated with the target resource in the second information from the first positioning identifier to the second positioning identifier, and sending the second information.
4. The method of claim 3, wherein: inputting second information at the paste location comprises: rendering and displaying the target resource in the second information at the paste location based on the first positioning identifier; and / or, after the sending operation of sending the second information is performed, before the positioning identifier associated with the target resource in the second information is replaced from the first positioning identifier to the second positioning identifier, rendering and displaying the target resource in the second information at a display area of the sent information based on the first positioning identifier.
5. The method of claim 3, wherein, The method further comprises: in response to the first operation event of copying the first information, setting a label of the target resource in the copied data to a first state; In response to the sending operation of the second information, a state of a label of a target resource in the second information to be sent is determined; if the state of the label of the target resource in the second information to be sent is a first state, a second positioning identifier of the source data is obtained, a positioning identifier associated with the target resource in the second information is replaced by the second positioning identifier, the label of the target resource in the second information is set to a second state, and the second information is sent; or if the state of the label of the target resource in the second information to be sent is the second state, contents in the second information are uploaded to a server and the second information is sent.
6. The method of claim 1, wherein: the server stores the source data and a resource linker, the resource linker links to the source data, different positioning identifiers of the source data link to the resource linker and link to the source data through the resource linker, and the server links the second positioning identifier to the source data through the resource linker after generating the second positioning identifier.
7. The method of claim 6, wherein, at least one of the following is met: the resource linker includes upload information of the source data, a number of copies of the source data, and an index of the source data; the source data can be obtained through the resource linker; the source data can be operated through the positioning identifier.
8. The method of claim 1, wherein, at least one of the following is met: the source data includes a picture, a video, an audio, or a document; the target resource in the first information is a thumbnail of the source data; the target resource in the second information is a thumbnail of the source data; the first positioning identifier is used to replace the target resource in the first information in the copied data of the first information.
9. The method of claim 1, wherein: the first operation event of copying the first information includes a first operation event of copying the first information that has been sent or received in a first session of a communication client, and the first information is a session message of the first session; the second operation event of pasting the copied data and sending includes a second operation event of pasting the copied data in an input box of a second session of the communication client and sending to a session message in the second session.
10. The method of claim 1, wherein: the first operation event of copying the first information includes a first operation event of copying the first information in an input box of a third session of a communication client, and the source data is uploaded to a server when the first information is input in the input box of the third session, or the source data is stored in the server before the first operation event of copying the first information; the second operation event of pasting the copied data and sending includes a second operation event of pasting the copied data in an input box of a fourth session of the communication client and sending to a session message in the fourth session.
11. An information processing apparatus, comprising: The copying unit is configured to, in response to a first operation event of copying first information, copy data of the first information, and acquire a first positioning identifier associated with a target resource in the first information, the first information including the target resource; The control unit is configured to, in response to a second operation event of pasting the copied data and sending, acquire a second positioning identifier of source data based on the first positioning identifier, associate a target resource in second information to be sent with the second positioning identifier, and send the second information; The first positioning identifier and the second positioning identifier are different identifiers of the source data corresponding to the target resource in the first information in a server. The acquiring of the second positioning identifier of the source data based on the first positioning identifier includes: requesting the server for the second positioning identifier based on the first positioning identifier; and receiving the second positioning identifier generated and returned by the server. 12.An electronic device, comprising: at least one memory and at least one processor; The at least one memory is configured to store program code, and the at least one processor is configured to invoke the program code stored in the at least one memory to execute the method in any one of claims 1 to 10. 13.A computer readable storage medium, configured to store program code, the program code, when executed by a processor, causing the processor to execute the method in any one of claims 1 to 10.
Citation Information
Patent Citations
Resource content sharing method and system
CN115150350A
Method and device for sending clipboard data
CN115599565A