CN111966428A - Page processing method and device and page backtracking method and device - Google Patents

Page processing method and device and page backtracking method and device Download PDF

Info

Publication number
CN111966428A
CN111966428A CN202010848643.7A CN202010848643A CN111966428A CN 111966428 A CN111966428 A CN 111966428A CN 202010848643 A CN202010848643 A CN 202010848643A CN 111966428 A CN111966428 A CN 111966428A
Authority
CN
China
Prior art keywords
page
code
target
key frame
storage block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010848643.7A
Other languages
Chinese (zh)
Other versions
CN111966428B (en
Inventor
马宇申
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202010848643.7A priority Critical patent/CN111966428B/en
Publication of CN111966428A publication Critical patent/CN111966428A/en
Application granted granted Critical
Publication of CN111966428B publication Critical patent/CN111966428B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a page processing method and device and a page backtracking method and device, wherein the page processing method comprises the following steps: receiving an operation request submitted by a client aiming at a current display page; determining a target page code corresponding to the operation request, and sending the target page code to the client; generating a target key frame according to the target page code and the time for sending the target page code; determining a storage block of a key frame corresponding to the current display page, writing the target key frame into the storage block and updating a record identifier of the storage block; therefore, the page displayed by the client can be quickly traced back in the compliance detection scene.

Description

Page processing method and device and page backtracking method and device
Technical Field
The present application relates to the field of compliance data management, and in particular, to a page processing method and apparatus, and a page backtracking method and apparatus.
Background
With the development and popularization of the internet technology, more and more users select online consumption, the online consumption is different from the traditional entity consumption scene, the users can finish shopping, reservation, stock investment, certificate transaction and the like through the internet, and the convenience of the users is improved to a great extent; with the development of the online service deepening, the information security and the information protection become important problems, and the information security of the user is ensured, and meanwhile, the service end is required to be ensured not to be lost by the illegal operation of the user, so that the continuous development of the online service can be promoted; in the process, a situation that a page or operation browsed by the user needs to be traced back may occur, for example, in an after-sales scene, the operation process and the payment process when the user purchases a commodity may need to be traced back, so that which party the problem exists between the user and a merchant is analyzed, and a result is given.
However, for the server, not only one user is served, but also a user group needing to be served is relatively large, and if the operation behavior of the user needs to be traced back, recording of the operated page needs to be completed during the operation of the user, which results in that the server needs to store a large number of page recording results, which not only consumes storage space, but also has poor traceability, and therefore an effective scheme is urgently needed to solve the problem.
Disclosure of Invention
In view of this, the present application provides a page processing method. The application also relates to a page processing device, a page backtracking method, a page backtracking device, two computing devices and two computer readable storage media, so as to solve the technical defects in the prior art.
According to a first aspect of an embodiment of the present application, there is provided a page processing method, including:
receiving an operation request submitted by a client aiming at a current display page;
determining a target page code corresponding to the operation request, and sending the target page code to the client;
generating a target key frame according to the target page code and the time for sending the target page code;
and determining a storage block of a key frame corresponding to the current display page, writing the target key frame into the storage block and updating the record identifier of the storage block.
Optionally, before the step of receiving the operation request submitted by the client for the current display page is executed, the method further includes:
receiving a page viewing request uploaded by the client, wherein the page viewing request carries an initial page identifier and a user identifier;
determining an initial page code according to the initial page identifier, and sending the initial page code to the client;
generating an initial key frame according to the initial page code and the time for sending the initial page code;
and creating the storage block based on the initial key frame, and configuring the record identification for the storage block according to the user identification.
Optionally, the determining a target page code corresponding to the operation request and sending the target page code to the client includes:
determining the identifier of a page to be jumped according to the request of the page to be jumped under the condition that the operation request is the request of the page to be jumped;
and determining a jump page code based on the identifier of the page to be jumped, and sending the jump page code to the client as the target page code, wherein the jump page code is used for generating the page to be jumped.
Optionally, the determining a target page code corresponding to the operation request and sending the target page code to the client includes:
determining the identifier of the area to be updated in the current display page according to the page updating request under the condition that the operation request is the page updating request;
determining a page updating code based on the identifier of the area to be updated, and sending the page updating code to the client as the target page code, wherein the page updating code is used for updating the area to be updated in the current display page.
Optionally, the determining a storage block of a key frame corresponding to the current display page, writing the target key frame into the storage block, and updating a record identifier of the storage block includes:
determining a current page identifier of the current display page according to the operation request, and reading metadata information according to the current page identifier to obtain the record identifier;
determining the storage block corresponding to the record identifier, and judging whether the storage block meets a preset storage condition;
and if so, writing the target key frame into the storage block, and updating the record identifier of the storage block according to the writing result.
Optionally, if the determination result of determining whether the storage block meets the preset storage condition is negative, the following operations are performed:
creating a target storage block according to the target key frame, and forming a storage block set based on the target storage block and the storage block;
and configuring a target record identifier for the storage block set according to the record identifier of the storage block, wherein the target record identifier represents an updating result of the record identifier after the target key frame is completely written.
Optionally, after the step of writing the target key frame into the storage block and updating the record identifier of the storage block is executed, the method further includes:
determining a user identifier of a user to which the client belongs under the condition that the client submits a closing request aiming at a target display page, wherein the target display page is generated according to the target page code;
determining a storage space based on the user identification, storing the storage block to the storage space, and writing the updated record identification into a metadata table.
Optionally, after the step of writing the target key frame into the storage block and updating the record identifier of the storage block is executed, the method further includes:
under the condition that a page backtracking request for the target display page is obtained, determining a storage block corresponding to the target display page according to a record identifier in the page backtracking request;
analyzing the storage block to obtain the target key frame corresponding to the backtracking time in the page backtracking request;
and determining the target page code based on the target key frame, and generating the target display page according to the target page code as a response of the page backtracking request.
Optionally, the determining the target page code based on the target key frame and generating the target display page according to the target page code include:
under the condition that the target key frame contains the jump page code, analyzing the target key frame to obtain the jump page code;
constructing a code relation expression according to the jump page code, and carrying out page layout according to the code relation expression;
and generating the target display page by drawing the page layout result.
Optionally, the determining the target page code based on the target key frame and generating the target display page according to the target page code include:
under the condition that the target key frame contains the page updating code, analyzing the target key frame to obtain the page updating code;
adding the page updating code into the page code of the current display page to obtain a page code to be backtracked;
constructing a code relation expression according to the page code to be traced back, and carrying out page layout according to the code relation expression;
and generating the target display page by drawing the page layout result.
According to a second aspect of the embodiments of the present application, there is provided a page processing apparatus, including:
the receiving module is configured to receive an operation request submitted by a client aiming at a current display page;
the determining module is configured to determine a target page code corresponding to the operation request and send the target page code to the client;
a generating module configured to generate a target key frame according to the target page code and a time for transmitting the target page code;
and the writing module is configured to determine a storage block of a key frame corresponding to the current display page, write the target key frame into the storage block and update the record identifier of the storage block.
According to a third aspect of the embodiments of the present application, a page backtracking method is provided, including:
acquiring a page backtracking request, wherein the page backtracking request comprises a record identifier corresponding to a page to be backtracked;
determining a storage block to which the page to be traced belongs according to the record identifier, and analyzing the storage block to obtain a key frame corresponding to the page to be traced;
and determining a page code corresponding to the page to be traced based on the key frame, and generating and displaying a target page according to the page code.
Optionally, the determining, based on the key frame, a page code corresponding to the page to be traced back, and generating and displaying a target page according to the page code includes:
under the condition that the page code is a jump page code, analyzing the key frame to obtain a jump page code corresponding to a jump page;
constructing a code relation expression according to the jump page code, and carrying out page layout according to the code relation expression;
and generating and displaying the target page by drawing the page layout result.
Optionally, the determining, based on the key frame, a page code corresponding to the page to be traced back, and generating and displaying a target page according to the page code includes:
under the condition that the page code is a page updating code, analyzing the key frame to obtain a page updating code corresponding to the page to be traced;
adding the page updating code into a page code of the page to be backtracked to obtain the page code to be backtracked;
constructing a code relation expression according to the page code to be traced back, and carrying out page layout according to the code relation expression;
and generating and displaying the target page by drawing the page layout result.
According to a fourth aspect of the embodiments of the present application, there is provided a page backtracking apparatus, including:
the system comprises an acquisition module, a retrieval module and a display module, wherein the acquisition module is configured to acquire a page backtracking request which comprises a record identifier corresponding to a page to be backtracked;
the analysis module is configured to determine a storage block to which the page to be backtraced belongs according to the record identifier, and analyze the storage block to obtain a key frame corresponding to the page to be backtraced;
and the display module is configured to determine a page code corresponding to the page to be traced according to the key frame, and generate and display a target page according to the page code.
According to a fifth aspect of embodiments herein, there is provided a computing device comprising:
a memory and a processor;
the memory is to store computer-executable instructions, and the processor is to execute the computer-executable instructions to:
receiving an operation request submitted by a client aiming at a current display page;
determining a target page code corresponding to the operation request, and sending the target page code to the client;
generating a target key frame according to the target page code and the time for sending the target page code;
and determining a storage block of a key frame corresponding to the current display page, writing the target key frame into the storage block and updating the record identifier of the storage block.
According to a sixth aspect of embodiments herein, there is provided a computing device comprising:
a memory and a processor;
the memory is to store computer-executable instructions, and the processor is to execute the computer-executable instructions to:
acquiring a page backtracking request, wherein the page backtracking request comprises a record identifier corresponding to a page to be backtracked;
determining a storage block to which the page to be traced belongs according to the record identifier, and analyzing the storage block to obtain a key frame corresponding to the page to be traced;
and determining a page code corresponding to the page to be traced based on the key frame, and generating and displaying a target page according to the page code.
According to a seventh aspect of embodiments of the present application, there is provided a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the page processing method.
According to an eighth aspect of embodiments of the present application, there is provided a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the page backtracking method.
The page processing method provided by the application determines a target page code corresponding to an operation request after receiving the operation request submitted by a client aiming at a current display page, and sends the target page code to the client to draw the display page, at the moment, a target key frame is generated according to the target page code and the time of sending the code, a storage block of the key frame corresponding to the current display page is determined, the target key frame is written into the storage block and the record identifier of the storage block is updated, so that when a user operates the page through the client, the requirement of page backtracking can be realized by recording a bottom layer code corresponding to the page, the display content after the page is drawn does not need to be recorded, the amount of stored data is reduced to a great extent, the backtracking performance of the page backtracking is realized through the code, and the backtracked page is further ensured to be the page already displayed by the client, thereby ensuring the rights and interests of all parties.
Drawings
Fig. 1 is a flowchart of a page processing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a page processing method according to an embodiment of the present application;
fig. 3 is a flowchart of a page backtracking method according to an embodiment of the present application;
FIG. 4 is a flowchart of a process applied to an after-market scenario, according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a page processing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a page backtracking apparatus according to an embodiment of the present application;
FIG. 7 is a block diagram of a computing device according to an embodiment of the present application;
fig. 8 is a block diagram of another computing device according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The present application provides a page processing method, and the present application relates to a page processing apparatus, a page backtracking method, a page backtracking apparatus, two computing devices, and two computer-readable storage media, which are described in detail in the following embodiments one by one.
In practical application, the backtracking requirement of the page is relatively large, for example, in an after-sales scene or a network responsibility traceability scene, the historical page access record of the user may need to be backtracked, so that the operation of the user when purchasing a commodity in the after-sales scene is determined, or the operation of the user in the network responsibility traceability scene is determined, and the required information is analyzed to perform subsequent responsibility confirmation or responsibility traceability; the basis for realizing the page backtracking is to record the operation of the user on the page and the page content after the operation and store the page content to support the page backtracking requirement, however, if the backtracking needs to be realized in the prior art, the page content when the user operates needs to be recorded, so that the backtracking purpose is achieved, but the direct recording of the page not only needs to consume a large space to store the recorded content, but also has the problem of poor backtracking performance, so that the recording of the page before the backtracking and the processing of the page during the backtracking are related to the rights of all parties.
Fig. 1 shows a flowchart of a page processing method according to an embodiment of the present application, which specifically includes the following steps:
step S102, receiving an operation request submitted by a client aiming at the current display page.
In order to reduce the data volume of recorded contents and improve the page backtracking strength, after receiving an operation request submitted by a client aiming at a current display page, a target page code corresponding to the operation request is determined, and the target page code is sent to the client so as to realize that the client draws the display page, at the moment, a target key frame is generated according to the target page code and the time for sending the code, a storage block of the key frame corresponding to the current display page is determined, the target key frame is written into the storage block and the record identification of the storage block is updated, so that when a user operates the page through the client, the requirement of page backtracking can be realized by recording a bottom layer code corresponding to the page, the display contents after page drawing do not need to be recorded, the stored data volume is reduced to a great extent, and the page backtracking performance is stronger through the code, further, the traced page is the page which is shown by the client, so that the rights and interests of all parties can be guaranteed.
In specific implementation, the client specifically refers to a terminal device bearing the current display page, and may be a mobile phone, a computer, a tablet computer, or the like; correspondingly, the current display page specifically refers to a page displayed by the current client, and the page has already been recorded (recorded), it should be noted that the pages mentioned in this embodiment are all pages that need to be recorded, so as to describe a page processing process and a page backtracking process.
Based on this, the operation request specifically refers to a request submitted by a user through the current display page displayed by the client, and the operation request may be a request for inputting information on the current display page or a request for performing page jump when clicking content in the current display page, and then while feeding back the display page corresponding to the request to the client, the code of the display page needs to be recorded and stored, so as to facilitate the subsequent page backtracking.
Further, in order to trace back the current display page displayed by the client in the subsequent process, a storage block needs to be created based on the most initial display page of the client, and a record identifier of the storage block is generated, so that a series of subsequent operations performed based on the most initial display page and codes corresponding to other corresponding display pages can be stored in the storage block, and the related contents of the client from the most initial display page to the final display page can be restored and displayed during the trace back, so that what operations are performed by a user to which the client belongs through a series of display pages is analyzed, in this embodiment, a process of creating the storage block corresponding to the initial display page is as follows:
receiving a page viewing request uploaded by the client, wherein the page viewing request carries an initial page identifier and a user identifier;
determining an initial page code according to the initial page identifier, and sending the initial page code to the client;
generating an initial key frame according to the initial page code and the time for sending the initial page code;
and creating the storage block based on the initial key frame, and configuring the record identification for the storage block according to the user identification.
Specifically, the page view request refers to a request uploaded by a client for viewing an initial page, where the initial page refers to a page generated by a code that needs to be issued by a server after the client inputs a website, and the page is a page that the client requests to display for the first time within a certain time; the initial page identifier specifically refers to a unique identifier corresponding to the initial page, so that the server can determine a page required by the client through the identifier; the user identification specifically refers to a unique identification corresponding to a user holding the client; the initial page code specifically refers to a bottom code required by the browser for constructing the initial page; the time for sending the initial page code specifically refers to the time for sending the initial page code to the client by the server.
The initial key frame specifically refers to related information generated based on the sending time and the initial page code; the storage block is a set formed by key frames, the record identifier is an identifier corresponding to a series of operations of the client, the record identifier corresponds to the storage block, the record identifier is updated along with the increase of the key frames in the storage block until the record identifier is updated after the series of operations are completed, and the record identifier is stored, so that codes corresponding to all display pages of the client in a certain time period can be read according to the record identifier subsequently, and corresponding business processing processes can be carried out on the retrieved relevant pages.
Based on the method, after a page viewing request uploaded by a client is received, a page needing to be displayed by the client is determined according to an initial page identifier carried in the page viewing request, an initial page code of the initial page needing to be displayed by the client is determined based on the initial page identifier, the initial page code is sent to the client, the client analyzes, constructs and draws the initial page to generate the initial page, and meanwhile the initial page needs to be recorded, namely the initial page code of the initial page is recorded, so that the subsequent reverse generation of the initial page can be completed according to the code.
Furthermore, the initial key frame is generated according to the initial page code and the time for sending the initial page code, and because a subsequent client can continue to operate the initial page or jump to other pages through the initial page, the storage block is created according to the initial key frame and is used for integrating codes corresponding to a series of pages operated or jumped by the client based on the initial page, and meanwhile, a record identifier of the storage block is generated according to the user identifier of the user to which the client belongs, so that the page browsed by the user can be determined according to the user identifier during page backtracking, page backtracking can be performed more specifically and the associated pages can be stored uniformly, and the storage space occupied by recording information of the relevant pages is further reduced.
For example, when a user U1 needs to purchase a commodity in a shopping website T through a computer, a page viewing request uploaded to a server by the user U1 through the computer is received, where the request carries a page identifier ID _ T corresponding to the shopping website T and a user identifier ID _ U1 of the user U1; and then the server side can determine the page code corresponding to the home page of the shopping website T according to the page identifier ID _ T, and send the page code corresponding to the home page of the shopping website T to the computer of the user U1 for display, so that the user U1 can shop.
In addition, in order to trace back the operation of the user U1 when purchasing commodities when a post-sale dispute occurs subsequently, an initial key frame is generated according to a page code corresponding to a first page of the shopping website T and the time of sending the code to the user U1, a storage block is created based on the initial key frame for recording a code corresponding to a process of page change caused by all operations of the user U1 when shopping through the shopping website T, and a record identifier of the storage block is generated according to the user identifier ID _ U1 of the user U1, and is updated each time a new key frame is written into the storage block until the user U1 closes the shopping website T, and the record identifier stops updating and is stored in the metadata table, so that the post-sale dispute is facilitated.
In summary, in order to record all operations performed by the client through the page within a period of time, the storage block is generated according to the initial page code corresponding to the initial page view request submitted by the client, so that a series of operations of the client can be traced back during tracing back, the rights and interests of the user can be guaranteed, the security of the application scenario can be improved, and the normative development of the application scenario is further promoted.
And step S104, determining a target page code corresponding to the operation request and sending the target page code to the client.
Specifically, on the basis of receiving the operation request submitted by the client for the current display page, it is further described that the user to which the client belongs needs to jump to the next page through the current display page, or perform an operation (input information or delete information, etc.) in the current display page, at this time, a target page code corresponding to the operation request is sent to the client according to the operation request, so that the client can generate a page to be displayed according to the target page code, or generate content to be displayed in a window in the current display page, so as to be viewed and used by the user to which the client belongs.
Based on this, the target page code specifically refers to a code corresponding to the operation request; under the condition that the operation request is a request for jumping to other pages after clicking the content in the current display page, the target page code is a code corresponding to the page to be jumped; and under the condition that the operation request is a request for displaying other contents through a window after clicking the contents in the current display page, the target page code is a code corresponding to the contents displayed through the window.
Further, in this embodiment, the page processing method is described by taking the operation request as a skip page request as an example, and correspondingly, the target page code is a code corresponding to a page to be skipped, in this embodiment, a specific implementation manner is as follows:
determining the identifier of a page to be jumped according to the request of the page to be jumped under the condition that the operation request is the request of the page to be jumped;
and determining a jump page code based on the identifier of the page to be jumped, and sending the jump page code to the client as the target page code, wherein the jump page code is used for generating the page to be jumped.
Specifically, under the condition that the operation request is a skip page request, it is stated that the client needs to display a page associated with a currently displayed page, so that an identifier of a page to be skipped is determined according to the skip page request, and then a skip page code is determined based on the identifier of the page to be skipped, where the skip page code is a code corresponding to the page to be skipped; and then sending the jump page code as the target page code to the client, so that the client generates a page to be displayed through the jump page code.
Along the use example, when the user U1 clicks the article A in the home page of the shopping website T, the user needs to jump to the article detail page of the article A, at the moment, the server receives a jump request which is submitted by the user U1 and jumps to the article detail page of the article A, determines the page identifier ID _ A of the article detail page of the article A according to the jump request, determines the page code of the article detail page of the article A according to the page identifier ID _ A, sends the page code of the article detail page of the article A as the target page code to the computer of the user U1, and then the article detail page of the article A can be displayed to the user U1 through the computer for the user U1 to browse.
In summary, when the operation request is determined to be a skip page request, an identifier of a page to be skipped is determined according to the skip page request, a skip page code determined according to the identifier is sent to the client as a target page code, and the skip page code is subsequently recorded and stored, so that the content displayed by the client can be determined when the page is backtracked.
And step S106, generating a target key frame according to the target page code and the time for sending the target page code.
Specifically, on the basis of sending the target page code to the client, further, in order to effectively trace back the page displayed by the client, the target page code needs to be recorded, so that the page displayed by the client can be generated reversely according to the code subsequently, and the page displayed by the client can be processed by corresponding services.
Based on this, in the process of recording the target service code, in order to facilitate accurate positioning of a page to be traced back and convenient management when the page is traced back, the target key frame can be generated according to the target page code and the time for sending the target page code, so that after the target page code is recorded, if the page is traced back, the code of the page displayed by the client can be determined through the time, and the content displayed by the client can be determined by performing page generation according to the code for corresponding service processing.
Along the above example, in the event that it is determined that the operation request of user U1 is to jump to the item detail page for item A, the page code of the item detail page for item A will be recorded, and the time to send the page code of the item detail page for item A to the computer of user U1 is determined to be 2020-01-25-12: 36: 05, generating a target key frame according to the page code of the commodity detail page A and the time for sending the page code of the commodity detail page A, and writing the target key frame into a storage block created based on the initial key frame, so that when the browsing process of the user U1 needs to be traced back, the page code of the commodity detail page A in the time period is captured, and the commodity detail page A can be generated.
Step S108, determining a storage block of a key frame corresponding to the current display page, writing the target key frame into the storage block and updating a record identifier of the storage block.
Specifically, on the basis of generating the target key frame according to the target page code and the time for sending the target page code, further, the target key frame needs to be written into a storage block for storing a key frame corresponding to the currently displayed page, so that the page displayed by the client within a period of time and a related operation process are expressed through the storage block; the key frames specifically refer to key frames of a current display page, and the target key frames specifically refer to key frames corresponding to a target display page.
Based on the above, after determining the storage block of the key frame corresponding to the current display page, writing the target key frame into the storage block, and updating the record identifier of the storage block; however, the client may upload other operation requests subsequently, so that after feeding back a page code for each operation request, creating a key frame for different page codes and writing the key frame into the storage block can be completed, the record identifier is continuously updated, and until the client uploads a page closing request, the record identifier updated last time is used as the record identifier to be finally stored, so that the page code of the storage client in the complete browsing process can be obtained subsequently through the identifier, and the page to be checked can be traced back according to the page code.
Further, in the process of writing the target key frame into the storage block, since the size of the storage block can be set, if the code amount corresponding to the series of operations exceeds the size of the storage block, the problem of discontinuous storage block may be caused, and further, when a subsequent page is traced back, the whole page may not be traced back completely, in order to avoid the problem, a plurality of storage blocks may be uniformly used with one record identifier, and the specific implementation manner is as follows:
determining a current page identifier of the current display page according to the operation request, and reading metadata information according to the current page identifier to obtain the record identifier;
determining the storage block corresponding to the record identifier, and judging whether the storage block meets a preset storage condition;
and if so, writing the target key frame into the storage block, and updating the record identifier of the storage block according to the writing result.
If not, creating a target storage block according to the target key frame, and forming a storage block set based on the target storage block and the storage block; and configuring a target record identifier for the storage block set according to the record identifier of the storage block, wherein the target record identifier represents an updating result of the record identifier after the target key frame is completely written.
Specifically, a current page identifier of a current display page is determined according to the operation request, and metadata information is read based on the current page identifier to obtain the record identifier, wherein the metadata information specifically refers to information of each page identifier in a record storage block; determining the storage block after determining the record identifier, judging whether the storage block meets a preset storage condition, namely judging whether the storage block can continuously write a target key frame, if so, indicating that the storage block does not reach the record upper limit, writing the target key frame into the storage block, and updating the record identifier according to a write result; if not, the storage block is described to have reached the upper recording limit, a new storage block needs to be created again for continuously recording the target key frame.
The specifically creating the storage block record target key frame includes: and creating a target storage block according to the target key frame, merging the target storage block and the storage block to obtain the storage block set, and configuring a target record identifier for the storage block set according to the record identifier of the storage block, wherein the target record identifier is specifically an update result of the record identifier after the target key frame is completely written, namely the target record identifier is used as the record identifier of the storage block set, so that the target record identifier can be updated when a new storage block is continuously written or a new key frame is written in the subsequent process.
According to the above example, after determining the storage block created based on the initial key frame corresponding to the first page of the shopping website T, judging whether the storage block can be continuously written into the target key frame, if so, indicating that the key frame can be continuously written into the storage block, directly writing the target key frame corresponding to the commodity detail page A into the storage block, and updating the record identifier of the storage block; if not, the fact that key frames cannot be continuously written into the storage blocks is indicated, new storage blocks need to be created again based on the target key frames corresponding to the commodity detail pages A, the newly created storage blocks are assembled with the storage blocks corresponding to the head pages of the shopping websites T to generate a storage block set, and meanwhile, target record identification can be configured by taking the record identification of the storage blocks corresponding to the head pages of the shopping websites T as the storage blocks, so that the effect that no matter new key frames are written into or new storage blocks are created, the target record identification can be added to the storage block set, and the target record identification is updated is achieved.
In summary, in the process of writing the target key frame into the storage block, a new storage block can be created according to the requirement, and the newly created storage block is associated with the existing storage block, so that page codes corresponding to a series of operations of the client are associated and recorded together, pages corresponding to the series of operations can be traced back conveniently when the subsequent pages are traced back, and a corresponding service processing process can be developed more conveniently.
In addition, in the case that the client uploads the close request, it is described that the client does not need to continue browsing other pages, and does not need to continue recording page codes, and the recorded storage block may be written into the storage space, and the record identifier that is updated last may be written into the metadata table, in this embodiment, a specific implementation manner is as follows:
determining a user identifier of a user to which the client belongs under the condition that the client submits a closing request aiming at a target display page, wherein the target display page is generated according to the target page code;
determining a storage space based on the user identification, storing the storage block to the storage space, and writing the updated record identification into a metadata table.
Specifically, the target display page is a page generated according to the target page code, and when a closing request submitted by the client for the target display page is received, that means that the user of the client does not need to browse other pages again, the user identifier of the user is determined, a storage space is determined according to the user identifier, finally, the storage block is stored in the storage space, and the updated record identifier is written in the metadata table, so that the record of the page code corresponding to the operation process of the client is completed. The storage space may be an object storage server, the metadata table may be Hbase, the record identifier and the storage block are stored separately, management is convenient, and persistent use of the storage block may be improved.
In addition, when the browsing page of the client needs to be traced back, a storage block needs to be determined according to the record identifier to which the page to be traced back belongs, a key frame is obtained by parsing the storage block, a key frame parsing code corresponding to the time of the page to be traced back in the key frame is finally selected, and a target display page is generated according to the parsed code, so that the operation content of the client is parsed for a related business analysis process, and in the embodiment, the specific implementation manner is as follows:
under the condition that a page backtracking request for the target display page is obtained, determining a storage block corresponding to the target display page according to a record identifier in the page backtracking request;
analyzing the storage block to obtain the target key frame corresponding to the backtracking time in the page backtracking request;
under the condition that the target key frame contains the jump page code, analyzing the target key frame to obtain the jump page code;
constructing a code relation expression according to the jump page code, and carrying out page layout according to the code relation expression;
and generating the target display page as a response of the page backtracking request by drawing the page layout result.
Specifically, under the condition that a page backtracking request for the target display page is obtained, determining a storage block corresponding to the target display page according to a record identifier in the page backtracking request, wherein the target display page is a page needing backtracking; then, analyzing the storage block to obtain the target key frame corresponding to the backtracking time in the page backtracking request; under the condition that the target key frame contains the jump page code, analyzing the target key frame to obtain the jump page code; and constructing a code relation expression according to the jump page code, wherein the code relation expression specifically refers to a dom virtual tree constructed according to the jump page code in the key frame, and finally performing page layout according to the dom virtual tree and drawing processing according to a page layout result to generate the target display page.
In practical application, after the jump page code is obtained, the page code is described to be complete, the target display page can be generated based on the partial code, and the process of generating the target display page is that the jump page code is firstly analyzed according to an html analyzer, a dom virtual tree is constructed according to an analysis result, then the incidence relation of each node in the dom virtual tree is analyzed, a dom virtual book is traversed according to a certain sequence, the relevant information of each node can be determined, each node and the corresponding sub-node information are packaged into a plurality of sets according to the sequence, and finally the target display page can be drawn by calculating the CSS attributes such as the coordinates and the sizes of each node in the plurality of sets and then laying out the CSS attributes to the page for a supervisor to view.
For example, the user U2 purchases a commodity through the shopping website T, spends 100 yuan, and gets a coupon with 99 yuan full of money through a violation means, the user U2 has a payment amount of 1 yuan, the merchant selling the commodity only receives a payment amount of 1 yuan, when the merchant checks that the profit is not right, and checks that the user U2 only pays 1 yuan, the operation process of the user U2 purchasing the commodity needs to be backtracked at this time to analyze whether the user adopts the violation means.
Further, at this time, a page backtracking request submitted by a merchant is received, the page backtracking request needs to backtrack all pages of the user U2 when purchasing a commodity, a storage block corresponding to the user U2 when purchasing the commodity is determined according to a record identifier in the page backtracking request, the storage block is analyzed to obtain 5 target key frames, 5 groups of page codes are obtained by analyzing the 5 target key frames, 5 dom virtual trees are constructed based on the 5 groups of page codes, 5 pages are generated by the 5 dom virtual trees, the third page displayed by the client side is determined to be violated by the user through analysis, it is determined with reference to the content shown in fig. 2 that the price of the commodity is modified by the user U2 in a script insertion manner, the bottom layer code of the third page is tampered, and it is analyzed that the behavior of the user U2 is not compliant, further exploration of the user U2 is required.
In conclusion, under the condition that the page backtracking request is received, the target display page is reversely generated according to the stored page code, so that the target display page can be accurately generated, the resource occupancy rate consumed during the operation of the recording client can be reduced, and the compliance in the page backtracking scene is further improved.
The page processing method provided by the application determines a target page code corresponding to an operation request after receiving the operation request submitted by a client aiming at a current display page, and sends the target page code to the client to draw the display page, at the moment, a target key frame is generated according to the target page code and the time of sending the code, a storage block of the key frame corresponding to the current display page is determined, the target key frame is written into the storage block and the record identifier of the storage block is updated, so that when a user operates the page through the client, the requirement of page backtracking can be realized by recording a bottom layer code corresponding to the page, the display content after the page is drawn does not need to be recorded, the amount of stored data is reduced to a great extent, the backtracking performance of the page backtracking is realized through the code, and the backtracked page is further ensured to be the page already displayed by the client, thereby ensuring the rights and interests of all parties.
Fig. 3 shows a flowchart of a page backtracking method according to an embodiment of the present application, which specifically includes the following steps:
step S302, a page backtracking request is obtained, wherein the page backtracking request comprises a record identifier corresponding to a page to be backtracked.
In practical application, as the backtracking requirement of the page is relatively large, for example, in an after-sales scene or a network responsibility traceability scene, the historical page access record of the user may need to be backtracked, so that the operation of the user when purchasing a commodity in the after-sales scene is determined, or the operation of the user in the network responsibility traceability scene is determined, and the required information is analyzed to perform subsequent responsibility confirmation or responsibility traceability; the basis for realizing the page backtracking is to record the operation of the user on the page and the page content after the operation and store the page content to support the page backtracking requirement, however, if the backtracking needs to be realized in the prior art, the page content when the user operates needs to be recorded, so that the backtracking purpose is achieved, but the direct recording of the page not only needs to consume a large space to store the recorded content, but also has the problem of poor backtracking performance, so that the recording of the page before the backtracking and the processing of the page during the backtracking are related to the rights of all parties.
In order to reduce the occupied space of resources and improve the page backtracking performance, after the page backtracking request is obtained, the storage block to which the page to be backtracked belongs is determined according to the record identifier included in the page backtracking request, the storage block is analyzed to obtain the key frame corresponding to the page to be backtracked, finally, the page code corresponding to the page to be backtracked can be determined through the key frame, the target page can be generated and displayed according to the page code, the amount of stored data is reduced to a great extent, the page backtracking performance is stronger through the code, the backtracked page is further ensured to be the page already displayed by the client, and the rights and interests of all parties can be guaranteed.
The page backtracking method provided by this embodiment corresponds to the page processing method provided by the above embodiment, and after the page code is stored by the page processing method, the page backtracking can be realized by the page backtracking method, so as to perform a related service processing process; it should be noted that, the corresponding description contents of the page backtracking method provided in this embodiment can be referred to the page processing method in the foregoing embodiment, and this embodiment is not described in detail herein.
Step S304, determining the storage block to which the page to be backtraced belongs according to the record identifier, and analyzing the storage block to obtain the key frame corresponding to the page to be backtraced.
Step S306, determining a page code corresponding to the page to be traced back based on the key frame, and generating and displaying a target page according to the page code.
Specifically, after a record identifier included in the page backtracking request is determined, a storage block to which the page to be backtracked belongs is determined according to the record identifier, the page to be backtracked specifically refers to a page to be extracted and displayed, at this time, a key frame of the page to be backtracked can be obtained by analyzing the storage block, finally, a page code of the page to be backtracked is determined through the key frame, a target page can be generated according to the page code, and the target page is displayed to a supervisor; and the target page is a page generated according to the page code.
Further, in a case that the page code is a jump page code, it is sufficient to say that a complete page can be generated based on the page code, construct a code relation expression according to the page code, and generate the target page, where in this embodiment, a specific implementation manner is as follows:
under the condition that the page code is a jump page code, analyzing the key frame to obtain a jump page code corresponding to a jump page;
constructing a code relation expression according to the jump page code, and carrying out page layout according to the code relation expression;
and generating and displaying the target page by drawing the page layout result.
Specifically, when the page code is a skip page code, it is stated that the page to be traced is a complete page, then the skip page code corresponding to the skip page is determined by parsing the key frame, then a code relation expression is constructed according to the skip page code, and page layout is performed according to the code relation expression; and generating and displaying the target page by drawing the page layout result.
In addition, when the page code is a page update code, it indicates that a complete page cannot be generated by the page code, and the complete page can be generated and displayed only by matching with a basic page code, and at this time, the page update code needs to be added to the page code, and in this embodiment, a specific implementation manner is as follows:
under the condition that the page code is a page updating code, analyzing the key frame to obtain a page updating code corresponding to the page to be traced;
adding the page updating code into a page code of the page to be backtracked to obtain the page code to be backtracked;
constructing a code relation expression according to the page code to be traced back, and carrying out page layout according to the code relation expression;
and generating and displaying the target page by drawing the page layout result.
Specifically, the page update code is a code sent to the server after a certain page is adjusted, if a user clicks a "change verification code" in a current display page, only part of the content in the current display page is modified, and other parts still retain the content of the current display page, at this time, the server only needs to send a page code corresponding to the part of the content to the client to complete displaying of the corresponding content, and then when page code recording is performed, since the code of the current display page is already recorded, on this basis, the page update code can be recorded, and when page backtracking is performed subsequently, the page after the verification code is changed can be generated by adding the page update code to the code of the current display page, so as to be used in a corresponding business processing process.
For example, when the user U3 pays for a certain commodity at a shopping website T, a payment window pops up on a payment page of the shopping website T, the user U3 completes payment by scanning a two-dimensional code in the code payment window, and at this time, in order to trace back a process of purchasing the commodity by the user U3, the server records a page update code corresponding to the payment window;
when it is necessary to trace back the page of the user U3 when purchasing the commodity, and it is determined that the page update code cannot generate a completed page, the page update code needs to be added to the code of the payment page of the shopping website T, so as to generate a payment page including a payment window, and to determine information such as the actual amount paid by the user U3.
In summary, when the page code is the page update code, in order to trace back a complete page for display, the page code of the page to be traced back and the page update code may be selected to be integrated, so as to generate a target page for display, which not only reduces the data amount stored in the page code, but also traces back the page to be fine-tuned, thereby further enhancing the traceability of the page.
According to the page backtracking method provided by the embodiment, after the page backtracking request is obtained, the storage block to which the page to be backtracked belongs is determined according to the record identifier contained in the page backtracking request, the key frame corresponding to the page to be backtracked is obtained by analyzing the storage block, finally, the page code corresponding to the page to be backtracked can be determined through the key frame, the target page can be generated and displayed according to the page code, the amount of stored data is reduced to a great extent, the backtracking performance of page backtracking is strong through the code, the page to be backtracked is further ensured to be the page which has been displayed by the client, and the rights and interests of all parties can be guaranteed.
The following description further explains the page processing method and the page backtracking method with reference to fig. 4 by taking an application of the page processing method and the page backtracking method provided by the present application in an after-sales scenario as an example. Fig. 4 shows a processing flow chart applied to an after-sales scenario according to an embodiment of the present application, which specifically includes the following steps:
step S402, receiving an operation request submitted by a client aiming at the current display page.
Step S404, under the condition that the operation request is a page updating request, determining the identifier of the area to be updated in the current display page according to the page updating request.
Step S406, determining a page update code based on the identifier of the area to be updated, and sending the page update code as a target page code to the client.
The page updating code is used for updating the area to be updated in the current display page.
Step S408, generating a target key frame according to the target page code and the time for sending the target page code.
Step S410, determining a storage block of a key frame corresponding to the current display page, writing the target key frame into the storage block and updating the record identifier of the storage block.
Step S412, determining the user identifier of the user to which the client belongs when receiving the closing request submitted by the client.
Step S414, determining a storage space based on the user identifier, storing the storage block to the storage space, and writing the updated record identifier into the metadata table.
Step S416, a page backtracking request for the target display page is obtained, and a storage block corresponding to the target display page is determined according to the record identifier in the page backtracking request.
Step S418, parsing the storage block to obtain a target key frame corresponding to the backtracking time in the page backtracking request.
Step S420, obtaining a page update code by analyzing the target key frame, and adding the page update code to the page code of the current display page to obtain a page code to be traced.
Step S422, a code relation expression is constructed according to the page code to be traced back, and page layout is carried out according to the code relation expression.
In step S424, a target display page is generated by performing rendering processing on the page layout result.
Specifically, the current display page is a payment page, and based on this, when a page update request submitted by a client for the payment page is received, an identifier of an area to be updated in the current display page is determined according to the page update request, where the area to be updated specifically refers to an area that needs to be locally updated in the current display page.
Further, determining a payment window code through the payment window identifier, and sending the payment window code to the client for supporting the client to carry out payment operation; in order to trace back the page subsequently, a target key frame is generated according to the payment window code and the time for sending the payment window code, the target key frame is written into a storage block of the key frame corresponding to the payment page, and meanwhile, the record identification of the storage block is updated; and when the client-side uploading closing request is received, if the operation in the process of the client-side is determined to be finished, storing the storage block to an object storage server corresponding to the user identifier, and writing the record identifier into an Hbase database.
Furthermore, under the condition of acquiring the page backtracking request, the page backtracking processing is performed according to the page backtracking request, and the payment page including the payment window is backtracked in the embodiment; based on the above, a storage block is determined according to a record identifier in the page backtracking request, the storage block is analyzed to obtain a target key, and then a target key frame is analyzed to obtain a payment window code, wherein at this time, in order to backtrack a payment page including a payment window, the payment window code needs to be added to a page code of the payment page to generate a page code to be backtracked; and finally, constructing a code relation expression according to the page code to be backtracked, carrying out page layout according to the code relation expression, and drawing and processing a page layout result to generate a payment page containing a payment window, thereby realizing backtracking of the payment process of the user in an after-sale scene.
In summary, when a user operates a page through a client, the requirement of page backtracking can be realized by recording a bottom code corresponding to the page, the display content after the page is drawn does not need to be recorded, the amount of stored data is reduced to a great extent, the backtracking performance of page backtracking is realized through the code, and the backtracked page is further ensured to be the page already displayed by the client, so that the rights and interests of all parties can be guaranteed.
Corresponding to the above method embodiment, the present application further provides an embodiment of a page processing apparatus, and fig. 5 shows a schematic structural diagram of a page processing apparatus provided in an embodiment of the present application. As shown in fig. 5, the apparatus includes:
a receiving module 502 configured to receive an operation request submitted by a client for a current display page;
a determining module 504, configured to determine a target page code corresponding to the operation request, and send the target page code to the client;
a generating module 506 configured to generate a target key frame according to the target page code and a time of transmitting the target page code;
a writing module 508, configured to determine a storage block of a key frame corresponding to the current display page, write the target key frame into the storage block, and update a record identifier of the storage block.
In an optional embodiment, the page processing apparatus further includes:
a page viewing request receiving module configured to receive a page viewing request uploaded by the client, where the page viewing request carries an initial page identifier and a user identifier;
the initial page code sending module is configured to determine an initial page code according to the initial page identifier and send the initial page code to the client;
an initial key frame generation module configured to generate an initial key frame according to the initial page code and a time of transmitting the initial page code;
and the storage block creating module is configured to create the storage block based on the initial key frame and configure the record identifier for the storage block according to the user identifier.
In an optional embodiment, the determining module 504 includes:
the first identification determining unit is configured to determine an identification of a page to be jumped according to the page jump request under the condition that the operation request is the page jump request;
and the first sending code unit is configured to determine a jump page code based on the identifier of the page to be jumped, and send the jump page code to the client as the target page code, wherein the jump page code is used for generating the page to be jumped.
In an optional embodiment, the determining module 504 includes:
the second identification determining unit is configured to determine an identification of an area to be updated in the current display page according to the page updating request under the condition that the operation request is the page updating request;
and the second sending code unit is configured to determine a page updating code based on the identifier of the area to be updated, and send the page updating code to the client as the target page code, wherein the page updating code is used for updating the area to be updated in the current display page.
In an alternative embodiment, the writing module 508 includes:
a reading record identification unit configured to determine a current page identification of the current display page according to the operation request, and obtain the record identification according to the current page identification reading metadata information;
the judging unit is configured to determine the storage block corresponding to the record identifier and judge whether the storage block meets a preset storage condition;
and if so, operating a first writing unit, wherein the first writing unit is configured to write the target key frame into the storage block and update the record identifier of the storage block according to a writing result.
In an optional embodiment, if the judgment result of the judging unit is no, the following units are operated:
a target storage block creating unit configured to create a target storage block according to the target key frame and form a storage block set based on the target storage block and the storage block;
and the second writing unit is configured to configure a target record identifier for the storage block set according to the record identifier of the storage block, wherein the target record identifier represents an update result of the record identifier after the target key frame is written.
In an optional embodiment, the page processing apparatus further includes:
the user identification determining module is configured to determine the user identification of the user to which the client belongs under the condition that the client submits a closing request aiming at a target display page, wherein the target display page is generated according to the target page code;
the storage writing module is configured to determine a storage space based on the user identification, store the storage block to the storage space, and write the updated record identification into a metadata table.
In an optional embodiment, the page processing apparatus further includes:
the storage block determining module is configured to determine a storage block corresponding to the target display page according to a record identifier in the page backtracking request under the condition that the page backtracking request for the target display page is acquired;
the analysis storage block module is configured to analyze the storage block to obtain the target key frame corresponding to the backtracking time in the page backtracking request;
and the target display page generation module is configured to determine the target page code based on the target key frame and generate the target display page according to the target page code as a response of the page backtracking request.
In an optional embodiment, the module for generating a target presentation page includes:
a first parsing unit configured to, in a case that the target key frame includes the skipped page code, obtain the skipped page code by parsing the target key frame;
the first page layout unit is configured to construct a code relation expression according to the jump page code and perform page layout according to the code relation expression;
the first page generation unit is configured to generate the target display page by drawing the page layout result.
In an optional embodiment, the module for generating a target presentation page includes:
a second parsing unit configured to, in a case that the target key frame includes the page update code, obtain the page update code by parsing the target key frame;
the page updating code unit is configured to update the page updating code to the current page to be displayed;
the second page layout unit is configured to construct a code relation expression according to the page code to be backtraced and perform page layout according to the code relation expression;
and the second page generation unit is configured to generate the target display page by drawing the page layout result.
The page processing apparatus provided in this embodiment, after receiving an operation request submitted by a client for a current display page, determines a target page code corresponding to the operation request, and sends the target page code to the client to draw a display page, at this time, a target key frame is generated according to the target page code and time for sending the code, a storage block of the key frame corresponding to the current display page is determined, the target key frame is written into the storage block, and a record identifier of the storage block is updated, so that when a user operates a page through the client, a need for page backtracking can be met by recording a bottom layer code corresponding to the page, display content after page drawing does not need to be recorded, stored data amount is reduced to a great extent, backtracking of page backtracking is stronger through the code, and it is further ensured that the backtracked page is a page already displayed by the client, thereby ensuring the rights and interests of all parties.
The above is a schematic scheme of a page processing apparatus of this embodiment. It should be noted that the technical solution of the page processing apparatus and the technical solution of the page processing method belong to the same concept, and details that are not described in detail in the technical solution of the page processing apparatus can be referred to the description of the technical solution of the page processing method.
Corresponding to the above method embodiment, the present application further provides an embodiment of a page backtracking apparatus, and fig. 6 shows a schematic structural diagram of the page backtracking apparatus provided in the embodiment of the present application. As shown in fig. 6, the apparatus includes:
an obtaining module 602, configured to obtain a page backtracking request, where the page backtracking request includes a record identifier corresponding to a page to be backtracked;
the parsing module 604 is configured to determine, according to the record identifier, a storage block to which the page to be traced belongs, and parse the storage block to obtain a key frame corresponding to the page to be traced;
the display module 606 is configured to determine a page code corresponding to the page to be traced according to the key frame, and generate and display a target page according to the page code.
In an alternative embodiment, the display module 606 includes:
the first analysis unit is configured to analyze the key frame to obtain a jump page code corresponding to a jump page under the condition that the page code is the jump page code;
the first layout unit is configured to construct a code relation expression according to the jump page code and perform page layout according to the code relation expression;
and the first display unit is configured to generate and display the target page by drawing the page layout result.
In an alternative embodiment, the display module 606 includes:
the second analysis unit is configured to analyze the key frame to obtain a page update code corresponding to the page to be traced when the page code is a page update code;
the adding unit is configured to add the page updating code to the page code of the page to be backtracked, and obtain the page code to be backtracked;
the second layout unit is configured to construct a code relation expression according to the page code to be traced back and perform page layout according to the code relation expression;
and the second display unit is configured to generate and display the target page by drawing the page layout result.
According to the page backtracking device provided by the embodiment, after the page backtracking request is obtained, the storage block to which the page to be backtracked belongs is determined according to the record identifier contained in the page backtracking request, the key frame corresponding to the page to be backtracked is obtained by analyzing the storage block, finally, the page code corresponding to the page to be backtracked can be determined through the key frame, the target page can be generated and displayed according to the page code, the amount of stored data is reduced to a great extent, the backtracking performance of page backtracking is strong through the code, the page to be backtracked is further ensured to be the page which has been displayed by the client, and the rights and interests of all parties can be guaranteed.
The above is a schematic scheme of the page backtracking apparatus of this embodiment. It should be noted that the technical solution of the page backtracking apparatus and the technical solution of the page backtracking method belong to the same concept, and details of the technical solution of the page backtracking apparatus, which are not described in detail, can be referred to in the description of the technical solution of the page backtracking method.
Fig. 7 illustrates a block diagram of a computing device 700 provided according to an embodiment of the present application. The components of the computing device 700 include, but are not limited to, memory 710 and a processor 720. Processor 720 is coupled to memory 710 via bus 730, and database 750 is used to store data.
Computing device 700 also includes access device 740, access device 740 enabling computing device 700 to communicate via one or more networks 760. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 740 may include one or more of any type of network interface, e.g., a Network Interface Card (NIC), wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the application, the above-described components of the computing device 700 and other components not shown in fig. 7 may also be connected to each other, for example, by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 7 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 700 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smartphone), wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 700 may also be a mobile or stationary server.
Wherein processor 720 is configured to execute the following computer-executable instructions:
receiving an operation request submitted by a client aiming at a current display page;
determining a target page code corresponding to the operation request, and sending the target page code to the client;
generating a target key frame according to the target page code and the time for sending the target page code;
and determining a storage block of a key frame corresponding to the current display page, writing the target key frame into the storage block and updating the record identifier of the storage block.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the above-mentioned page processing method belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the above-mentioned page processing method.
FIG. 8 illustrates a block diagram of another computing device 800 provided in accordance with an embodiment of the present application. The components of the computing device 800 include, but are not limited to, memory 810 and a processor 820. The processor 820 is coupled to the memory 810 via a bus 830, and the database 850 is used to store data.
Computing device 800 also includes access device 840, access device 840 enabling computing device 800 to communicate via one or more networks 860. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 840 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the application, the above-described components of the computing device 800 and other components not shown in fig. 8 may also be connected to each other, for example, by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 8 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 800 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 800 may also be a mobile or stationary server.
Wherein, the processor 820 is configured to execute the following computer-executable instructions:
acquiring a page backtracking request, wherein the page backtracking request comprises a record identifier corresponding to a page to be backtracked;
determining a storage block to which the page to be traced belongs according to the record identifier, and analyzing the storage block to obtain a key frame corresponding to the page to be traced;
and determining a page code corresponding to the page to be traced based on the key frame, and generating and displaying a target page according to the page code.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the above-mentioned page backtracking method belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the above-mentioned page backtracking method.
An embodiment of the present application further provides a computer-readable storage medium storing computer instructions that, when executed by a processor, are configured to:
receiving an operation request submitted by a client aiming at a current display page;
determining a target page code corresponding to the operation request, and sending the target page code to the client;
generating a target key frame according to the target page code and the time for sending the target page code;
and determining a storage block of a key frame corresponding to the current display page, writing the target key frame into the storage block and updating the record identifier of the storage block.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the above-mentioned page processing method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the above-mentioned page processing method.
An embodiment of the present application also provides another computer-readable storage medium storing computer instructions that, when executed by a processor, are configured to:
acquiring a page backtracking request, wherein the page backtracking request comprises a record identifier corresponding to a page to be backtracked;
determining a storage block to which the page to be traced belongs according to the record identifier, and analyzing the storage block to obtain a key frame corresponding to the page to be traced;
and determining a page code corresponding to the page to be traced based on the key frame, and generating and displaying a target page according to the page code.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the above-mentioned page backtracking method belong to the same concept, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the above-mentioned page backtracking method.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (19)

1. A page processing method includes:
receiving an operation request submitted by a client aiming at a current display page;
determining a target page code corresponding to the operation request, and sending the target page code to the client;
generating a target key frame according to the target page code and the time for sending the target page code;
and determining a storage block of a key frame corresponding to the current display page, writing the target key frame into the storage block and updating the record identifier of the storage block.
2. The page processing method according to claim 1, wherein before the step of receiving the operation request submitted by the client for the currently displayed page is executed, the method further comprises:
receiving a page viewing request uploaded by the client, wherein the page viewing request carries an initial page identifier and a user identifier;
determining an initial page code according to the initial page identifier, and sending the initial page code to the client;
generating an initial key frame according to the initial page code and the time for sending the initial page code;
and creating the storage block based on the initial key frame, and configuring the record identification for the storage block according to the user identification.
3. The page processing method according to claim 1, wherein the determining and sending the target page code corresponding to the operation request to the client comprises:
determining the identifier of a page to be jumped according to the request of the page to be jumped under the condition that the operation request is the request of the page to be jumped;
and determining a jump page code based on the identifier of the page to be jumped, and sending the jump page code to the client as the target page code, wherein the jump page code is used for generating the page to be jumped.
4. The page processing method according to claim 1, wherein the determining and sending the target page code corresponding to the operation request to the client comprises:
determining the identifier of the area to be updated in the current display page according to the page updating request under the condition that the operation request is the page updating request;
determining a page updating code based on the identifier of the area to be updated, and sending the page updating code to the client as the target page code, wherein the page updating code is used for updating the area to be updated in the current display page.
5. The page processing method according to claim 1, wherein the determining a storage block of a key frame corresponding to the currently displayed page, writing the target key frame into the storage block, and updating a record identifier of the storage block includes:
determining a current page identifier of the current display page according to the operation request, and reading metadata information according to the current page identifier to obtain the record identifier;
determining the storage block corresponding to the record identifier, and judging whether the storage block meets a preset storage condition;
and if so, writing the target key frame into the storage block, and updating the record identifier of the storage block according to the writing result.
6. The page processing method according to claim 5, wherein if the judgment result of judging whether the storage block meets the preset storage condition is negative, the following operations are executed:
creating a target storage block according to the target key frame, and forming a storage block set based on the target storage block and the storage block;
and configuring a target record identifier for the storage block set according to the record identifier of the storage block, wherein the target record identifier represents an updating result of the record identifier after the target key frame is completely written.
7. The page processing method according to claim 1, after said steps of writing said target key frame into said memory block and updating the record identification of said memory block are executed, further comprising:
determining a user identifier of a user to which the client belongs under the condition that the client submits a closing request aiming at a target display page, wherein the target display page is generated according to the target page code;
determining a storage space based on the user identification, storing the storage block to the storage space, and writing the updated record identification into a metadata table.
8. The page processing method according to claim 3 or 4, after said steps of writing said target key frame into said memory block and updating the record identification of said memory block are executed, further comprising:
under the condition that a page backtracking request for the target display page is obtained, determining a storage block corresponding to the target display page according to a record identifier in the page backtracking request;
analyzing the storage block to obtain the target key frame corresponding to the backtracking time in the page backtracking request;
and determining the target page code based on the target key frame, and generating the target display page according to the target page code as a response of the page backtracking request.
9. The page processing method according to claim 8, wherein said determining the target page code based on the target key frame and generating the target presentation page according to the target page code comprises:
under the condition that the target key frame contains the jump page code, analyzing the target key frame to obtain the jump page code;
constructing a code relation expression according to the jump page code, and carrying out page layout according to the code relation expression;
and generating the target display page by drawing the page layout result.
10. The page processing method according to claim 8, wherein said determining the target page code based on the target key frame and generating the target presentation page according to the target page code comprises:
under the condition that the target key frame contains the page updating code, analyzing the target key frame to obtain the page updating code;
adding the page updating code into the page code of the current display page to obtain a page code to be backtracked;
constructing a code relation expression according to the page code to be traced back, and carrying out page layout according to the code relation expression;
and generating the target display page by drawing the page layout result.
11. A page processing apparatus comprising:
the receiving module is configured to receive an operation request submitted by a client aiming at a current display page;
the determining module is configured to determine a target page code corresponding to the operation request and send the target page code to the client;
a generating module configured to generate a target key frame according to the target page code and a time for transmitting the target page code;
and the writing module is configured to determine a storage block of a key frame corresponding to the current display page, write the target key frame into the storage block and update the record identifier of the storage block.
12. A page backtracking method comprises the following steps:
acquiring a page backtracking request, wherein the page backtracking request comprises a record identifier corresponding to a page to be backtracked;
determining a storage block to which the page to be traced belongs according to the record identifier, and analyzing the storage block to obtain a key frame corresponding to the page to be traced;
and determining a page code corresponding to the page to be traced based on the key frame, and generating and displaying a target page according to the page code.
13. The page backtracking method according to claim 12, wherein the determining a page code corresponding to the page to be backtracked based on the key frame, and generating and displaying a target page according to the page code comprises:
under the condition that the page code is a jump page code, analyzing the key frame to obtain a jump page code corresponding to a jump page;
constructing a code relation expression according to the jump page code, and carrying out page layout according to the code relation expression;
and generating and displaying the target page by drawing the page layout result.
14. The page backtracking method according to claim 12, wherein the determining a page code corresponding to the page to be backtracked based on the key frame, and generating and displaying a target page according to the page code comprises:
under the condition that the page code is a page updating code, analyzing the key frame to obtain a page updating code corresponding to the page to be traced;
adding the page updating code into a page code of the page to be backtracked to obtain the page code to be backtracked;
constructing a code relation expression according to the page code to be traced back, and carrying out page layout according to the code relation expression;
and generating and displaying the target page by drawing the page layout result.
15. A page backtracking apparatus, comprising:
the system comprises an acquisition module, a retrieval module and a display module, wherein the acquisition module is configured to acquire a page backtracking request which comprises a record identifier corresponding to a page to be backtracked;
the analysis module is configured to determine a storage block to which the page to be backtraced belongs according to the record identifier, and analyze the storage block to obtain a key frame corresponding to the page to be backtraced;
and the display module is configured to determine a page code corresponding to the page to be traced according to the key frame, and generate and display a target page according to the page code.
16. A computing device, comprising:
a memory and a processor;
the memory is configured to store computer-executable instructions, and the processor is configured to execute the computer-executable instructions to implement the method of:
receiving an operation request submitted by a client aiming at a current display page;
determining a target page code corresponding to the operation request, and sending the target page code to the client;
generating a target key frame according to the target page code and the time for sending the target page code;
and determining a storage block of a key frame corresponding to the current display page, writing the target key frame into the storage block and updating the record identifier of the storage block.
17. A computing device, comprising:
a memory and a processor;
the memory is configured to store computer-executable instructions, and the processor is configured to execute the computer-executable instructions to implement the method of:
acquiring a page backtracking request, wherein the page backtracking request comprises a record identifier corresponding to a page to be backtracked;
determining a storage block to which the page to be traced belongs according to the record identifier, and analyzing the storage block to obtain a key frame corresponding to the page to be traced;
and determining a page code corresponding to the page to be traced based on the key frame, and generating and displaying a target page according to the page code.
18. A computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the page processing method of any one of claims 1 to 10.
19. A computer readable storage medium storing computer instructions which, when executed by a processor, carry out the steps of the page backtracking method of any of claims 12 to 14.
CN202010848643.7A 2020-08-21 2020-08-21 Page processing method and device and page backtracking method and device Active CN111966428B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010848643.7A CN111966428B (en) 2020-08-21 2020-08-21 Page processing method and device and page backtracking method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010848643.7A CN111966428B (en) 2020-08-21 2020-08-21 Page processing method and device and page backtracking method and device

Publications (2)

Publication Number Publication Date
CN111966428A true CN111966428A (en) 2020-11-20
CN111966428B CN111966428B (en) 2022-07-15

Family

ID=73389920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010848643.7A Active CN111966428B (en) 2020-08-21 2020-08-21 Page processing method and device and page backtracking method and device

Country Status (1)

Country Link
CN (1) CN111966428B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377631A (en) * 2021-05-25 2021-09-10 北京猿力教育科技有限公司 User behavior backtracking method and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096694A (en) * 2009-08-23 2011-06-15 美国银行公司 Display rendering system with supporting components
US20120209843A1 (en) * 1998-03-11 2012-08-16 Yahoo! Inc. Technique for processing data in a network
CN102855318A (en) * 2012-08-31 2013-01-02 北京搜狗信息服务有限公司 Method and system for preloading of webpages
US20140317482A1 (en) * 2013-04-19 2014-10-23 Alibaba Group Holding Limited Client side page processing
CN104360866A (en) * 2014-12-01 2015-02-18 深圳七彩畅想网络技术有限公司 Code generating method and code generator
CN107562613A (en) * 2016-06-30 2018-01-09 阿里巴巴集团控股有限公司 Program testing method, apparatus and system
CN109145248A (en) * 2017-09-19 2019-01-04 屏幕分享科技有限公司 Method for recording, editing and reproducing computer talk
CN110083340A (en) * 2019-03-19 2019-08-02 深圳壹账通智能科技有限公司 Code generating method, device, computer equipment and storage medium
CN110647321A (en) * 2019-08-15 2020-01-03 平安普惠企业管理有限公司 Method, device and equipment for playing back operation flow and storage medium
CN110750747A (en) * 2019-10-22 2020-02-04 杭州安恒信息技术股份有限公司 Page jump method, device, equipment and readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120209843A1 (en) * 1998-03-11 2012-08-16 Yahoo! Inc. Technique for processing data in a network
CN102096694A (en) * 2009-08-23 2011-06-15 美国银行公司 Display rendering system with supporting components
CN102855318A (en) * 2012-08-31 2013-01-02 北京搜狗信息服务有限公司 Method and system for preloading of webpages
US20140317482A1 (en) * 2013-04-19 2014-10-23 Alibaba Group Holding Limited Client side page processing
CN104360866A (en) * 2014-12-01 2015-02-18 深圳七彩畅想网络技术有限公司 Code generating method and code generator
CN107562613A (en) * 2016-06-30 2018-01-09 阿里巴巴集团控股有限公司 Program testing method, apparatus and system
CN109145248A (en) * 2017-09-19 2019-01-04 屏幕分享科技有限公司 Method for recording, editing and reproducing computer talk
CN110083340A (en) * 2019-03-19 2019-08-02 深圳壹账通智能科技有限公司 Code generating method, device, computer equipment and storage medium
CN110647321A (en) * 2019-08-15 2020-01-03 平安普惠企业管理有限公司 Method, device and equipment for playing back operation flow and storage medium
CN110750747A (en) * 2019-10-22 2020-02-04 杭州安恒信息技术股份有限公司 Page jump method, device, equipment and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈次白: "信息检索的基本原理", 《信息存储与检索技术》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377631A (en) * 2021-05-25 2021-09-10 北京猿力教育科技有限公司 User behavior backtracking method and device

Also Published As

Publication number Publication date
CN111966428B (en) 2022-07-15

Similar Documents

Publication Publication Date Title
US8844800B2 (en) Ratings using machine-readable representations
US8635169B2 (en) System and methods for providing user generated video reviews
CN102682389B (en) For information to be provided the method and system of document based on web from external source
US20140149845A1 (en) Method for generating websites
US20150006333A1 (en) Generating websites and online stores from seed input
US20140149240A1 (en) Method for collecting point-of-sale data
US20140149846A1 (en) Method for collecting offline data
US20150007022A1 (en) Generating websites and business documents from seed input
US20110082848A1 (en) Systems, methods and computer program products for search results management
KR102402026B1 (en) System for providing virtual space renting service using virtual space archive
US11501322B2 (en) Blockchain-based data processing systems, methods, and apparatuses
CN106991108A (en) The method for pushing and device of a kind of information
CN107977678A (en) Method and apparatus for output information
US20080071553A1 (en) Generation of Commercial Presentations
CN111966428B (en) Page processing method and device and page backtracking method and device
US11257029B2 (en) Pickup article cognitive fitment
CN108536715B (en) Preview page generation method, device, equipment and storage medium
KR101697290B1 (en) Method and system for making homepage using web browser
JP2020017031A (en) Voice data providing system and program
US20170132732A1 (en) Ip content discovery platform
WO2021036894A1 (en) Electronic business card processing method, device, system, and storage medium
CN104484415A (en) E-book supplying method and e-book supplying device
KR20100037711A (en) Method for collecting, providing goods information service and system thereof
KR102538748B1 (en) System for providing photo reward service
KR102141484B1 (en) Method and system for generating automatically personal online shopping mall using social network service

Legal Events

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