Data processing method and related apparatus

CN116150430BActive Publication Date: 2026-09-08TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111364158.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-17
Publication Date
2026-09-08
Estimated Expiration
2041-11-17

AI Technical Summary

Technical Problem

[0003]目前的方式下,存在各类应用中都不会生成像文本标记语言(HTML)一样清晰的元素节点,基于呈现对比的方案,存在只有对呈现清晰元素节点的特定网页才使用,难以跨终端进行获取处理的问题;存在元素节点在渲染层面失败、从元素动态快照提取至存储中间过程由于数据量极大引起的数据丢失问题,以及初始记录所有节点快照存在数据量较大导致的存储压力大的问题

Benefits of technology

[0023] In this way, by adjusting the framework logic in the target application to generate the corresponding target data output logic, the page update data calculated by the page update calculation logic is output. Compared with the comparison method based on node presentation, it can uniformly process the data recorded by the target application with similar data interception acceleration. Regardless of whether the application page in each terminal has clear element nodes, page update data can be effectively obtained and processed. The amount of data obtained and processed is reduced. Combined with the use of cross-terminal application framework, cross-terminal acquisition and processing can be reliably performed. After adjusting according to the standardized strategy of matching page update data, application record data that effectively records the target application can be generated, thereby realizing cross-terminal acquisition and processing of application record data, and effectively avoiding data loss, reducing data storage pressure and reducing system consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116150430B_ABST
    Figure CN116150430B_ABST
Patent Text Reader

Abstract

The application discloses a data processing method and related device, relates to the field of artificial intelligence technology, and can be applied to the fields of map Internet of Things, games, blockchains and the like. The method comprises the following steps: detecting update driving logic in a target application, wherein the target application further comprises framework logic of a cross-terminal application framework, and page update calculation logic is arranged in the framework logic; when it is detected that the update driving logic is triggered, the framework logic is adjusted and processed to generate target data output logic corresponding to the framework logic; data output processing is performed based on the target data output logic to obtain page update data calculated by the page update calculation logic; and the page update data is adjusted and processed according to a standardized strategy matched by the page update data to generate application record data of the target application. The application can realize application record data of cross-terminal processing applications, and can effectively avoid data loss and reduce data storage pressure and system consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet technology, specifically to a data processing method and related apparatus. Background Technology

[0002] Application record data in various applications (such as H5 applications, native applications, mini-programs, and even smart hardware) is of great significance to application development. Currently, the acquisition and processing of application record data is usually carried out with the user's permission or consent, based on a node presentation comparison scheme. That is, it compares all the initial element nodes after the application starts with element node snapshots at different times, collecting a large number of comparison snapshots to record the application.

[0003] The current approach suffers from several drawbacks. Unlike HTML, which produces clear element nodes in various applications, this approach relies on contrast-based rendering and is only applicable to specific web pages that display clear element nodes, making it difficult to process across different devices. Furthermore, it suffers from issues such as element node rendering failures, data loss due to the large amount of data during the process of extracting and storing dynamic element snapshots, and significant storage pressure caused by the large amount of data in the initial recording of all node snapshots.

[0004] Therefore, there are currently problems such as difficulty in obtaining and processing application record data across terminals, as well as data loss, high storage pressure, and high system consumption. Summary of the Invention

[0005] This application provides a data processing method and related apparatus that can acquire and process application record data across terminals, and can effectively avoid data loss, reduce data storage pressure, and reduce system consumption.

[0006] To address the aforementioned technical problems, this application provides the following technical solutions: According to one embodiment of this application, a data processing method includes: detecting update-driven logic in a target application, wherein the target application further includes framework logic of a cross-terminal application framework, and the framework logic includes page update calculation logic; when the update-driven logic is detected to be triggered, adjusting the framework logic to generate target data output logic corresponding to the framework logic; performing data output processing based on the target data output logic to obtain page update data calculated by the page update calculation logic; and adjusting the page update data according to a standardization strategy for matching the page update data to generate application record data of the target application.

[0007] According to one embodiment of this application, a data processing apparatus includes: a detection module for detecting update-driven logic in a target application, wherein the target application further includes framework logic of a cross-terminal application framework, and the framework logic includes page update calculation logic; an adjustment module for adjusting the framework logic when the update-driven logic is detected to generate target data output logic corresponding to the framework logic; an output module for performing data output processing based on the target data output logic to obtain page update data calculated by the page update calculation logic; and a processing module for adjusting the page update data according to a standardization strategy for matching the page update data to generate application record data of the target application.

[0008] In some embodiments of this application, the adjustment module includes a first hijacking unit, used to determine the target original logic in the framework logic; to perform adjustment processing on the target original logic in the framework logic, and to generate the target data output logic corresponding to the framework logic.

[0009] In some embodiments of this application, a second hijacking unit is included, configured to: determine the target output position in the framework logic; perform logic injection processing on the framework logic, and inject the target data output logic at the target output position.

[0010] In some embodiments of this application, the page update calculation logic includes page differential calculation logic; the output module includes a first interception unit, configured to: perform output processing based on the target data output logic to obtain the page update data generated by the page differential calculation logic performing differential calculation processing on the data received in the target application for changing the page and the page node tree in the target application.

[0011] In some embodiments of this application, the processing module includes a first processing unit, configured to: determine the classification strategy corresponding to the sub-data in the page update data; classify the sub-data in the page update data according to the classification strategy to obtain a set of sub-data of at least one category; and generate application record data of the target application based on the set of sub-data of at least one category.

[0012] In some embodiments of this application, the processing module includes a second processing unit, configured to: determine the serialization strategy corresponding to the sub-data in the page update data; perform serialization processing on the sub-data in the page update data according to the serialization strategy to obtain serialized page update data; and generate the application record data based on the serialized page update data.

[0013] In some embodiments of this application, the device further includes an event output module, used to detect and process the event triggering logic in the target application to collect event data corresponding to the events triggered by the event triggering logic in the target application; and to standardize the event data to generate application record data of the target application.

[0014] In some embodiments of this application, the apparatus further includes an upload preprocessing module, which includes: an acquisition unit for acquiring upload instruction information of the application record data; a dimensionality reduction processing unit for performing dimensionality reduction processing on the application record data according to the upload instruction information to obtain dimensionality-reduced data; and a data upload unit for uploading the dimensionality-reduced data to a target location.

[0015] In some embodiments of this application, the dimensionality reduction processing unit includes a filtering processing subunit, configured to: determine the filtering data information corresponding to the data to be filtered from the upload instruction information; perform filtering processing on the application record data according to the filtering data information to obtain de-identified data; and upload the de-identified data to the target location.

[0016] In some embodiments of this application, the dimensionality reduction processing unit includes a fragmentation processing subunit, configured to: obtain data fragmentation indication information from the upload indication information; perform fragmentation processing on the application record data according to the data fragmentation indication information to generate data fragments; and upload the data fragments to the target location.

[0017] In some embodiments of this application, the device further includes a collection module, configured to: receive a data callback instruction; obtain the upload instruction information from the callback instruction; and call back the application record data of the target application.

[0018] In some embodiments of this application, the apparatus further includes a detection module for: receiving a data processing stop instruction; and stopping the process of data processing on the target application according to the data processing stop instruction.

[0019] According to another embodiment of this application, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a computer's processor, causes the computer to perform the methods described in the embodiments of this application.

[0020] According to another embodiment of this application, an electronic device includes: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the methods described in the embodiments of this application.

[0021] According to another embodiment of this application, a computer program product or computer program includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations described in the embodiments of this application.

[0022] In this embodiment, update-driven logic in a target application is detected. The target application also includes framework logic for a cross-terminal application framework, which includes page update calculation logic. When the update-driven logic is detected to be triggered, the framework logic is adjusted to generate target data output logic corresponding to the framework logic. Data output processing is performed based on the target data output logic to obtain page update data calculated by the page update calculation logic. According to the standardization strategy for matching the page update data, the page update data is adjusted to generate application record data for the target application.

[0023] In this way, by adjusting the framework logic in the target application to generate the corresponding target data output logic, the page update data calculated by the page update calculation logic is output. Compared with the comparison method based on node presentation, it can uniformly process the data recorded by the target application with similar data interception acceleration. Regardless of whether the application page in each terminal has clear element nodes, page update data can be effectively obtained and processed. The amount of data obtained and processed is reduced. Combined with the use of cross-terminal application framework, cross-terminal acquisition and processing can be reliably performed. After adjusting according to the standardized strategy of matching page update data, application record data that effectively records the target application can be generated, thereby realizing cross-terminal acquisition and processing of application record data, and effectively avoiding data loss, reducing data storage pressure and reducing system consumption. Attached Figure Description

[0024] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0025] Figure 1 A schematic diagram of a system to which embodiments of this application can be applied is shown.

[0026] Figure 2 A flowchart of a data processing method according to an embodiment of this application is shown.

[0027] Figure 3 A flowchart of a data processing method according to another embodiment of this application is shown.

[0028] Figure 4 A flowchart illustrating a data processing procedure using an embodiment of this application in a given scenario is shown.

[0029] Figure 5 A flowchart illustrating method association according to one embodiment of this application is shown.

[0030] Figure 6 A flowchart illustrating a prototype extension according to one embodiment of this application is shown.

[0031] Figure 7 A flowchart illustrating instance generation according to one embodiment of this application is shown.

[0032] Figure 8 A flowchart illustrating a method call according to one embodiment of this application is shown.

[0033] Figure 9 A block diagram of a data processing apparatus according to another embodiment of this application is shown.

[0034] Figure 10 A block diagram of an electronic device according to an embodiment of this application is shown. Detailed Implementation

[0035] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0036] In the following description, specific embodiments of this application will be illustrated with reference to steps and symbols performed by one or more computers, unless otherwise stated. Therefore, these steps and operations will be referred to several times as being performed by a computer, and computer execution as referred to herein includes operations by a computer processing unit representing electronic signals of data in a structured format. This operation transforms the data or maintains it at a location in the computer's memory system, which can be reconfigured or otherwise alter the operation of the computer in a manner well known to those skilled in the art. The data structure maintained by the data is the physical location of the memory, which has specific characteristics defined by the data format. However, the principles of this application are described in the foregoing text, which is not intended to be limiting, and those skilled in the art will understand that many of the steps and operations described below can also be implemented in hardware.

[0037] It should be noted that in the specific embodiments of this application, data such as application update data and event data are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0038] Figure 1 A schematic diagram of a system 100 to which embodiments of this application can be applied is shown. Figure 1 As shown, system 100 may include server 101 and terminal 102. Server 101 and terminal 102 can be connected directly or indirectly through wireless or wired communication, and this application does not impose any special restrictions. Server 101 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. In one embodiment of this example, server 101 is a cloud server, and server 101 can provide artificial intelligence cloud services.

[0039] Terminal 102 can be any device, including but not limited to mobile phones, computers, smart voice interaction devices, smart home appliances, in-vehicle terminals, VR / AR devices, smartwatches, and computers, etc.

[0040] In one embodiment of this example, terminal 102 may: detect update-driven logic in a target application, the target application also including framework logic across a terminal application framework, the framework logic containing page update calculation logic; when the update-driven logic is detected to be triggered, adjust the framework logic to generate target data output logic corresponding to the framework logic; perform data output processing based on the target data output logic to obtain page update data calculated by the page update calculation logic; and adjust the page update data according to a standardized strategy for matching page update data to generate application record data for the target application.

[0041] In this embodiment, terminal 102 can upload application-recorded data directly or after further processing to the backend server 101. The target application can be any application, such as applications in the fields of map vehicle networks or games. In one embodiment, server 101 can be a node in a blockchain network, which can improve security when storing relevant data.

[0042] Figure 2 A flowchart illustrating a data processing method according to an embodiment of this application is shown schematically. The execution entity of this data processing method can be any terminal, such as... Figure 1 Terminal 102 is shown.

[0043] like Figure 2 As shown, the data processing method may include steps S210 to S240.

[0044] Step S210: Detect update-driven logic in the target application. The target application also includes framework logic for a cross-terminal application framework, which sets page update calculation logic. Step S220: When the update-driven logic is detected to be triggered, adjust the framework logic to generate target data output logic corresponding to the framework logic. Step S230: Perform data output processing based on the target data output logic to obtain page update data calculated by the page update calculation logic. Step S240: Adjust the page update data according to the standardization strategy for matching page update data to generate application record data for the target application.

[0045] In this way, based on steps S210 to S240, the corresponding target data output logic can be generated by adjusting the framework logic in the target application to output the page update data calculated by the page update calculation logic. Compared with the comparison method based on node presentation, the data recorded by the target application can be uniformly processed by Angshi Acceleration, which is similar to data interception. Regardless of whether the application page in each terminal has clear element nodes, the page update data can be effectively acquired and processed. The amount of data acquired and processed is reduced. Combined with the use of cross-terminal application framework, cross-terminal acquisition and processing can be reliably performed. After adjusting according to the standardized strategy of matching page update data, application record data that effectively records the target application can be generated, thereby realizing cross-terminal acquisition and processing of application record data. It can also effectively avoid data loss, reduce data storage pressure and reduce system consumption.

[0046] The following describes the specific steps involved in data processing.

[0047] In step S210, the update-driven logic in the target application is detected. The target application also includes framework logic for a cross-terminal application framework, in which page update calculation logic is set.

[0048] The target application can be any application, such as an H5 application, a native application (app), a mini-program, or even smart hardware. The update driver logic is the logic used to drive the target application to update, and it can be an update driver method within the target application's own runtime program.

[0049] A cross-platform application framework is a framework for developing cross-platform applications. In other words, the target application can be an application developed based on a cross-platform application framework. The framework logic of a cross-platform application framework is the application code compiled by the cross-platform application framework, and this application code is part of the target application's own runtime program.

[0050] Page update calculation logic is the logic used to calculate the page update data. This page update data can be the calculated portion of the page data that needs to be updated, rather than all the page data.

[0051] When the target application receives data to change the page (i.e., data used to update the page), the relevant logic in the cross-platform application framework can detect the change and call the set page update calculation logic to perform calculations, determine the page update data, and then call the update-driven logic to drive the target application to update. A detector can be set on the update-driven logic to detect whether it has been called.

[0052] In one embodiment, the cross-terminal application framework can be an MVVM (Model-View-ViewModel) framework, such as Vue or UNIAPP. The framework logic of the MVVM framework can be the application code in the compiled vendor file. The update-driven logic can be the `setData` method, and the page update calculation logic can be the `patch` method. The `setData` method can be called within the `patch` method, which can be page difference calculation logic based on the `diffData` algorithm. When the target application receives data to change the page, the relevant logic in the vendor file can detect the relevant changes, call the `patch` method for calculation processing, and finally call the `setData` method.

[0053] In step S220, when the update driving logic is detected to be triggered, the framework logic is adjusted to generate the target data output logic corresponding to the framework logic.

[0054] The detector can detect when the update-driven logic is invoked, i.e., when the update-driven logic is triggered. At this point, adjusting the framework logic can generate target data output logic corresponding to the framework logic, meaning this target data output logic is adapted to the framework logic. This target data output logic can be used to intercept data in the framework logic, i.e., it can be used to extract page update data calculated by the page update calculation logic from the framework logic. For example, adjusting the vendor file can generate target data output logic corresponding to the vendor file.

[0055] In one embodiment, step S220, adjusting the framework logic to generate the target data output logic corresponding to the framework logic, includes: determining the target original logic in the framework logic; adjusting the target original logic in the framework logic to generate the target data output logic corresponding to the framework logic.

[0056] The target source logic can be the data-transmitting logic within the framework logic, or it can be page update calculation logic or other source logic. By setting attributes and other parameters, the target source logic can be adjusted to become the target data output logic capable of outputting data. In this way, the target data output logic for outputting data can be generated efficiently and reliably.

[0057] In one embodiment, step S220 involves adjusting the framework logic to generate target data output logic corresponding to the framework logic. This includes: determining the target output position in the framework logic; and performing logic injection processing on the framework logic to inject target data output logic at the target output position. The target output position can be a predetermined logic injection position in the framework logic, where target data output logic for intercepting data can be flexibly injected as needed.

[0058] In step S230, data output processing is performed based on the target data output logic to obtain the page update data calculated by the page update calculation logic.

[0059] The page update calculation logic is the logic used to calculate the page update data. This page update data can be the calculated portion of the page data that needs to be updated, not all the page data. The target data output logic can intercept the page update data calculated by the page update calculation logic; that is, the target data output logic can output the page update data. This creates an intermediate interception layer in the system where the target application resides, intercepting data from the target application's framework logic.

[0060] For example, the page update data is calculated by the patch method based on the diffData algorithm. The patch method can pass the page update data to the called setData method. The target data output logic can intercept the page update data in the setData method or the patch method and output it.

[0061] In one embodiment, the page update calculation logic includes page differential calculation logic; step S230, performing data output processing based on the target data output logic to obtain page update data calculated by the update calculation logic, including: performing output processing based on the target data output logic to obtain page update data generated by the page differential calculation logic performing differential calculation processing on the data received in the target application for changing the page and the page node tree in the target application.

[0062] The page differential calculation logic is based on the diffData algorithm. During calculation, it constructs a complete virtual node tree from the data received from the target application used to modify the page. The page node tree in the target application is the actual node tree of the page within that application. The differential calculation process starts from the root node of the virtual node tree and compares the nodes at each level, determining which nodes in the page node tree need to be updated and identifying the updated data. This yields the updated page data (i.e., the difference between the data used to modify the page and the data in the page node tree). This calculation method is highly efficient and computationally lightweight.

[0063] In one embodiment, the page update calculation logic includes global calculation logic; step S230, performing data output processing based on the target data output logic to obtain page update data calculated by the update calculation logic, includes: performing output processing based on the target data output logic to obtain page update data generated by the global calculation logic performing global comparison calculation processing on the data received in the target application for changing the page and the page node tree in the target application.

[0064] The global computation logic is based on a global comparison algorithm. During global computation, the global computation logic can also form a complete virtual node tree from the data received by the target application that is used to change the page. The page node tree in the target application is the actual node tree of the page in the target application. During global computation processing, all nodes in the virtual node tree can be directly compared with all nodes in the page node tree. Then, it can calculate which nodes in the page node tree need to update data and determine the updated data in these nodes, thereby obtaining the page update data (that is, the difference data between the data used to change the page and the data in the page node tree).

[0065] In step S240, the page update data is adjusted and processed according to the standardized strategy for matching page update data to generate application record data for the target application.

[0066] A standardization strategy is a method for standardizing and adjusting intercepted page update data. Standardization strategies can include classification, serialization, record formatting, conversion, and encoding strategies. In one example, the standardization strategy for matching page update data could be a pre-defined unified standardization strategy. In another example, the standardization strategy for matching page update data could be a pre-defined standardization strategy that matches data from multiple pre-defined standardization strategies based on the data characteristics of the page update data (such as data source characteristics, such as the identifier of the target application).

[0067] Page update data is intercepted from the framework logic as relatively raw data. After being adjusted according to the standardized strategy for matching page update data, application record data that effectively records the target application can be generated. This allows for a further processing layer in the system to perform standardized adjustments on the page update data.

[0068] In one embodiment, step S240, adjusting the page update data according to the standardization strategy for matching page update data to generate application record data for the target application, includes: determining the classification strategy corresponding to the sub-data in the page update data; classifying the sub-data in the page update data according to the classification strategy to obtain a set of sub-data of at least one category; and generating application record data for the target application based on the set of sub-data of at least one category.

[0069] A classification strategy is a method for categorizing sub-data within page update data. This can be done by classifying sub-data according to their level (e.g., page level and component level). Based on this strategy, the sub-data in page update data can be categorized to obtain at least one set of sub-data in each category. For example, the sub-data set could include page-level sub-data sets and component-level sub-data sets.

[0070] After obtaining at least one category of sub-data sets, when generating application record data for the target application based on the at least one category of sub-data sets, one approach is to directly use the at least one category of sub-data sets as application record data; another approach is to serialize each sub-data set separately to obtain serialized sub-data sets as application record data for the target application.

[0071] In one embodiment, step S240, adjusting the page update data according to the standardization strategy for matching page update data to generate application record data for the target application, includes: determining the serialization strategy corresponding to the sub-data in the page update data; serializing the sub-data in the page update data according to the serialization strategy to obtain serialized page update data; and generating application record data based on the serialized page update data.

[0072] A serialization strategy is a method for serializing sub-data within page update data. Based on this strategy, sub-data in the page update data is serialized. One approach is to add a number to each sub-data, which records its position or order throughout the update process. Another example is to add timestamps or other additional information to the sub-data, thus generating serialized page update data. Generating application record data based on serialized page update data can effectively facilitate the backtracking of application traces.

[0073] When generating application record data based on serialized page update data, one approach is to directly use the serialized page update data as application record data. Another approach is to classify the serialized page update data to obtain at least one subset of data from each category, which can then be used as application record data for the target application.

[0074] In one embodiment, the data processing method further includes: detecting and processing the event triggering logic in the target application to collect event data corresponding to the events triggered by the event triggering logic in the target application; and standardizing the event data to generate application record data of the target application.

[0075] Event triggering logic refers to the logic within the target application that triggers events, such as the function that triggers a page scroll event. This logic can be detected globally; for example, a hook function can be used to detect page scroll events (onPageScroll), and the corresponding event data can be collected upon detection. This event data can be standardized according to a preset standardization strategy, or application log data can be generated for the target application. This allows for the formation of an interception layer within the system to further intercept event-related log data, thereby improving the effectiveness of application logging.

[0076] In one embodiment, see Figure 3 The data processing method further includes step S260: obtaining upload instruction information for application record data; performing dimensionality reduction processing on the application record data according to the upload instruction information to obtain dimensionality-reduced data; and uploading the dimensionality-reduced data to the target location.

[0077] Upload instructions are information used to instruct how to upload application-recorded data. These instructions can be pre-set or set in real-time by the relevant user (such as the target application's developer). The target location can be specified according to actual needs; for example, the target location could be... Figure 1 The server shown is 101.

[0078] Based on the upload instructions, the application's recorded data is dimensionality-reduced and then uploaded. This further reduces the amount of data transmitted during the data processing of application recording, reduces system consumption, and improves the reliability of the application recording process.

[0079] In this way, an upload preprocessing layer can be formed in the system to process the application's recorded data during upload. In one example, the upload instruction information can be received in the collection layer set up in the system where the target application resides, and then passed to the upload preprocessing layer.

[0080] In one embodiment, step S260 involves performing dimensionality reduction processing on the application record data according to the upload instruction information to obtain dimensionality-reduced data, including: determining the filter data information corresponding to the data to be filtered from the upload instruction information; performing filter processing on the application record data according to the filter data information to obtain de-identified data; and uploading the de-identified data to the target location.

[0081] The upload instruction information can include filter data information corresponding to the data to be filtered. Filter data information may include special data or event identifiers. Based on the filter data information, the application's recorded data is filtered to obtain anonymized data. Anonymized data filters out unnecessary information. When reporting based on anonymized data, the accuracy of the recorded data is improved, ensuring that only necessary information is recorded and reported, thus achieving data dimensionality reduction.

[0082] Furthermore, when uploading anonymized data to the target location, the anonymized data can be uploaded directly to the target location. Alternatively, the anonymized data can be fragmented and / or encrypted and / or compressed before being reported, which can further enhance the robustness and reliability of the data and improve the reliability of the application recording process.

[0083] The encryption process can be symmetric encryption using SHA256; the compression process can be compressed using Pakko (a JavaScript library that can compress / decompress content); and the data fragmentation process can be performed based on the data fragmentation instructions.

[0084] In one embodiment, step S260 involves performing dimensionality reduction processing on the application record data according to the upload instruction information to obtain dimensionality-reduced data, including: obtaining data fragmentation instruction information from the upload instruction information; performing fragmentation processing on the application record data according to the data fragmentation instruction information to generate data fragments; and uploading the data fragments to the target location.

[0085] The upload instruction information may include data fragmentation instructions, which may include whether fragmentation should be performed and / or specific fragmentation methods. Fragmenting application record data according to the data fragmentation instructions can further enhance data robustness and reliability.

[0086] Furthermore, when uploading data fragments to the target location, the data fragments can be uploaded directly. Alternatively, the data fragments can be filtered and / or encrypted and / or compressed before being reported, which can further enhance the accuracy and robustness of the data.

[0087] The encryption process can be performed using symmetric encryption with SHA256; the compression process can be performed using Pakko (a JavaScript library that can compress / decompress content); and the filtering process can be performed based on the filtering information corresponding to the data to be filtered.

[0088] In one embodiment, see Figure 3 Before obtaining the upload instruction information of the application record data in step S260, the data processing method further includes step S250: receiving a data callback instruction; obtaining the upload instruction information from the callback instruction, and calling back the application record data of the target application.

[0089] A collection layer can be formed within the system containing the target application. This layer allows relevant users (such as the target application's developers) to trigger data collection at specified times. When a user triggers data collection, they can generate a data callback command. This callback command can then trigger relevant methods (such as the `record` method) to retrieve and process the application's recorded data. For example, it can retrieve and adjust the processed application record data from the processing layer. When initiating collection, users can configure actions such as whether to automatically upload data. Furthermore, the data callback command can also carry upload instructions, such as whether to automatically upload. This further enhances the flexibility of data processing during application recording.

[0090] In one embodiment, see Figure 3 The data processing method further includes step S270: receiving a data processing stop instruction; stopping the process of data processing on the target application according to the data processing stop instruction.

[0091] The data processing flow is carried out without the user's awareness. Upon receiving a data processing stop command, the process of processing data on the target application is stopped. This allows for flexible control over the entire processing flow based on the data processing stop command, thus avoiding impact on users on the live network.

[0092] In one approach, a detection layer can be formed within the system where the target application resides. This detection layer can monitor the interception layer, processing layer, collection layer, and upload preprocessing layer within the system that handles data processing. When an anomaly is detected in the data processing process of any of these layers, a data processing stop command is generated to halt data processing on the target application's records. Simultaneously, relevant logs (such as reported data corresponding to processed application record data) can be reported. In another approach, the detection layer can also receive data processing stop commands set by relevant users (such as the target application's developer), allowing data processing throughout the recording process to be subject to gray-scale control. Once gray-scale control is disabled (i.e., a data processing stop command is received), no further data processing will occur.

[0093] Based on the method described in the above embodiments, the following will provide a more detailed explanation with examples of application scenarios. The meanings of relevant terms in this scenario are the same as in the aforementioned embodiments; please refer to the descriptions in the aforementioned embodiments for details. The data processing flow in this application scenario is as follows: Figure 4 As shown, in this scenario, the aforementioned embodiments of this application are used to process data on the target application in order to record the application data.

[0094] In this application scenario, the system where the target application is located is equipped with an intermediate layer, which includes an interception layer, a processing layer, a collection layer, and an upload preprocessing layer. Data processing can be performed based on the intermediate layer, and the data processing process can include steps S310 to S350.

[0095] Step S310 is performed in the interception layer, where page updates and event triggers are intercepted. When a page is updated, the original logic is hijacked, data (i.e., page update data) is output, and then the original logic is restored (i.e., the target data output logic is restored, such as restoring modified attributes or deleting / adding logic). When an event is triggered, the event data is output by detecting the event trigger function globally.

[0096] Step S310 may include: detecting update-driven logic in the target application, which also includes framework logic for a cross-terminal application framework, wherein page update calculation logic is set in the framework logic; when the update-driven logic is detected to be triggered, adjusting the framework logic to generate target data output logic corresponding to the framework logic; performing data output processing based on the target data output logic to obtain page update data calculated by the page update calculation logic; and detecting event-triggered logic in the target application to collect event data corresponding to events triggered by the event-triggered logic in the target application.

[0097] This involves adjusting the framework logic to generate the target data output logic corresponding to the framework logic. This includes: determining the target source logic within the framework logic; adjusting the target source logic within the framework logic to generate the target data output logic corresponding to the framework logic; or, determining the target output location within the framework logic; and performing logic injection processing on the framework logic to inject the target data output logic at the target output location.

[0098] The page update calculation logic includes page differential calculation logic; and data output processing based on the target data output logic to obtain the page update data calculated by the update calculation logic, including: output processing based on the target data output logic to obtain the page update data generated by the page differential calculation logic performing differential calculation processing on the data received in the target application for changing the page and the page node tree in the target application.

[0099] Specifically, in this scenario, the cross-terminal application framework uses the Vue framework within the MVVM (Model-View-ViewModel) framework. The framework logic of Vue can be the application code in the compiled vendor file. The update-driving logic can be the `setData` method, and the page update calculation logic can be the `patch` method. The `setData` method can be called within the `patch` method, which can be page difference calculation logic based on the `diffData` algorithm. When the target application receives data to change the page, the relevant logic in the vendor file can detect the change and call the `patch` method for calculation processing. Ultimately, it calls the `setData` method to drive the target application update. By setting a detector for the `setData` method, it can detect whether the `setData` method is called. When the detector detects that the `setData` method is called, it can adjust the vendor file and generate the target data output logic corresponding to the vendor file. The page update data is calculated by the `patch` method based on the `diffData` algorithm. The `patch` method can pass the page update data to the called `setData` method, and the target data output logic can intercept the page update data in the `setData` method or the `patch` method and output it.

[0100] Specifically, see Figures 5 to 8 The relevant logic in the vendor file can detect the relevant changes and call the patch method to perform calculations. Finally, when the setData method is called to drive the target application to update, the implemented source code logic can include the following steps (1) to (4).

[0101] (1) Associate the setData method. Specifically, define a property _patch_=patch for the Vue prototype (i.e., Vue.prototype._patch_=patch); then, define the page difference calculation logic based on the diffData algorithm in patch (i.e., get the diffData of the new and old nodes); finally, associate the setData method (i.e. mpInstance.setdata), which can be called in the patch method.

[0102] (2) After compilation, the target application executes the runtime phase, which mainly extends the Vue prototype _update. Specifically, Vue is initialized; lifecycle hooks are called (i.e., Lifecyclemixin is called); the Vue prototype is extended _update; finally, the extended prototype is associated with the property _patch_ defined in step (1) so that _update calls the Vue instance's _patch_.

[0103] (3) In the Vue instance generation stage, specifically, $Mount is called to create a vm instance; the vm instance calls mountComponent$1 (initialization method); mountComponent$1 can initialize Watcher, detect vm changes and inject vm._update, Watcher is the rendering detector, vm._update is the prototype _update extended in part (2); when Watcher is initialized, vm._update is given to the getter method of Watcher, getter is the data collection method.

[0104] (4) Page or component update. Specifically, the vm instance in the target application receives data that changes the page (such as this.x=y, setup, props, computeds, vuex, etc.). The Watcher detects the change in the vm and triggers the Watcher's update. Then, the Watcher's run method is triggered. The run method calls the Watcher's getter method. The getter method calls _patch_ based on vm._update and finally calls the setData method.

[0105] Step S320 is performed in the processing layer, where the received difference data is page update data and event data, and the standardized difference data is adjustment processing and standardization processing.

[0106] Step S320 may include: adjusting and processing the page update data according to a standardization strategy for matching page update data to generate application record data for the target application; and standardizing the event data to generate application record data for the target application.

[0107] Specifically, based on a standardized strategy for matching page update data, the page update data is adjusted and processed to generate application record data for the target application. This includes: determining the classification strategy corresponding to the sub-data in the page update data; classifying the sub-data in the page update data according to the classification strategy to obtain a set of sub-data for at least one category; and generating application record data for the target application based on the set of sub-data for at least one category. And / or, determining the serialization strategy corresponding to the sub-data in the page update data; serializing the sub-data in the page update data according to the serialization strategy to obtain serialized page update data; and generating application record data based on the serialized page update data.

[0108] After obtaining at least one category of sub-data sets, when generating application record data for the target application based on the at least one category of sub-data sets, one approach is to directly use the at least one category of sub-data sets as application record data; another approach is to serialize each sub-data set separately to obtain serialized sub-data sets as application record data for the target application.

[0109] When generating application record data based on serialized page update data, one approach is to directly use the serialized page update data as application record data. Another approach is to classify the serialized page update data to obtain at least one subset of data from each category, which can then be used as application record data for the target application.

[0110] Step S330 is performed in the collection layer, calling a callback method (such as the record method) to generate a data callback instruction and trigger the callback data (i.e., the application record data of the target application).

[0111] Step S330 may include: receiving a data callback instruction; obtaining upload instruction information from the callback instruction; and calling back the application record data of the target application.

[0112] Upload instructions are information used to instruct how to upload application-recorded data. These instructions can be pre-set or set in real-time by the relevant user (such as the target application's developer). The target location can be specified according to actual needs; for example, the target location could be... Figure 1The server 101 shown above performs dimensionality reduction processing on the application record data according to the upload instruction information. After obtaining the dimensionality-reduced data, it is uploaded, which further reduces the data transmission volume in the data processing of application recording, further reduces system consumption, and improves the reliability of the application recording process.

[0113] Step S340 is performed in the upload preprocessing layer, where the application record data is desensitized (i.e., filtered), compressed, encrypted, and subjected to other processing (processing as required by actual needs) before being reported.

[0114] Step S340 may include: obtaining upload instruction information for application record data; performing dimensionality reduction processing on the application record data according to the upload instruction information to obtain dimensionality-reduced data; and uploading the dimensionality-reduced data to the target location.

[0115] Specifically, based on the upload instruction information, the application record data is dimensionality-reduced to obtain dimensionality-reduced data. This includes: determining the filter data information corresponding to the data to be filtered from the upload instruction information; filtering the application record data according to the filter data information to obtain de-identified data; and uploading the de-identified data to the target location. And / or, data fragmentation instruction information is obtained from the upload instruction information; the application record data is fragmented according to the data fragmentation instruction information to generate data fragments; and the data fragments are uploaded to the target location.

[0116] When uploading anonymized data to the target location, the anonymized data can be uploaded directly. Alternatively, the anonymized data can be fragmented and / or encrypted and / or compressed before reporting, further enhancing data robustness and reliability, and improving the reliability of the application's recording process. Encryption can be performed using SHA256 symmetric encryption; compression can be performed using Pako (a JavaScript library for compressing and decompressing content); fragmentation can be performed according to data fragmentation instructions. When uploading fragmented data to the target location, the data fragments can be uploaded directly. Alternatively, the data fragments can be filtered and / or encrypted and / or compressed before reporting, further enhancing data accuracy and robustness.

[0117] Step S350 is performed in the detection layer, which can perform grayscale control, error capture, and degradation processing.

[0118] Step S350 may include: receiving a data processing stop instruction; and stopping the process of data processing on the target application according to the data processing stop instruction.

[0119] The data processing flow is carried out without the user's awareness. Upon receiving a data processing stop command, the process of processing data on the target application is stopped. This allows for flexible control over the entire processing flow based on the data processing stop command, thus avoiding impact on users on the live network.

[0120] The detection layer can monitor the interception layer, processing layer, collection layer, and upload preprocessing layer of the system in which the target application is located. Error capture can detect abnormalities in the data processing process in the above layers.

[0121] When an anomaly is detected in the data processing process of the above layers, a degradation process is performed, that is, a data processing stop command is generated to stop data processing on the records of the target application, and relevant logs (such as the reported data corresponding to the processed application record data) can be reported at the same time.

[0122] The detection layer can also receive data processing stop instructions set by relevant users (such as the developers of the target application), so that the data processing in the entire recording process is subject to grayscale control. Once the grayscale is turned off (i.e., a data processing stop instruction is received), no data processing will be performed.

[0123] In this way, in this scenario, by applying the embodiments of this application, at least the following can be achieved: by adjusting the framework logic in the target application to generate the corresponding target data output logic, the page update data calculated by the page update calculation logic can be output. Compared with the comparison method based on node presentation, the data recorded by the target application can be uniformly processed using a data interception-like acceleration. Regardless of whether the application page in each terminal has clear element nodes, the page update data can be effectively acquired and processed. The amount of data acquired and processed is reduced. Combined with the use of cross-terminal application framework, cross-terminal acquisition and processing can be reliably performed. After adjusting according to the standardized strategy of matching page update data, application record data that effectively records the target application can be generated, thereby realizing cross-terminal acquisition and processing of application record data, and effectively avoiding data loss, reducing data storage pressure and reducing system consumption.

[0124] To facilitate better implementation of the data processing method provided in the embodiments of this application, the embodiments of this application also provide a data processing apparatus based on the above-described data processing method. The meanings of the terms used are the same as in the data processing method described above, and specific implementation details can be found in the descriptions within the method embodiments. Figure 9 A block diagram of a data processing apparatus according to an embodiment of this application is shown.

[0125] like Figure 9As shown, the data processing device 400 may include a detection module 410, an adjustment module 420, an output module 430, and a processing module 440.

[0126] The detection module 410 can be used to detect the update-driven logic in the target application, which also includes framework logic for a cross-terminal application framework, wherein page update calculation logic is set in the framework logic; the adjustment module 420 can be used to adjust the framework logic when the update-driven logic is detected to generate target data output logic corresponding to the framework logic; the output module 430 can be used to perform data output processing based on the target data output logic to obtain the page update data calculated by the page update calculation logic; the processing module 440 can be used to adjust the page update data according to the standardization strategy of matching the page update data to generate application record data of the target application.

[0127] In some embodiments of this application, the adjustment module includes a first hijacking unit, used to determine the target original logic in the framework logic; to perform adjustment processing on the target original logic in the framework logic, and to generate the target data output logic corresponding to the framework logic.

[0128] In some embodiments of this application, a second hijacking unit is included, configured to: determine the target output position in the framework logic; perform logic injection processing on the framework logic, and inject the target data output logic at the target output position.

[0129] In some embodiments of this application, the page update calculation logic includes page differential calculation logic; the output module includes a first interception unit, configured to: perform output processing based on the target data output logic to obtain the page update data generated by the page differential calculation logic performing differential calculation processing on the data received in the target application for changing the page and the page node tree in the target application.

[0130] In some embodiments of this application, the processing module includes a first processing unit, configured to: determine the classification strategy corresponding to the sub-data in the page update data; classify the sub-data in the page update data according to the classification strategy to obtain a set of sub-data of at least one category; and generate application record data of the target application based on the set of sub-data of at least one category.

[0131] In some embodiments of this application, the processing module includes a second processing unit, configured to: determine the serialization strategy corresponding to the sub-data in the page update data; perform serialization processing on the sub-data in the page update data according to the serialization strategy to obtain serialized page update data; and generate the application record data based on the serialized page update data.

[0132] In some embodiments of this application, the device further includes an event output module, used to detect and process the event triggering logic in the target application to collect event data corresponding to the events triggered by the event triggering logic in the target application; and to standardize the event data to generate application record data of the target application.

[0133] In some embodiments of this application, the apparatus further includes an upload preprocessing module, which includes: an acquisition unit for acquiring upload instruction information of the application record data; a dimensionality reduction processing unit for performing dimensionality reduction processing on the application record data according to the upload instruction information to obtain dimensionality-reduced data; and a data upload unit for uploading the dimensionality-reduced data to a target location.

[0134] In some embodiments of this application, the dimensionality reduction processing unit includes a filtering processing subunit, configured to: determine the filtering data information corresponding to the data to be filtered from the upload instruction information; perform filtering processing on the application record data according to the filtering data information to obtain de-identified data; and upload the de-identified data to the target location.

[0135] In some embodiments of this application, the dimensionality reduction processing unit includes a fragmentation processing subunit, configured to: obtain data fragmentation indication information from the upload indication information; perform fragmentation processing on the application record data according to the data fragmentation indication information to generate data fragments; and upload the data fragments to the target location.

[0136] In some embodiments of this application, the device further includes a collection module, configured to: receive a data callback instruction; obtain the upload instruction information from the callback instruction; and call back the application record data of the target application.

[0137] In some embodiments of this application, the apparatus further includes a detection module for: receiving a data processing stop instruction; and stopping the process of data processing on the target application according to the data processing stop instruction.

[0138] In this way, based on the data processing device 400, the corresponding target data output logic can be generated by adjusting the framework logic in the target application to output the page update data calculated by the page update calculation logic. Compared with the comparison method based on node presentation, the data recorded by the target application can be uniformly processed by similar data interception acceleration. Regardless of whether the application page in each terminal has clear element nodes, the page update data can be effectively acquired and processed. The amount of data acquired and processed is reduced. Combined with the use of cross-terminal application framework, cross-terminal acquisition and processing can be reliably performed. After adjusting according to the standardized strategy of matching page update data, application record data that effectively records the target application can be generated, thereby realizing cross-terminal acquisition and processing of application record data. It can also effectively avoid data loss, reduce data storage pressure and reduce system consumption.

[0139] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0140] Furthermore, embodiments of this application also provide an electronic device, which can be a terminal or a server, such as... Figure 10 As shown, it illustrates a structural schematic diagram of the electronic device involved in the embodiments of this application, specifically: The electronic device may include components such as a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, a power supply 503, and an input unit 504. Those skilled in the art will understand that... Figure 10 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 501 is the control center of the electronic device. It connects to various parts of the computer device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 502, and by calling data stored in the memory 502, it performs various functions of the computer device and processes data, thereby performing overall detection of the electronic device. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user page, and application programs, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 501.

[0141] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.

[0142] The electronic device also includes a power supply 503 that supplies power to various components. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 503 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0143] The electronic device may also include an input unit 504, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0144] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 501 in the electronic device loads the executable files corresponding to the processes of one or more computer programs into the memory 502 according to the following instructions, and the processor 501 runs the computer programs stored in the memory 502, thereby realizing the various functions in the foregoing embodiments of this application, such as the processor 501 executing: The system detects update-driven logic in a target application, which also includes framework logic for a cross-terminal application framework. This framework logic includes page update calculation logic. When the update-driven logic is detected to be triggered, the framework logic is adjusted to generate target data output logic corresponding to the framework logic. Data output processing is performed based on the target data output logic to obtain the page update data calculated by the page update calculation logic. The page update data is then adjusted according to a standardized matching strategy to generate application record data for the target application.

[0145] In some embodiments of this application, when adjusting the framework logic to generate the target data output logic corresponding to the framework logic, the processor 501 may execute: determining the target original logic in the framework logic; adjusting the target original logic in the framework logic to generate the target data output logic corresponding to the framework logic.

[0146] In some embodiments of this application, when adjusting the framework logic to generate the target data output logic corresponding to the framework logic, the processor 501 may perform the following: determining the target output position in the framework logic; performing logic injection processing on the framework logic, and injecting the target data output logic at the target output position.

[0147] In some embodiments of this application, the page update calculation logic includes page differential calculation logic; when performing data output processing based on the target data output logic to obtain the page update data calculated by the update calculation logic, the processor 501 can execute: performing output processing based on the target data output logic to obtain the page update data generated by the page differential calculation logic performing differential calculation processing on the data received in the target application for changing the page and the page node tree in the target application.

[0148] In some embodiments of this application, when adjusting the page update data according to the standardization strategy of matching the page update data to generate the application record data of the target application, the processor 501 may execute: determining the classification strategy corresponding to the sub-data in the page update data; classifying the sub-data in the page update data according to the classification strategy to obtain a set of sub-data of at least one category; and generating the application record data of the target application based on the set of sub-data of at least one category.

[0149] In some embodiments of this application, when adjusting the page update data according to the standardization strategy of matching the page update data to generate the application record data of the target application, the processor 501 may execute: determining the serialization strategy corresponding to the sub-data in the page update data; performing serialization processing on the sub-data in the page update data according to the serialization strategy to obtain serialized page update data; and generating the application record data based on the serialized page update data.

[0150] In some embodiments of this application, the event triggering logic in the target application is detected and processed to collect event data corresponding to the events triggered by the event triggering logic in the target application; the event data is then standardized to generate application record data of the target application.

[0151] In some embodiments of this application, upload instruction information for the application record data is obtained; the application record data is dimensionality-reduced according to the upload instruction information to obtain dimensionality-reduced data; and the dimensionality-reduced data is uploaded to the target location.

[0152] In some embodiments of this application, when performing dimensionality reduction processing on the application record data according to the upload instruction information to obtain dimensionality-reduced data, the processor 501 may execute: determining the filtering data information corresponding to the data to be filtered from the upload instruction information; performing filtering processing on the application record data according to the filtering data information to obtain de-identified data; and uploading the de-identified data to the target location.

[0153] In some embodiments of this application, when performing dimensionality reduction processing on the application record data according to the upload instruction information to obtain dimensionality-reduced data, the processor 501 may execute: obtaining data fragmentation instruction information from the upload instruction information; performing fragmentation processing on the application record data according to the data fragmentation instruction information to generate data fragments; and uploading the data fragments to the target location.

[0154] In some embodiments of this application, a data callback instruction is received; the upload instruction information is obtained from the callback instruction; and the application record data of the target application is called back.

[0155] In some embodiments of this application, the processor 501 may perform the following actions: receiving a data processing stop instruction; and stopping the process of data processing for the target application according to the data processing stop instruction.

[0156] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by a computer program, or by a computer program controlling related hardware. The computer program can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0157] Therefore, embodiments of this application also provide a computer-readable storage medium storing a computer program that can be loaded by a processor to perform the steps in any of the methods provided in embodiments of this application.

[0158] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0159] Since the computer program stored in the computer-readable storage medium can execute the steps in any of the methods provided in the embodiments of this application, the beneficial effects that the methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

[0160] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations of the above embodiments of this application.

[0161] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.

[0162] It should be understood that this application is not limited to the embodiments described above and shown in the accompanying drawings, but various modifications and changes can be made without departing from its scope.

Claims

1. A data processing method, characterized in that, include: The update-driven logic in the target application is detected. The target application also includes framework logic for a cross-terminal application framework, and the framework logic sets up page update calculation logic. When the update-driven logic is detected to be triggered, the framework logic is adjusted to generate the target data output logic corresponding to the framework logic. This step includes: determining the target original logic in the framework logic; adjusting the target original logic to make it the target data output logic used to output data; wherein, the specific adjustment method for the target original logic is: setting attributes for the target original logic; the target original logic is the page update calculation logic; Data output processing is performed based on the target data output logic to obtain page update data calculated by the page update calculation logic; the page update calculation logic includes page difference calculation logic; this step includes: performing output processing based on the target data output logic to obtain the page update data generated by the page difference calculation logic performing difference calculation processing on the data received in the target application for changing the page and the page node tree in the target application; By restoring the modified settings, the target data output logic is restored to its original state. Based on the standardized strategy for matching page update data, the page update data is adjusted and processed to generate application record data for the target application.

2. The method according to claim 1, characterized in that, The adjustment process for the framework logic to generate the target data output logic corresponding to the framework logic includes: Determine the target output location in the framework logic; The framework logic is subjected to logic injection processing, and the target data output logic is injected at the target output position.

3. The method according to claim 1, characterized in that, The step of adjusting and processing the page update data according to the standardized strategy for matching the page update data to generate application record data for the target application includes: Determine the classification strategy corresponding to the sub-data in the page update data; The sub-data in the page update data is classified according to the classification strategy to obtain a set of sub-data of at least one category; Based on the sub-data set of at least one category, the application record data of the target application is generated.

4. The method according to claim 1, characterized in that, The step of adjusting and processing the page update data according to the standardized strategy for matching the page update data to generate application record data for the target application includes: Determine the serialization strategy corresponding to the sub-data in the page update data; According to the serialization strategy, the sub-data in the page update data is serialized to obtain serialized page update data; The application record data is generated based on the serialized page update data.

5. The method according to claim 1, characterized in that, The method further includes: The event triggering logic in the target application is detected and processed to collect event data corresponding to the events triggered by the event triggering logic in the target application. The event data is standardized to generate application record data for the target application.

6. The method according to claim 1, characterized in that, The method further includes: Obtain the upload instruction information for the application's recorded data; Based on the upload instruction information, the application record data is subjected to dimensionality reduction processing to obtain dimensionality-reduced data; The dimensionality-reduced data is uploaded to the target location.

7. The method according to claim 6, characterized in that, The step of performing dimensionality reduction processing on the application record data according to the upload instruction information to obtain dimensionality-reduced data includes: From the upload instruction information, determine the filter data information corresponding to the data to be filtered; The application record data is filtered based on the filtered data information to obtain de-identified data; The de-identified data is uploaded to the target location.

8. The method according to claim 6, characterized in that, The step of performing dimensionality reduction processing on the application record data according to the upload instruction information to obtain dimensionality-reduced data includes: Obtain data fragmentation indication information from the upload indication information; The application record data is segmented according to the data segmentation instruction information to generate data segments; The data is fragmented and uploaded to the target location.

9. The method according to claim 6, characterized in that, Before obtaining the upload indication information of the application record data, the method further includes: Receive data callback instructions; The upload instruction information is obtained from the callback instruction, and the application record data of the target application is called back.

10. The method according to any one of claims 1 to 8, characterized in that, The method further includes: Received a data processing stop command; According to the data processing stop instruction, the process of data processing on the target application is stopped.

11. A data processing apparatus, characterized in that, include: The detection module is used to detect the update-driven logic in the target application, which also includes the framework logic of a cross-terminal application framework, and the framework logic sets the page update calculation logic. The adjustment module is used to adjust the framework logic when the update driving logic is detected to be triggered, so as to generate the target data output logic corresponding to the framework logic. The adjustment module is specifically used to determine the target original logic in the framework logic; The target original logic is adjusted to become the target data output logic used to output data; specifically, the adjustment method for the target original logic is to set attributes for the target original logic; the target original logic is the page update calculation logic. An output module is used to perform data output processing based on the target data output logic to obtain page update data calculated by the page update calculation logic; the page update calculation logic includes page difference calculation logic; the output module is specifically used to perform output processing based on the target data output logic to obtain the page update data generated by the page difference calculation logic performing difference calculation processing on the data received in the target application for changing the page and the page node tree in the target application. The device is used to: restore the target data output logic to the original target logic by restoring the modified settings of the attributes; The processing module is used to adjust and process the page update data according to the standardized strategy of matching the page update data, and generate application record data of the target application.

12. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by the computer's processor, causes the computer to perform the method described in any one of claims 1 to 10.

13. An electronic device, characterized in that, include: Memory, which stores computer programs; A processor reads a computer program stored in memory to perform the method according to any one of claims 1 to 10.

14. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method of any one of claims 1 to 10.

Citation Information

Patent Citations

  • Page view display method and device, storage medium and electronic terminal

    CN108897538A

  • Information storage method and device, equipment and storage medium

    CN113590052A