Information processing method, device, electronic device and storage medium
By splitting the link preview view into preview templates and incremental data, and combining the preview view in the first terminal, the problem of high complexity in the generation and transmission of preview views in the prior art is solved, and more efficient data interaction and lower maintenance costs are achieved.
Patent Information
- Application Number
- CN202210454948.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-27
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2042-04-27
AI Technical Summary
The prior art generates and transmits link preview views with high complexity and large data interaction, resulting in increased development and maintenance costs, and servers and service providers need to process a large amount of data.
Split the link's preview view into preview templates and incremental data. The service provider only needs to draw the preview templates and provide incremental data to reduce development complexity and data interaction. The first terminal is responsible for previewing the combination of views and making full use of local computing power.
It reduces the processing pressure of the service provider and server, reduces the amount of data interaction and maintenance costs, and improves performance and access efficiency.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to an information processing method, device, electronic device and storage medium. Background Art
[0002] A link, such as a web page link or a text link, has a corresponding preview view. The preview view usually displays a snapshot or brief information of the web page or text. When sending a link, a preview view is usually generated based on the link. The preview view is usually pre-drawn and stored by the service provider. After sending a link in the communication client, the communication client will send a request to the server to obtain the preview view corresponding to the link from the server and display it. Summary of the invention
[0003] The present disclosure provides an information processing method, device, electronic device and storage medium.
[0004] The present disclosure adopts the following technical solutions.
[0005] In some embodiments, the present disclosure provides an information processing method, including:
[0006] Pre-storing one or more preview templates and template identifiers corresponding to the preview templates;
[0007] In response to a request for obtaining a preview view of a first link sent by the first terminal, determining a first service provider according to the first link, and sending a notification message including the first link to the first service provider;
[0008] In response to the first template identifier and the first incremental data sent by the first service provider, a first preview template and the first incremental data corresponding to the first template identifier are sent to the first terminal, so that the first terminal generates a first preview view of the first link according to the first preview template and the first incremental data.
[0009] In some embodiments, the present disclosure provides an information processing device, including:
[0010] A storage unit, used to pre-store one or more preview templates and template identifiers corresponding to the preview templates;
[0011] a transmission unit, configured to respond to a request for obtaining a preview view of a first link sent by a first terminal, determine a first service provider according to the first link, and send a notification message including the first link to the first service provider;
[0012] The transmission unit is also used to send a first preview template and first incremental data corresponding to the first template identifier to the first terminal in response to the first template identifier and the first incremental data sent by the first service provider, so that the first terminal generates a first preview view of the first link according to the first preview template and the first incremental data.
[0013] In some embodiments, the present disclosure provides an electronic device, comprising: at least one memory and at least one processor;
[0014] The memory is used to store program codes, and the processor is used to call the program codes stored in the memory to execute the above method.
[0015] In some embodiments, the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, and when the program code is executed by a processor, the processor is prompted to perform the above method.
[0016] In some embodiments of the present disclosure, the preview view of the link is split into a preview template and incremental data. For the service provider, it is not necessary to draw a preview view for each link, but only to draw a preview template and incremental data, which reduces the complexity of developing the preview view. When interacting, the service provider only needs to provide the identifier and incremental data of the preview template, and does not need to transmit the entire preview view, which reduces the amount of data interaction. The service provider only needs to focus on the variable incremental data in the preview template for interaction, which saves the cost of understanding and maintaining the preview view. In addition, in the present application, the combination of the preview view is executed in the first terminal, which reduces the amount of task processing and makes full use of the computing power of each first terminal itself. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0018] Figure 1 It is a flowchart of an information processing method according to an embodiment of the present disclosure.
[0019] Figure 2 It is an interaction diagram of an information processing method according to an embodiment of the present disclosure.
[0020] Figure 3 It is an interaction diagram of an information processing method according to an embodiment of the present disclosure.
[0021] Figure 4 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0022] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0023] It should be understood that the various steps described in the method embodiments of the present disclosure can be performed in sequence and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0024] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part 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". The relevant definitions of other terms will be given in the following description.
[0025] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0026] It should be noted that the modification of “one” mentioned in the present 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 clearly indicated in the context.
[0027] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0028] The solution provided by the embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0029] In an instant messaging client, when receiving or sending a link (such as a web link, a text link), a preview view can be generated based on the link, and the preview view can be displayed in the form of a preview card. In order to obtain the preview view, the instant messaging client sends the link to the server, and the server obtains the preview view corresponding to the link from the service provider, and then forwards it to the instant messaging client. The service provider is usually the provider of the web page pointed to by the link. For the preview view, in order to ensure the compatibility of the preview view with the instant messaging client, the server of the instant messaging client usually provides a specification document for the preview view. The service provider understands the components according to the specification document and usually writes the preview view through XML (Extensible Markup Language). In this process, the service provider needs to transmit the full amount of preview view data to the server, and even when replacing the local data of the preview view, it is necessary to traverse the complete preview view structure, resulting in increased processing complexity, and a large amount of data needs to be transmitted between the server and the service provider, and between the server and the instant messaging client.
[0030] like Figure 1 As shown, Figure 1 It is a flowchart of the information processing method of the embodiment of the present disclosure. The information processing method can be used for the second terminal, which can be a server of the instant messaging client, and includes the following steps.
[0031] S11: pre-store one or more preview templates and template identifiers corresponding to the preview templates.
[0032] In some embodiments, the preview template is a preview template of a preview view of a link. The preview view of a link may be a preview card. The preview view is used to display a snapshot or brief information of the content corresponding to the link, thereby increasing the user experience after sending the link. The preview template may be a preview template of a card. The preview template has a corresponding template identifier, such as the ID or name of the template. The template identifier uniquely corresponds to the preview template, and the preview template can be found through the template identifier. In some embodiments, the preview template is a preview template created by a service provider, and the service provider is the provider of the linked content. For example, if the link is a video link, the service provider is the video website where the video is located. If the link is an online document link, the service provider is the document website where the online document is located. In some embodiments, the preview template has a requirement specification, and the preview template needs to be created in accordance with the requirement specification.
[0033] S12: In response to a request for obtaining a preview view of a first link sent by the first terminal, a first service provider is determined according to the first link, and a notification message including the first link is sent to the first service provider.
[0034] In some embodiments, the first terminal may be a terminal where an instant messaging client is located, and the first terminal may be, for example, a mobile phone, a tablet, a computer, or other terminals. When the first terminal receives or inputs a first link, it is necessary to obtain a preview view of the first link, and thus, the first terminal sends a request to obtain the first link to the second terminal to obtain a preview view of the first link. The second terminal determines the first service provider according to the first link, for example, by parsing the first link to determine the domain name of the first link, and determining the first service provider according to the domain names of various service providers stored in advance. The first service provider may be a service provider that provides services for the first link, and the first service provider may be a third-party server. A notification message including the first link is sent to the first service provider, so that the first service provider can provide a first template identifier and first incremental data related to the preview view of the first link.
[0035] S13: In response to the first template identifier and the first incremental data sent by the first service provider, a first preview template and the first incremental data corresponding to the first template identifier are sent to the first terminal, so that the first terminal generates a first preview view of the first link according to the first preview template and the first incremental data.
[0036] In some embodiments, the first service direction sends the first template identifier and the first incremental data corresponding to the preview view of the first link to the second terminal, and then the second terminal can determine the corresponding first preview template according to the first template identifier. The first preview template has data to be filled, and the first incremental data is used to fill in the first preview template. The first preview template and the first incremental data are sent to the first terminal, so that the first terminal generates the first preview view.
[0037] In some embodiments of the present disclosure, the preview view of the link is split into a preview template and incremental data. For the service provider, it is not necessary to draw a preview view for each link, but only a small number of preview templates, which reduces the complexity of developing the preview view. When interacting, the service provider only needs to provide the identifier and incremental data of the preview template, and does not need to transmit the entire preview view, which reduces the amount of data interaction. The service provider only needs to focus on the variable incremental data in the preview template for interaction, which saves the cost of understanding and maintaining the preview view. For the second terminal, because it receives incremental data, it does not need to parse and verify the preview view, which reduces the maintenance cost of the second terminal and ensures performance. In addition, in the present application, the combination of preview views is executed in the first terminal, which reduces the task processing volume of the second terminal, makes full use of the computing power of each first terminal itself, and avoids the processing pressure caused by placing the processing of all preview views in the second terminal.
[0038] In some embodiments of the present disclosure, one or more preview templates and template identifiers corresponding to the preview templates are pre-stored, including: in response to receiving a preview template from a service party, storing the preview template of the service party and generating a corresponding template identifier; sending the template identifier of the preview template of the service party to the service party; wherein the service party includes a first service party.
[0039] In some embodiments, the second terminal is open to each registered service provider, and each service provider can independently draw a preview template that meets the preview view requirements and then send it to the second terminal. After receiving the preview template, the second terminal automatically generates a template identifier and returns it to each corresponding service provider, so each corresponding service provider only needs to store the template identifier.
[0040] In some embodiments of the present disclosure, one or more preview templates and template identifiers corresponding to the preview templates are pre-stored, and the method also includes: constructing a corresponding incremental data template according to the preview template of the service party, and sending the incremental data template to the service party; wherein the incremental data template is used to describe the transmission specification of the incremental data of the corresponding preview template.
[0041] In some embodiments, the second terminal can parse the preview template to determine the variable data and immutable data in the preview template, and then use the variable data as incremental data, and determine the transmission specification of the incremental data as the incremental data template. For example, the arrangement order of the variable data in each preview view can be determined, such as the title is placed in the first n characters, and the introduction is placed in the position of the n+1 to n+50 characters. When parsing the incremental data, the corresponding data can be obtained from the incremental data according to the arrangement order of each variable data, without indicating the name of each data in the incremental data, which can further reduce the size of the incremental data. In some embodiments, the preview template can set attributes for each data, and determine whether each data is variable data or immutable data through the attribute value, so that the service party can determine which data in the preview template is incremental data as needed, for example, the title can be set as variable data, and the background color can be set as immutable data. In this way, the second terminal can determine which data in the preview template is incremental data by parsing the attribute values of each data in the preview template, thereby generating an incremental data template. In some embodiments, the preview template is transmitted between the second terminal and the service party through the JSON protocol.
[0042] In some embodiments, it also includes: in response to the operation information on the existing preview template sent by the service provider, operating the stored preview template according to the operation information, wherein the operation information can be at least one of viewing information, modifying information, and deleting information. In some embodiments, the service provider can perform operations such as adding, deleting, modifying, and checking the preview template in the second terminal. In some embodiments, the operation information includes the service provider's identifier and the template identifier of the preview template. After receiving the operation information, the second terminal can first authenticate the service provider according to the service provider's identifier, determine that the service provider has the authority to operate the preview template corresponding to the template identifier, and then operate the preview template corresponding to the template identifier in the operator information according to the operation information.
[0043] In some embodiments of the present disclosure, in response to receiving a preview template from a service provider, the preview template of the service provider is stored and a corresponding template identifier is generated, including: displaying a web page building tool, in response to the preview template constructed and transmitted by the service provider through the web page building tool, the preview template of the service provider is stored and a corresponding template identifier is generated. In some embodiments of the present disclosure, the web page building tool can be a Web Editor software, and the preview template of the preview view is independently built by the service provider by providing the web page building tool, and configured in the preview template as needed.
[0044] In some embodiments of the present disclosure, one or more preview templates and template identifiers corresponding to the preview templates are pre-stored, including: in response to receiving a preview view sent by a service party, parsing the preview view to generate a preview template and a template identifier of the preview template, and sending the template identifier and the preview template to the service party. In some embodiments, in order to reduce the cost of understanding the requirements and specifications of the preview template for the service party, the service party may first provide a preview view, and the preview view sent by the service party may be a preview view that does not meet the requirements and specifications of the second terminal for the preview view, and then the second terminal generates a preview view that meets the requirements of the second terminal by parsing the composition of the preview view, and then the preview view that meets the specifications of the second terminal is parsed to generate a preview template, and the template identifier is assigned, and the corresponding incremental data template can also be generated and sent to the service party. In this embodiment, considering that different servers (including the second terminal) have different specifications for preview views, and the service party needs to understand the requirements of each server in order to adapt to the needs of different servers, resulting in a high cost of drawing the preview view, so the second terminal parses the preview view to generate a preview template, and the service party does not need to understand the specifications of the preview view of the second terminal, so for the service party, it only needs to provide the existing preview view, and there is no need to redraw the preview view.
[0045] In some embodiments of the present disclosure, in response to the first template identifier and the first incremental data sent by the first service provider, the first preview template and the first incremental data corresponding to the first template identifier are sent to the first terminal, including: in response to the first template identifier and the first incremental data sent by the first service provider, the first template identifier and the first incremental data are sent to the first terminal; in response to the first template identifier sent by the first terminal, the first preview template corresponding to the first template identifier is obtained and the first preview template is sent to the first terminal. In some embodiments, after receiving the first template identifier, the second terminal does not directly send the first preview template corresponding to the first template identifier to the first terminal, but waits for the first terminal to send the first template identifier before sending the first preview template. Because the data volume of the preview template is large, the data volume of a single transmission is reduced by sending twice, and the preview template is usually stored separately, the first incremental data is first sent to the first terminal, and the first terminal returns the first template identifier. In this way, the first terminal can pre-process the first incremental data first, and during the pre-processing of the first incremental data by the first terminal, the second terminal searches for the first preview template, so as to achieve synchronous operation between the first terminal and the second terminal, and reduce the overall waiting time. On the other hand, for the template used for the link, the first terminal may already have its corresponding first preview template. In this case, there is no need to transmit the first preview template. That is, after receiving the first template identifier, the first terminal can first determine whether the first template identifier has been received before. If it has been received, the first template identifier will no longer be sent to the second terminal. If the first template identifier has not been received, the first template identifier will be sent to the second terminal. This ensures that the first terminal only obtains the first preview template when the first template identifier is received for the first time, avoiding repeated acquisition of the first preview template, reducing the amount of data transmission between the second terminal, and improving the response speed, thereby reducing the waiting time for users.
[0046] In some embodiments of the present disclosure, the information processing method further includes: receiving context information of the first link sent by the first service provider. The context information may be sent by the service provider together with the first incremental data. The context information may include a user ID, a message ID, a group ID, etc. Sending the first preview template and the first incremental data corresponding to the first template identifier to the first terminal includes: sending the first preview template, the first incremental data and the context information corresponding to the first template identifier to the first terminal, so that the first terminal generates a first preview view according to the first preview template, the first incremental data and the context information.
[0047] In some embodiments of the present disclosure, the first preview template has at least one component, the component has an attribute value and / or a style value, and the first incremental data includes the attribute value and / or style value of the component. In some embodiments, the first preview template may include components, such as display components, control components, etc., display components include, for example, background boxes, shape boxes, control components include, for example, favorite buttons, like controls, share controls, etc., which have attribute values and style values, attribute values include whether they can be triggered, triggering methods, etc., style values include display colors, display sizes, etc. The attribute values and style values of the components are set through the first incremental data to achieve differentiated display of different links.
[0048] In some embodiments, the first preview view of the first link displays the type icon of the type of content corresponding to the first link. For example, if the first link is a link to an online document, a document icon is displayed, and if the first link is a video link, a video icon is displayed. The first preview view may also display a snapshot, introduction, or partial content of the content corresponding to the first link. For example, when the first link is a link to an online document, the name, introduction, and first n characters of the online document may be displayed, and n may be selected as a number greater than 1 such as 20, 50, 100, etc. When the first link is a link to a video, a playback plug-in may be provided, and the first m seconds of the content of the video may be played through the playback plug-in, and the playback plug-in may display the video segment cover when it is not triggered. After playing the first m seconds of the content, an option may be provided to continue playing the remaining content or jump to the source website for playback. If you choose to continue playing the remaining content, the complete content may be played in the playback plug-in. Of course, in some embodiments, when the first link is a link to a video, a playback plug-in may not be provided, but the cover, title, and other content of the video may be provided.
[0049] In order to better illustrate the method proposed in the embodiment of the present disclosure, a specific embodiment is proposed below. Figure 2 and Figure 3 As shown, Figure 2 and Figure 3 The web page building tool, interface template and storage management module in the service provider may belong to the second terminal. The service provider uses the web page building tool (Web Editor) to build a preview template for the link. The property values and style values of different components can be configured in the preview module. Then, the preview template is uploaded to the storage management module through the interface module in JSON protocol. The storage management module stores the preview template in the database and returns the template identifier. Then, the incremental data template is constructed and the incremental data template and template identifier are sent to the service provider. The service provider can then pull and manage the preview template according to the template identifier. For the service provider, in the subsequent development process, it only needs to maintain the template identifier and the data module of the incremental data to complete the interaction of the preview view of the link, eliminating the cost of understanding the complex preview view. Figure 3As shown, the first terminal sends a request to obtain the preview view of the first link to the storage management module. The storage management module determines the corresponding first service provider by parsing the first link, and sends an acquisition request to the first service provider. The first service provider returns the first template identifier and the first incremental data, and finally forwards them to the first terminal. The first terminal sends the first template identifier to the storage management module, and the storage management module returns the first preview template. The first terminal generates a first preview view of the first connection based on the first preview template and the first incremental data.
[0050] In some embodiments of the present disclosure, in the method proposed in the embodiments of the present disclosure, the first terminal may be a terminal of an instant messaging client. When a message including a first link is input or received in the instant messaging client of the first terminal, the instant messaging client of the first terminal sends a request for obtaining a preview view of the first link to a server of the instant messaging client. The executor of the information processing method may be the server of the instant messaging client (the second terminal). The first link included in the first terminal may be a collaborative message. The first link may be a link to an online document for collaborative processing between users. The server of the instant messaging client has a link preview platform. The link preview platform is used to assist the instant messaging client in generating a preview view of the link. When the server receives the request for obtaining the preview view of the first link, The link preview platform processes and determines the corresponding service provider. Since the first link is a link to an online document, the service provider is the document platform of the online document. The link preview platform sends a notification message to the document platform of the online document, receives the returned first template identifier and first incremental data of the online document, and sends them to the instant messaging client. In the instant messaging client, the first preview template is obtained from the link preview platform according to the first template identifier, and then a preview view of the online document is generated according to the first preview template and the first incremental data. The preview view of the first link displays the type and partial content of the content corresponding to the first link. For example, the first link displays the document identifier and partial content or introduction of the document, so that the user can know that the first link is a document and determine the approximate content without opening the first link.
[0051] The method proposed in the embodiment of the present disclosure reduces the access cost of the preview view, reduces the development cost of the service provider, improves the access efficiency, reduces the amount of transmission interaction data in the transmission process, improves the performance, and reduces the maintenance cost of the service provider.
[0052] In some embodiments of the present disclosure, an information processing device is also proposed, including:
[0053] A storage unit, used to pre-store one or more preview templates and template identifiers corresponding to the preview templates;
[0054] a transmission unit, configured to respond to a request for obtaining a preview view of a first link sent by the first terminal, determine a first service provider according to the first link, and send a notification message including the first link to the first service provider;
[0055] The transmission unit is also used to send the first preview template and first incremental data corresponding to the first template identifier to the first terminal in response to the first template identifier and first incremental data sent by the first service provider, so that the first terminal generates a first preview view of the first link according to the first preview template and the first incremental data.
[0056] In some embodiments, the storage unit pre-stores one or more preview templates and template identifiers corresponding to the preview templates, including:
[0057] In response to receiving the preview template from the service provider, storing the preview template from the service provider and generating a corresponding template identifier;
[0058] Sending a template identifier of a preview template of the service provider to a service provider; wherein the service provider includes a first service provider.
[0059] In some embodiments, the storage unit pre-stores one or more preview templates and template identifiers corresponding to the preview templates, and also includes: constructing a corresponding incremental data template based on the preview template of the service party, and sending the incremental data template to the service party; wherein the incremental data template is used to describe the transmission specification of the incremental data of the corresponding preview template.
[0060] In some embodiments, in response to receiving a preview template from a service provider, the preview template from the service provider is stored and a corresponding template identifier is generated, including: displaying a web page building tool, in response to a preview template constructed and transmitted by the service provider through the web page building tool, the preview template from the service provider is stored and a corresponding template identifier is generated.
[0061] In some embodiments, in response to the first template identifier and the first incremental data sent by the first service provider, sending the first preview template and the first incremental data corresponding to the first template identifier to the first terminal includes:
[0062] In response to the first template identifier and the first incremental data sent by the first service provider, sending the first template identifier and the first incremental data to the first terminal;
[0063] In response to the first template identifier sent by the first terminal, a first preview template corresponding to the first template identifier is acquired and the first preview template is sent to the first terminal.
[0064] In some embodiments, the storage unit pre-stores one or more preview templates and template identifiers corresponding to the preview templates, including:
[0065] In response to receiving the preview view sent by the service provider, parsing the preview view to generate a preview template and a template identifier of the preview template, and sending the template identifier and the preview template to the service provider;
[0066] Among them, the preview view sent by the service provider is a preview view that does not meet the required specifications.
[0067] In some embodiments, the first preview template has at least one component, the component has an attribute value and / or a style value, and the first incremental data includes the attribute value and / or the style value of the component.
[0068] For the embodiments of the device, since they basically correspond to the method embodiments, the relevant parts refer to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the modules described as separation modules may or may not be separated. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of the present embodiment. Those of ordinary skill in the art can understand and implement without paying creative work.
[0069] The method and device of the present disclosure are described above based on the embodiments and application examples. In addition, the present disclosure also provides an electronic device and a computer-readable storage medium, which are described below.
[0070] Reference below Figure 4 , which shows a schematic diagram of the structure of an electronic device (such as a terminal device or a server) 800 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment 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), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in the figure is only an example and should not bring any limitation to the functions and scope of use of the embodiment of the present disclosure.
[0071] The 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 a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0072] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although the electronic device 800 with various devices is shown in the figure, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.
[0073] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0074] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0075] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0076] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0077] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method of the present disclosure.
[0078] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate 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 a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0079] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0080] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0081] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0082] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0083] According to one or more embodiments of the present disclosure, there is provided an information processing method, including:
[0084] Pre-storing one or more preview templates and template identifiers corresponding to the preview templates;
[0085] In response to a request for obtaining a preview view of a first link sent by the first terminal, determining a first service provider according to the first link, and sending a notification message including the first link to the first service provider;
[0086] In response to the first template identifier and the first incremental data sent by the first service provider, the first preview template and the first incremental data corresponding to the first template identifier are sent to the first terminal, so that the first terminal generates a first preview view of the first link according to the first preview template and the first incremental data.
[0087] According to one or more embodiments of the present disclosure, an information processing method is provided, which pre-stores one or more preview templates and template identifiers corresponding to the preview templates, including:
[0088] In response to receiving the preview template from the service provider, storing the preview template from the service provider and generating a corresponding template identifier;
[0089] Sending the template identifier of the preview template of the service provider to the service provider;
[0090] Among them, the service provider includes the first service provider.
[0091] According to one or more embodiments of the present disclosure, there is provided an information processing method, which pre-stores one or more preview templates and template identifiers corresponding to the preview templates, and further includes:
[0092] Construct a corresponding incremental data template according to the preview template of the service provider, and send the incremental data template to the service provider;
[0093] The incremental data template is used to describe the transmission specification of the incremental data of its corresponding preview template.
[0094] According to one or more embodiments of the present disclosure, there is provided an information processing method, in response to receiving a preview template from a service provider, storing the preview template from the service provider and generating a corresponding template identifier, including:
[0095] The web page building tool is displayed, and in response to the preview template constructed and transmitted by the service provider through the web page building tool, the preview template of the service provider is stored and a corresponding template identifier is generated.
[0096] According to one or more embodiments of the present disclosure, an information processing method is provided, which sends a first preview template and first incremental data corresponding to the first template identifier to a first terminal in response to a first template identifier and first incremental data sent by a first service provider, including:
[0097] In response to the first template identifier and the first incremental data sent by the first service provider, sending the first template identifier and the first incremental data to the first terminal;
[0098] In response to the first template identifier sent by the first terminal, a first preview template corresponding to the first template identifier is acquired and the first preview template is sent to the first terminal.
[0099] According to one or more embodiments of the present disclosure, an information processing method is provided, which pre-stores one or more preview templates and template identifiers corresponding to the preview templates, including:
[0100] In response to receiving the preview view sent by the service provider, parsing the preview view to generate a preview template and a template identifier of the preview template, and sending the template identifier and the preview template to the service provider;
[0101] Among them, the preview view sent by the service provider is a preview view that does not meet the required specifications.
[0102] According to one or more embodiments of the present disclosure, an information processing method is provided, wherein a first preview template has at least one component, the component has attribute values and / or style values, and the first incremental data includes the attribute values and / or style values of the component.
[0103] According to one or more embodiments of the present disclosure, there is provided an information processing device, including:
[0104] A storage unit, used to pre-store one or more preview templates and template identifiers corresponding to the preview templates;
[0105] a transmission unit, configured to respond to a request for obtaining a preview view of a first link sent by the first terminal, determine a first service provider according to the first link, and send a notification message including the first link to the first service provider;
[0106] The transmission unit is also used to send the first preview template and first incremental data corresponding to the first template identifier to the first terminal in response to the first template identifier and first incremental data sent by the first service provider, so that the first terminal generates a first preview view of the first link according to the first preview template and the first incremental data.
[0107] According to one or more embodiments of the present disclosure, there is provided an electronic device, including: at least one memory and at least one processor;
[0108] The at least one memory is used to store program codes, and the at least one processor is used to call the program codes stored in the at least one memory to execute any one of the above methods.
[0109] According to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store program code, and when the program code is executed by a processor, the processor is prompted to execute the above method.
[0110] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0111] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0112] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, 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. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. An information processing method, characterized in that: include: Pre-storing one or more preview templates and template identifiers corresponding to the preview templates; In response to a request for obtaining a preview view of a first link sent by the first terminal, determining a first service provider according to the first link, and sending a notification message including the first link to the first service provider; In response to the first template identifier and the first incremental data sent by the first service provider, a first preview template and the first incremental data corresponding to the first template identifier are sent to the first terminal, so that the first terminal generates a first preview view of the first link according to the first preview template and the first incremental data.
2. The method according to claim 1, characterized in that Pre-storing one or more preview templates and template identifiers corresponding to the preview templates includes: In response to receiving the preview template from the service provider, storing the preview template from the service provider and generating a corresponding template identifier; Sending a template identifier of the preview template of the service provider to the service provider; Among them, the service provider includes the first service provider.
3. The method according to claim 2, characterized in that Pre-storing one or more preview templates and template identifiers corresponding to the preview templates also includes: Constructing a corresponding incremental data template according to the preview template of the service provider, and sending the incremental data template to the service provider; The incremental data template is used to describe the transmission specification of the incremental data of the corresponding preview template.
4. The method according to claim 2, characterized in that: In response to receiving the preview template of the service provider, storing the preview template of the service provider and generating a corresponding template identifier, including: The web page building tool is displayed, and in response to the preview template constructed and transmitted by the service provider through the web page building tool, the preview template of the service provider is stored and the corresponding template identifier is generated.
5. The method according to claim 1, characterized in that In response to the first template identifier and the first incremental data sent by the first service provider, sending the first preview template and the first incremental data corresponding to the first template identifier to the first terminal includes: In response to the first template identifier and the first incremental data sent by the first service provider, sending the first template identifier and the first incremental data to the first terminal; In response to the first template identifier sent by the first terminal, a first preview template corresponding to the first template identifier is acquired and the first preview template is sent to the first terminal.
6. The method according to claim 1, characterized in that Pre-storing one or more preview templates and template identifiers corresponding to the preview templates includes: In response to receiving the preview view sent by the service provider, parsing the preview view to generate a preview template and a template identifier of the preview template, and sending the template identifier and the preview template to the service provider; The preview view sent by the service provider is a preview view that does not meet the required specifications.
7. The method according to claim 1, characterized in that The first preview template has at least one component, the component has an attribute value and / or a style value, and the first incremental data includes the attribute value and / or the style value of the component.
8. An information processing device, comprising: A storage unit, used to pre-store one or more preview templates and template identifiers corresponding to the preview templates; a transmission unit, configured to respond to a request for obtaining a preview view of a first link sent by a first terminal, determine a first service provider according to the first link, and send a notification message including the first link to the first service provider; The transmission unit is also used to send a first preview template and first incremental data corresponding to the first template identifier to the first terminal in response to the first template identifier and the first incremental data sent by the first service provider, so that the first terminal generates a first preview view of the first link according to the first preview template and the first incremental data.
9. An electronic device, comprising: at least one memory and at least one processor; 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 according to any one of claims 1 to 7. 10 . A computer-readable storage medium, wherein the computer-readable storage medium is used to store program codes, wherein when the program codes are executed by a processor, the processor is prompted to execute the method according to claim 1 .
Citation Information
Patent Citations
Preview page generating method and device, equipment and storage medium
CN108536715A
Card generation method, card generation device, mobile terminal and readable storage medium
CN109697093A