Disclosure of Invention
In view of this, an embodiment of 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 a 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 update result of the record identifier after the target key frame is 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 skip page code, analyzing the target key frame to obtain the skip 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 backtraced, 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 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 method for backtracking a page 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 skip page code, analyzing the key frame to obtain a skip page code corresponding to a skip 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 backtraced, 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 retrieval 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 herein, 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 herein, 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.
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 and scope of this application, and thus this application is 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 also 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 tracing scene, historical page access records of a user may need to be backtracked, so that the operation of the user in purchasing a commodity in the after-sales scene is determined, or the operation of the user in the network responsibility tracing scene is determined, and required information is analyzed to perform subsequent responsibility confirmation or responsibility tracing; 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, the backtracked pages are further ensured to be the pages displayed 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, or a tablet computer; correspondingly, the current display page specifically refers to a page displayed by the current client, and the page has already been recorded (recorded), and 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, a code of the display page needs to be recorded and stored, so as to facilitate subsequent backtracking of the page.
Further, in order to trace back a current display page displayed by the client in a 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 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 process, 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 relevant information generated based on sending time and an 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 subsequent after-sale dispute occurs, an initial key frame is generated according to a page code corresponding to a head 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 when the user U1 purchases 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 subsequent use 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 page jump request as an example, and correspondingly, the target page code is a code corresponding to a page to be jumped, where 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 with the above example, when the user U1 clicks the article a in the home page of the shopping website T, it is necessary to jump to the article detail page of the article a, at this time, the server receives the jump request submitted by the user U1 to jump 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, the identifier of the page to be skipped is determined according to the skip page request, the skip page code determined according to the identifier is sent to the client as a target page code, and the skip page code is recorded and stored subsequently, 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 the page to be traced back and convenient management during page backtracking, the target key frame may 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 needs to be traced back, the code of the page displayed by the client may be determined through time, and the content displayed by the client may be determined by performing page generation according to the code, so as to perform 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 method, after the 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; 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 a 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, where 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 or not, namely judging whether the storage block can continuously write a target key frame or not, if so, indicating that the storage block does not reach a record upper limit, writing the target key frame into the storage block, and updating the record identifier according to a writing 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 a 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 the storage block created based on the initial key frame corresponding to the first page of the shopping website T is determined, whether the storage block can be continuously written into the target key frame is judged at this time, if yes, the key frame can be continuously written into the storage block, the target key frame corresponding to the commodity detail page A is directly written into the storage block, and the record identification of the storage block is updated; if not, the key frame cannot be continuously written into the storage block, a new storage block needs to be created again based on the target key frame corresponding to the commodity detail page A, the newly created storage block is assembled based on the storage block corresponding to the first page of the shopping website T, a storage block set is generated, meanwhile, a target record identifier can be configured according to the record identifier of the storage block corresponding to the first page of the shopping website T as the storage block, and therefore the purpose that no matter a new key frame is written into or a new storage block is created, the target record identifier can be added to the storage block set and 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 a 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 all associated and recorded together, the pages corresponding to the series of operations can be traced conveniently when a subsequent page is traced, 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 needing 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 relevant service analysis process.
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 skip page code, analyzing the target key frame to obtain the skip 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 a 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 site T, spends 100 yuan, and receives a coupon with 99 yuan full-minus by a violation means, the payment amount of the user U2 is 1 yuan, the merchant selling the commodity only receives 1 yuan payment, when the merchant checks that the profit is not correct, and checks that the user U2 only pays 1 yuan, it is necessary to trace back the operation process of the user U2 purchasing the commodity to analyze whether the user uses 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, it is determined through analysis that the user performs illegal operation on a third page displayed by the client, 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 generated reversely 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 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 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 a 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 without recording display content after the page is drawn, the amount of stored data is reduced to a great extent, the backtracking performance of the page backtracking is stronger 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, because the backtracking requirement of the page is relatively large, for example, in an after-sales scene or a network responsibility tracing scene, historical page access records of a user may need to be backtracked, so that the operation of the user in purchasing a commodity in the after-sales scene is determined, or the operation of the user in the network responsibility tracing scene is determined, and required information is analyzed to perform subsequent responsibility confirmation or responsibility tracing; 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 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 storage of a page code is completed by the page processing method, the page backtracking can be implemented by the page backtracking method, so as to perform a relevant 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 that needs 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, when the page code is a jump page code, it is indicated that a complete page can be generated based on the page code, a code relation expression is constructed according to the page code, and the target page is generated, 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 indicated that the page to be traced is a complete page, the skip page code corresponding to the skip page is determined by analyzing 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, the 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 the shopping website T, a payment window pops up on the payment page of the shopping website T, the user U3 completes payment by scanning the two-dimensional code in the payment window, and at this time, in order to trace back the 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 stronger through the code, the backtracked page is further ensured to be the page 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 identification of the area to be updated in the current display page according to the page updating request.
Step S406, determining a page updating code based on the identifier of the area to be updated, and sending the page updating 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 in 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 area identifier 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, a payment window code is determined through the payment window identification, and the payment window code is sent to the client side to support the client side to carry out payment operation; in order to perform subsequent page backtracking, 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, a record identifier of the storage block is updated; and when the client terminal upload closing request is received, determining that the operation in the client terminal uploading closing process is finished, storing the storage block to an object storage server corresponding to the user identifier, and writing the record identifier into the 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; 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;
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 update code based on the identifier of the area to be updated, and send the page update code to the client as the target page code, wherein the page update 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 for 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 identifier, store the storage block to the storage space, and write the updated record identifier 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 obtained;
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 into a page code of the page to be backtraced to obtain the page code to be backtraced;
the second layout unit is configured to construct code relation expression according to the page code to be backtraced 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)) 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 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 structure shown in FIG. 7 is for purposes of example only and is not limiting as to the scope of the present application. Other components may be added or replaced as desired by those skilled in the art.
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 for details that are not described in detail in the technical solution of the computing device, reference may be made 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, a 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 back 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 back 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 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 simplicity and convenience of description, the above-described method embodiments are described as a series of combinations of acts, but those skilled in the art will appreciate that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders and/or concurrently. Further, those skilled in the art will appreciate that the embodiments described in this specification are presently considered to be preferred embodiments and that acts and modules are not required in the present application.
In the foregoing 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 the 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 application, to thereby enable others skilled in the art to best understand the application and its practical application. The application is limited only by the claims and their full scope and equivalents.