CN112818268A - Data display method and device, terminal equipment and readable storage medium - Google Patents

Data display method and device, terminal equipment and readable storage medium Download PDF

Info

Publication number
CN112818268A
CN112818268A CN201911124261.3A CN201911124261A CN112818268A CN 112818268 A CN112818268 A CN 112818268A CN 201911124261 A CN201911124261 A CN 201911124261A CN 112818268 A CN112818268 A CN 112818268A
Authority
CN
China
Prior art keywords
adapter
data
target
reader
source site
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911124261.3A
Other languages
Chinese (zh)
Inventor
廖海龙
余飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911124261.3A priority Critical patent/CN112818268A/en
Publication of CN112818268A publication Critical patent/CN112818268A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]

Abstract

The embodiment of the invention discloses a data display method, a device, terminal equipment and a readable storage medium, wherein the data display method comprises the following steps: detecting a reader calling request, wherein the reader calling request carries identification information of a target data source site; determining a matched target adapter from at least one predefined adapter according to the identification information; acquiring data to be displayed of a target data source site by calling the target adapter; and generating a reader interface by using the base class adapter corresponding to the predefined at least one adapter, and outputting the data to be displayed through the reader interface. By adopting the data display mode, the site data of different data sources can be adaptively adapted, and a reader interface is generated to display the site data, so that the universality of the reader is improved.

Description

Data display method and device, terminal equipment and readable storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a data display method and apparatus, a terminal device, and a readable storage medium.
Background
The reader realized by the terminal can adopt a non-legal reading frame of a third-party website to acquire the reading content, and can also acquire the reading content based on a legal reader of books operated by legal dealers. Due to the fact that internal logics of the acquisition architecture are different due to different reading content data sources, reader page frames of different reading content data sources are not universal, developers are required to develop the reader page frames, and the version release period of the reader is long. Therefore, how to adapt to reader interfaces with different data sources to display data so as to improve the universality of the reader becomes an urgent problem to be solved.
Disclosure of Invention
The embodiment of the invention provides a data display method, a data display device, terminal equipment and a readable storage medium, which can adaptively adapt to site data of different data sources and generate a reader interface to display the site data, so that the universality of a reader is improved.
In a first aspect, an embodiment of the present invention provides a data display method, where the method includes:
detecting a reader calling request, wherein the reader calling request carries identification information of a target data source site;
determining a matched target adapter from at least one predefined adapter according to the identification information;
acquiring data to be displayed of the target data source site by calling the target adapter;
and generating a reader interface by using the base class adapter corresponding to the predefined at least one adapter, and outputting the data to be displayed through the reader interface.
In a second aspect, an embodiment of the present invention provides a data display apparatus, where the apparatus includes:
the detection module is used for detecting a reader calling request, wherein the reader calling request carries identification information of a target data source site;
the processing module is used for determining a matched target adapter from at least one predefined adapter according to the identification information;
the acquisition module is used for acquiring the data to be displayed of the target data source site by calling the target adapter;
the processing module is further used for generating a reader interface by using the base class adapter corresponding to the predefined at least one adapter;
and the output module is also used for outputting the data to be displayed through the reader interface.
In a third aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes an input device and an output device, and the terminal device further includes a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer readable storage medium having stored thereon one or more instructions adapted to be loaded by said processor and to perform the data presentation method of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer is caused to execute the data presentation method according to the first aspect.
In the embodiment of the application, the data display method can be operated on a client, the client detects a reader calling request, the reader calling request carries identification information of a target data source site, and a matched target adapter is determined from at least one predefined adapter according to the identification information. Further, the client may obtain the data to be displayed of the target data source site by calling the target adapter, generate a reader interface by using a base class adapter corresponding to at least one predefined adapter, and output the data to be displayed through the reader interface. By adopting the data display mode, the site data of different data sources can be adaptively adapted, and a reader interface is generated to display the site data, so that the universality of the reader is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a data display method according to an embodiment of the present invention;
FIG. 2a is an effect diagram of a browser client interface according to an embodiment of the present invention;
FIG. 2b is a diagram of a target book display interface according to an embodiment of the present invention;
FIG. 2c is a reader interface provided by an embodiment of the present invention;
FIG. 2d is another browser client interface provided by an embodiment of the present invention;
FIG. 2e is another reader interface provided by embodiments of the present invention;
FIG. 3 is a flow chart of another data presentation method according to an embodiment of the present invention;
FIG. 4 is a block diagram of a data presentation system according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a data display device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Aiming at the problem that page frames of readers with different data sources do not have universality at present, the embodiment of the invention provides a data display method, which can adaptively adapt to site data of different data sources and generate a reader interface to display the site data, so that the universality of the reader is improved.
The implementation details of the technical scheme of the embodiment of the invention are explained in detail as follows:
fig. 1 is a schematic flow chart of a data display method according to an embodiment of the present invention, where the data display method includes the following steps:
s101: the client detects a reader calling request, wherein the reader calling request carries identification information of a target data source site.
Specifically, the identification information identifies the type of the target data source site, and may include a legal site and a non-legal site. Wherein, the site granted by the copyright owner of the target data to obtain the target data is a legal site, and the site not granted by the copyright owner of the target data to obtain the target data is a non-legal site, for example: for A novel, sites authorized to disclose A novel by A novel authors are legal sites, while sites not authorized to disclose A novel by A novel authors are non-legal sites. The specific identification information may be one or more of a website address, a URL, and an IP address of the data source site.
S102: and the client determines a matched target adapter from at least one predefined adapter according to the identification information.
In an embodiment, after obtaining the identification information of the target data source site, the client determines the type of the target data source site according to the identification information. Further, the client may determine, according to the type of the target data source site, a target adapter that matches the type of the target data source site from among the predefined at least one adapter.
Wherein the predefined at least one adapter is defined according to the predefined type of the data source site, and the number of the predefined at least one adapter can be consistent with the predefined type category of the data source site. For example, when the predefined types of data source sites include a genuine site and a non-genuine site, the predefined at least one adapter may be two, one of which is an adapter that matches the genuine site and the other is an adapter that matches the non-genuine site.
In one embodiment, the specific implementation of the at least one adapter predefined by the client may be that the client abstracts out a base class adapter based on the product form of the reader, and the base class adapter includes a business function interface for implementing the product form of the reader. Further, the client can obtain a predefined type of at least one data source site, and create a matching at least one adapter for the predefined type of at least one data source site based on the base class adapter.
The product form service function interface of the reader is a data transmission interface defined according to a service function provided by the reader, for example, the service function of the reader is a data input interface for acquiring content data, and the service function of the reader is a data output display interface for displaying the content data. It should be appreciated that the base class adapter is an adapter type that includes the commonality of other adapters, the functionality of the base class adapter can be defined by the developer, and other adapters can obtain the functionality by inheriting the functionality of the base class adapter, for example, the functionality of the base class adapter is data loading, and adapter 1 can obtain the functionality of data loading by inheriting the base class adapter.
S103: and the client acquires the data to be displayed of the target data source site by calling the target adapter.
In one embodiment, the client determines that the type of the target source site is a non-legal site according to the identification information of the target data source site in the reader calling request, and for the situation, the client calls the target adapter to inject the kernel JS file into the webpage file of the target data source site to obtain the data to be displayed of the target data source site, namely the non-legal site.
The data to be displayed comprises one or more of picture data, text data and advertisement information data.
In one embodiment, the client determines that the type of the target source site is the legal site according to the identification information of the target data source site in the reader calling request, and for the situation, the client connects to the target data source site, namely a data calling interface provided by a service background corresponding to the legal site, by calling the target adapter. Further, the client may obtain the data to be displayed of the target data source site stored in the service background by using the data call interface. The data calling interface comprises a Node access layer interface or a Wup interface.
S104: and the client generates a reader interface by using the base class adapter corresponding to the at least one predefined adapter, and outputs the data to be displayed through the reader interface.
In one embodiment, the client may obtain a base class adapter corresponding to the predefined at least one adapter, and call the base class adapter to create a reader interface according to the hippy-exact framework, where the reader interface includes at least one page component. Further, the client may bind each of the at least one page component with the corresponding operational functionality. Wherein at least one page component is used to trigger management of the reader interface.
Exemplarily, taking a smooth reading service reader provided by a browser client as an example, fig. 2a is a browser client interface for acquiring a book through a non-legal site, fig. 2b is a target book display interface for selecting any target book from the browser client interface of the non-legal site, fig. 2c is a reader interface for invoking the smooth reading service reader to perform data display on content data of the target book, fig. 2d is another browser client interface for acquiring the book through the legal site, and fig. 2e is another reader interface for invoking the smooth reading service reader to perform data display on the content data of the target book after selecting any target book. The creation process of the reader interface in fig. 2c and the reader interface in another type in fig. 2e is specifically as follows: selecting page components of a reader interface from a component layer of a hippy-exact frame, carrying out operations such as arrangement and combination on each page component to form an initial static page, further binding each page component with a corresponding operation function, and outputting rendered components and content data to a preset display window.
In the embodiment of the application, a client detects a reader calling request, the reader calling request carries identification information of a target data source site, and a matched target adapter is determined from at least one predefined adapter according to the identification information. Further, the client acquires the data to be displayed of the target data source site by calling the target adapter, generates a reader interface by using the base class adapter corresponding to the predefined at least one adapter, and outputs the data to be displayed through the reader interface. By adopting the data display mode, the site data of different data sources can be adaptively adapted, and a reader interface is generated to display the site data, so that the universality of the reader is improved.
Please refer to fig. 3, which is a schematic flow chart of another data displaying method provided by the present invention, the data displaying method includes the following steps:
s301: the client detects the reader call request. The reader calling request carries identification information of a target data source site.
S302: and the client determines a matched target adapter from at least one predefined adapter according to the identification information.
S303: and the client acquires the data to be displayed of the target data source site by calling the target adapter.
S304: and the client generates a reader interface by using the base class adapter corresponding to the at least one predefined adapter, and outputs the data to be displayed through the reader interface.
The specific implementation method of steps S301 to S304 may refer to the specific description of steps S101 to S104 in the above embodiment, and will not be described in detail here.
S305: when the client receives an update instruction input aiming at the data to be displayed, the base class adapter is called to acquire the data to be updated from the webpage file of the target data source site or the service background corresponding to the target data source site according to the type of the target data source site.
The updating instruction can be a page turning instruction for the display content of the current reader interface and/or a zooming instruction for the display content of the current reader interface.
In one embodiment, the client determines that the type of the target data source site is a non-legal site, and after the reader interface outputs the data to be displayed, the client detects that a user sends an update instruction to the reading page through an operation function component in the reading interface. And the client receives an updating instruction sent by the user, and injects the kernel JS file into the webpage file of the target data source site by calling the base class adapter according to the operating instruction so as to acquire the data to be updated.
In another embodiment, the client determines that the type of the target data source site is an original site, and after the reader interface outputs the data to be displayed, the client detects that the user sends an update instruction to the reading page through an operation function component in the reading interface. The client receives an update instruction sent by a user, and links a data call interface provided by a service background corresponding to the target data source site through a call base class adapter according to the operation instruction, and acquires data to be updated stored in the service background by using the data call interface.
S306: and the client updates the data to be displayed output in the reader interface by using the data to be updated.
In one embodiment, the reader interface updates the data state of each page component through the exact-reduce in the hippy-exact frame, and the data state of each page component in the reader interface is updated and rendered on the reader.
In one embodiment, after the reader interface outputs the data to be displayed, the client calls the base class adapter to obtain the data to be updated from the webpage file of the target data source site or the service background corresponding to the target data source site according to the type of the data source site of the data to be displayed. And when the client receives an updating instruction input aiming at the data to be displayed, updating the data to be displayed output in the reader interface by using the data to be updated. By adopting the data display mode, after the data to be displayed is displayed on the reader interface, partial data can be cached so as to improve the efficiency of updating the data to be displayed output in the reader interface.
In the embodiment of the application, a client detects a reader calling request, the reader calling request carries identification information of a target data source site, and a matched target adapter is determined from at least one predefined adapter according to the identification information. Further, the client acquires the data to be displayed of the target data source site by calling the target adapter, generates a reader interface by using the base class adapter corresponding to the predefined at least one adapter, and outputs the data to be displayed through the reader interface. When the client receives an update instruction input aiming at the data to be displayed, the base class adapter is called to acquire the data to be updated from the webpage file of the target data source site or the service background corresponding to the target data source site according to the type of the target data source site, and the data to be updated is used for updating the data to be displayed output in the reader interface. By adopting the data display mode, the site data of different data sources can be adaptively adapted, the reader interface is generated to display the site data, the data to be displayed output in the reader interface can be updated according to the reader interface updating instruction input by the user, and the popularity of the reader is improved.
Fig. 4 is a schematic structural diagram of a data display system according to an embodiment of the present invention. The data source site type of the data display system comprises an original site and a non-original site, the data display system comprises a non-original site data acquisition unit 40, an original site data acquisition unit 41, a base class adapter 42, a page rendering frame unit 43 of a hippy-exact frame and a reader interface display unit 44, wherein:
the execution logic of the non-legal site data acquisition unit 40 includes: when the type of the target data source site is a non-legal site, the client side injects the JS file of the kernel into the webpage file of the non-legal site by calling a non-legal transcoding adapter corresponding to the non-legal site, and obtains to-be-displayed data of the target data source site, namely the non-legal site. Alternatively, when the type of the target data source site is a non-legal site, the client side obtains the data to be displayed of the target data source site, that is, the non-legal site, by injecting the JS file of the kernel into the web file of the non-legal site, and further calls the non-legal transcoding adapter to transfer the data to be displayed into the base class adapter 42.
The execution logic of the legal site data acquisition unit 41 includes: and when the type of the target data source site is the legal site, the client connects a data calling interface provided by a service background corresponding to the legal site by calling the legal read adapter. Further, the client may obtain the data to be displayed of the target data source site, that is, the legal site, stored in the service background by using the data call interface. Alternatively, when the type of the target data source site is the legal site, the client acquires the data to be displayed of the target data source site, that is, the legal site, stored in the business background by connecting with the data call interface provided by the business background corresponding to the legal site, and further calls the legal read adapter to transmit the data to be displayed into the base class adapter 42.
The client abstracts out the base class adapter 42 based on the product form of the reader, and the base class adapter 42 contains a business function interface for implementing the product form of the reader. Further, the client predefines a non-legal transcoding adapter for the non-legal site based on the base class adapter 42, and the client predefines an legal reading adapter for the legal site based on the base class adapter 42, so that the client can call the non-legal transcoding adapter or the legal reading adapter to obtain the data to be displayed from the target data source site.
The hippy-exact framework execution logic comprises: the client end transfers the data to be displayed to the service front end of the hippy-act framework by calling the base class adapter 42, the data to be displayed is received by the object Actions in the page rendering framework unit 43, the Action data is generated according to the data to be displayed and is transferred to the object Store, the object Store obtains the current state data, the object Store transfers the current state data and the Action data to the object Reducer, the object Store generates new state data and transfers the new state data back to the object Store, the object View is prompted to update the content of the reader interface display unit 44 according to the new state data, and the object View transfers the new state data back to the object Actions. Through the data display mode, the site data of different data sources can be adaptively adapted, a reader interface is generated to display the site data, and the universality of the reader is improved.
Based on the description of the method embodiment, the embodiment of the invention also provides a data display device. Referring to fig. 5, the data presentation apparatus may operate as follows:
the detection module 50 is configured to detect a reader call request, where the reader call request carries identification information of a target data source site;
the processing module 51 is configured to determine a matched target adapter from at least one predefined adapter according to the identification information;
an obtaining module 52, configured to obtain to-be-displayed data of the target data source site by calling the target adapter;
the processing module 51 is further configured to generate a reader interface by using the base class adapter corresponding to the predefined at least one adapter;
and the output module 53 is configured to output the data to be displayed through the reader interface.
In an embodiment, the processing module 51 is further configured to determine a type of the target data source site according to the identification information; and determining a target adapter which is matched with the type of the target data source site from at least one predefined adapter.
In an embodiment, the obtaining module 52 is further configured to inject the kernel JS file into the web file of the target data source site by calling the target adapter, so as to obtain the data to be displayed of the target data source site.
In an embodiment, the processing module 51 is further configured to connect, by calling the target adapter, a data call interface provided by a service background corresponding to the target data source site, where the data call interface includes a Node access layer interface or a Wup interface; the obtaining module 52 is further configured to obtain, by using the data call interface, data to be displayed of the target data source site stored in the service background.
In an embodiment, before determining a matched target adapter from at least one predefined adapter according to the identification information, the processing module 51 is further configured to abstract a base class adapter based on a product form of a reader, where the base class adapter includes a service function interface for implementing the product form of the reader; acquiring at least one predefined type of data source site; creating at least one adapter that matches the predefined type of the at least one data source site based on the base class adapter.
In an embodiment, the processing module 51 is further configured to obtain a base class adapter corresponding to the predefined at least one adapter; calling the base class adapter to create a reader interface according to the hippy-exact framework, wherein the reader interface comprises at least one page component; and binding each page component in the at least one page component with a corresponding operation function, wherein the at least one page component is used for triggering the management of the reader interface.
In an embodiment, the obtaining module 52 is further configured to, when an update instruction input for the data to be displayed is received, invoke the base class adapter to obtain the data to be updated from a web file of the target data source site or a service background corresponding to the target data source site according to the type of the target data source site; the processing module 51 is further configured to update the data to be displayed output in the reader interface by using the data to be updated.
It should be noted that the functions of each module of the data presentation apparatus described in the embodiment of the present invention may be specifically implemented according to the method in the method embodiment described in fig. 1 or fig. 3, and the specific implementation process may refer to the related description of the method embodiment in fig. 1 or fig. 3, which is not described herein again.
Based on the description of the method embodiment and the apparatus item embodiment, the embodiment of the present invention further provides a terminal device. Referring to fig. 6, the terminal device may include at least a processor 601, an input device 602, an output device 603, and a memory 604; the processor 601, the input device 602, the output device 603, and the memory 604 may be connected by a bus or other connection means. The memory 604 is used for storing a computer program comprising program instructions, and the processor 601 is used for executing the program instructions stored by the memory 604. The processor 601 (or CPU) is a computing core and a control core of the terminal device, and is adapted to implement one or more instructions, and specifically, adapted to load and execute the one or more instructions so as to implement the corresponding method flow or the corresponding function in the data presentation method embodiment based on the blockchain network. Wherein the processor 601 is configured to call the program instructions to perform: detecting a reader calling request, wherein the reader calling request carries identification information of a target data source site; determining a matched target adapter from at least one predefined adapter according to the identification information; acquiring data to be displayed of the target data source site by calling the target adapter; and generating a reader interface by using the base class adapter corresponding to the predefined at least one adapter, and outputting the data to be displayed through the reader interface.
In an embodiment, the processor 601 is further configured to detect a reader invocation request, where the reader invocation request carries identification information of a target data source site; determining a matched target adapter from at least one predefined adapter according to the identification information; acquiring data to be displayed of the target data source site by calling the target adapter; and generating a reader interface by using the base class adapter corresponding to the predefined at least one adapter, and outputting the data to be displayed through the reader interface.
In one embodiment, the processor 601 is further configured to determine a type of the target data source site according to the identification information; and determining a target adapter which is matched with the type of the target data source site from at least one predefined adapter.
In an embodiment, the processor 601 is further configured to inject the kernel JS file into the web page file of the target data source site by calling the target adapter, so as to obtain the data to be displayed of the target data source site.
In an embodiment, the processor 601 is further configured to connect, by invoking the target adapter, a data invocation interface provided by a service background corresponding to the target data source site, where the data invocation interface includes a Node access layer interface or a Wup interface; and acquiring the data to be displayed of the target data source site stored in the service background by using the data call interface.
In an embodiment, before the matching target adapter is determined from the predefined at least one adapter according to the identification information, the processor 601 is further configured to abstract a base class adapter based on a product form of the reader, where the base class adapter includes a service function interface for implementing the product form of the reader; acquiring at least one predefined type of data source site; creating at least one adapter that matches the predefined type of the at least one data source site based on the base class adapter.
In an embodiment, the processor 601 is further configured to obtain a base class adapter corresponding to the predefined at least one adapter; calling the base class adapter to create a reader interface according to the hippy-exact framework, wherein the reader interface comprises at least one page component; and binding each page component in the at least one page component with a corresponding operation function, wherein the at least one page component is used for triggering the management of the reader interface.
In an embodiment, after the data to be displayed is output through the reader interface, the processor 601 is further configured to call the base class adapter to obtain the data to be updated from the web file of the target data source site or the service background corresponding to the target data source site according to the type of the target data source site when an update instruction input for the data to be displayed is received; and updating the data to be displayed output in the reader interface by using the data to be updated.
It should be understood that in the embodiment of the present invention, the Processor 601 may be a Central Processing Unit (CPU), and the Processor 601 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete a hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 604 may include both read-only memory and random access memory, and provides instructions and data to the processor 601. A portion of the memory 604 may also include non-volatile random access memory. For example, the memory 604 may also store device type information. The input device 603 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user), a microphone, a physical keyboard, etc., and the output device 603 may include a display (LCD, etc.), a speaker, etc.
In specific implementation, the processor 601, the memory 604, the input device 602, and the output device 603 described in this embodiment of the present invention may execute the implementation manner described in the method embodiment described in fig. 1 or fig. 3 provided in this embodiment of the present invention, and may also execute the implementation method of the data presentation apparatus described in this embodiment of the present invention, which is not described herein again.
In another embodiment of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program comprising program instructions that when executed by a processor implement: detecting a reader calling request, wherein the reader calling request carries identification information of a target data source site; determining a matched target adapter from at least one predefined adapter according to the identification information; acquiring data to be displayed of the target data source site by calling the target adapter; and generating a reader interface by using the base class adapter corresponding to the predefined at least one adapter, and outputting the data to be displayed through the reader interface.
The computer-readable storage medium may be an internal storage unit of the terminal device according to any of the foregoing embodiments, for example, a hard disk or a memory of the terminal device. The computer readable storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal device. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the terminal device. The computer-readable storage medium is used for storing the computer program and other programs and data required by the terminal device. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above.
The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for presenting data, the method comprising:
detecting a reader calling request, wherein the reader calling request carries identification information of a target data source site;
determining a matched target adapter from at least one predefined adapter according to the identification information;
acquiring data to be displayed of the target data source site by calling the target adapter;
and generating a reader interface by using the base class adapter corresponding to the predefined at least one adapter, and outputting the data to be displayed through the reader interface.
2. The method of claim 1, wherein determining a matching target adapter from the predefined at least one adapter according to the identification information comprises:
determining the type of the target data source site according to the identification information;
and determining a target adapter which is matched with the type of the target data source site from at least one predefined adapter.
3. The method according to claim 2, wherein the type of the target data source site is a non-legal site, and the obtaining the data to be presented at the target data source site by calling the target adapter comprises:
and injecting the kernel JS file into the webpage file of the target data source site by calling the target adapter so as to acquire the data to be displayed of the target data source site.
4. The method according to claim 2, wherein the type of the target data source site is an original site, and the obtaining of the data to be shown of the target data source site by calling the target adapter comprises:
the target adapter is called to connect a data calling interface provided by a service background corresponding to the target data source site, wherein the data calling interface comprises a Node access layer interface or a Wup interface;
and acquiring the data to be displayed of the target data source site stored in the service background by using the data call interface.
5. The method of claim 1, wherein before determining the matching target adapter from the predefined at least one adapter according to the identification information, the method further comprises:
abstracting a base class adapter based on the product form of the reader, wherein the base class adapter comprises a business function interface for realizing the product form of the reader;
acquiring at least one predefined type of data source site;
creating at least one adapter that matches the predefined type of the at least one data source site based on the base class adapter.
6. The method according to claim 1, wherein the generating a reader interface using the base class adapter corresponding to the predefined at least one adapter comprises:
acquiring a base class adapter corresponding to the predefined at least one adapter;
calling the base class adapter to create a reader interface according to the hippy-exact framework, wherein the reader interface comprises at least one page component;
and binding each page component in the at least one page component with a corresponding operation function, wherein the at least one page component is used for triggering the management of the reader interface.
7. The method according to claim 1 or 2, wherein after the data to be displayed is output through the reader interface, the method further comprises:
when an updating instruction input aiming at the data to be displayed is received, calling the base class adapter to acquire the data to be updated from a webpage file of the target data source site or a service background corresponding to the target data source site according to the type of the target data source site;
and updating the data to be displayed output in the reader interface by using the data to be updated.
8. A data presentation device, the device comprising:
the detection module is used for detecting a reader calling request, wherein the reader calling request carries identification information of a target data source site;
the processing module is used for determining a matched target adapter from at least one predefined adapter according to the identification information;
the acquisition module is used for acquiring the data to be displayed of the target data source site by calling the target adapter;
the processing module is further configured to generate a reader interface by using the base class adapter corresponding to the predefined at least one adapter;
and the output module is used for outputting the data to be displayed through the reader interface.
9. A terminal device, characterized in that the terminal device comprises:
a memory comprising terminal device readable instructions; a processor coupled to the memory, the processor configured to execute the terminal device readable instructions to cause the device to perform the method of any of claims 1-7.
10. A computer-readable storage medium having stored thereon instructions which, when run on a computer, cause the computer to perform the method of any of claims 1-7.
CN201911124261.3A 2019-11-15 2019-11-15 Data display method and device, terminal equipment and readable storage medium Pending CN112818268A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911124261.3A CN112818268A (en) 2019-11-15 2019-11-15 Data display method and device, terminal equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911124261.3A CN112818268A (en) 2019-11-15 2019-11-15 Data display method and device, terminal equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112818268A true CN112818268A (en) 2021-05-18

Family

ID=75852429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911124261.3A Pending CN112818268A (en) 2019-11-15 2019-11-15 Data display method and device, terminal equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112818268A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116610319A (en) * 2023-06-06 2023-08-18 北京捷泰云际信息技术有限公司 Method and system for constructing map application based on low-code platform

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116610319A (en) * 2023-06-06 2023-08-18 北京捷泰云际信息技术有限公司 Method and system for constructing map application based on low-code platform

Similar Documents

Publication Publication Date Title
CN110489101B (en) Interface simulation method, system, medium and electronic equipment
WO2016177341A1 (en) Interface calling method and device, and terminal
US9325717B1 (en) Web-store restriction of external libraries
CN105718313A (en) Application operation method and device
CN108845839B (en) Application page loading method and device and computer readable storage medium
CN109347898B (en) Scene information sending method, scene information display method, server and mobile terminal
CN110007936B (en) Data processing method and device
CN102929971A (en) Multimedia information playing method and system
CN112230923A (en) User interface rendering method, user interface rendering device and server
CN102937963A (en) Template and server content download using protocol handlers
CN111367518A (en) Page layout method and device, computing equipment and computer storage medium
CN111444453A (en) Page return data processing method and device
CN108509228B (en) Page loading method, terminal equipment and computer readable storage medium
CN112818268A (en) Data display method and device, terminal equipment and readable storage medium
CN103488508A (en) Browser working method, browser and terminal equipment
CN109104481B (en) File integrity detection method, file integrity detection device and terminal equipment
CN107609119B (en) File processing method, mobile terminal and computer readable storage medium
CN112104544B (en) Method and device for sending dynamic mail based on Freemarker
CN112732547B (en) Service testing method and device, storage medium and electronic equipment
CN106156235B (en) Picture downloading method and system based on Android platform
CN110673827B (en) Resource calling method and device based on android system and electronic equipment
US20120054313A1 (en) Interpreting web application content
CN113176907A (en) Interface data calling method and device, computer system and readable storage medium
CN111124627A (en) Method, device, terminal and storage medium for determining application program caller
CN116361748B (en) Software supply chain safety detection method and device

Legal Events

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