CN110825479A - Page processing method and device, terminal equipment, server and storage medium - Google Patents

Page processing method and device, terminal equipment, server and storage medium Download PDF

Info

Publication number
CN110825479A
CN110825479A CN201911070146.2A CN201911070146A CN110825479A CN 110825479 A CN110825479 A CN 110825479A CN 201911070146 A CN201911070146 A CN 201911070146A CN 110825479 A CN110825479 A CN 110825479A
Authority
CN
China
Prior art keywords
page
data
check value
server
updating
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.)
Withdrawn
Application number
CN201911070146.2A
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.)
Jiangsu Manyun Software Technology Co Ltd
Original Assignee
Jiangsu Manyun Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Manyun Software Technology Co Ltd filed Critical Jiangsu Manyun Software Technology Co Ltd
Priority to CN201911070146.2A priority Critical patent/CN110825479A/en
Publication of CN110825479A publication Critical patent/CN110825479A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The disclosure relates to the technical field of page processing, and provides a page processing method, a page processing device, terminal equipment, a server and a storage medium. The page processing method applied to the client comprises the following steps: responding to the page access request, and reading local cache data; if local cache data corresponding to the page access request are read, rendering a page according to the corresponding local cache data, generating a first check value according to the corresponding local cache data, and sending a page updating request carrying an identification element and the first check value to a server; and receiving first return information fed back from the server, and updating a page and the corresponding local cache data according to data carried by the first return information. The method and the device can realize rapid rendering and dynamic updating of the page, and can interact with a user to realize dynamic configuration of the page.

Description

Page processing method and device, terminal equipment, server and storage medium
Technical Field
The present disclosure relates to the field of page processing technologies, and in particular, to a page processing method and apparatus, a terminal device, a server, and a storage medium.
Background
With the deep development of the mobile internet, the functions are continuously enriched, and the product is iterated at a high speed. The updating requirements of page element modification, addition, deletion and the like are higher and higher, and different users also need to display different page elements. As can be seen, a single page FixedPage element has not been able to meet the requirements.
In the existing scheme, the updating of the page elements is usually realized by releasing a new version. However, the period of development, release and audit waiting of the new version is too long, so that the user cannot use the new version in time.
In addition, page elements in the existing scheme are simple, only static data are displayed, and the function of interaction with a user is omitted. And the page data version management is not available, the full data can be pulled every time, the flow is wasted, and the page display requirement of a complex scene cannot be met.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
In view of the above, the present disclosure provides a page processing method, device, terminal device, server and storage medium, so as to implement fast rendering, dynamic updating and dynamic configuration of a page.
According to a first aspect of the present disclosure, an embodiment provides a page processing method, including: responding to the page access request, and reading local cache data; if local cache data corresponding to the page access request are read, rendering a page according to the corresponding local cache data, generating a first check value according to the corresponding local cache data, and sending a page updating request carrying an identification element and the first check value to a server; and receiving first return information fed back from the server, and updating a page and the corresponding local cache data according to data carried by the first return information.
In one embodiment, if the local cache data corresponding to the page access request is not read, sending a page rendering request carrying the identification element to the server; and receiving second return information fed back from the server, rendering a page according to data carried by the second return information, and caching the page to the local.
In one embodiment, in response to a page configuration request, extracting configuration data carried by the page configuration request, generating a third check value according to rendering data of a current page, and sending a data check request carrying the configuration data and the third check value to the server; and receiving third return information fed back from the server side, and configuring the current page according to data carried by the third return information.
In one embodiment, the identification element includes an APP package name, an APP version, an RN version and a user gray scale of the client, and each check value is an MD5 value.
According to a second aspect of the present disclosure, an embodiment provides a page processing method, including: responding to a page updating request sent by a client, extracting an identification element and a first check value carried by the page updating request, determining updating data according to the identification element, and generating a second check value according to the updating data; and comparing the first check value with the second check value, if the second check value is different from the first check value, generating first return information carrying the updating data, and sending the first return information to the client.
In one embodiment, in response to a page rendering request sent by the client, an identification element carried by the page rendering request is extracted; and determining rendering data according to the identification element, generating second return information carrying the rendering data, and sending the second return information to the client.
In one embodiment, the check values and the check logics corresponding to the check values are respectively and correspondingly stored in a mapping relation between the check values and the check logics.
In one embodiment, in response to a data verification request sent by a client, extracting configuration data and a third verification value carried by the data verification request; determining a check logic corresponding to the third check value from the mapping relation according to the third check value, and checking the configuration data; and generating third return information carrying the verified configuration data, and sending the third return information to the client.
According to a third aspect of the present disclosure, one embodiment provides a page processing apparatus, including: the cache reading module is used for responding to the page access request and reading local cache data; the initial rendering module is used for rendering a page according to the corresponding local cache data when the local cache data corresponding to the page access request is read, generating a first check value according to the corresponding local cache data, and sending a page updating request carrying an identification element and the first check value to a server; and the dynamic updating module is used for receiving first return information fed back from the server and updating a page and the corresponding local cache data according to data carried by the first return information.
According to a fourth aspect of the present disclosure, an embodiment provides a page processing apparatus, including: the verification module is used for responding to a page updating request sent by a client, extracting an identification element and a first verification value carried by the page updating request, determining updating data according to the identification element, and generating a second verification value according to the updating data; and the feedback module is used for comparing the first check value with the second check value, generating first return information carrying the updating data when the second check value is different from the first check value, and sending the first return information to the client.
According to a fifth aspect of the present disclosure, an embodiment provides a terminal device, including: a processor; a memory storing executable instructions of the processor; wherein the processor is configured to perform the steps of the page processing method of any embodiment of the first aspect of the disclosure via execution of the executable instructions.
According to a sixth aspect of the present disclosure, an embodiment provides a server comprising: a processor; a memory storing executable instructions of the processor; wherein the processor is configured to perform the steps of the page processing method of any embodiment of the second aspect of the disclosure via execution of the executable instructions.
According to a seventh aspect of the present disclosure, there is provided a computer-readable storage medium storing a program which, when executed, implements the steps of the page processing method described in any embodiment of the first aspect of the present disclosure.
According to an eighth aspect of the present disclosure, there is provided a computer-readable storage medium storing a program which, when executed, implements the steps of the page processing method according to any embodiment of the second aspect of the present disclosure.
Compared with the prior art, the beneficial effects of this disclosure include at least:
when a client receives a page access request, reading local cache data to realize rapid rendering of a page; and requesting update data from the server while displaying the page, and updating the page and the local cache data when receiving the update data so as to realize the dynamic update of the page.
And when receiving a page updating request, the server judges whether updated data exists or not through comparison of the check values, and when the updated data exists, the server returns the updated data to the client for updating the page and the local cache, so that comparison of data versions is realized, and the flow is saved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 is a schematic view illustrating a scene of a page processing method in an embodiment of the present disclosure;
2-4 show a flow chart of several page processing methods applied to the client in the embodiment of the present disclosure;
5-7 show a flow chart of several page processing methods applied to the server in the embodiment of the present disclosure;
FIG. 8 is an interaction timing diagram illustrating a page processing method according to an embodiment of the disclosure;
fig. 9 is a schematic block diagram of a page processing apparatus applied to a client in the embodiment of the present disclosure;
fig. 10 is a schematic block diagram illustrating a page processing apparatus applied to a server in an embodiment of the present disclosure;
fig. 11 shows a schematic structural diagram of an electronic device in an embodiment of the present disclosure; and
fig. 12 shows a schematic structural diagram of a computer-readable storage medium in an embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and thus their repetitive description will be omitted.
Fig. 1 illustrates an application scenario of the page processing method of the present disclosure in one embodiment. As shown in fig. 1, the application scenario includes a client a and a server B. The client A is an application program capable of providing page service, and interaction with the server B is realized by relying on a terminal, such as a user device of a smart phone, a tablet computer, a computer and the like. The server B may be a single server, a server cluster, a cloud processing center, etc. The server B may provide services for a plurality of clients a, and is not limited to the scenario shown in fig. 1.
Fig. 2 shows a main flow of a page processing method applied to a client in one embodiment. Referring to fig. 2, the page processing method in this embodiment includes: s10, responding to the page access request, and reading local cache data; s20, if the local cache data corresponding to the page access request are read, rendering the page according to the corresponding local cache data, generating a first check value according to the corresponding local cache data, and sending a page updating request carrying the identification element and the first check value to the server; and S50, receiving the first return information fed back from the server, and updating the page and the corresponding local cache data according to the data carried by the first return information.
The page access request is initiated by a user to the client, for example, the user opens an application program or clicks a link of a current page of the application program, and the client receives the page access request. The local cache data is stored in the client, when the client receives a page access request, the local cache data is read firstly, and when the local cache data corresponding to the page access request is read, a page is rendered according to the corresponding local cache data, so that a user can quickly browse the page. And the client requests the data from the server side while displaying the page according to the corresponding local cache data. The client generates a first check value according to the corresponding local cache data, and sends a page updating request carrying the identification element and the first check value to the server. And when first return information fed back from the server is received, updating the page and the corresponding local cache data according to the data carried by the first return information. In the embodiment, the client does not load the page until the client waits for the feedback of the server after receiving the page access request, but loads the corresponding local cache data, so that the page rendering speed is increased; and meanwhile, data is requested from the server, the page and the local cache data are updated after the data fed back by the server are received, the page displayed by the client is updated to the latest page, and the local cache data is also updated to the latest data, so that the rapid loading and dynamic updating of the page are realized, and the latest data is cached for subsequent page access.
In an embodiment, if the first return information fed back by the server does not carry data, it indicates that the corresponding local cache data is the latest data, and the page rendered by the client according to the corresponding local cache data is the latest page, and the page does not need to be updated.
In one embodiment, the identification elements include APP (Application) package name, APP version, RN (ReactNative, a cross-platform mobile Application development framework) version, and user grayscale for the Application corresponding to the client. When an application program of a client is started, an APP package name serving as a unique identifier of the application program, an APP version indicating a version number of the application program, an RN version indicating a development environment of the application program, and a user gray level of a user of the application program can all be determined. The first check value is an MD5 value. The MD5Message Digest Algorithm (MD5Message-Digest Algorithm) is a cryptographic hash function, and the MD5 value of the corresponding local cache data can be obtained by calculating the corresponding local cache data according to the MD5Message Digest Algorithm, so as to ensure complete and consistent information transmission.
Referring to fig. 3, in an embodiment, the page processing method applied to the client further includes: s202, if the local cache data corresponding to the page access request is not read, sending a page rendering request carrying an identification element to a server; and S502, receiving second return information fed back from the server, rendering a page according to data carried by the second return information, and caching the page to the local. When the local cache data corresponding to the page access request is not read, the page cannot be loaded according to the corresponding local cache data, the data is directly requested from the server, and the page is rendered and cached to the local according to the data fed back by the server.
Referring to fig. 4, in an embodiment, the page processing method applied to the client further includes: s60, responding to the page configuration request, extracting configuration data carried by the page configuration request, generating a third check value according to rendering data of the current page, and sending a data check request carrying the configuration data and the third check value to the server; and S80, receiving third return information fed back from the server, and configuring the current page according to the data carried by the third return information.
Wherein the page configuration request is initiated by a user to the client. For example, a user may desire to publish a source message through a client. When a user enters a delivery page and inputs information such as an address, a goods name, goods weight and the like, the client receives a page configuration request carrying user input information, namely configuration data. The client generates a third check value according to the rendering data of the current page, the third check value is also an MD5 value, and sends a data check request carrying the configuration data and the third check value to the server to request the server to check the configuration data. When third return information fed back from the server is received, the current page is configured according to data carried by the third return information, namely the data passing the verification, so that the interaction with the user is realized, and the data effectiveness is ensured.
The page processing method applied to the client described in the above embodiment can flexibly deal with the problem of page update such as page element modification, addition, deletion and the like. The data structure is negotiated with the server, the client side realizes the page template corresponding to the data structure, the page is quickly rendered by loading the local cache data, the page is dynamically updated according to the data issued by the server side, the client side does not need to release a new version, the time for waiting for verification when the client side sends the version is saved, the time for seeing the use of the user after the new requirement is developed is greatly shortened, and the efficiency is improved. And the interaction with the user is realized, different page elements are displayed according to the user requirements, and the dynamic configuration of the page is realized.
Fig. 5 shows a main flow of a page processing method applied to a server in one embodiment. Referring to fig. 5, the page processing method in this embodiment includes: s30, responding to a page updating request sent by a client, extracting an identification element and a first check value carried by the page updating request, determining updating data according to the identification element, and generating a second check value according to the updating data; and S40, comparing the first check value with the second check value, if the second check value is different from the first check value, generating a first return message carrying the update data, and sending the first return message to the client.
Specifically, the identification element includes an APP package name, an APP version, an RN version, a user gray level, and the like, and according to the identification element, the server may determine an element related to page display, that is, the update data. Further, the server generates an MD5 value, i.e. a second check value, according to the determined update data, and compares the MD5 value sent from the client with the calculated MD5 value. If the values of the two MD5 are different, it indicates that the update data is inconsistent with the local cache data of the client, so the update data is fed back to the client for the client to update the page and the local cache data. If the values of the two MD5 are the same, it indicates that the update data is the same as the local cache data of the client, and when the first return information is fed back, the carried data is null. The service end returns the data by comparing the MD5 values of the data when the MD5 values are different, so that the flow is saved.
Further, when the MD5 value is inconsistent in comparison and update data needs to be returned, the server uses the MD5 value as a key and the check logic corresponding to the MD5 value as a value, and stores the check logic corresponding to the MD5 value and the MD5 value into a mapping relationship between a check value and the check logic. Wherein the check logic indicates which dimensions of the data need to be checked. The data binding is realized through the type of the data structure, and the data structure also defines common fields such as id, title, name, content and the like. The data structure is a data storage and organization mode followed between the client and the server, the server defines the data structure, the client realizes a page template corresponding to the data structure, and the corresponding page elements are displayed by reading the configuration information issued by the server, so that the page display of the client is controlled by the server. The check logic is directly related to elements displayed by the page, and the corresponding relation between multiple dimensions and the check logic is abstracted into the mapping relation between the MD5 value of the page data and the check logic, so that the corresponding relation of the check logic is simplified, and the condition that a new data request interface is abnormal is compatible. When the new data request interface is abnormal, the page shows the data of the local cache, and the check logic corresponds to the MD5 value of the data of the local cache, so that the consistency of the page show data, the MD5 value and the check logic is ensured.
Referring to fig. 6, in an embodiment, the page processing method applied to the server further includes: s302, responding to a page rendering request sent by a client, and extracting an identification element carried by the page rendering request; and S402, determining rendering data according to the identification elements, generating second return information carrying the rendering data, and sending the second return information to the client. When the request sent by the client does not carry the check value, the client does not have local cache data, and the server is required to issue data to render a page. At this time, the server determines data to be returned, namely rendering data, according to the identification element, and feeds the data back to the client so that the client can load the page.
Referring to fig. 7, in an embodiment, the page processing method applied to the server further includes: s702, in response to a data verification request sent by a client, extracting configuration data and a third verification value carried by the data verification request; s704, determining a check logic corresponding to the third check value according to the third check value self-mapping relation, and checking the configuration data; and S706, generating third return information carrying the verified configuration data, and sending the third return information to the client. When a user initiates a page configuration request, the client transmits configuration data to the server for verification, the server determines corresponding verification logic according to a verification value sent by the client, verifies the configuration data, and returns the verified configuration data to the client.
In a specific application scenario, for example, a user initiates a page configuration request at a client for configuration data including an address, a cargo name, and a cargo weight. The client generates a third check value according to the rendering data of the current page, for example, if the current page is generated by the client according to the corresponding local cache data loading, the third check value corresponds to the first check value; if the current page is loaded or updated according to the data fed back by the server, the third check value corresponds to the second check value. The client side sends a data check request carrying a third check value and the configuration data to the server side, the server side determines a check logic corresponding to the third check value according to a mapping relation between a pre-stored check value and the check logic, the configuration data is checked, data validity is guaranteed, and the configuration data passing the check is returned to the client side so that the client side can dynamically configure the page according to the returned configuration data.
Fig. 8 shows an interaction timing sequence of the page processing method in one embodiment, which embodies an interaction process between the client a and the server B. Referring to fig. 8, the interaction process between the client a and the server B includes: after receiving the page access request, the client a reads the local cache data. If the cache exists, the page is displayed, the waiting time of a user is reduced, meanwhile, new data is requested, a page updating request is sent to the server B, and the check value is transmitted to the value of the local cache data MD 5. And directly requesting new data if no cache exists, sending a page rendering request to the server B, and checking a value to be null. After receiving the page updating request, the server B determines updating data according to identification elements of multiple dimensions such as an APP package name, an APP version, an RN version and user gray, and the MD5 value of the updating data is calculated to be compared with the MD5 value transmitted by the client, if the values are the same, the data is consistent, and the data does not need to be returned, and if the values are different, the data is inconsistent, the data needs to be returned. When data need to be returned when the MD5 values are inconsistent in comparison, the MD5 value is taken as key, the data check logic is taken as value, and the mapping relation map is maintained. And after receiving the page rendering request, the server B directly returns rendering data according to the identification element. After receiving first return information returned by the server B, the client A indicates that the local data is latest and does not need to be updated if the data is null; if the data is not empty, it indicates that the local data needs to be updated. And the client A updates the page into the latest data returned by the server B, and meanwhile, the latest data is updated and cached locally. And after receiving second return information returned by the server B, the client A loads the page according to the rendering data and adds the page to the local cache. If the server B is abnormal, no data updating is actually carried out. Due to the fact that data updating is actually needed, due to the fact that abnormal updating is not successful, the page display is local data, and the page display data-MD 5 value-data check logic can be guaranteed to be consistent corresponding to the MD5 value of the local cache data. Further, after receiving the page configuration request, the client a requests an interface to the server B, and transmits an MD5 value corresponding to the page display data when sending the data verification request, and the server B takes out the corresponding verification logic verification configuration data according to the MD5 value, thereby realizing effective value verification according to different page elements and user input values, and ensuring data validity. And the client A can dynamically configure the page according to the third returned data fed back by the server B, so that different page elements can be displayed according to different dimensions.
Fig. 9 shows the main modules of the page processing apparatus applied to the client in one embodiment. Referring to fig. 9, the page processing apparatus includes: a cache reading module 10, configured to respond to a page access request and read local cache data; the initial rendering module 20 is configured to, when local cache data corresponding to the page access request is read, render a page according to the corresponding local cache data, generate a first check value according to the corresponding local cache data, and send a page update request carrying an identification element and the first check value to the server; and the dynamic updating module 50 is configured to receive the first return information fed back from the server, and update the page and the corresponding local cache data according to the data carried in the first return information. When receiving a page access request, the page processing device of the embodiment first reads local cache data to realize fast rendering of a page; and requesting update data from the server while displaying the page, and updating the page and the local cache data when receiving the update data so as to realize the dynamic update of the page. In other embodiments, the page processing apparatus may implement the steps of the page processing method embodiment shown in fig. 2, so as to support a complex page, support and user interaction, and implement page dynamic configuration, which is not described repeatedly herein.
Fig. 10 shows the main modules of the page processing apparatus applied to the server in one embodiment. Referring to fig. 10, the page processing apparatus includes: the verification module 30 is configured to, in response to a page update request sent by a client, extract an identification element and a first verification value carried in the page update request, determine update data according to the identification element, and generate a second verification value according to the update data; and the feedback module 40 is used for comparing the first check value with the second check value, generating first return information carrying updated data when the second check value is different from the first check value, and sending the first return information to the client. The page processing device of the embodiment judges whether updated data exists or not through comparison of the check values when receiving a page updating request, and returns the updated data for the client to update the page and the local cache when the updated data exists, so that comparison of data versions is realized, and the flow is saved. In other embodiments, the page processing apparatus may implement the steps of the page processing method embodiment shown in fig. 5, so as to implement data verification according to different page elements and user input data, and ensure data validity, which is not described repeatedly herein.
The present disclosure also provides an electronic device respectively applied to a client and a server, where the electronic device includes a processor and a memory, where executable instructions of the processor are stored in the memory, and the processor is configured to implement the steps of the above-mentioned page processing method applied to the client or the server by executing the executable instructions stored in the memory.
The electronic device applied to the client is, for example, a terminal device, such as a smart phone, a tablet computer, a desktop computer, and the like. The terminal device can execute the steps of the page processing method shown in fig. 2 to 4 when running, so as to implement the functions of fast rendering, dynamic updating, dynamic configuration and the like of the page.
The electronic device applied to the server is, for example, a server, and the server can execute the steps of the page processing method shown in fig. 5 to 7 when running, so as to implement functions such as data comparison and data verification.
The specific structure of the electronic device is described below with reference to fig. 11. The electronic device may be implemented in a client or a server, depending on the configuration of the processor and the executable instructions stored in the memory thereof.
The electronic device 600 shown in fig. 11 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 11, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one memory unit 620, a bus 630 connecting the different platform components (including the memory unit 620 and the processing unit 610), a display unit 640, etc.
Wherein the storage unit stores a program code, which can be executed by the processing unit 610, so that the processing unit 610 performs the steps of the page processing method described in the above embodiments. The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms, to name a few.
The present disclosure also provides computer-readable storage media respectively applied to a client and a server, for storing a program, where the program, when executed, implements the steps of the page processing method shown in fig. 2 to 4, so as to implement functions of fast rendering, dynamic updating, dynamic configuration, and the like of a page; or implementing the steps of the page processing method shown in fig. 5 to 7 to implement the functions of data comparison, data verification, and the like.
A specific structure of the computer-readable storage medium is described below with reference to fig. 12. The computer readable storage medium may be applied to a client or a server, depending on the program instructions stored therein. Referring to fig. 12, a program product 800 for implementing the above method according to an embodiment of the present disclosure is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The foregoing is a more detailed description of the present disclosure in connection with specific preferred embodiments, and it is not intended that the specific embodiments of the present disclosure be limited to these descriptions. For those skilled in the art to which the disclosure pertains, several simple deductions or substitutions may be made without departing from the concept of the disclosure, which should be considered as falling within the protection scope of the disclosure.

Claims (13)

1. A page processing method is characterized by comprising the following steps:
responding to the page access request, and reading local cache data;
if local cache data corresponding to the page access request are read, rendering a page according to the corresponding local cache data, generating a first check value according to the corresponding local cache data, and sending a page updating request carrying an identification element and the first check value to a server; and
and receiving first return information fed back from the server, and updating a page and the corresponding local cache data according to data carried by the first return information.
2. The page processing method of claim 1, further comprising:
if the local cache data corresponding to the page access request is not read, sending a page rendering request carrying the identification element to the server; and
and receiving second return information fed back from the server, rendering a page according to data carried by the second return information, and caching the page to the local.
3. The page processing method of claim 1, further comprising:
responding to a page configuration request, extracting configuration data carried by the page configuration request, generating a third check value according to rendering data of a current page, and sending a data check request carrying the configuration data and the third check value to the server; and
and receiving third return information fed back from the server side, and configuring the current page according to data carried by the third return information.
4. The page processing method according to any one of claims 1 to 3, wherein the identification elements include the APP package name, APP version, RN version and user gray of the client, and each check value is an MD5 value.
5. A page processing method is characterized by comprising the following steps:
responding to a page updating request sent by a client, extracting an identification element and a first check value carried by the page updating request, determining updating data according to the identification element, and generating a second check value according to the updating data; and
and comparing the first check value with the second check value, if the second check value is different from the first check value, generating first return information carrying the updating data, and sending the first return information to the client.
6. The page processing method of claim 5, further comprising:
responding to a page rendering request sent by the client, and extracting an identification element carried by the page rendering request; and
and determining rendering data according to the identification element, generating second return information carrying the rendering data, and sending the second return information to the client.
7. The page processing method of claim 5, further comprising:
and correspondingly storing each check value and the check logic corresponding to each check value into a mapping relation between the check values and the check logics respectively.
8. The page processing method of claim 7, further comprising:
responding to a data verification request sent by a client, and extracting configuration data and a third verification value carried by the data verification request;
determining a check logic corresponding to the third check value from the mapping relation according to the third check value, and checking the configuration data; and
and generating third return information carrying the verified configuration data, and sending the third return information to the client.
9. A page processing apparatus, comprising:
the cache reading module is used for responding to the page access request and reading local cache data;
the initial rendering module is used for rendering a page according to the corresponding local cache data when the local cache data corresponding to the page access request is read, generating a first check value according to the corresponding local cache data, and sending a page updating request carrying an identification element and the first check value to a server; and
and the dynamic updating module is used for receiving first return information fed back from the server and updating a page and the corresponding local cache data according to data carried by the first return information.
10. A page processing apparatus, comprising:
the verification module is used for responding to a page updating request sent by a client, extracting an identification element and a first verification value carried by the page updating request, determining updating data according to the identification element, and generating a second verification value according to the updating data; and
and the feedback module is used for comparing the first check value with the second check value, generating first return information carrying the updating data when the second check value is different from the first check value, and sending the first return information to the client.
11. A terminal device, comprising:
a processor;
a memory storing executable instructions of the processor;
wherein the processor is configured to perform the steps of the page processing method of any of claims 1 to 4 via execution of the executable instructions.
12. A server, comprising:
a processor;
a memory storing executable instructions of the processor;
wherein the processor is configured to perform the steps of the page processing method of any of claims 5 to 8 via execution of the executable instructions.
13. A computer-readable storage medium storing a program, characterized in that:
the program when executed implementing the steps of the page processing method of any one of claims 1 to 4; or
The program when executed implements the steps of the page processing method of any of claims 5 to 8.
CN201911070146.2A 2019-11-05 2019-11-05 Page processing method and device, terminal equipment, server and storage medium Withdrawn CN110825479A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911070146.2A CN110825479A (en) 2019-11-05 2019-11-05 Page processing method and device, terminal equipment, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911070146.2A CN110825479A (en) 2019-11-05 2019-11-05 Page processing method and device, terminal equipment, server and storage medium

Publications (1)

Publication Number Publication Date
CN110825479A true CN110825479A (en) 2020-02-21

Family

ID=69552529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911070146.2A Withdrawn CN110825479A (en) 2019-11-05 2019-11-05 Page processing method and device, terminal equipment, server and storage medium

Country Status (1)

Country Link
CN (1) CN110825479A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111459529A (en) * 2020-05-26 2020-07-28 北京拓世寰宇网络技术有限公司 Application software updating method and device, readable medium and equipment
CN111541758A (en) * 2020-04-17 2020-08-14 支付宝(杭州)信息技术有限公司 Page updating method and device
CN111562939A (en) * 2020-04-26 2020-08-21 特瓦特能源科技有限公司 Activity publishing method and device
CN111782464A (en) * 2020-06-22 2020-10-16 北京异乡旅行网络科技有限公司 Webpage dynamic abnormity monitoring method and system
CN111800487A (en) * 2020-06-22 2020-10-20 深圳壹账通智能科技有限公司 Data updating method, device, equipment and storage medium
CN112765507A (en) * 2021-01-27 2021-05-07 上海淇玥信息技术有限公司 Method and device for rendering first screen of page and loading resources and electronic equipment
CN113379556A (en) * 2021-07-02 2021-09-10 上海豹云网络信息服务有限公司 Dynamic monitoring method, device and equipment for service data
CN113407876A (en) * 2021-06-18 2021-09-17 杭州安恒信息技术股份有限公司 Webpage refreshing method, webpage refreshing system and related device
CN113486273A (en) * 2021-07-09 2021-10-08 上海淇馥信息技术有限公司 Front-end information flow page loading method and device and electronic equipment
CN113779448A (en) * 2020-08-10 2021-12-10 北京沃东天骏信息技术有限公司 Page processing method and device
CN114138397A (en) * 2021-12-10 2022-03-04 北京百度网讯科技有限公司 Page display method and device, electronic equipment and storage medium
CN117724852A (en) * 2024-02-07 2024-03-19 微网优联科技(成都)有限公司 Cloud computer computing resource allocation method and device
CN111782464B (en) * 2020-06-22 2024-04-26 北京异乡旅行网络科技有限公司 Webpage dynamic anomaly monitoring method and system

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111541758A (en) * 2020-04-17 2020-08-14 支付宝(杭州)信息技术有限公司 Page updating method and device
CN111541758B (en) * 2020-04-17 2023-06-16 支付宝(杭州)信息技术有限公司 Page updating method and device
CN111562939A (en) * 2020-04-26 2020-08-21 特瓦特能源科技有限公司 Activity publishing method and device
CN111459529A (en) * 2020-05-26 2020-07-28 北京拓世寰宇网络技术有限公司 Application software updating method and device, readable medium and equipment
CN111782464A (en) * 2020-06-22 2020-10-16 北京异乡旅行网络科技有限公司 Webpage dynamic abnormity monitoring method and system
CN111800487A (en) * 2020-06-22 2020-10-20 深圳壹账通智能科技有限公司 Data updating method, device, equipment and storage medium
CN111782464B (en) * 2020-06-22 2024-04-26 北京异乡旅行网络科技有限公司 Webpage dynamic anomaly monitoring method and system
CN113779448A (en) * 2020-08-10 2021-12-10 北京沃东天骏信息技术有限公司 Page processing method and device
CN112765507B (en) * 2021-01-27 2023-12-26 上海淇玥信息技术有限公司 Page first screen rendering and resource loading method and device and electronic equipment
CN112765507A (en) * 2021-01-27 2021-05-07 上海淇玥信息技术有限公司 Method and device for rendering first screen of page and loading resources and electronic equipment
CN113407876A (en) * 2021-06-18 2021-09-17 杭州安恒信息技术股份有限公司 Webpage refreshing method, webpage refreshing system and related device
CN113379556A (en) * 2021-07-02 2021-09-10 上海豹云网络信息服务有限公司 Dynamic monitoring method, device and equipment for service data
CN113486273A (en) * 2021-07-09 2021-10-08 上海淇馥信息技术有限公司 Front-end information flow page loading method and device and electronic equipment
CN114138397A (en) * 2021-12-10 2022-03-04 北京百度网讯科技有限公司 Page display method and device, electronic equipment and storage medium
CN117724852A (en) * 2024-02-07 2024-03-19 微网优联科技(成都)有限公司 Cloud computer computing resource allocation method and device

Similar Documents

Publication Publication Date Title
CN110825479A (en) Page processing method and device, terminal equipment, server and storage medium
WO2019242166A1 (en) Application update method and system, and computer device and storage medium
US8856365B2 (en) Computer-implemented method, computer system and computer readable medium
CN105653933A (en) Plugin loading method and device
EP4020270A1 (en) Attestation support for elastic cloud computing environments
CN111338834B (en) Data storage method and device
CN110928571A (en) Business program development method and device
US8938522B2 (en) Tiered XML services in a content management system
CN113761412A (en) Application page display method and device, electronic equipment, medium and application system
CN112394907A (en) Container-based delivery system construction method, application delivery method and delivery system
CN113452733A (en) File downloading method and device
CN113076175B (en) Memory sharing method and device for virtual machine
EP3958115A1 (en) Batch processing method and apparatus for mini programs, and electronic device and readable storage medium
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN113781154A (en) Information rollback method, system, electronic equipment and storage medium
CN114579167A (en) Method, device and storage medium for downloading application upgrade file
CN110262756B (en) Method and device for caching data
CN107911248B (en) Upgrading method and device
CN117131302A (en) Service page generation method and device
CN113722548A (en) Method and device for processing reference relationship in business system
CN113760316A (en) Application configuration system and method
CN112825529A (en) Method, system, equipment and storage medium for data transmission of edge computing node
CN114968209A (en) Page management method, system, electronic equipment and storage medium
CN115826981A (en) Real-time operating system driver adaptation method and device, electronic equipment and readable medium
CN116796095A (en) H5 hybrid development client request processing method, client and computer equipment

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20200221

WW01 Invention patent application withdrawn after publication