[go: up one dir, main page]

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 Digital Service 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 OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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 device, and a page backtracking method and device.

背景技术Background technique

随着互联网技术的发展和普及,越来越多的用户选择线上消费,不同于传统的实体消费场景,用户通过互联网即可完成购物、预定、炒股、办理证件等,很大程度上提高了用户的便捷性;随着线上服务开展的加深,信息的安全和信息的防护成为了重中之重的问题,在保证用户的信息安全的同时,还需要保证服务端不会被用户的违规操作造成损失,从而才能够促进线上服务的持续性发展;而在此过程中,可能会出现需要对用户浏览的页面或者操作进行回溯的情况,如售后场景中,可能就需要对用户购买商品时的操作过程以及付款过程进行回溯,从而分析用户和商家之间存在的问题是哪一个方,从而给出结果。With the development and popularization of Internet technology, more and more users choose online consumption. Different from traditional physical consumption scenarios, users can complete shopping, booking, stock trading, and handling documents through the Internet, which greatly improves the User convenience; with the deepening of online services, information security and information protection have become the most important issues. While ensuring user information security, it is also necessary to ensure that the server will not be violated by users. The operation causes losses, so as to promote the sustainable development of online services; in this process, there may be situations where it is necessary to backtrack the pages or operations that users browse. For example, in after-sales scenarios, users may need to purchase goods. The operation process and the payment process are backtracked, so as to analyze which side of the problem exists between the user and the merchant, and give the result.

然而,对于服务端来讲其不仅服务于一个用户,需要服务的用户群体是比较庞大的,若需要实现能够对用户的操作行为进行回溯就需要在用户操作时完成对被操作页面的录制,这就导致服务端需要存储大量的页面录制结果,不仅耗费存储空间,并且回溯性较差,故亟需一种有效的方案以解决该问题。However, as far as the server is concerned, it not only serves one user, but also the user group that needs to be served is relatively large. If you want to be able to trace back the user's operation behavior, you need to complete the recording of the operated page when the user operates. As a result, the server needs to store a large number of page recording results, which not only consumes storage space, but also has poor retrospectivity. Therefore, an effective solution is urgently needed to solve this problem.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本申请实施例提供了一种页面处理方法。本申请同时涉及一种页面处理装置,一种页面回溯方法,一种页面回溯装置,两种计算设备,以及两种计算机可读存储介质,以解决现有技术中存在的技术缺陷。In view of this, an embodiment of the present application provides a page processing method. The present application also relates to a page processing apparatus, a page backtracking method, a page backtracking apparatus, two kinds of computing devices, and two kinds of computer-readable storage media, so as to solve the technical defects existing in the prior art.

根据本申请实施例的第一方面,提供了一种页面处理方法,包括:According to a first aspect of the embodiments of the present application, a page processing method is provided, including:

接收客户端针对当前展示页面提交的操作请求;Receive the operation request submitted by the client for the current display page;

确定所述操作请求对应的目标页面代码,并发送至所述客户端;Determine the target page code corresponding to the operation request, and send it to the client;

根据所述目标页面代码和发送所述目标页面代码的时间生成目标关键帧;Generate a target key frame according to the target page code and the time when the target page code is sent;

确定所述当前展示页面对应的关键帧的存储块,将所述目标关键帧写入所述存储块并更新所述存储块的记录标识。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.

可选的,所述接收客户端针对当前展示页面提交的操作请求步骤执行之前,还包括: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, where the page viewing request carries an initial page identifier and a user identifier;

根据所述初始页面标识确定初始页面代码,并将所述初始页面代码发送至所述客户端;Determine an initial page code according to the initial page identifier, and send the initial page code to the client;

根据所述初始页面代码和发送所述初始页面代码的时间生成初始关键帧;generating an initial key frame according to the initial page code and the time of sending the initial page code;

基于所述初始关键帧创建所述存储块,并根据所述用户标识为所述存储块配置所述记录标识。The storage block is created based on the initial key frame, and the recording identifier is configured for the storage block according to the user identifier.

可选的,所述确定所述操作请求对应的目标页面代码,并发送至所述客户端,包括:Optionally, the determining the target page code corresponding to the operation request and sending it to the client includes:

在所述操作请求为跳转页面请求的情况下,根据所述跳转页面请求确定待跳转页面的标识;In the case that the operation request is a page jump request, determining the identifier of the page to be jumped according to the page jump request;

基于所述待跳转页面的标识确定跳转页面代码,并将所述跳转页面代码作为所述目标页面代码发送至所述客户端,其中,所述跳转页面代码用于生成待跳转页面。Determine the jump page code based on the identifier of the page to be jumped, and send the jump page code as the target page code to the client, where the jump page code is used to generate the page to be jumped page.

可选的,所述确定所述操作请求对应的目标页面代码,并发送至所述客户端,包括:Optionally, the determining the target page code corresponding to the operation request and sending it to the client includes:

在所述操作请求为页面更新请求的情况下,根据所述页面更新请求确定所述当前展示页面中的待更新区域的标识;In the case that the operation request is a page update request, determining the identifier of the area to be updated in the currently displayed page according to the page update request;

基于所述待更新区域的标识确定页面更新代码,并将所述页面更新代码作为所述目标页面代码发送至所述客户端,其中,所述页面更新代码用于对所述当前展示页面中的待更新区域进行更新。The page update code is determined based on the identifier of the area to be updated, and the page update code is sent to the client as the target page code, wherein the page update code is used to update the page update code in the currently displayed page. The area to be updated is updated.

可选的,所述确定所述当前展示页面对应的关键帧的存储块,将所述目标关键帧写入所述存储块并更新所述存储块的记录标识,包括:Optionally, 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, including:

根据所述操作请求确定所述当前展示页面的当前页面标识,并根据所述当前页面标识读取元数据信息获得所述记录标识;Determine the current page identifier of the currently displayed page according to the operation request, and obtain the record identifier by reading metadata information according to the current page identifier;

确定所述记录标识对应的所述存储块,并判断所述存储块是否满足预设存储条件;determining the storage block corresponding to the record identifier, and judging whether the storage block satisfies a preset storage condition;

若是,将所述目标关键帧写入所述存储块,并根据写入结果更新所述存储块的所述记录标识。If so, write the target key frame into the storage block, and update the record identifier of the storage block according to the writing result.

可选的,所述判断所述存储块是否满足预设存储条件的判断结果为否,则执行如下操作:Optionally, if the judgment result of judging whether the storage block satisfies the preset storage condition is no, the following operations are performed:

根据所述目标关键帧创建目标存储块,并基于所述目标存储块和所述存储块组成存储块集合;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;

根据所述存储块的所述记录标识为所述存储块集合配置目标记录标识,所述目标记录标识表示所述目标关键帧写入完成后记录标识的更新结果。A target record identifier is configured for the storage block set according to the record identifier of the storage block, where the target record identifier represents an update result of the record identifier after the writing of the target key frame is completed.

可选的,所述将所述目标关键帧写入所述存储块并更新所述存储块的记录标识步骤执行之后,还包括:Optionally, after the steps of writing the target key frame into the storage block and updating the record identification of the storage block are performed, the method further includes:

在接收到所述客户端针对目标展示页面提交关闭请求的情况下,确定所述客户端所属用户的用户标识,其中,所述目标展示页面根据所述目标页面代码生成;In the case of receiving the closing request submitted by the client for the target display page, determining the user identifier of the user to which the client belongs, wherein the target display page is generated according to the target page code;

基于所述用户标识确定存储空间,将所述存储块存储至所述存储空间,以及将更新后的记录标识写入元数据表。A storage space is determined based on the user identifier, the storage block is stored in the storage space, and the updated record identifier is written into a metadata table.

可选的,所述将所述目标关键帧写入所述存储块并更新所述存储块的记录标识步骤执行之后,还包括:Optionally, after the steps of writing the target key frame into the storage block and updating the record identification of the storage block are performed, the method further includes:

在获取到针对所述目标展示页面的页面回溯请求的情况下,根据所述页面回溯请求中的记录标识确定所述目标展示页面对应的存储块;In the case of obtaining the page backtracking request for the target display page, determining the storage block corresponding to the target display page according to the record identifier in the page backtracking request;

对所述存储块进行解析,获得与所述页面回溯请求中的回溯时间对应的所述目标关键帧;Parsing the storage block to obtain the target key frame corresponding to the backtracking time in the page backtracking request;

基于所述目标关键帧确定所述目标页面代码,并根据所述目标页面代码生成所述目标展示页面,作为所述页面回溯请求的响应。The target page code is determined based on the target key frame, and the target display page is generated according to the target page code as a response to the page backtracking request.

可选的,所述基于所述目标关键帧确定所述目标页面代码,并根据所述目标页面代码生成所述目标展示页面,包括:Optionally, determining the target page code based on the target key frame, and generating the target display page according to the target page code, includes:

在所述目标关键帧包含所述跳转页面代码的情况下,通过对所述目标关键帧进行解析,获得所述跳转页面代码;In the case that the target key frame includes the jump page code, the jump page code is obtained by parsing the target key frame;

根据所述跳转页面代码构建代码关系表达,并根据所述代码关系表达进行页面布局;Build a code relationship expression according to the jump page code, and perform page layout according to the code relationship expression;

通过对页面布局结果进行绘制处理,生成所述目标展示页面。The target display page is generated by drawing the page layout result.

可选的,所述基于所述目标关键帧确定所述目标页面代码,并根据所述目标页面代码生成所述目标展示页面,包括:Optionally, determining the target page code based on the target key frame, and generating the target display page according to the target page code, includes:

在所述目标关键帧包含所述页面更新代码的情况下,通过对所述目标关键帧进行解析,获得所述页面更新代码;When the target key frame includes the page update code, obtain the page update code by parsing the target key frame;

将所述页面更新代码添加至所述当前展示页面的页面代码中,获得待回溯页面代码;adding the page update code to the page code of the currently displayed page to obtain the page code to be backtracked;

根据所述待回溯页面代码构建代码关系表达,并根据所述代码关系表达进行页面布局;Build a code relationship expression according to the code of the page to be backtracked, and perform page layout according to the code relationship expression;

通过对页面布局结果进行绘制处理,生成所述目标展示页面。The target display page is generated by drawing the page layout result.

根据本申请实施例的第二方面,提供了一种页面处理装置,包括:According to a second aspect of the embodiments of the present application, a page processing apparatus is provided, including:

接收模块,被配置为接收客户端针对当前展示页面提交的操作请求;The receiving module is configured to receive the operation request submitted by the client for the current display page;

确定模块,被配置为确定所述操作请求对应的目标页面代码,并发送至所述客户端;a determining module, configured to determine the target page code corresponding to the operation request, and send it to the client;

生成模块,被配置为根据所述目标页面代码和发送所述目标页面代码的时间生成目标关键帧;A generating module, configured to generate a target key frame according to the target page code and the time of sending the target page code;

写入模块,被配置为确定所述当前展示页面对应的关键帧的存储块,将所述目标关键帧写入所述存储块并更新所述存储块的记录标识。The writing module is configured to determine the storage block of the 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:

获取页面回溯请求,所述页面回溯请求中包含待回溯页面对应的记录标识;Obtain a page backtracking request, where the page backtracking request includes a record identifier corresponding to the page to be backtracked;

根据所述记录标识确定所述待回溯页面所属的存储块,并对所述存储块进行解析获得所述待回溯页面对应的关键帧;Determine the storage block to which the page to be traced belongs according to the record identifier, and parse the storage block to obtain a key frame corresponding to the page to be traced;

基于所述关键帧确定所述待回溯页面对应的页面代码,根据所述页面代码生成目标页面并展示。The page code corresponding to the page to be backtracked is determined based on the key frame, and a target page is generated and displayed according to the page code.

可选的,所述基于所述关键帧确定所述待回溯页面对应的页面代码,根据所述页面代码生成目标页面并展示,包括:Optionally, determining the 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, including:

在所述页面代码为跳转页面代码的情况下,通过对所述关键帧进行解析获得跳转页面对应的跳转页面代码;In the case that the page code is a jump page code, the jump page code corresponding to the jump page is obtained by parsing the key frame;

根据所述跳转页面代码构建代码关系表达,并根据所述代码关系表达进行页面布局;Build a code relationship expression according to the jump page code, and perform page layout according to the code relationship expression;

通过对页面布局结果进行绘制处理,生成所述目标页面并展示。The target page is generated and displayed by rendering the page layout result.

可选的,所述基于所述关键帧确定所述待回溯页面对应的页面代码,根据所述页面代码生成目标页面并展示,包括:Optionally, determining the 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, including:

在所述页面代码为页面更新代码的情况下,通过对所述关键帧进行解析获得所述待回溯页面对应的页面更新代码;In the case that the page code is a page update code, the page update code corresponding to the page to be backtracked is obtained by parsing the key frame;

将所述页面更新代码添加至所述待回溯页面的页面代码中,获得待回溯页面代码;adding the page update code to the page code of the page to be backtracked to obtain the page code to be backtracked;

根据所述待回溯页面代码构建代码关系表达,并根据所述代码关系表达进行页面布局;Build a code relationship expression according to the code of the page to be backtracked, and perform page layout according to the code relationship expression;

通过对页面布局结果进行绘制处理,生成所述目标页面并展示。The target page is generated and displayed by rendering the page layout result.

根据本申请实施例的第四方面,提供了一种页面回溯装置,包括:According to a fourth aspect of the embodiments of the present application, a page backtracking device is provided, including:

获取模块,被配置为获取页面回溯请求,所述页面回溯请求中包含待回溯页面对应的记录标识;an acquisition module, configured to acquire a page backtracking request, where the page backtracking request includes a record identifier corresponding to the page to be backtracked;

解析模块,被配置为根据所述记录标识确定所述待回溯页面所属的存储块,并对所述存储块进行解析获得所述待回溯页面对应的关键帧;a parsing module, configured to determine the storage block to which the page to be traced belongs according to the record identifier, and to parse the storage block to obtain a key frame corresponding to the page to be traced;

展示模块,被配置为根据所述关键帧确定所述待回溯页面对应的页面代码,并根据所述页面代码生成目标页面并展示。The display module is configured to determine the page code corresponding to the page to be backtracked according to the key frame, and generate and display a target page according to the page code.

根据本申请实施例的第五方面,提供了一种计算设备,包括:According to a fifth aspect of the embodiments of the present application, a computing device is provided, including:

存储器和处理器;memory and processor;

所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions:

接收客户端针对当前展示页面提交的操作请求;Receive the operation request submitted by the client for the current display page;

确定所述操作请求对应的目标页面代码,并发送至所述客户端;Determine the target page code corresponding to the operation request, and send it to the client;

根据所述目标页面代码和发送所述目标页面代码的时间生成目标关键帧;Generate a target key frame according to the target page code and the time when the target page code is sent;

确定所述当前展示页面对应的关键帧的存储块,将所述目标关键帧写入所述存储块并更新所述存储块的记录标识。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.

根据本申请实施例的第六方面,提供了一种计算设备,包括:According to a sixth aspect of the embodiments of the present application, a computing device is provided, including:

存储器和处理器;memory and processor;

所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions:

获取页面回溯请求,所述页面回溯请求中包含待回溯页面对应的记录标识;Obtain a page backtracking request, where the page backtracking request includes a record identifier corresponding to the page to be backtracked;

根据所述记录标识确定所述待回溯页面所属的存储块,并对所述存储块进行解析获得所述待回溯页面对应的关键帧;Determine the storage block to which the page to be traced belongs according to the record identifier, and parse the storage block to obtain a key frame corresponding to the page to be traced;

基于所述关键帧确定所述待回溯页面对应的页面代码,根据所述页面代码生成目标页面并展示。The page code corresponding to the page to be backtracked is determined based on the key frame, and a target page is generated and displayed according to the page code.

根据本申请实施例的第七方面,提供了一种计算机可读存储介质,其存储有计算机可执行指令,该指令被处理器执行时实现所述页面处理方法的步骤。According to a seventh aspect of the embodiments of the present application, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, implements the steps of the page processing method.

根据本申请实施例的第八方面,提供了一种计算机可读存储介质,其存储有计算机可执行指令,该指令被处理器执行时实现所述页面回溯方法的步骤。According to an eighth aspect of the embodiments of the present application, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, implements the steps of the page backtracking method.

本申请提供的页面处理方法,在接收到客户端针对当前展示页面提交操作请求后,确定该操作请求对应的目标页面代码,并将目标页面代码发送至客户端以实现客户端绘制出展示页面,此时将根据所述目标页面代码和发送代码的时间生成目标关键帧,并确定当前展示页面对应的关键帧的存储块,将目标关键帧写入所述存储块并更新所述存储块的记录标识,实现在用户通过客户端对页面进行操作时,记录页面对应的底层代码即可实现页面回溯的需求,无需记录页面绘制之后的展示内容,很大程度上减少了存储的数据量,并且通过代码实现对页面回溯的回溯性较强,进一步确保了回溯出的页面是客户端已经展示过的页面,从而使得各方的权益均可以得到保障。In the page processing method provided by the present application, after receiving an operation request submitted by the client for the current display page, the target page code corresponding to the operation request is determined, and the target page code is sent to the client so that the client can draw the display page, At this time, the target key frame will be generated according to the target page code and the time of sending the code, and the storage block of the key frame corresponding to the current display page will be determined, the target key frame will be written into the storage block, and the record of the storage block will be updated. It can realize the requirement of page backtracking by recording the underlying code corresponding to the page when the user operates the page through the client, without recording the displayed content after the page is drawn, which greatly reduces the amount of stored data, and through The code implementation has strong backtracking on page backtracking, which further ensures that the backtracked page is the page that has been displayed by the client, so that the rights and interests of all parties can be guaranteed.

附图说明Description of drawings

图1是本申请一实施例提供的一种页面处理方法的流程图;1 is a flowchart of a page processing method provided by an embodiment of the present application;

图2是本申请一实施例提供的一种页面处理方法的示意图;2 is a schematic diagram of a page processing method provided by an embodiment of the present application;

图3是本申请一实施例提供的一种页面回溯方法的流程图;3 is a flowchart of a page backtracking method provided by an embodiment of the present application;

图4是本申请一实施例提供的一种应用于售后场景的处理流程图;Fig. 4 is a processing flow chart applied to an after-sales scenario provided by an embodiment of the present application;

图5是本申请一实施例提供的一种页面处理装置的结构示意图;5 is a schematic structural diagram of a page processing apparatus provided by an embodiment of the present application;

图6是本申请一实施例提供的一种页面回溯装置的结构示意图;6 is a schematic structural diagram of a page backtracking device provided by an embodiment of the present application;

图7是本申请一实施例提供的一种计算设备的结构框图;7 is a structural block diagram of a computing device provided by an embodiment of the present application;

图8是本申请一实施例提供的另一种计算设备的结构框图。FIG. 8 is a structural block diagram of another computing device provided by an embodiment of the present application.

具体实施方式Detailed ways

在下面的描述中阐述了很多具体细节以便于充分理解本申请。但是本申请能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似推广,因此本申请不受下面公开的具体实施的限制。In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar promotions without violating the connotation of the present application. Therefore, the present application is not limited by the specific implementation disclosed below.

在本申请一个或多个实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请一个或多个实施例。在本申请一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本申请一个或多个实施例中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in one or more embodiments of the present application is for the purpose of describing a particular embodiment only, and is not intended to limit the one or more embodiments of the present application. As used in one or more embodiments of this application and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used in one or more embodiments of this application refers to and includes any and all possible combinations of one or more of the associated listed items.

应当理解,尽管在本申请一个或多个实施例中可能采用术语第一、第二等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请一个或多个实施例范围的情况下,第一也可以被称为第二,类似地,第二也可以被称为第一。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, etc. may be used in one or more embodiments of the present application to describe various information, such information should not be limited by these terms. These terms are only used to distinguish the same type of information from each other. For example, the first could be termed the second, and similarly the second could be termed the first, without departing from the scope of one or more embodiments of the present application. Depending on the context, the word "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determining."

在本申请中,提供了一种页面处理方法,本申请同时涉及一种页面处理装置,一种页面回溯方法,一种页面回溯装置,两种计算设备,以及两种计算机可读存储介质,在下面的实施例中逐一进行详细说明。In the present application, a page processing method is provided, and the present application also relates to a page processing apparatus, a page backtracking method, a page backtracking apparatus, two kinds of computing devices, and two kinds of computer-readable storage media. Detailed descriptions are given in the following examples one by one.

实际应用中,页面的回溯需求是比较大的,如在售后场景或网络责任追溯场景中,都可能需要通过对用户的历史页面访问记录进行回溯,从而确定用户在售后场景中购买商品时所做出的操作,或者确定用户在网络责任追溯场景中所做出的操作,分析出需要的信息以进行后续的责任认定或者责任追究;而实现页面回溯的基础就是需要记录用户对页面的操作以及操作后的页面内容,并进行存储,以支持页面回溯的需求,然而现有技术若需要实现回溯,需要对用户操作时的页面内容进行录制,从而达到回溯的目的,但是直接录制页面不仅需要消耗较大的空间才能够存储录制内容,还存在回溯性较差的问题,因此页面在回溯前的录制以及回溯时的处理关系着各方的权益。In practical applications, the demand for backtracking of pages is relatively large. For example, in after-sales scenarios or network responsibility tracking scenarios, it may be necessary to backtrack the user's historical page access records to determine what the user did when purchasing products in the after-sales scenario. or determine the operations performed by the user in the network responsibility traceability scenario, and analyze the required information for subsequent responsibility determination or accountability; and the basis for realizing page backtracking is to record the user's operations on the page and operations. However, if the existing technology needs to realize the backtracking, it is necessary to record the page content when the user operates, so as to achieve the purpose of backtracking, but directly recording the page not only consumes more Only a large space can store the recorded content, and there is also the problem of poor retrospectiveness. Therefore, the recording of the page before the retrospective and the processing during the retrospective are related to the rights and interests of all parties.

图1示出了根据本申请一实施例提供的一种页面处理方法的流程图,具体包括以下步骤:FIG. 1 shows a flowchart of a page processing method provided according to an embodiment of the present application, which specifically includes the following steps:

步骤S102,接收客户端针对当前展示页面提交的操作请求。Step S102, receiving an operation request submitted by the client for the currently displayed page.

本申请提供的页面处理方法,为了能够减少录制内容的数据量,以及提高页面回溯强度,在接收到客户端针对当前展示页面提交操作请求后,确定该操作请求对应的目标页面代码,并将目标页面代码发送至客户端以实现客户端绘制出展示页面,此时将根据所述目标页面代码和发送代码的时间生成目标关键帧,并确定当前展示页面对应的关键帧的存储块,将目标关键帧写入所述存储块并更新所述存储块的记录标识,实现在用户通过客户端对页面进行操作时,记录页面对应的底层代码即可实现页面回溯的需求,无需记录页面绘制之后的展示内容,很大程度上减少了存储的数据量,并且通过代码实现对页面回溯的回溯性较强,进一步确保了回溯出的页面是客户端已经展示过的页面,从而使得各方的权益均可以得到保障。In the page processing method provided by this application, in order to reduce the data volume of the recorded content and improve the page backtracking strength, after receiving an operation request submitted by the client for the current display page, the target page code corresponding to the operation request is determined, and the target The page code is sent to the client to enable the client to draw the display page. At this time, the target key frame will be generated according to the target page code and the time of sending the code, and the storage block of the key frame corresponding to the current display page will be determined, and the target key frame will be determined. The frame is written into the storage block and the record identifier of the storage block is updated, so that when the user operates the page through the client, the bottom-level code corresponding to the page can be recorded to realize the requirement of page backtracking, and there is no need to record the display after the page is drawn. content, which greatly reduces the amount of stored data, and the backtracking of the page is achieved through code, which further ensures that the backtracked page is the page that has been displayed by the client, so that the rights and interests of all parties can be be guaranteed.

具体实施时,所述客户端具体是指承载所述当前展示页面的终端设备,可以是手机、电脑或者平板电脑等;相应的,所述当前展示页面具体是指当前客户端所展示的页面,并且该页面已经完成记录(录制),需要说明的是,本实施例中提及的页面均为需要进行记录的页面,以此来描述页面处理的过程以及页面回溯的过程。In specific implementation, the client specifically refers to the terminal device that carries the currently displayed page, which may be a mobile phone, a computer, or a tablet computer, etc. Correspondingly, the currently displayed page specifically refers to the page displayed by the current client, And the page has 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 the process of page processing and the process of page backtracking.

基于此,所述操作请求具体是指用户通过所述客户端展示的当前展示页面所提交的请求,所述操作请求可以是在所述当前展示页面输入信息的请求,或者点击当前展示页面中的内容需要进行页面跳转的请求,之后在向所述客户端反馈该请求对应的展示页面的同时,还需要对展示页面的代码进行记录并存储,以方便后续能够进行页面的回溯。Based on this, the operation request specifically refers to a request submitted by the user through the current display page displayed by the client, and the operation request may be a request for inputting information on the currently displayed page, or clicking on the current display page in the current display page. The content needs to perform a page jump request, and then when the display page corresponding to the request is fed back to the client, the code of the display page needs to be recorded and stored, so as to facilitate subsequent page backtracking.

进一步的,为了能够对客户端所展示的当前展示页面在后续进行回溯,需要基于客户端最初始的展示页面进行创建存储块,以及生成所述存储块的记录标识,从而实现后续基于最初始的展示页面进行的一连串操作及其相应的其他展示页面对应的代码都可以存储至该存储块,实现回溯时能够将客户端从最初始的展示页面到最终的展示页面相关内容都还原出来并展示,从而分析出客户端所属的用户通过一系列展示页面都做了什么操作,本实施例中,创建初始展示页面对应的存储块的过程如下所述:Further, in order to be able to backtrack the current display page displayed by the client in the future, it is necessary to create a storage block based on the initial display page of the client, and generate the record identifier of the storage block, so as to realize the subsequent follow-up based on the initial display page. A series of operations performed on the display page and the corresponding codes of other display pages can be stored in this storage block, and the client can restore and display relevant content from the initial display page to the final display page when backtracking is realized. Thus, it is analyzed what operations the user belonging to the client has done through a series of display pages. In this embodiment, the process of creating a storage block corresponding to the initial display page is as follows:

接收所述客户端上传的页面查看请求,所述页面查看请求中携带有初始页面标识和用户标识;receiving a page viewing request uploaded by the client, where the page viewing request carries an initial page identifier and a user identifier;

根据所述初始页面标识确定初始页面代码,并将所述初始页面代码发送至所述客户端;Determine an initial page code according to the initial page identifier, and send the initial page code to the client;

根据所述初始页面代码和发送所述初始页面代码的时间生成初始关键帧;generating an initial key frame according to the initial page code and the time of sending the initial page code;

基于所述初始关键帧创建所述存储块,并根据所述用户标识为所述存储块配置所述记录标识。The storage block is created based on the initial key frame, and the recording identifier is configured for the storage block according to the user identifier.

具体的,所述页面查看请求具体是指客户端上传的针对初始页面进行查看的请求,所述初始页面具体是指客户端通过输入网址后需要由服务端下发的代码所生成的页面,该页面是客户端在一定时间内第一次请求展示的页面;所述初始页面标识具体是指所述初始页面对应的唯一标识,使得服务端可以通过该标识确定客户端需求的页面;所述用户标识具体是指持有客户端的用户所对应的唯一标识;所述初始页面代码具体是指浏览器构建所述初始页面所需要的底层代码;所述发送初始页面代码的时间具体是指服务端向所述客户端发送所述初始页面代码的时间。Specifically, the page viewing request specifically refers to a request for viewing an initial page uploaded by the client, and the initial page specifically refers to a page generated by the client after inputting a URL and needs to be issued by the code from the server. The page is the page that the client requests to display for the first time within a certain period of time; the initial page identifier specifically refers to the unique identifier corresponding to the initial page, so that the server can determine the page required by the client through the identifier; the user The identifier specifically refers to the unique identifier corresponding to the user holding the client; the initial page code refers to the underlying code required by the browser to construct the initial page; the time to send the initial page code refers to the time when the server sends the initial page code. The time when the client sends the initial page code.

其中,所述初始关键帧具体是指基于发送时间和初始页面代码所生成的相关信息;所述存储块具体是指由关键帧组成的集合,所述记录标识具体是指记录此次客户端一系列操作对应的标识,并且所述记录标识与存储块相对应,随着存储块中关键帧的增加,记录标识也随之更新,直至一系列操作完成之后,记录标识停止更新,并进行存储,以实现后续可以根据记录标识读取客户端在某一时间段内的全部展示页面对应的代码,从而回溯出相关页面也进行相应的业务处理过程。Wherein, the initial key frame specifically refers to the relevant information generated based on the sending time and the initial page code; the storage block specifically refers to a set composed of key frames, and the record identifier specifically refers to recording the current client-side one The identifier corresponding to the series of operations, and the record identifier corresponds to the storage block, along with the increase of key frames in the storage block, the record identifier is also updated accordingly, until after the completion of the series of operations, the record identifier stops updating and is stored, In order to realize that the code corresponding to all the display pages of the client in a certain period of time can be read according to the record identifier in the future, so that the relevant pages can be traced back and the corresponding business processing process can be performed.

基于此,在接收到所述客户端上传的页面查看请求后,根据所述页面查看请求中携带的初始页面标识确定客户端需要展示的页面,并基于所述初始页面标识确定所述客户端需要展示的初始页面的初始页面代码,并将所述初始页面代码发送至所述客户端,由客户端进行解析、构建和绘制以生成初始页面,同时需要对所述初始页面进行录制,即记录所述初始页面的初始页面代码,以实现后续能够根据该代码完成反向生成初始页面。Based on this, after receiving the page viewing request uploaded by the client, determine the page that the client needs to display according to the initial page identifier carried in the page viewing request, and determine the page that the client needs to display based on the initial page identifier The initial page code of the initial page displayed, and the initial page code is sent to the client, and the client parses, constructs and draws to generate the initial page, and the initial page needs to be recorded, that is, record all the The initial page code of the initial page is described, so that the initial page can be reversely generated according to the code in the future.

进一步的,将根据所述初始页面代码和发送所述初始页面代码的时间生成所述初始关键帧,并且由于后续客户端还可能继续对初始页面进行操作或者通过初始页面跳转至其他页面,故根据所述初始关键帧创建所述存储块,用于集成客户端基于初始页面进行操作或跳转的一系列页面所对应的代码,同时根据所述客户端所属用户的用户标识生成所述存储块的记录标识,以实现页面回溯时能够根据用户标识确定需要回溯该用户浏览过的页面,更有针对性的进行页面回溯以及可以将相关联的页面统一存储,进一步减少了记录相关页面的信息所占用的存储空间。Further, the initial key frame will be generated according to the initial page code and the time when the initial page code is sent, and since the subsequent client may continue to operate on the initial page or jump to other pages through the initial page, therefore The storage block is created according to the initial key frame, for integrating codes corresponding to a series of pages that the client operates or jumps based on the initial page, and the storage block is generated according to the user ID of the user to which the client belongs. In order to achieve page backtracking, it can be determined according to the user ID to backtrack the pages that the user has browsed, and the page backtracking can be carried out in a more targeted manner and the associated pages can be stored in a unified manner, which further reduces the information required to record related pages. occupied storage space.

例如,用户U1通过电脑需要在购物网站T中购买商品时,将接收到用户U1通过电脑向服务端上传的页面查看请求,该请求中携带有购物网站T对应的页面标识ID_T,以及用户U1的用户标识ID_U1;之后服务端即可根据页面标识ID_T确定购物网站T的首页面对应的页面代码,并将购物网站T的首页面对应的页面代码发送至用户U1的电脑并展示,以供用户U1进行购物。For example, when the user U1 needs to purchase goods on the shopping website T through the computer, it will receive a page viewing request uploaded by the user U1 to the server through the computer, and the request carries the page identifier ID_T corresponding to the shopping website T, and the user U1's page ID_T. User identification ID_U1; then the server can determine the page code corresponding to the first page of the shopping website T according to the page identification ID_T, and send the page code corresponding to the first page of the shopping website T to the computer of user U1 and display it for display. User U1 makes a purchase.

并且,为了能够在后续产生售后纠纷时对用户U1购买商品时的操作进行回溯,将根据购物网站T的首页面对应的页面代码和向用户U1发送该代码的时间生成初始关键帧,并基于初始关键帧创建存储块,以用于对用户U1通过购物网站T进行购物时的全部操作所产生页面变化的过程对应的代码进行记录,同时根据用户U1的用户标识ID_U1生成存储块的记录标识,该记录标识在每次向存储块写入新的关键帧时进行更新,直至用户U1关闭购物网站T后,该记录标识停止更新并存储至元数据表,方便后续使用。In addition, in order to be able to retrospect the operation of the user U1 when purchasing the product in the event of subsequent after-sales disputes, the initial key frame will be generated according to the page code corresponding to the first page of the shopping website T and the time when the code is sent to the user U1, and based on The initial key frame creates a storage block to record the code corresponding to the process of page change generated by all operations when the user U1 performs shopping through the shopping website T, and generates a record identifier of the storage block according to the user ID_U1 of the user U1, The record identifier is updated every time a new key frame is written into the storage block, and until the user U1 closes the shopping website T, the record identifier stops updating and is stored in the metadata table for subsequent use.

综上,为了能够对客户端在一段时间内通过页面进行的全部操作进行记录,将根据客户端提交的初始页面查看请求对应的初始页面代码生成存储块,实现回溯时对客户端的一系列操作都能够进行回溯,不仅可以保证用户的权益,还能够提高应用场景的安全性,进一步促进应用场景规范性发展。In summary, in order to be able to record all the operations performed by the client through the page within a period of time, a storage block will be generated according to the initial page code corresponding to the initial page viewing request submitted by the client, and a series of operations on the client will be performed during backtracking. Being able to backtrack can not only guarantee the rights and interests of users, but also improve the security of application scenarios and further promote the normative development of application scenarios.

步骤S104,确定所述操作请求对应的目标页面代码,并发送至所述客户端。Step S104: Determine the target page code corresponding to the operation request, and send it to the client.

具体的,在上述接收客户端针对当前展示页面提交的操作请求的基础上,进一步的,说明客户端所属的用户需要通过当前展示页面跳转至下一页面,或者在当前展示页面中进行操作(输入信息或删除信息等),此时将根据所述操作请求向所述客户端发送操作请求对应的目标页面代码,使得客户端可以根据所述目标页面代码生成需要展示的页面,或者在当前展示页面中的窗口生成需要展示的内容,以供客户端所属用户进行观看和使用。Specifically, on the basis of receiving the operation request submitted by the client for the current display page, it is further explained that the user to which the client belongs needs to jump to the next page through the current display page, or perform operations on the current display page ( input information or delete information, etc.), at this time, the target page code corresponding to the operation request will be sent to the client according to the operation request, so that the client can generate the page to be displayed according to the target page code, or display it in the current The window in the page generates the content that needs to be displayed for viewing and use by the user to which the client belongs.

基于此,所述目标页面代码具体是指与所述操作请求对应的代码;在所述操作请求为点击当前展示页面中的内容后能够跳转至其他页面的请求的情况下,所述目标页面代码即为待跳转页面所对应的代码;在所述操作请求为点击当前展示页面中的内容后通过窗口展示其他内容的请求的情况下,所述目标页面代码即为通过窗口所展示的内容对应的代码。Based on this, the target page code specifically refers to the code corresponding to the operation request; if the operation request is a request to jump to other pages after clicking on the content in the currently displayed page, the target page The code is the code corresponding to the page to be jumped; in the case where the operation request is a request to display other content through the window after clicking the content in the current display page, the target page code is the content displayed through the window corresponding code.

进一步的,本实施例将以所述操作请求为跳转页面请求为例,对所述页面处理方法进行描述,相应的,所述目标页面代码即为待跳转页面所对应的代码,本实施例中,具体实现方式如下所述:Further, this embodiment will describe the page processing method by taking the operation request as a page jump request as an example. Correspondingly, the target page code is the code corresponding to the page to be jumped. In this example, the specific implementation is as follows:

在所述操作请求为跳转页面请求的情况下,根据所述跳转页面请求确定待跳转页面的标识;In the case that the operation request is a page jump request, determining the identifier of the page to be jumped according to the page jump request;

基于所述待跳转页面的标识确定跳转页面代码,并将所述跳转页面代码作为所述目标页面代码发送至所述客户端,其中,所述跳转页面代码用于生成待跳转页面。Determine the jump page code based on the identifier of the page to be jumped, and send the jump page code as the target page code to the client, where the jump page code is used to generate the page to be jumped page.

具体的,在所述操作请求为跳转页面请求的情况下,说明所述客户端需要展示当前展示页面之后关联的页面,故根据所述跳转页面请求确定待跳转页面的标识,之后基于所述待跳转页面的标识确定跳转页面代码,所述跳转页面代码即为所述待跳转页面对应的代码;之后将所述跳转页面代码作为所述目标页面代码发送至所述客户端即可,实现客户端通过跳转页面代码生成需要展示的页面。Specifically, in the case where the operation request is a page jump request, it means that the client needs to display the page associated with the currently displayed page, so the identifier of the page to be jumped is determined according to the page jump request, and then based on the The identifier of the page to be jumped determines the code of the page to be jumped, and the code of the page to be jumped is the code corresponding to the page to be jumped; then the code of the page to be jumped is sent as the code of the target page to the The client side is enough, so that the client can generate the page to be displayed by jumping the page code.

沿用上例,当用户U1点击购物网站T的首页面中的A商品时,需要跳转至A商品的商品详情页面,此时服务端接收到用户U1提交的跳转至A商品详情页面的跳转请求,并根据该跳转请求确定A商品详情页面的页面标识ID_A,并根据页面标识ID_A确定A商品详情页面的页面代码,将A商品详情页面的页面代码作为目标页面代码发送至用户U1的电脑,即可通过电脑向用户U1展示A商品详情页面,供用户U1进行浏览。Following the above example, when the user U1 clicks the product A on the home page of the shopping website T, it needs to jump to the product details page of the product A. At this time, the server receives the jump to the product details page of A submitted by the user U1. forwarding the request, and determine the page ID_A of the product details page of A according to the jump request, and determine the page code of the product details page of A according to the page ID_A, and send the page code of the product details page of A as the target page code to user U1's computer, the product details page of A can be displayed to the user U1 through the computer for the user U1 to browse.

综上,在确定所述操作请求为跳转页面请求的情况下,将根据所述跳转页面请求确定待跳转页面的标识,并将根据标识确定的跳转页面代码作为目标页面代码发送至所述客户端,后续将对所述跳转页面代码进行记录和存储,从而满足回溯页面时能够确定客户端所展示的内容。To sum up, in the case where it is determined that the operation request is a page jump request, the identifier of the page to be jumped will be determined according to the page jump request, and the page code of the jump page determined according to the identifier will be sent to the target page code as the target page code. The client will subsequently record and store the jump page code, so that the content displayed by the client can be determined when the page is backtracked.

步骤S106,根据所述目标页面代码和发送所述目标页面代码的时间生成目标关键帧。Step S106, generating a target key frame according to the target page code and the time when the target page code is sent.

具体的,在上述向所述客户端发送所述目标页面代码的基础上,进一步的,为了能够对所述客户端展示的页面进行有效的回溯,需要对所述目标页面代码进行记录,从而实现后续能够根据代码反向生成客户端所展示的页面,以供相应的业务处理。Specifically, on the basis of the above-mentioned sending of the target page code to the client, further, in order to effectively backtrack the page displayed by the client, the target page code needs to be recorded, so as to achieve Subsequently, the page displayed by the client can be reversely generated according to the code for corresponding business processing.

基于此,在记录所述目标业务代码的过程中,为了能够方便页面回溯时准确的定位需要回溯的页面以及方便管理,可以根据所述目标页面代码和发送所述目标页面代码的时间生成所述目标关键帧,从而实现在记录所述目标页面代码之后,若需要回溯该页面,可以通过时间确定客户端所展示的页面的代码,根据该代码进行页面生成即可确定客户端所展示的内容,用于相应的业务处理即可。Based on this, in the process of recording the target business code, in order to facilitate accurate positioning of the page that needs to be backtracked during page backtracking and facilitate management, the target page code and the time when the target page code is sent can be generated. The target key frame, so that after recording the target page code, if you need to backtrack the page, the code of the page displayed by the client can be determined by time, and the content displayed by the client can be determined by generating the page according to the code. It can be used for corresponding business processing.

沿用上例,在确定用户U1的操作请求为跳转至A商品的商品详情页面的情况下,将记录A商品详情页面的页面代码,并确定向用户U1的电脑发送A商品详情页面的页面代码的时间是2020-01-25-12:36:05,此时将根据A商品详情页面的页面代码和发送A商品详情页面的页面代码的时间生成目标关键帧,以用于写入基于初始关键帧创建的存储块,从而实现在需要对用户U1的浏览过程进行回溯时,抓取在该时间段的A商品详情页面的页面代码即可生成A商品详情页面。Following the above example, if it is determined that the operation request of user U1 is to jump to the product details page of product A, the page code of product details page A will be recorded, and it is determined to send the page code of product details page A to the computer of user U1. The time is 2020-01-25-12:36:05. At this time, the target key frame will be generated according to the page code of the product detail page of A and the time when the page code of the product detail page of A will be sent for writing based on the initial key The storage block created by the frame, so that when the browsing process of user U1 needs to be backtracked, the page code of the product details page of A in this time period can be grabbed to generate the product details page of A.

步骤S108,确定所述当前展示页面对应的关键帧的存储块,将所述目标关键帧写入所述存储块并更新所述存储块的记录标识。Step S108: Determine the storage block of the 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.

具体的,在上述根据所述目标页面代码和发送所述目标页面代码的时间生成所述目标关键帧的基础上,进一步的,需要将所述目标关键帧也写入存储所述当前展示页面对应的关键帧的存储块,实现通过所述存储块表达所述客户端在一段时间内所展示的页面以及相关的操作过程;其中,所述关键帧具体是指当前展示页面的关键帧,所述目标关键帧具体是指目标展示页面对应的关键帧。Specifically, on the basis of the above-mentioned generation of the target key frame according to the target page code and the time when the target page code is sent, further, the target key frame needs to be written and stored corresponding to the current display page. The storage block of the key frame, realizes that the page displayed by the client in a period of time and the related operation process are expressed by the storage block; wherein, the key frame specifically refers to the key frame of the currently displayed page, and the The target key frame specifically refers to the key frame corresponding to the target display page.

基于此,在确定所述当前展示页面对应的关键帧的存储块后,将所述目标关键帧写入所述存储块,并更新所述存储块的记录标识;但是由于所述客户端后续还可能上传其他操作请求,故可以在每次针对操作请求反馈页面代码后,完成针对不同页面代码创建关键帧并写入所述存储块,对所述记录标识进行连续更新,直至客户端上传关闭页面请求的情况下,将最后一次更新后的记录标识作为最终需要存储的记录标识,实现后续通过该标识即可获取到存储客户端完整浏览过程的页面代码,根据该页面代码即可回溯出需要审核的页面。Based on this, after determining the storage block of the key frame corresponding to the current display page, the target key frame is written into the storage block, and the record identifier of the storage block is updated; Other operation requests may be uploaded, so each time the page code is fed back for the operation request, the key frame can be created for different page codes and written into the storage block, and the record identifier can be continuously updated until the client uploads and closes the page In the case of request, the record identifier after the last update is used as the record identifier that needs to be finally stored, so that the page code that stores the complete browsing process of the client can be obtained through the identifier later, and the page code that needs to be reviewed can be traced back according to the page code. page.

进一步的,在将所述目标关键帧写入所述存储块的过程中,由于存储块的大小可以设定,若此系列操作对应的代码量超出存储块的大小,可能会导致存储块不连续的问题,进而在后续页面回溯时,可能无法完整的回溯全部页面,为了避免这一问题,可以将多个存储块统一使用一个记录标识,具体实现方式如下所述: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 amount of code corresponding to this series of operations exceeds the size of the storage block, the storage block may be discontinuous. In order to avoid this problem, one record identifier can be used for multiple storage blocks. The specific implementation method is as follows:

根据所述操作请求确定所述当前展示页面的当前页面标识,并根据所述当前页面标识读取元数据信息获得所述记录标识;Determine the current page identifier of the currently displayed page according to the operation request, and obtain the record identifier by reading metadata information according to the current page identifier;

确定所述记录标识对应的所述存储块,并判断所述存储块是否满足预设存储条件;determining the storage block corresponding to the record identifier, and judging whether the storage block satisfies a preset storage condition;

若是,将所述目标关键帧写入所述存储块,并根据写入结果更新所述存储块的所述记录标识。If so, write the target key frame into the storage block, and update the record identifier of the storage block according to the writing result.

若否,根据所述目标关键帧创建目标存储块,并基于所述目标存储块和所述存储块组成存储块集合;根据所述存储块的所述记录标识为所述存储块集合配置目标记录标识,所述目标记录标识表示所述目标关键帧写入完成后记录标识的更新结果。If not, 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; configure a target record for the storage block set according to the record identifier of the storage block The target record identifier represents the update result of the record identifier after the target key frame is written.

具体的,根据所述操作请求确定当前展示页面的当前页面标识,并基于所述当前页面标识读取元数据信息获得所述记录标识,所述元数据信息具体是指记录存储块中各个页面标识的信息;在确定所述记录标识后即可确定所述存储块,此时判断所述存储块是否满足预设存储条件,即判断所述存储块还能否继续写入目标关键帧,若是,说明所述存储块还未达到记录上限,则可以将所述目标关键帧写入所述存储块,并根据写入结果更新所述记录标识;若否,说明所述存储块已经达到记录上限,则需要重新创建新的存储块,用于继续记录所述目标关键帧。Specifically, the current page identifier of the currently displayed page is determined according to the operation request, and the record identifier is obtained by reading metadata information based on the current page identifier, where the metadata information specifically refers to each page identifier in the record storage block After determining the record identifier, the storage block can be determined, and at this time, it is judged whether the storage block satisfies the preset storage conditions, that is, whether the storage block can continue to write the target key frame, and if so, It means that the storage block has not yet reached the upper limit of recording, then the target key frame can be written into the storage block, and the record identifier is updated according to the writing result; if not, it means that the storage block has reached the upper limit of recording, Then, a new storage block needs to be recreated for continuing to record the target key frame.

重新创建存储块记录目标关键帧具体是指:根据所述目标关键帧创建目标存储块,并将所述目标存储块与所述存储块进行合并,获得所述存储块集合,同时根据所述存储块的记录标识为所述存储块集合配置目标记录标识,所述目标记录标识具体是指述目标关键帧写入完成后记录标识的更新结果,即将所述目标记录标识作为所述存储块集合的记录标识,实现在后续继续写入新的存储块或写入新的关键帧时,更新所述目标记录标识即可。Recreating a storage block and recording a target key frame specifically refers to: creating a target storage block according to the target key frame, and merging the target storage block with the storage block to obtain the storage block set, and at the same time according to the storage block The record identifier of the block is to configure the target record identifier for the storage block set, and the target record identifier specifically refers to the update result of the record identifier after the writing of the target key frame is completed, that is, the target record identifier is used as the storage block set. For the record identifier, it is only necessary to update the target record identifier when continuing to write a new storage block or write a new key frame subsequently.

沿用上例,在确定基于购物网站T的首页面对应的初始关键帧创建的存储块后,此时判断存储块是否能够继续写入目标关键帧,若是,说明存储块中还能够继续写入关键帧,则直接将A商品详情页面对应的目标关键帧写入存储块,并将存储块的记录标识进行更新;若否,说明存储块中无法继续写入关键帧,则需要基于A商品详情页面对应的目标关键帧重新创建新的存储块,并基于新创建的存储块和购物网站T的首页面对应的存储块组装,生成存储块集合,同时按照购物网站T的首页面对应的存储块的记录标识为存储块即可配置目标记录标识,以实现后续无论写入新的关键帧还是创建新的存储块都可以添加至存储块集合,并更新目标记录标识即可。Following 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, it is determined whether the storage block can continue to be written to the target key frame. If so, it means that the storage block can continue to be written. key frame, directly write the target key frame corresponding to the product details page of A into the storage block, and update the record ID of the storage block; The target key frame corresponding to the page recreates a new storage block, and assembles the storage block based on the newly created storage block and the storage block corresponding to the first page of the shopping website T to generate a storage block set, and at the same time, according to the corresponding storage block of the first page of the shopping website T If the record identifier of the storage block is a storage block, the target record identifier can be configured, so that whether a new key frame is written or a new storage block is created in the future, it can be added to the storage block set, and the target record identifier can be updated.

综上,在向所述存储块中写入目标关键帧的过程中,可以根据需求创建新的存储块,并将新创建的存储块和已经存在的存储块进行关联,从而实现将客户端的一系列操作所对应的页面代码都关联起来并记录在一起,方便后续页面回溯时能够对这一系列操作对应的页面都进行回溯,更方便开展相应的业务处理过程。To sum up, in the process of writing the target key frame into the storage block, a new storage block can be created according to requirements, and the newly created storage block can be associated with the existing storage block, so as to realize a The page codes corresponding to the series of operations are associated and recorded together, so that the pages corresponding to the series of operations can be backtracked when the subsequent pages are backtracked, and it is more convenient to carry out the corresponding business processing process.

此外,在客户端上传关闭请求的情况下,说明所述客户端不需要继续浏览其他页面了,则不需要再继续进行页面代码的记录了,可以将已经记录完成的存储块写入存储空间,以及将最后更新完成的记录标识写入元数据表,本实施例中,具体实现方式如下所述:In addition, in the case where the client uploads a close request, it means that the client does not need to continue browsing other pages, so there is no need to continue to record the page code, and the storage block that has been recorded can be written into the storage space, And write the last updated record identifier into the metadata table, in this embodiment, the specific implementation is as follows:

在接收到所述客户端针对目标展示页面提交关闭请求的情况下,确定所述客户端所属用户的用户标识,其中,所述目标展示页面根据所述目标页面代码生成;In the case of receiving the closing request submitted by the client for the target display page, determining the user identifier of the user to which the client belongs, wherein the target display page is generated according to the target page code;

基于所述用户标识确定存储空间,将所述存储块存储至所述存储空间,以及将更新后的记录标识写入元数据表。A storage space is determined based on the user identifier, the storage block is stored in the storage space, and the updated record identifier is written into a metadata table.

具体的,所述目标展示页面具体是指根据所述目标页面代码生成的页面,在接收到所述客户端针对目标展示页面提交关闭请求的情况下,说明所述客户端的用户不需要再次浏览其他页面,则确定所述用户的用户标识,并根据所述用户标识确定存储空间,最后将所述存储块存储至所述存储空间,以及将更新后的记录标识写入元数据表,从而完成对客户端本次操作过程相对应的页面代码的记录。其中,所述存储空间可以是对象存储服务器,所述元数据表可以是Hbase,实现记录标识和所述存储块分开存储方便进行管理,以及可以提高存储块的持久化使用。Specifically, the target display page specifically refers to a page generated according to the target page code. In the case of receiving a closing request submitted by the client for the target display page, it means that the user of the client does not need to browse other page, then determine the user ID of the user, and determine the storage space according to the user ID, and finally store the storage block in the storage space, and write the updated record ID into the metadata table, thereby completing the The record of the page code corresponding to the current operation process of the client. Wherein, the storage space may be an object storage server, and the metadata table may be Hbase, so that the record identifier and the storage block can be stored separately to facilitate management, and the persistent use of the storage block can be improved.

此外,当需要对客户端的浏览页面进行回溯的情况下,就需要根据待回溯页面所属的记录标识确定存储块,并通过解析存储块获得关键帧,最后选择关键帧中与需要回溯的页面的时间对应的关键帧解析出代码,根据解析出的代码生成目标展示页面,从而分析出客户端的操作内容,以用于相关的业务分析过程,本实施例中,具体实现方式如下所述:In addition, when it is necessary to backtrack the browsing page of the client, it is necessary to determine the storage block according to the record identifier to which the page to be backtracked belongs, obtain the key frame by parsing the storage block, and finally select the time between the key frame and the page to be backtracked. The corresponding key frame parses out the code, and generates the target display page according to the parsed code, so as to analyze the operation content of the client for the relevant business analysis process. In this embodiment, the specific implementation method is as follows:

在获取到针对所述目标展示页面的页面回溯请求的情况下,根据所述页面回溯请求中的记录标识确定所述目标展示页面对应的存储块;In the case of obtaining the page backtracking request for the target display page, determining the storage block corresponding to the target display page according to the record identifier in the page backtracking request;

对所述存储块进行解析,获得与所述页面回溯请求中的回溯时间对应的所述目标关键帧;Parsing the storage block to obtain the target key frame corresponding to the backtracking time in the page backtracking request;

在所述目标关键帧包含所述跳转页面代码的情况下,通过对所述目标关键帧进行解析,获得所述跳转页面代码;In the case that the target key frame includes the jump page code, the jump page code is obtained by parsing the target key frame;

根据所述跳转页面代码构建代码关系表达,并根据所述代码关系表达进行页面布局;Build a code relationship expression according to the jump page code, and perform page layout according to the code relationship expression;

通过对页面布局结果进行绘制处理,生成所述目标展示页面,作为所述页面回溯请求的响应。The target display page is generated by rendering the page layout result as a response to the page backtracking request.

具体的,在获取到针对所述目标展示页面的页面回溯请求的情况下,根据所述页面回溯请求中记录标识确定所述目标展示页面对应的存储块,所述目标展示页面即为需要回溯的页面;之后再通过对所述存储块进行解析,即可获得与所述页面回溯请求中的回溯时间对应的所述目标关键帧;在所述目标关键帧包含所述跳转页面代码的情况下,通过对所述目标关键帧进行解析,获得所述跳转页面代码;根据所述跳转页面代码构建代码关系表达,所述代码关系表达具体是指根据关键帧中的跳转页面代码构建的dom虚拟树,最后在根据dom虚拟树进行页面布局,并通过页面布局结果进行绘制处理,即可生成所述目标展示页面。Specifically, when a page backtracking request for the target display page is obtained, the storage block corresponding to the target display page is determined according to the record identifier in the page backtracking request, and the target display page is the one that needs backtracking. Afterwards, by parsing the storage block, the target key frame corresponding to the backtracking time in the page backtracking request can be obtained; when the target keyframe includes the jump page code , obtain the jump page code by analyzing the target key frame; construct a code relationship expression according to the jump page code, and the code relationship expression specifically refers to the code relationship constructed according to the jump page code in the key frame The dom virtual tree, and finally the page layout is performed according to the dom virtual tree, and the drawing processing is performed through the page layout result, so that the target display page can be generated.

实际应用中,在获得所述跳转页面代码之后,说明页面代码是完整的,基于该部分代码即可生成所述目标展示页面,而生成所述目标展示页面的过程是首先根据html解析器对跳转页面代码进行解析,并根据解析结果构建dom虚拟树,之后通过分析dom虚拟树中的各个节点的关联关系,并按照一定的顺序对dom虚拟书进行遍历,即可确定各个节点的相关信息,再按照顺序将各个节点以及相应的子节点信息封装为多个集合,最后通过计算多个集合中各个节点的坐标和大小等CSS属性后布局到页面,即可绘制出目标展示页面,以供监管方进行观看。In practical applications, after the jump page code is obtained, it means that the page code is complete, and the target display page can be generated based on this part of the code. Jump to the page code for parsing, and build a dom virtual tree according to the parsing results. Then, by analyzing the relationship of each node in the dom virtual tree, and traversing the dom virtual book in a certain order, the relevant information of each node can be determined. , and then encapsulate the information of each node and corresponding sub-nodes into multiple sets in sequence, and finally by calculating the CSS properties such as the coordinates and size of each node in the multiple sets, and then laying them out on the page, the target display page can be drawn for display. watch by regulators.

例如,用户U2通过购物网站T购买了一件商品,花费了100元钱,并通过违规的手段领取了满减99元的优惠卷,用户U2的实付金额为1元钱,销售该商品的商家也只收到了1元的支付费用,当商家进行核账时发现利润不对,并核对出用户U2只支付了1元钱,此时就需要对用户U2购买该商品时的操作过程进行回溯,以分析该用户是否采用了违规手段。For example, user U2 purchased a commodity through shopping website T, spent 100 yuan, and obtained a discount coupon with a full discount of 99 yuan through illegal means. The merchant also only received a payment fee of 1 yuan. When the merchant checked the account, it found that the profit was wrong, and checked that the user U2 only paid 1 yuan. At this time, it is necessary to retrospect the operation process when the user U2 purchased the product. To analyze whether the user has adopted illegal means.

进一步的,此时接收到商家提交的页面回溯请求,该页面回溯请求需要回溯用户U2在购买商品时的全部页面,则根据页面回溯请求中的记录标识确定用户U2在购买该商品时对应的存储块,并通过对存储块进行解析,获得5个目标关键帧,再通过对5个目标关键帧进行解析,获得5组页面代码,基于5组页面代码构建5个dom虚拟树,并通过5个dom虚拟树生成5个页面,通过分析确定用户对客户端展示的第三个页面进行了违规操作,参见图2所示的内容确定用户U2通过插入脚本的方式对商品的价格进行了修改,导致第三个页面的底层代码发生了篡改,进而分析出用户U2的行为是不合规的,需要对用户U2进行更深一步的追究。Further, at this time, a page backtracking request submitted by the merchant is received, and the page backtracking request needs to backtrack all the pages of the user U2 when purchasing the product, then determine the storage corresponding to the user U2 when purchasing the product according to the record identifier in the page backtracking request. block, and by parsing the storage block, 5 target key frames are obtained, and then by parsing the 5 target key frames, 5 sets of page codes are obtained, and 5 dom virtual trees are constructed based on the 5 sets of page codes, and through 5 The dom virtual tree generates 5 pages. Through analysis, it is determined that the user has violated the third page displayed by the client. Referring to the content shown in Figure 2, it is determined that the user U2 has modified the price of the product by inserting a script, resulting in The underlying code of the third page has been tampered with, and then it is analyzed that the behavior of user U2 is not compliant, and user U2 needs to be further investigated.

综上,在接收到页面回溯请求的情况下,将根据存储的页面代码反向生成所述目标展示页面,不仅可以准确的生成所述目标展示页面,还能够减少录制客户端操作时耗费的资源占用率,进一步提高了页面回溯场景中的合规性。In summary, when a page backtracking request is received, the target display page will be reversely generated according to the stored page code, which can not only accurately generate the target display page, but also reduce the resources consumed when recording client operations. The occupancy rate further improves compliance in page backtracking scenarios.

本申请提供的页面处理方法,在接收到客户端针对当前展示页面提交操作请求后,确定该操作请求对应的目标页面代码,并将目标页面代码发送至客户端以实现客户端绘制出展示页面,此时将根据所述目标页面代码和发送代码的时间生成目标关键帧,并确定当前展示页面对应的关键帧的存储块,将目标关键帧写入所述存储块并更新所述存储块的记录标识,实现在用户通过客户端对页面进行操作时,记录页面对应的底层代码即可实现页面回溯的需求,无需记录页面绘制之后的展示内容,很大程度上减少了存储的数据量,并且通过代码实现对页面回溯的回溯性较强,进一步确保了回溯出的页面是客户端已经展示过的页面,从而使得各方的权益均可以得到保障。In the page processing method provided by the present application, after receiving an operation request submitted by the client for the current display page, the target page code corresponding to the operation request is determined, and the target page code is sent to the client so that the client can draw the display page, At this time, the target key frame will be generated according to the target page code and the time of sending the code, and the storage block of the key frame corresponding to the current display page will be determined, the target key frame will be written into the storage block, and the record of the storage block will be updated. It can realize the requirement of page backtracking by recording the underlying code corresponding to the page when the user operates the page through the client, without recording the displayed content after the page is drawn, which greatly reduces the amount of stored data, and through The code implementation has strong backtracking on page backtracking, which further ensures that the backtracked page is the page that has been displayed by the client, so that the rights and interests of all parties can be guaranteed.

图3示出了根据本申请一实施例提供的一种页面回溯方法的流程图,具体包括以下步骤:3 shows a flowchart of a page backtracking method provided according to an embodiment of the present application, which specifically includes the following steps:

步骤S302,获取页面回溯请求,所述页面回溯请求中包含待回溯页面对应的记录标识。Step S302: Obtain a page backtracking request, where the page backtracking request includes a record identifier corresponding to the page to be backtracked.

实际应用中,由于页面的回溯需求是比较大的,如在售后场景或网络责任追溯场景中,都可能需要通过对用户的历史页面访问记录进行回溯,从而确定用户在售后场景中购买商品时所做出的操作,或者确定用户在网络责任追溯场景中所做出的操作,分析出需要的信息以进行后续的责任认定或者责任追究;而实现页面回溯的基础就是需要记录用户对页面的操作以及操作后的页面内容,并进行存储,以支持页面回溯的需求,然而现有技术若需要实现回溯,需要对用户操作时的页面内容进行录制,从而达到回溯的目的,但是直接录制页面不仅需要消耗较大的空间才能够存储录制内容,还存在回溯性较差的问题,因此页面在回溯前的录制以及回溯时的处理关系着各方的权益。In practical applications, due to the large demand for backtracking of pages, for example, in after-sales scenarios or network responsibility tracking scenarios, it may be necessary to backtrack the user's historical page access records to determine the user's purchase of products in the after-sales scenario. The operation performed by the user, or the operation performed by the user in the network responsibility traceability scenario is determined, and the required information is analyzed for subsequent responsibility determination or accountability; The content of the page after the operation is stored to support the demand of page backtracking. However, if the existing technology needs to achieve backtracking, it is necessary to record the page content when the user operates, so as to achieve the purpose of backtracking, but recording the page directly requires not only consumption Only a larger space can store the recorded content, and there is also the problem of poor retrospectiveness. Therefore, the recording of the page before the retrospective and the processing during the retrospective are related to the rights and interests of all parties.

本实施例提供的页面回溯方法,为了能够减少资源占用空间,以及提高页面的回溯性,在获得所述页面回溯请求后,将根据页面回溯请求中包含的记录标识确定待回溯页面所属的存储块,并通过对所述存储块进行解析获得所述待回溯页面对应的关键帧,最后通过关键帧即可确定所述待回溯页面对应的页面代码,并根据所述页面代码即可生成目标页面并展示,实现了很大程度上减少了存储的数据量,并且通过代码实现对页面回溯的回溯性较强,进一步确保了回溯出的页面是客户端已经展示过的页面,从而使得各方的权益均可以得到保障。In the page backtracking method provided by this embodiment, in order to reduce the space occupied by resources and improve the backtrackability of the page, after obtaining the page backtracking request, the storage block to which the page to be backtracked is determined according to the record identifier included in the page backtracking request , and obtain the key frame corresponding to the page to be backtracked by parsing the storage block. Finally, the page code corresponding to the page to be backtracked can be determined through the key frame, and the target page can be generated according to the page code. Display, which greatly reduces the amount of stored data, and achieves strong backtracking of page backtracking through code, which further ensures that the backtracked page is the page that has been displayed by the client, so that the rights and interests of all parties can be improved. are guaranteed.

本实施例提供的页面回溯方法与上述实施例提供的页面处理方法相对应,在通过所述页面处理方法完成页面代码的存储之后,可以通过所述页面回溯方法实现页面的回溯,从而进行相关的业务处理过程;需要说明的是,本实施例提供的页面回溯方法相应的描述内容均可参见上述实施例的页面处理方法,本实施例在此不作过多赘述。The page backtracking method provided in this embodiment corresponds to the page processing method provided by the above-mentioned embodiment. After the page code is stored by the page processing method, the page backtracking method can be used to realize the backtracking of the page, so as to perform related Business processing process; it should be noted that, for the corresponding description content of the page backtracking method provided in this embodiment, reference may be made to the page processing method in the foregoing embodiment, which will not be repeated in this embodiment.

步骤S304,根据所述记录标识确定所述待回溯页面所属的存储块,并对所述存储块进行解析获得所述待回溯页面对应的关键帧。Step S304: Determine the storage block to which the page to be traced belongs according to the record identifier, and parse the storage block to obtain a key frame corresponding to the page to be traced.

步骤S306,基于所述关键帧确定所述待回溯页面对应的页面代码,根据所述页面代码生成目标页面并展示。Step S306: Determine the page code corresponding to the page to be backtracked based on the key frame, and generate and display a target page according to the page code.

具体的,在确定所述页面回溯请求中包含的记录标识之后,将根据所述记录标识确定所述待回溯页面所属的存储块,所述待回溯页面具体是指需要抽取并展示的页面,此时通过对所述存储块进行解析,即可获得所述待回溯页面的关键帧,最后通过所述关键帧确定所述待回溯页面的页面代码,根据所述页面代码即可生成目标页面,并向监管方进行展示;其中,所述目标页面即为根据所述页面代码生成的页面。Specifically, after determining the record identifier included in the page backtracking request, the storage block to which the page to be backtracked will be determined according to the record identifier. The page to be backtracked specifically refers to the page that needs to be extracted and displayed. By analyzing the storage block, the key frame of the page to be backtracked can be obtained, and finally the page code of the page to be backtracked is determined by the key frame, and the target page can be generated according to the page code, and Display it to the supervisor; wherein, the target page is a page generated according to the page code.

进一步的,在所述页面代码为跳转页面代码的情况下,说明基于所述页面代码即可生成一个完整的页面,则根据所述页面代码构建代码关系表达,并生成所述目标页面即可,本实施例中,具体实现方式如下所述:Further, in the case where the page code is a jump page code, it means that a complete page can be generated based on the page code, then a code relationship expression can be constructed according to the page code, and the target page can be generated. , in this embodiment, the specific implementation is as follows:

在所述页面代码为跳转页面代码的情况下,通过对所述关键帧进行解析获得跳转页面对应的跳转页面代码;In the case that the page code is a jump page code, the jump page code corresponding to the jump page is obtained by parsing the key frame;

根据所述跳转页面代码构建代码关系表达,并根据所述代码关系表达进行页面布局;Build a code relationship expression according to the jump page code, and perform page layout according to the code relationship expression;

通过对页面布局结果进行绘制处理,生成所述目标页面并展示。The target page is generated and displayed by rendering the page layout result.

具体的,在所述页面代码为跳转页面代码的情况下,说明所述待回溯页面为完整的页面,则根据通过解析所述关键帧确定所述跳转页面对应的跳转页面代码,之后根据所述跳转页面代码构建代码关系表达,并根据所述代码关系表达进行页面布局;通过对页面布局结果进行绘制处理,即可生成所述目标页面并展示。Specifically, if the page code is a jump page code, it means that the page to be backtracked is a complete page, then the jump page code corresponding to the jump page is determined by parsing the key frame, and then The code relationship expression is constructed according to the jump page code, and the page layout is performed according to the code relationship expression; the target page can be generated and displayed by drawing the page layout result.

此外,在所述页面代码为页面更新代码的情况下,说明无法通过所述页面代码生成一个完整的页面,需要配合基础页面代码才能够生成完整的页面并展示,此时则需要将所述页面更新代码添加至页面代码中,本实施例中,具体实现方式如下所述:In addition, in the case where the page code is a page update code, it means that a complete page cannot be generated through the page code, and a complete page can be generated and displayed only by cooperating with the basic page code. In this case, the page needs to be The update code is added to the page code. In this embodiment, the specific implementation is as follows:

在所述页面代码为页面更新代码的情况下,通过对所述关键帧进行解析获得所述待回溯页面对应的页面更新代码;In the case that the page code is a page update code, the page update code corresponding to the page to be backtracked is obtained by parsing the key frame;

将所述页面更新代码添加至所述待回溯页面的页面代码中,获得待回溯页面代码;adding the page update code to the page code of the page to be backtracked to obtain the page code to be backtracked;

根据所述待回溯页面代码构建代码关系表达,并根据所述代码关系表达进行页面布局;Build a code relationship expression according to the code of the page to be backtracked, and perform page layout according to the code relationship expression;

通过对页面布局结果进行绘制处理,生成所述目标页面并展示。The target page is generated and displayed by rendering the page layout result.

具体的,所述页面更新代码具体是指对某一页面进行调整后向服务端发送的代码,如用户通过点击当前展示页面中的“更换验证码”,只是对当前展示页面中的部分内容有了修改,其他的部分还是保留了当前展示页面的内容,则此时服务端只需要向客户端发送该部分内容所对应的页面代码即可完成展示相应的内容,则在进行页面代码记录时,由于当前展示页面的代码已经完成记录,故在此基础上,记录页面更新代码即可,后续在进行页面回溯时,将页面更新代码添加至当前展示页面的代码中即可生成更换验证码后的页面,以供相应的业务处理过程使用。Specifically, the page update code specifically refers to the code sent to the server after adjusting a certain page. For example, by clicking "replace verification code" in the currently displayed page, the user only changes some content in the currently displayed page. After modification, other parts still retain the content of the currently displayed page. At this time, the server only needs to send the page code corresponding to this part of the content to the client to complete the display of the corresponding content. When recording the page code, Since the code of the current display page has been recorded, it is sufficient to record the page update code on this basis. When the page is backtracked later, the page update code can be added to the code of the current display page to generate the replacement verification code. page for use by the corresponding business process.

例如,用户U3在购物网站T针对某一商品进行支付金额时,购物网站T的支付页面弹出支付窗口,用户U3通过扫码支付窗口中的二维码完成支付,此时服务端为了能够后续对用户U3购买该商品的过程进行回溯,将对支付窗口对应的页面更新代码进行记录;For example, when the user U3 pays the amount for a certain commodity on the shopping website T, a payment window pops up on the payment page of the shopping website T, and the user U3 completes the payment by scanning the QR code in the payment window. The process of user U3 purchasing the product is backtracked, and the page update code corresponding to the payment window will be recorded;

当需要对用户U3购买该商品时的页面进行回溯的情况下,此时确定页面更新代码无法生成一个完成的页面,就需要将页面更新代码添加至购物网站T的支付页面的代码中,从而生成包含支付窗口的支付页面,以确定用户U3所支付的实际金额等信息。When it is necessary to backtrack the page when the user U3 purchased the product, 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, thereby generating The payment page containing the payment window to determine the actual amount paid by the user U3 and other information.

综上,在页面代码为页面更新代码的情况下,为了能够回溯出完整的页面进行展示,可以选择待回溯页面的页面代码和页面更新代码进行整合,从而生成目标页面进行展示,不仅可以减少页面代码存储的数据量,还能够对微调整的页面进行回溯,进一步加强了页面的可回溯性。In summary, in the case where the page code is the page update code, in order to be able to trace back the complete page for display, you can select the page code of the page to be traced and the page update code to integrate, so as to generate the target page for display, which can not only reduce the number of pages The amount of data stored in the code can also be traced back to the fine-tuned page, which further enhances the traceability of the page.

本实施例提供的页面回溯方法,在获得所述页面回溯请求后,将根据页面回溯请求中包含的记录标识确定待回溯页面所属的存储块,并通过对所述存储块进行解析获得所述待回溯页面对应的关键帧,最后通过关键帧即可确定所述待回溯页面对应的页面代码,并根据所述页面代码即可生成目标页面并展示,实现了很大程度上减少了存储的数据量,并且通过代码实现对页面回溯的回溯性较强,进一步确保了回溯出的页面是客户端已经展示过的页面,从而使得各方的权益均可以得到保障。In the page backtracking method provided by this embodiment, after obtaining the page backtracking request, the storage block to which the page to be backtracked belongs is determined according to the record identifier included in the page backtracking request, and the to-be-backtracked page is obtained by parsing the storage block. The key frame corresponding to the backtracking page, and finally the page code corresponding to the page to be backtracked can be determined through the key frame, and the target page can be generated and displayed according to the page code, which greatly reduces the amount of stored data , and the backtracking of the page is realized through the code, which further ensures that the backtracked page is the page that has been displayed by the client, so that the rights and interests of all parties can be guaranteed.

下述结合附图4,以本申请提供的页面处理方法和页面回溯方法在售后场景中的应用为例,对所述页面处理方法和页面回溯方法进行进一步说明。其中,图4示出了本申请一实施例提供的一种应用于售后场景的处理流程图,具体包括以下步骤:The following describes the page processing method and the page backtracking method by taking the application of the page processing method and the page backtracking method provided by the present application in an after-sales scenario as an example with reference to FIG. Wherein, FIG. 4 shows a processing flow chart applied to an after-sales scenario provided by an embodiment of the present application, which specifically includes the following steps:

步骤S402,接收客户端针对当前展示页面提交的操作请求。Step S402, receiving an operation request submitted by the client for the currently displayed page.

步骤S404,在操作请求为页面更新请求的情况下,根据页面更新请求确定当前展示页面中的待更新区域的标识。Step S404, in the case that the operation request is a page update request, determine the identifier of the area to be updated in the currently displayed page according to the page update request.

步骤S406,基于待更新区域的标识确定页面更新代码,并将页面更新代码作为目标页面代码发送至客户端。Step S406: Determine the 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.

其中,页面更新代码用于对当前展示页面中的待更新区域进行更新。The page update code is used to update the area to be updated in the currently displayed page.

步骤S408,根据目标页面代码和发送目标页面代码的时间生成目标关键帧。Step S408, generate a target key frame according to the target page code and the time when the target page code is sent.

步骤S410,确定当前展示页面对应的关键帧的存储块,将目标关键帧写入存储块并更新存储块的记录标识。Step S410: Determine the storage block of the 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.

步骤S412,在接收到客户端提交关闭请求的情况下,确定客户端所属用户的用户标识。Step S412, in the case of receiving the closing request submitted by the client, determine the user identifier of the user to which the client belongs.

步骤S414,基于用户标识确定存储空间,将存储块存储至存储空间,以及将更新后的记录标识写入元数据表。Step S414: Determine the storage space based on the user identifier, store the storage block in the storage space, and write the updated record identifier into the metadata table.

步骤S416,获取针对目标展示页面的页面回溯请求,并根据页面回溯请求中的记录标识确定目标展示页面对应的存储块。Step S416: Obtain a page backtracking request for the target display page, and determine a storage block corresponding to the target display page according to the record identifier in the page backtracking request.

步骤S418,对存储块进行解析,获得与页面回溯请求中的回溯时间对应的目标关键帧。Step S418: Parse the storage block to obtain a target key frame corresponding to the backtracking time in the page backtracking request.

步骤S420,通过对目标关键帧进行解析,获得页面更新代码,并将页面更新代码添加至当前展示页面的页面代码中,获得待回溯页面代码。In step S420, the page update code is obtained by parsing the target key frame, and the page update code is added to the page code of the currently displayed page to obtain the page code to be backtracked.

步骤S422,根据待回溯页面代码构建代码关系表达,并根据代码关系表达进行页面布局。In step S422, a code relationship expression is constructed according to the code of the page to be backtracked, and a page layout is performed according to the code relationship expression.

步骤S424,通过对页面布局结果进行绘制处理,生成目标展示页面。Step S424, generating a target display page by performing drawing processing on the page layout result.

具体的,当前展示页面为支付页面,基于此,在接收到客户端针对支付页面提交页面更新请求的情况下,将根据页面更新请求确定当前展示页面中的待更新区域标识,待更新区域具体是指当前展示页面中需要进行局部更新的区域,本实施例中,待更新区域为支付窗口,相应的,待更新区域标识即为支付窗口标识。Specifically, the currently displayed page is the payment page. Based on this, in the case of receiving a page update request submitted by the client for the payment page, the identifier of the area to be updated in the currently displayed page will be determined according to the page update request. The area to be updated is specifically Refers to the area in the currently displayed page that needs to be partially updated. In this embodiment, the area to be updated is the payment window, and correspondingly, the identifier of the area to be updated is the payment window identifier.

进一步的,通过支付窗口标识确定支付窗口代码,并将支付窗口代码发送至客户端用于支持客户端进行支付操作;此时为了能够在后续进行页面回溯,将根据支付窗口代码和发送支付窗口代码的时间生成目标关键帧,并将目标关键帧写入支付页面对应的关键帧的存储块,同时更新存储块的记录标识;当接收到客户端上传关闭请求的情况下,将确定客户端此过程中的操作结束,则将存储块存储至用户标识对应的对象存储服务器,以及将记录标识写入Hbase数据库。Further, the payment window code is determined by the payment window identifier, and the payment window code is sent to the client to support the client to perform payment operations; at this time, in order to enable subsequent page backtracking, the payment window code will be sent according to the payment window code and the payment window code. The target key frame is generated at the time of payment, and the target key frame is written into the storage block of the key frame corresponding to the payment page, and the record identifier of the storage block is updated at the same time; when the client receives the upload and close request, the client will determine this process. After the operation in , the storage block is stored in the object storage server corresponding to the user ID, and the record ID is written into the HBase database.

更进一步的,在获取到页面回溯请求的情况下,将根据页面回溯请求进行页面回溯处理,本实施例将对包含支付窗口的支付页面进行回溯;基于此,根据页面回溯请求中的记录标识确定存储块,并通过对存储块进行解析,获得目标关键这,之后再通过对目标关键帧进行解析,获得支付窗口代码,此时为了能够回溯包含支付窗口的支付页面,则需要将支付窗口代码添加至支付页面的页面代码中,生成待回溯页面代码;最后在根据待回溯页面代码构建代码关系表达,并根据代码关系表达进行页面布局,通过对页面布局结果进行绘制处理,即可生成包含支付窗口的支付页面,从而实现在售后场景中对用户的支付过程进行回溯。Further, when a page backtracking request is obtained, the page backtracking process will be performed according to the page backtracking request. In this embodiment, the payment page including the payment window will be backtracked; based on this, it is determined according to the record identifier in the page backtracking request. Store the block, and obtain the target key by parsing the storage block, and then obtain the payment window code by parsing the target key frame. At this time, in order to be able to backtrack the payment page containing the payment window, you need to add the payment window code. In the page code of the payment page, the code of the page to be backtracked is generated; finally, the code relationship expression is constructed according to the code of the page to be backtracked, and the page layout is carried out according to the code relationship expression. The payment page of , so as to realize the backtracking of the user's payment process in the after-sales scenario.

综上所述,实现在用户通过客户端对页面进行操作时,记录页面对应的底层代码即可实现页面回溯的需求,无需记录页面绘制之后的展示内容,很大程度上减少了存储的数据量,并且通过代码实现对页面回溯的回溯性较强,进一步确保了回溯出的页面是客户端已经展示过的页面,从而使得各方的权益均可以得到保障。To sum up, when the user operates the page through the client, the bottom-level code corresponding to the page can be recorded to realize the requirement of page backtracking, and there is no need to record the display content after the page is drawn, which greatly reduces the amount of stored data. , and the backtracking of the page is realized through the code, which further ensures that the backtracked page is the page that has been displayed by the client, so that the rights and interests of all parties can be guaranteed.

与上述方法实施例相对应,本申请还提供了页面处理装置实施例,图5示出了本申请一实施例提供的一种页面处理装置的结构示意图。如图5所示,该装置包括:Corresponding to the foregoing method embodiments, 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 by an embodiment of the present application. As shown in Figure 5, the device includes:

接收模块502,被配置为接收客户端针对当前展示页面提交的操作请求;The receiving module 502 is configured to receive an operation request submitted by the client for the current display page;

确定模块504,被配置为确定所述操作请求对应的目标页面代码,并发送至所述客户端;A determination module 504, configured to determine the target page code corresponding to the operation request, and send it to the client;

生成模块506,被配置为根据所述目标页面代码和发送所述目标页面代码的时间生成目标关键帧;A generating module 506, configured to generate a target key frame according to the target page code and the time of sending the target page code;

写入模块508,被配置为确定所述当前展示页面对应的关键帧的存储块,将所述目标关键帧写入所述存储块并更新所述存储块的记录标识。The writing module 508 is configured to determine the storage block of the 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.

一个可选的实施例中,所述页面处理装置,还包括:In an optional embodiment, the page processing apparatus further includes:

接收页面查看请求模块,被配置为接收所述客户端上传的页面查看请求,所述页面查看请求中携带有初始页面标识和用户标识;a module for receiving a page viewing request, 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;

发送初始页面代码模块,被配置为根据所述初始页面标识确定初始页面代码,并将所述初始页面代码发送至所述客户端;a sending initial page code module, configured to determine an initial page code according to the initial page identifier, and send the initial page code to the client;

生成初始关键帧模块,被配置为根据所述初始页面代码和发送所述初始页面代码的时间生成初始关键帧;generating an initial key frame module, configured to generate an initial key frame according to the initial page code and the time of sending the initial page code;

创建存储块模块,被配置为基于所述初始关键帧创建所述存储块,并根据所述用户标识为所述存储块配置所述记录标识。A storage block creating module is configured to create the storage block based on the initial key frame, and configure the recording identifier for the storage block according to the user identifier.

一个可选的实施例中,所述确定模块504,包括:In an optional embodiment, the determining module 504 includes:

第一确定标识单元,被配置为在所述操作请求为跳转页面请求的情况下,根据所述跳转页面请求确定待跳转页面的标识;a first determining identification unit, configured to determine the identification of the page to be jumped according to the page jump request when the operation request is a page jump request;

第一发送代码单元,被配置为基于所述待跳转页面的标识确定跳转页面代码,并将所述跳转页面代码作为所述目标页面代码发送至所述客户端,其中,所述跳转页面代码用于生成待跳转页面。The first sending code unit is configured to determine the page jump code based on the identifier of the page to be jumped, and send the page jump code as the target page code to the client, wherein the jump page code is The page-to-page code is used to generate the page to be redirected.

一个可选的实施例中,所述确定模块504,包括:In an optional embodiment, the determining module 504 includes:

第二确定标识单元,被配置为在所述操作请求为页面更新请求的情况下,根据所述页面更新请求确定所述当前展示页面中的待更新区域的标识;a second determining identification unit, configured to determine the identification of the area to be updated in the currently displayed page according to the page update request when the operation request is a page update request;

第二发送代码单元,被配置为基于所述待更新区域的标识确定页面更新代码,并将所述页面更新代码作为所述目标页面代码发送至所述客户端,其中,所述页面更新代码用于对所述当前展示页面中的待更新区域进行更新。The second code sending 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 as the target page code to the client, wherein the page update code is for updating the area to be updated in the currently displayed page.

一个可选的实施例中,所述写入模块508,包括:In an optional embodiment, the writing module 508 includes:

读取记录标识单元,被配置为根据所述操作请求确定所述当前展示页面的当前页面标识,并根据所述当前页面标识读取元数据信息获得所述记录标识;a record identification unit, configured to determine the current page identification of the currently displayed page according to the operation request, and to obtain the record identification by reading metadata information according to the current page identification;

判断单元,被配置为确定所述记录标识对应的所述存储块,并判断所述存储块是否满足预设存储条件;a judgment unit, configured to determine the storage block corresponding to the record identifier, and determine whether the storage block satisfies a preset storage condition;

若是,运行第一写入单元,所述第一写入单元,被配置为将所述目标关键帧写入所述存储块,并根据写入结果更新所述存储块的所述记录标识。If so, run a first writing unit, where 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 the writing result.

一个可选的实施例中,所述判断单元的判断结果为否,则运行如下单元:In an optional embodiment, if the judgment result of the judgment unit is no, the following unit is executed:

创建目标存储块单元,被配置为根据所述目标关键帧创建目标存储块,并基于所述目标存储块和所述存储块组成存储块集合;Create a target storage block 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;

第二写入单元,被配置为根据所述存储块的所述记录标识为所述存储块集合配置目标记录标识,所述目标记录标识表示所述目标关键帧写入完成后记录标识的更新结果。a second writing unit, configured to configure a target record identifier for the storage block set according to the record identifier of the storage block, where 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 module is configured to determine the user identification of the user to which the client belongs when receiving a closing request submitted by the client for the target display page, wherein the target display page is based on the target page code generate;

存储写入模块,被配置为基于所述用户标识确定存储空间,将所述存储块存储至所述存储空间,以及将更新后的记录标识写入元数据表。The storage writing module is configured to determine a storage space based on the user identifier, store the storage block in the storage space, and write the updated record identifier into the metadata table.

一个可选的实施例中,所述页面处理装置,还包括:In an optional embodiment, the page processing apparatus further includes:

确定存储块模块,被配置为在获取到针对所述目标展示页面的页面回溯请求的情况下,根据所述页面回溯请求中的记录标识确定所述目标展示页面对应的存储块;A storage block determining module, configured to determine a storage block corresponding to the target display page according to the record identifier in the page backtracking request when a page backtracking request for the target display page is obtained;

解析存储块模块,被配置为对所述存储块进行解析,获得与所述页面回溯请求中的回溯时间对应的所述目标关键帧;a memory block parsing module, configured to parse the memory block to obtain the target key frame corresponding to the backtracking time in the page backtracking request;

生成目标展示页面模块,被配置为基于所述目标关键帧确定所述目标页面代码,并根据所述目标页面代码生成所述目标展示页面,作为所述页面回溯请求的响应。A target display page generating 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 to the page backtracking request.

一个可选的实施例中,所述生成目标展示页面模块,包括:In an optional embodiment, the generating target display page module includes:

第一解析单元,被配置为在所述目标关键帧包含所述跳转页面代码的情况下,通过对所述目标关键帧进行解析,获得所述跳转页面代码;a first parsing unit, configured to obtain the jump page code by parsing the target key frame when the target key frame includes the jump page code;

第一页面布局单元,被配置为根据所述跳转页面代码构建代码关系表达,并根据所述代码关系表达进行页面布局;a first page layout unit, configured to construct a code relationship expression according to the jump page code, and to perform page layout according to the code relationship expression;

第一生成页面单元,被配置为通过对页面布局结果进行绘制处理,生成所述目标展示页面。The first page generating unit is configured to generate the target display page by performing drawing processing on the page layout result.

一个可选的实施例中,所述生成目标展示页面模块,包括:In an optional embodiment, the generating target display page module includes:

第二解析单元,被配置为在所述目标关键帧包含所述页面更新代码的情况下,通过对所述目标关键帧进行解析,获得所述页面更新代码;a second parsing unit, configured to obtain the page update code by parsing the target key frame when the target key frame contains the page update code;

添加页面代码单元,被配置为将所述页面更新代码添加至所述当前展示页面的页面代码中,获得待回溯页面代码;The adding page code unit is configured to add the page update code to the page code of the currently displayed page to obtain the page code to be backtracked;

第二页面布局单元,被配置为根据所述待回溯页面代码构建代码关系表达,并根据所述代码关系表达进行页面布局;a second page layout unit, configured to construct a code relationship expression according to the code of the page to be backtracked, and to perform page layout according to the code relationship expression;

第二生成页面单元,被配置为通过对页面布局结果进行绘制处理,生成所述目标展示页面。The second page generating unit is configured to generate the target display page by performing drawing processing on the page layout result.

本实施例提供的页面处理装置,在接收到客户端针对当前展示页面提交操作请求后,确定该操作请求对应的目标页面代码,并将目标页面代码发送至客户端以实现客户端绘制出展示页面,此时将根据所述目标页面代码和发送代码的时间生成目标关键帧,并确定当前展示页面对应的关键帧的存储块,将目标关键帧写入所述存储块并更新所述存储块的记录标识,实现在用户通过客户端对页面进行操作时,记录页面对应的底层代码即可实现页面回溯的需求,无需记录页面绘制之后的展示内容,很大程度上减少了存储的数据量,并且通过代码实现对页面回溯的回溯性较强,进一步确保了回溯出的页面是客户端已经展示过的页面,从而使得各方的权益均可以得到保障。The page processing apparatus provided by this embodiment, after receiving the operation request submitted by the client for the current display page, determines the target page code corresponding to the operation request, and sends the target page code to the client so that the client can draw the display page , at this time, the target key frame will be generated according to the target page code and the time of sending the code, and the storage block of the key frame corresponding to the current display page will be determined, and the target key frame will be written into the storage block and update the storage block. Recording the identification, realizes that when the user operates the page through the client, recording the underlying code corresponding to the page can realize the requirement of page backtracking, without recording the display content after the page is drawn, which greatly reduces the amount of stored data, and The backtracking of page backtracking is achieved through code, which further ensures that the backtracked page is the page that has been displayed by the client, so that the rights and interests of all parties can be guaranteed.

上述为本实施例的一种页面处理装置的示意性方案。需要说明的是,该页面处理装置的技术方案与上述的页面处理方法的技术方案属于同一构思,页面处理装置的技术方案未详细描述的细节内容,均可以参见上述页面处理方法的技术方案的描述。The above is a schematic solution of a page processing apparatus according to this embodiment. It should be noted that the technical solution of the page processing device and the technical solution of the above-mentioned page processing method belong to the same concept, and the details that are not described in detail in the technical solution of the page processing device can be referred to the description of the technical solution of the above-mentioned page processing method. .

与上述方法实施例相对应,本申请还提供了页面回溯装置实施例,图6示出了本申请一实施例提供的一种页面回溯装置的结构示意图。如图6所示,该装置包括:Corresponding to the above method embodiments, the present application also provides an embodiment of a page backtracking apparatus, and FIG. 6 shows a schematic structural diagram of a page backtracking apparatus provided by an embodiment of the present application. As shown in Figure 6, the device includes:

获取模块602,被配置为获取页面回溯请求,所述页面回溯请求中包含待回溯页面对应的记录标识;The obtaining module 602 is configured to obtain a page backtracking request, where the page backtracking request includes a record identifier corresponding to the page to be backtracked;

解析模块604,被配置为根据所述记录标识确定所述待回溯页面所属的存储块,并对所述存储块进行解析获得所述待回溯页面对应的关键帧;The parsing module 604 is configured to determine the storage block to which the page to be traced belongs according to the record identifier, and to parse the storage block to obtain a key frame corresponding to the page to be traced;

展示模块606,被配置为根据所述关键帧确定所述待回溯页面对应的页面代码,并根据所述页面代码生成目标页面并展示。The display module 606 is configured to determine the page code corresponding to the page to be backtracked according to the key frame, and generate and display a target page according to the page code.

一个可选的实施例中,所述展示模块606,包括:In an optional embodiment, the display module 606 includes:

第一解析单元,被配置为在所述页面代码为跳转页面代码的情况下,通过对所述关键帧进行解析获得跳转页面对应的跳转页面代码;a first parsing unit, configured to obtain a jump page code corresponding to a jump page by parsing the key frame when the page code is a jump page code;

第一布局单元,被配置为根据所述跳转页面代码构建代码关系表达,并根据所述代码关系表达进行页面布局;a first layout unit, configured to construct a code relationship expression according to the jump page code, and to perform page layout according to the code relationship expression;

第一展示单元,被配置为通过对页面布局结果进行绘制处理,生成所述目标页面并展示。The first display unit is configured to generate and display the target page by performing drawing processing on the page layout result.

一个可选的实施例中,所述展示模块606,包括:In an optional embodiment, the display module 606 includes:

第二解析单元,被配置为在所述页面代码为页面更新代码的情况下,通过对所述关键帧进行解析获得所述待回溯页面对应的页面更新代码;a second parsing unit, configured to obtain the page update code corresponding to the page to be backtracked by parsing the key frame when the page code is the page update code;

添加单元,被配置为将所述页面更新代码添加至所述待回溯页面的页面代码中,获得待回溯页面代码;The adding unit is configured to add the page update code to the page code of the page to be backtracked to obtain the code of the page to be backtracked;

第二布局单元,被配置为根据所述待回溯页面代码构建代码关系表达,并根据所述代码关系表达进行页面布局;a second layout unit, configured to construct a code relation expression according to the code of the page to be backtracked, and to perform page layout according to the code relation expression;

第二展示单元,被配置为通过对页面布局结果进行绘制处理,生成所述目标页面并展示。The second display unit is configured to generate and display the target page by performing drawing processing on the page layout result.

本实施例提供的页面回溯装置,在获得所述页面回溯请求后,将根据页面回溯请求中包含的记录标识确定待回溯页面所属的存储块,并通过对所述存储块进行解析获得所述待回溯页面对应的关键帧,最后通过关键帧即可确定所述待回溯页面对应的页面代码,并根据所述页面代码即可生成目标页面并展示,实现了很大程度上减少了存储的数据量,并且通过代码实现对页面回溯的回溯性较强,进一步确保了回溯出的页面是客户端已经展示过的页面,从而使得各方的权益均可以得到保障。The page backtracking device provided by this embodiment, after obtaining the page backtracking request, determines the storage block to which the page to be backtracked belongs according to the record identifier included in the page backtracking request, and obtains the to-be-backtracked page by parsing the memory block. The key frame corresponding to the backtracking page, and finally the page code corresponding to the page to be backtracked can be determined through the key frame, and the target page can be generated and displayed according to the page code, which greatly reduces the amount of stored data , and the backtracking of the page is realized through the code, which further ensures that the backtracked page is the page that has been displayed by the client, so that the rights and interests of all parties can be guaranteed.

上述为本实施例的一种页面回溯装置的示意性方案。需要说明的是,该页面回溯装置的技术方案与上述的页面回溯方法的技术方案属于同一构思,页面回溯装置的技术方案未详细描述的细节内容,均可以参见上述页面回溯方法的技术方案的描述。The above is a schematic solution of a page retracing apparatus according to this embodiment. It should be noted that the technical solution of the page backtracking device and the technical solution of the above-mentioned page backtracking method belong to the same concept, and the details that are not described in detail in the technical solution of the page backtracking device can be referred to the description of the technical solution of the above-mentioned page backtracking method. .

图7示出了根据本申请一实施例提供的一种计算设备700的结构框图。该计算设备700的部件包括但不限于存储器710和处理器720。处理器720与存储器710通过总线730相连接,数据库750用于保存数据。FIG. 7 shows a structural block diagram of a computing device 700 according to an embodiment of the present application. Components of the computing device 700 include, but are not limited to, memory 710 and processor 720 . The processor 720 is connected with the memory 710 through the bus 730, and the database 750 is used for storing data.

计算设备700还包括接入设备740,接入设备740使得计算设备700能够经由一个或多个网络760通信。这些网络的示例包括公用交换电话网(PSTN)、局域网(LAN)、广域网(WAN)、个域网(PAN)或诸如因特网的通信网络的组合。接入设备740可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC))中的一个或多个,诸如IEEE802.11无线局域网(WLAN)无线接口、全球微波互联接入(Wi-MAX)接口、以太网接口、通用串行总线(USB)接口、蜂窝网络接口、蓝牙接口、近场通信(NFC)接口,等等。Computing device 700 also includes access device 740 that enables computing device 700 to communicate via one or more networks 760 . Examples of such networks include a 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 (eg, a network interface card (NIC)), wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, World Interoperability for Microwave Access ( Wi-MAX) interface, Ethernet interface, Universal Serial Bus (USB) interface, cellular network interface, Bluetooth interface, Near Field Communication (NFC) interface, and the like.

在本申请的一个实施例中,计算设备700的上述部件以及图7中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图7所示的计算设备结构框图仅仅是出于示例的目的,而不是对本申请范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。In one embodiment of the present 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, eg, through a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 7 is only for the purpose of example, rather than limiting the scope of the present application. Those skilled in the art can add or replace other components as required.

计算设备700可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或PC的静止计算设备。计算设备700还可以是移动式或静止式的服务器。Computing device 700 may be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (eg, tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (eg, smart phones) ), wearable computing devices (eg, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. Computing device 700 may also be a mobile or stationary server.

其中,处理器720用于执行如下计算机可执行指令:The processor 720 is configured to execute the following computer-executable instructions:

接收客户端针对当前展示页面提交的操作请求;Receive the operation request submitted by the client for the current display page;

确定所述操作请求对应的目标页面代码,并发送至所述客户端;Determine the target page code corresponding to the operation request, and send it to the client;

根据所述目标页面代码和发送所述目标页面代码的时间生成目标关键帧;Generate a target key frame according to the target page code and the time when the target page code is sent;

确定所述当前展示页面对应的关键帧的存储块,将所述目标关键帧写入所述存储块并更新所述存储块的记录标识。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.

上述为本实施例的一种计算设备的示意性方案。需要说明的是,该计算设备的技术方案与上述的页面处理方法的技术方案属于同一构思,计算设备的技术方案未详细描述的细节内容,均可以参见上述页面处理方法的技术方案的描述。The above is a schematic solution of a computing device according to this 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. For details not described in detail in the technical solution of the computing device, refer to the description of the technical solution of the above-mentioned page processing method.

图8示出了根据本申请一实施例提供的另一种计算设备800的结构框图。该计算设备800的部件包括但不限于存储器810和处理器820。处理器820与存储器810通过总线830相连接,数据库850用于保存数据。FIG. 8 shows a structural block diagram of another computing device 800 provided according to an embodiment of the present application. Components of the computing device 800 include, but are not limited to, a memory 810 and a processor 820 . The processor 820 is connected with the memory 810 through the bus 830, and the database 850 is used for saving data.

计算设备800还包括接入设备840,接入设备840使得计算设备800能够经由一个或多个网络860通信。这些网络的示例包括公用交换电话网(PSTN)、局域网(LAN)、广域网(WAN)、个域网(PAN)或诸如因特网的通信网络的组合。接入设备840可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC))中的一个或多个,诸如IEEE802.11无线局域网(WLAN)无线接口、全球微波互联接入(Wi-MAX)接口、以太网接口、通用串行总线(USB)接口、蜂窝网络接口、蓝牙接口、近场通信(NFC)接口,等等。Computing device 800 also includes access device 840 that enables computing device 800 to communicate via one or more networks 860 . Examples of such networks include a 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 (eg, network interface card (NIC)), wired or wireless, such as IEEE 802.11 wireless local area network (WLAN) wireless interface, World Interoperability for Microwave Access ( Wi-MAX) interface, Ethernet interface, Universal Serial Bus (USB) interface, cellular network interface, Bluetooth interface, Near Field Communication (NFC) interface, and the like.

在本申请的一个实施例中,计算设备800的上述部件以及图8中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图8所示的计算设备结构框图仅仅是出于示例的目的,而不是对本申请范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。In one embodiment of the present 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, eg, through a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 8 is only for the purpose of example, rather than limiting the scope of the present application. Those skilled in the art can add or replace other components as required.

计算设备800可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或PC的静止计算设备。计算设备800还可以是移动式或静止式的服务器。Computing device 800 may be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (eg, tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (eg, smart phones) ), wearable computing devices (eg, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. Computing device 800 may also be a mobile or stationary server.

其中,处理器820用于执行如下计算机可执行指令:The processor 820 is configured to execute the following computer-executable instructions:

获取页面回溯请求,所述页面回溯请求中包含待回溯页面对应的记录标识;Obtain a page backtracking request, where the page backtracking request includes a record identifier corresponding to the page to be backtracked;

根据所述记录标识确定所述待回溯页面所属的存储块,并对所述存储块进行解析获得所述待回溯页面对应的关键帧;Determine the storage block to which the page to be traced belongs according to the record identifier, and parse the storage block to obtain a key frame corresponding to the page to be traced;

基于所述关键帧确定所述待回溯页面对应的页面代码,根据所述页面代码生成目标页面并展示。The page code corresponding to the page to be backtracked is determined based on the key frame, and a target page is generated and displayed according to the page code.

上述为本实施例的一种计算设备的示意性方案。需要说明的是,该计算设备的技术方案与上述的页面回溯方法的技术方案属于同一构思,计算设备的技术方案未详细描述的细节内容,均可以参见上述页面回溯方法的技术方案的描述。The above is a schematic solution of a computing device according to this 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. For details that are not described in detail in the technical solution of the computing device, please refer 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, which stores computer instructions, and when the instructions are executed by a processor, is used for:

接收客户端针对当前展示页面提交的操作请求;Receive the operation request submitted by the client for the current display page;

确定所述操作请求对应的目标页面代码,并发送至所述客户端;Determine the target page code corresponding to the operation request, and send it to the client;

根据所述目标页面代码和发送所述目标页面代码的时间生成目标关键帧;Generate a target key frame according to the target page code and the time when the target page code is sent;

确定所述当前展示页面对应的关键帧的存储块,将所述目标关键帧写入所述存储块并更新所述存储块的记录标识。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.

上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的页面处理方法的技术方案属于同一构思,存储介质的技术方案未详细描述的细节内容,均可以参见上述页面处理方法的技术方案的描述。The above is a schematic solution of a computer-readable storage medium of this embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the above-mentioned page processing method belong to the same concept, and the details 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 further provides another computer-readable storage medium, which stores computer instructions, which, when executed by a processor, are used for:

获取页面回溯请求,所述页面回溯请求中包含待回溯页面对应的记录标识;Obtain a page backtracking request, where the page backtracking request includes a record identifier corresponding to the page to be backtracked;

根据所述记录标识确定所述待回溯页面所属的存储块,并对所述存储块进行解析获得所述待回溯页面对应的关键帧;Determine the storage block to which the page to be traced belongs according to the record identifier, and parse the storage block to obtain a key frame corresponding to the page to be traced;

基于所述关键帧确定所述待回溯页面对应的页面代码,根据所述页面代码生成目标页面并展示。The page code corresponding to the page to be backtracked is determined based on the key frame, and a target page is generated and displayed according to the page code.

上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的页面回溯方法的技术方案属于同一构思,存储介质的技术方案未详细描述的细节内容,均可以参见上述页面回溯方法的技术方案的描述。The above is a schematic solution of a computer-readable storage medium of this 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 the details 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 describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

所述计算机指令包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The computer instructions include computer program code, which may be in source code form, object code form, an executable file, some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable media Electric carrier signals and telecommunication signals are not included.

需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本申请所必须的。It should be noted that, for the convenience of description, the foregoing method embodiments are described as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily all necessary for the present application.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

以上公开的本申请优选实施例只是用于帮助阐述本申请。可选实施例并没有详尽叙述所有的细节,也不限制该发明仅为所述的具体实施方式。显然,根据本申请的内容,可作很多的修改和变化。本申请选取并具体描述这些实施例,是为了更好地解释本申请的原理和实际应用,从而使所属技术领域技术人员能很好地理解和利用本申请。本申请仅受权利要求书及其全部范围和等效物的限制。The preferred embodiments of the present application disclosed above are only provided to help illustrate the present application. Alternative embodiments are not intended to exhaust all details, nor do they limit the invention to only the described embodiments. Obviously, many modifications and variations are possible in light of the content of this application. The present application selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present application, so that those skilled in the art can well understand and utilize the present application. This application is to be limited only by the claims, along with 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112905936A (en) * 2021-02-10 2021-06-04 微民保险代理有限公司 Page recording animation generation method, page operation log query method and computer equipment
CN113254320A (en) * 2021-06-05 2021-08-13 深圳市金斧子网络科技有限公司 Method and device for recording user webpage operation behaviors
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 杭州安恒信息技术股份有限公司 A page jumping method, apparatus, device 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 杭州安恒信息技术股份有限公司 A page jumping method, apparatus, device and readable storage medium

Non-Patent Citations (1)

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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112905936A (en) * 2021-02-10 2021-06-04 微民保险代理有限公司 Page recording animation generation method, page operation log query method and computer equipment
CN113377631A (en) * 2021-05-25 2021-09-10 北京猿力教育科技有限公司 User behavior backtracking method and device
CN113254320A (en) * 2021-06-05 2021-08-13 深圳市金斧子网络科技有限公司 Method and device for recording user webpage operation behaviors

Also Published As

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

Similar Documents

Publication Publication Date Title
US10748205B2 (en) Method, system, and graphic user interface for enabling a customer to access an artist profile and associated media file
US20210287250A1 (en) Providing data and analysis for advertising on networked devices
US10114802B2 (en) Method, device, and system for accessing third party platforms via a messaging application
US11501322B2 (en) Blockchain-based data processing systems, methods, and apparatuses
US20140149845A1 (en) Method for generating websites
US20150006333A1 (en) Generating websites and online stores from seed input
US20150007022A1 (en) Generating websites and business documents from seed input
US20140149240A1 (en) Method for collecting point-of-sale data
US20140149846A1 (en) Method for collecting offline data
CN112800354B (en) Policy issuing and intelligent pushing method, system, equipment and medium
CN113327146B (en) Information tracking method and device
CN111966428B (en) Page processing method and device, and page backtracking method and device
CN112214508B (en) Data processing method and device
CN111327514A (en) Method, system, server and storage medium for mass sending WeChat graphic and text messages
CN114003567A (en) Data acquisition method and related device
CN107977876B (en) Method and device for processing order information
US20260037589A1 (en) Object publishing method, computer-readable storage medium, and computer device
CN113760279A (en) Method and device for generating page
CN119003866A (en) Content pushing method, device, electronic equipment and readable storage medium
KR20200097544A (en) Platform system for resellers in contents curation marketing
KR102141484B1 (en) Method and system for generating automatically personal online shopping mall using social network service
CN116911912B (en) Method and device for predicting interaction objects and interaction results
KR102538748B1 (en) System for providing photo reward service
CN119807234B (en) Document retrieval methods, devices, equipment, storage media, and program products
CN111966429A (en) Applet processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310000 Zhejiang Province, Hangzhou City, Xihu District, Xixi Road 543-569 (continuous odd numbers) Building 1, Building 2, 5th Floor, Room 518

Patentee after: Alipay (Hangzhou) Digital Service Technology Co.,Ltd.

Country or region after: China

Address before: 801-11, Section B, 8th floor, 556 Xixi Road, Xihu District, Hangzhou City, Zhejiang Province, 310013

Patentee before: Alipay (Hangzhou) Information Technology Co., Ltd.

Country or region before: China