Page operation data processing method and device, equipment and storage medium
By establishing bridging interfaces between application modules using different programming languages, and collecting and merging operation record data, the problem of missing view data in multi-language components in existing technologies is solved. This achieves the integrity and reliability of operation data, reduces development costs, and improves application compatibility and functional experience.
Patent Information
- Application Number
- CN202310411535.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-17
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2043-04-17
AI Technical Summary
Existing technologies only collect data from component views of web development programming languages when recording application operation processes, resulting in missing playback data for components of other programming languages. This reduces the completeness and reliability of operation playback, while also increasing development costs and potentially introducing feature cuts and sacrifices.
By establishing a bridging interface between the first and second application modules, view page operation record data from different programming languages is collected and merged in the first application module, thereby realizing the collection of component view data from multiple programming languages and ensuring the integrity and reliability of operation data.
It achieves complete acquisition of view data from multiple programming language components, avoiding missing operation data and program functions, reducing development costs, and improving application compatibility and user experience.
Smart Images

Figure CN116484127B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, and particularly relates to a page operation data processing method and device, equipment and a storage medium. BACKGROUND
[0002] With the development of computer technology and network, many businesses gradually adopt application program operation to complete. In part of the business process, such as finance, insurance, commodity business or program testing, in the authorized state, the operation process of the application program needs to be recorded and saved as the data basis for subsequent query and operation playback, such as the query and evidence collection scene of finance, insurance and the like, the playback, query and responsibility confirmation of business sales link data need to be realized. The current operation process record only collects and records the data of the component view realized by the web development program language, which easily causes the playback data missing of other program language components, reduces the completeness and reliability of operation playback. In order to make up for the data missing, pure web technology development needs to be carried out for the application program with playback demand, or it is ensured that the key link is realized by web development technology, which not only increases the program development cost, but also introduces defects such as program function castration and function sacrifice. SUMMARY
[0003] The present application provides a page operation data processing method, device, equipment and storage medium, which can realize component view data collection of multiple program languages, avoid operation data missing and program function missing, reduce program development cost, and improve application compatibility and function experience.
[0004] In one aspect, the present application provides a page operation data processing method applied to a target function application of a first end, the target function application comprising a first application module and a second application module, and the method comprises:
[0005] collecting first operation record data generated for a first view page, the first view page being generated by view rendering of a first view component of the first application module;
[0006] collecting second operation record data generated for a second view page, the second view page being generated by view rendering of a second view component corresponding to application function call information in the second application module, the application function call information being transmitted by the first application module through a bridge interface, and the first application module and the second application module being realized by different program programming languages;
[0007] calling the bridge interface through the second application module to transmit the second operation record data to the first application module;
[0008] The first application module merges the first operation record data and the second operation record data to obtain target record data.
[0009] Another aspect provides a page operation data processing method, applied to a target playback application of a second end, and the method comprises:
[0010] In response to a page operation reproduction request for a target function application, target record data corresponding to the page operation reproduction request is obtained, the target record data being obtained by merging first operation record data and second operation record data;
[0011] A playback view component of the target playback application serializes and restores the target record data for display, the target playback application being a component implemented based on a single program programming language.
[0012] Another aspect provides a page operation data processing system, comprising a target function application of a first end and a target playback application of a second end, the target function application comprising a first application module and a second application module:
[0013] The first end is configured to collect first operation record data generated for a first view page, the first view page being generated by view rendering of a first view component of the first application module; collect second operation record data generated for a second view page, the second view page being generated by view rendering of a second view component corresponding to application function call information in the second application module, the application function call information being transmitted by the first application module through a bridge interface, the first application module and the second application module being implemented by different program programming languages; call the bridge interface by the second application module to transmit the second operation record data to the first application module; and merge the first operation record data and the second operation record data by the first application module to obtain target record data.
[0014] The second end is configured to, in response to a page operation reproduction request for a target function application, obtain target record data corresponding to the page operation reproduction request; and based on a playback view component of the target playback application, serialize and restore the target record data for display, the target playback application being a component implemented based on a single program programming language.
[0015] Another aspect provides a page operation data processing device, applied to a target function application of a first end, the target function application comprising a first application module and a second application module, and the device comprises:
[0016] The first collection module is configured to collect first operation record data generated for a first view page, wherein the first view page is generated by view rendering of a first view component of the first application module;
[0017] The second collection module is configured to collect second operation record data generated for a second view page, wherein the second view page is generated by view rendering of a second view component corresponding to application function call information in the second application module, the application function call information is transmitted by the first application module through a bridge interface, and the first application module and the second application module are implemented by using different program programming languages;
[0018] The interface calling module is configured to call the bridge interface through the second application module to transmit the second operation record data to the first application module.
[0019] The data merging module is configured to perform merging processing on the first operation record data and the second operation record data through the first application module to obtain target record data.
[0020] In another aspect, a page operation data processing apparatus is provided, which is applied to a target playback application of a second end, and the apparatus comprises:
[0021] The record data acquisition module is configured to acquire target record data corresponding to a page operation reproduction request for a target function application in response to the page operation reproduction request, wherein the target record data is obtained by merging first operation record data and second operation record data.
[0022] The restoration display module is configured to perform serialized page restoration display on the target record data based on a playback view component of the target playback application, wherein the target playback application is a component implemented based on a single program programming language.
[0023] In another aspect, a page operation data processing system is provided, which comprises a target function application of a first end and a target playback application of a second end, and the target function application comprises a first application module and a second application module;
[0024] The first end is configured to collect first operation record data generated for a first view page, the first view page being generated by view rendering of a first view component of a first application module; collect second operation record data generated for a second view page, the second view page being generated by view rendering of a second view component corresponding to application function call information of a second application module, the application function call information being transmitted by the first application module through a bridge interface, the first application module and the second application module being implemented by different program programming languages; call the bridge interface through the second application module to transmit the second operation record data to the first application module; and perform merging processing on the first operation record data and the second operation record data through the first application module to obtain target record data.
[0025] The second end is configured to, in response to a page operation reproduction request for a target function application, acquire target record data corresponding to the page operation reproduction request; and perform serialized page restoration display on the target record data based on a playback view component of a target playback application, the target playback application being a component implemented based on a single program programming language.
[0026] In another aspect, a computer device is provided, which includes a processor and a memory, the memory storing at least one instruction or at least one program, the at least one instruction or the at least one program being loaded and executed by the processor to implement the page operation data processing method as described above.
[0027] In another aspect, a computer readable storage medium is provided, which stores at least one instruction or at least one program, the at least one instruction or the at least one program being loaded and executed by a processor to implement the page operation data processing method as described above.
[0028] In another aspect, a server is provided, which includes a processor and a memory, the memory storing at least one instruction or at least one program, the at least one instruction or the at least one program being loaded and executed by the processor to implement the page operation data processing method as described above.
[0029] In another aspect, a terminal is provided, which includes a processor and a memory, the memory storing at least one instruction or at least one program, the at least one instruction or the at least one program being loaded and executed by the processor to implement the page operation data processing method as described above.
[0030] On the other hand, a computer program product or computer program is provided, which includes computer instructions that, when executed by a processor, implement the page manipulation data processing method described above.
[0031] The page operation data processing method, apparatus, device, storage medium, server, terminal, computer program, and computer program product provided in this application have the following technical effects:
[0032] The technical solution of this application collects operation record data of corresponding view pages through application modules of different programming languages, and realizes the transmission of function call information based on the bridging interface. This enables the first application module and the second application module to share functions and call each other, while completing the transmission of operation record data of the second application module. This allows the first application module to merge and store the first operation record data and the second operation record data, thereby realizing the complete collection of component view data of multiple programming languages, avoiding the loss of operation data and program functions, ensuring the integrity and reliability of operation data records, eliminating the need to implement application functions through a single program development technology, reducing program development costs, and gaining the advantages of multiple development technologies. This improves application compatibility and functional experience, and expands the application scenarios of operation data recording and playback. Attached Figure Description
[0033] To more clearly illustrate the technical solutions and advantages in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the 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.
[0034] Figure 1 This is a schematic diagram of an application environment provided in an embodiment of this application;
[0035] Figure 2 This is a flowchart illustrating a page operation data processing method provided in an embodiment of this application;
[0036] Figure 3 This is a flowchart illustrating another page operation data processing method provided in an embodiment of this application;
[0037] Figure 4 This is a flowchart illustrating another page operation data processing method provided in an embodiment of this application;
[0038] Figure 5 This is a schematic diagram of the framework of a page operation data processing device provided in an embodiment of this application;
[0039] Figure 6 is a framework schematic diagram of another page operation data processing apparatus provided by an embodiment of the present application;
[0040] Figure 7 is a hardware structure block diagram of an electronic device of a page operation data processing method provided by an embodiment of the present application. DETAILED DESCRIPTION
[0041] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.
[0042] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or server including a series of steps or sub-modules does not have to be limited to those steps or sub-modules clearly listed, but can include other steps or sub-modules not clearly listed or inherent to these processes, methods, products or devices.
[0043] Before further detailing the embodiments of the present application, the terms and terms involved in the embodiments of the present application are explained, and the terms and terms involved in the embodiments of the present application are applicable to the following explanations.
[0044] Please refer to Figure 1 , Figure 1 is a schematic diagram of an application environment provided by an embodiment of the present application, as Figure 1 shown, the application environment can include at least a first end 01, a second end 03 and a server 02. In actual application, the first end 01, the second end 03 and the server 02 can be directly or indirectly connected through wired or wireless communication mode, and the present application does not limit here.
[0045] The server 02 in the embodiments of the present application can be a stand-alone physical server, can be a server cluster or a distributed system formed by multiple physical servers, and can also be a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms.
[0046] Specifically, cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and network in a wide area network or a local area network to realize data calculation, storage, processing, and sharing. Cloud technology can be applied to various fields such as medical cloud, cloud Internet of Things, cloud security, cloud education, cloud conference, artificial intelligence cloud service, cloud application, cloud call, and cloud socialization. Cloud technology is based on a cloud computing business model application, which distributes computing tasks on a resource pool formed by a large number of computers, so that various application systems can obtain computing power, storage space, and information services according to needs. The network providing resources is called a “cloud”, and the resources in the “cloud” can be infinitely expanded for users and can be obtained at any time, used on demand, expanded at any time, and paid according to use. As a basic capability provider of cloud computing, a cloud computing resource pool (referred to as a cloud platform, generally referred to as IaaS (Infrastructure as a Service)) platform is established, and a plurality of types of virtual resources are deployed in the resource pool for external customers to select and use. The cloud computing resource pool mainly includes: a computing device (a virtualized machine including an operating system), a storage device, and a network device.
[0047] According to logical function division, the PaaS (Platform as a Service) layer can be deployed on the IaaS layer, and the SaaS (Software as a Service) layer is deployed above the PaaS layer, or the SaaS can be directly deployed on the IaaS. PaaS is a platform for software running, such as a database and a web container. SaaS is various business software, such as a web portal and a short message massager. Generally, SaaS and PaaS are upper layers relative to IaaS.
[0048] Specifically, the server 02 involved above can include an entity device, can specifically include a network communication submodule, a processor, a memory, and the like, and can also include software running in the entity device, and can specifically include an application program and the like.
[0049] Specifically, the first end 01 and the second end 03 can include an entity device such as a smart phone, a desktop computer, a tablet computer, a notebook computer, a digital assistant, an augmented reality (AR) / virtual reality (VR) device, a smart voice interaction device, a smart home appliance, a smart wearable device, a vehicle-mounted terminal device, and the like, and can also include a software such as an application program running in the entity device.
[0050] In the embodiment of the present application, the first end 01 can run a target function application, the target function application includes a first application module and a second application module, to collect operation data of a first view page corresponding to a first view component based on the first application module to obtain first operation record data, and collect operation data of a second view page corresponding to a second view component based on the second application module to obtain second operation record data; and transmit the second operation record data based on the bridge interface, to perform merging processing of the first operation record data and the second operation record data by the first application module to obtain target record data, and send the target record data to the server 02; the server 02 is configured to store the target operation data in association with the target function application, and in response to a data acquisition request of the second end 03, send the target record data to the second end 03; the second end 03 is configured to receive the target record data sent by the server in response to a page operation reproduction request for the target function application, and perform page restoration display.
[0051] In addition, it can be understood that, Figure 1 The application environment shown is only an application environment of the page operation data processing method, and the application environment can include more or fewer nodes, which is not limited in the present application.
[0052] Based on the above application environment, the present application provides a page operation data processing system, including a target function application of the first end and a target playback application of the second end, the target function application including a first application module and a second application module;
[0053] The first end is configured to collect first operation record data generated for a first view page, the first view page being generated by view rendering of a first view component of the first application module; collect second operation record data generated for a second view page, the second view page being generated by view rendering of a second view component corresponding to application function call information in the second application module, the application function call information being transmitted by the first application module through the bridge interface, the first application module and the second application module being implemented by different program programming languages; call the bridge interface through the second application module to transmit the second operation record data to the first application module; and perform merging processing of the first operation record data and the second operation record data through the first application module to obtain target record data.
[0054] The second end is configured to, in response to a page operation reproduction request for the target function application, acquire target record data corresponding to the page operation reproduction request; and based on a playback view component of a target playback application, serialize and page-reproduce and display the target record data, the target playback application being a component implemented based on a single programming language.
[0055] It can be understood that the first end and the second end can run on the same terminal or different terminals.
[0056] The following describes a page operation data processing method according to the application based on the above application environment. The embodiments of the application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, intelligent transportation, and assisted driving. Please refer to Figure 2 , Figure 2 is a flowchart of a page operation data processing method provided by an embodiment of the application. The present specification provides method operation steps as in the embodiments or flowcharts, but more or fewer operation steps can be included based on conventional or non-creative labor. The order of steps listed in the embodiments is only one of the many execution orders, and does not represent the only execution order. In actual system or server product execution, the method can be executed in sequence or in parallel (for example, in a parallel processor or multi-threaded processing environment). Specifically, as shown in Figure 2 the method is applied to a target function application of the first end, and the target function application includes a first application module and a second application module, which can include the following steps S201-S207.
[0057] S201: Collecting first operation record data generated for a first view page;
[0058] In the embodiments of the application, the first end can be an end side running a target function application and capable of performing related business operations, and the target function application is an application program having operation data recording and operation data playback requirements. It can be understood that the operation data recording and operation data playback are performed in the state authorized by the operation subject performing the related operations. The target function application can be implemented using at least two programming languages, which can include but are not limited to web development technology (such as WEB) and native development technology (such as iOS, Android, etc.) program languages. Using multiple programming languages can shorten the development cycle, release, and inherit the strong features and excellent experience of native development technology.
[0059] Specifically, the operation record data refers to an operation performed by an operation subject on a view page in a data form, and can be used to indicate an operation process formed by the operation subject performing a preset operation in a target function application. The data can meet the needs of operation process query and playback product function, such as application in program function test, program application exception detection, financial and insurance business query evidence, and the like. The preset operation can include, but is not limited to, clicking, sliding, zooming, text input, live information input, or voice information input, and the like. Specifically, the operation record data involved in the present application can include an operation environment state snapshot required when a page corresponding to an operation process function is restored and displayed, including but not limited to an interface element object (such as a clicked button, a slid list, and the like) to be operated, operation information (including action information, such as a click position coordinate, a sliding distance, and the like), and the like. The operation record data can also include other environment information (such as data time, device screen resolution, business data, and the like).
[0060] It can be understood that the format, data structure, and storage medium of the first operation record data are determined by the program design of the specific application program, and the embodiments of the present application do not limit the related technical selection.
[0061] Specifically, the first view page is generated by view rendering of a first view component of a first application module; the first application module can be implemented based on a program language of a web development technology, and specifically can be a web program module. Correspondingly, the first view component can be implemented by using a program language of a web development technology, such as a WebView view component, and the first view page can be a web view. The first operation record data is generated based on a series of preset operations submitted by the operation subject to the first view page.
[0062] In actual application, S201 can specifically include steps S2011-S2012:
[0063] S2011: obtaining first interaction operation data submitted to the first view page and serialized node data corresponding to the first view page;
[0064] S2012: generating the first operation record data based on the first interaction operation data and the serialized node data.
[0065] Specifically, the first interaction operation data includes operation information generated by a series of preset operations submitted by an operation subject for the first view page; and the serialized node data is used to indicate a page state response of the first view page to the first interaction operation data. The serialized node data at least includes node data of the first view page at each time point corresponding to the series of preset operations or node change data of nodes of the first view page, so as to reflect a data change state of the page to the preset operations. The first interaction operation data and the serialized node data are time-series bound based on the preset operations to form the first operation record data. In this way, the operation record data is independently collected for the first view page of the first application module, and the operation record is realized in the same program running environment.
[0066] In some embodiments, the node data corresponding to the first view page can be periodically collected to obtain the serialized node data, and a page state snapshot at each time point can be generated in combination with the serialized node data and the page document structure information; the page state snapshot is associated with operation information of a corresponding preset operation in the first interaction operation data based on a time point of the page state snapshot and operation time of each preset operation, and then the first operation record data is obtained. In this way, the operation record method is not required to be embedded, and the program development cost is reduced and the migration of the operation record method is improved. In other embodiments, initial node data of the first view page can be collected, and node data of the first view page updated in response to a preset operation can be collected to obtain the serialized node data; an initial page state snapshot is generated based on the initial node data in combination with the page document structure information, and a page state snapshot corresponding to an operation response is generated based on the node data of the first view page updated in response to the preset operation; the initial page state snapshot, the page state snapshot corresponding to the operation response, and operation information of a corresponding preset operation in the first interaction operation data are associated, and then the first operation record data is obtained. In this way, the data collection is performed in response to the operation, and the amount of data collection is reduced, and the resource occupation and consumption are reduced.
[0067] In one embodiment, the node data can be node data corresponding to a DOM tree of the first view page, and the page document structure information can be page DOM tree structure information.
[0068] Specifically, the first record module can be used to perform operation data record for the first view page, and the first record module runs in a program running environment of the first application module.
[0069] S203: Collecting second operation record data generated for the second view page;
[0070] Specifically, the second view page is generated by view rendering of the second view component corresponding to the application function call information in the second application module, and the application function call information is transmitted by the first application module through the bridge interface, and the first application module and the second application module are implemented by different program programming languages.
[0071] Specifically, the second application module can be implemented based on the program language of the native development technology, and specifically can be a native program module, and correspondingly, the second view component can be implemented by the program language of the native development technology, and the second view page can be a native view. The second operation record data is generated based on a series of preset operations submitted by the operation subject to the second view page.
[0072] Specifically, the bridge interface refers to a program method for communication between the first application module and the second application module, including a program method in the running environment of the first application module and a program method in the running environment of the second application module. Exemplarily, the bridge interface can be a bridge SDK interface, including a set of javascript program methods provided in the javascript running environment and a set of native program methods in the native (iOS or Android) program running environment. Based on the bridge interface, by calling the program method in the respective running environment, the first application module and the second application module can indirectly use the program capabilities provided by the other party, and data and information are transmitted during the calling process.
[0073] Specifically, the application function call information is transmitted by the first application module to the second application module through the bridge interface based on the page display configuration in response to the display trigger of the second view page, so as to call the second application module to render and process the second view component. The application function call information can include interface parameters required by the related application function, such as a business process unique identifier (businessId) and a component display data source address (dataSrc).
[0074] In practical application, S203 can include steps S2031-S2032:
[0075] S2031: obtaining second interaction operation data submitted for the second view page and serialized component attribute data corresponding to the second view component;
[0076] S2032: generating second operation record data based on the second interaction operation data and the serialized component attribute data.
[0077] Specifically, the second interaction operation data includes operation information generated by a series of preset operations submitted by an operation subject for the second view page; and the serialized component attribute data is used to indicate a page state response of the second view page to the second interaction operation data. The serialized component attribute data at least includes a plurality of component attribute data or attribute change data of a plurality of components of the second view page at each time point corresponding to the series of preset operations, so as to reflect a data change state of the page to the preset operations. The second interaction operation data and the serialized component attribute data are time-series bound based on the preset operations to form second operation record data. In this way, the independent collection of operation record data for the second view page of the second application module is beneficial to operation record in different program running environments, avoids record obstacles caused by program environment differences and data composition differences, and improves data record integrity and reliability.
[0078] Specifically, the second record module can be used to perform operation data record for the second view page, and the second record module runs in a program running environment of the second application module. For example, the component attribute data can be a continuously monitored and sampled scroll position of an iOS ScrollView, and the component attribute change data can be a scroll position change.
[0079] In some cases, the first view page and the second view page are displayed in a superimposed manner, and accordingly, before S203, the method can further include the following S201-S202: Figure 3 The method can further include the following S301-S305:
[0080] S301: rendering a first view component by the first application module to obtain a first view page;
[0081] S303: in response to a display triggering event of the second view page, calling a bridge interface by the first application module to transmit application function calling information, so that the second application module renders a second view component based on the function calling information to obtain a second view page;
[0082] S305: controlling the first view page and the second view page to be displayed in a superimposed manner by the first application module.
[0083] Specifically, the first application module is configured to control the display and closing of the pages, and to perform view rendering on the first view component in response to a display trigger event of the first view page, and to transmit application function calling information of the second view page to the second application module through the bridge interface in response to a display trigger event of the second view page, so as to call the program capability of the second application module and perform view rendering on the second view component, and then control the display of the multiple pages by the first application module. In this way, the data communication and function calling of the multiple application modules are realized through the bridge interface, and the effective isolation of the operation data records in different running environments is realized through the view superimposed display, which is beneficial to the independent collection of the data records in different running environments.
[0084] Specifically, the superimposed display of the view pages means that one view is superimposed on another view from the perspective of an observer, and the upper view covers the lower view. Exemplarily, the view superimposed display instances can include but are not limited to confirmation pop-up windows, bottom floating layers, and the like. In some cases, the superimposed view is additionally provided with a background mask, so that the operation subject cannot directly interact with the lower view when the upper view is displayed, so as to ensure that the program running control authority of the target function application is limited within the upper view page.
[0085] In some embodiments, the operation data records are configured to be controlled by the first application module, and accordingly, the method further includes S401: in response to a display trigger event of the second view page, transmitting record function calling information through the bridge interface by the first application module, so as to trigger the collection operation of the second operation record data corresponding to the second view page based on the record function calling information. Specifically, the record function calling information can include interface parameters for calling the data record function corresponding to the second application module, and can include but is not limited to an operation data playback session identifier (traceId) and the like. In this way, the data collection is controlled by the first application module, and the second application module obtains the clues and indications of the related processes of page rendering, operation data collection and playback through the bridge interface, which is beneficial to the time sequence recording of the operation data, avoids data missing, and reduces the control complexity of the data record and merging processing between the multiple application modules.
[0086] In some embodiments, in response to a display trigger event of the second view page, the first application module cooperatively transmits the application function calling information and the record function calling information through the bridge interface, so that the second application module obtains the clues and indications of the related processes of page rendering, operation data collection and playback.
[0087] It can be understood that the second application module can obtain necessary data from other sources as needed when rendering the view and implementing the operation data collection function, including but not limited to unified storage in the application framework, network interfaces and the like.
[0088] S205: calling the bridge interface by the second application module to transmit the second operation record data to the first application module;
[0089] Specifically, the first application module controls the integration and storage of the operation record data.
[0090] In some embodiments, in response to a closing trigger event of the second view page, a second application method corresponding to the bridge interface is called by the second application module to transmit the second operation record data as a method parameter. The second application method is a program method corresponding to the bridge interface and matched with the program running environment of the second application module, such as a native program method. The closing trigger event can include but is not limited to page jump or page closing, which can be triggered by the operation subject clicking the close button or other operations. In this scenario, the second view page is displayed on the first view page, and after the second view page is closed, the first view page becomes the upper layer, and the interactive operation is transferred to the first application module for processing. Alternatively, after the page jump, the second operation record data is transmitted to the first application module for saving when the second view page is transferred to the third view page. The third view component corresponding to the third view page can belong to the first application module or the second application module, and the specific way of page display and operation data collection is similar to that of the first view page or the second view page, which will not be described here. In this way, the operation data recording and transmission are performed in units of view pages, which is beneficial to subsequent data merging and playback.
[0091] S207: merging and processing the first operation record data and the second operation record data by the first application module to obtain target record data.
[0092] Specifically, the merging and processing of the operation record data includes but is not limited to data format conversion, compression, addition of other data or context information, etc., so that the data formats of the first operation record data and the second operation record data are consistent, and unified storage and reproducible playback are realized. It can be understood that the specific operations of the merging and processing are determined by the program design of the specific application, and the related technology selection is not limited here.
[0093] For example, for the scroll offset of the sliding operation in the ScrollView corresponding to the second view page, the first application module can package the scroll offset, the sampling timestamp, the second view component id, etc. into the data format of the first operation record data, such as ({type: EventType.Custom, data: {payload: {…nativeEventData}}}), and add it to the end of the event list of the first operation record data to complete the merging and obtain the target operation record.
[0094] In some embodiments, the data can be stored and merged based on the time sequence, the first operation record data includes at least one first data generated by performing a preset operation on the first view page, and the second operation record data includes at least one second data generated by performing a preset operation on the second view page. Accordingly, S207 can include the following steps:
[0095] S2071: Through the first application module, the data information of each first data corresponding to the first operation record data and the data information of each second data corresponding to the second operation record data are added to the data queue in time sequence;
[0096] S2072: Based on the data queue, the first operation data and the second operation data are merged to obtain target record data.
[0097] Specifically, based on the preset operation, the data is generated and stored, and in response to one preset operation, the data corresponding to the preset operation is collected, including the operation information and node data of the foregoing interaction operation. The data information can be a data summary of the first data or the second data, such as a data unique identifier, or a business summary representing the corresponding preset operation, such as "entering the picture upload page". After the first application module obtains the first data and the second data, the correlation sorting and storage in time sequence are performed, the data information of each data is added to the data queue based on the time sequence, and then each data can be sequentially added to the corresponding task queue based on the bit sequence of the data queue, so as to perform the merging processing of the first data and the second data. It can be understood that the time sequence here refers to the operation time sequence, which can be represented by the sampling time of the data. In this way, by receiving the operation record data of the second view page through the first application module, the data merging based on the queue is performed, which can avoid frequent information interaction between multiple program environments, reduce the data merging complexity, and uniformly add information to the queue and distribute merging tasks for the data of different application modules, which is beneficial to optimizing the subsequent data playback effect and improving the data processing efficiency of the playback.
[0098] In some embodiments, an encrypted target identifier can also be generated for each first data and second data to encrypt and protect the bit sequence between the data. Accordingly, the method can further include the following steps S2071-S2073:
[0099] S2071: Obtain the sampling time of each first data, the sampling time of the previous data corresponding to the time sequence of the first data, and the unique identifier of the previous data, and obtain the sampling time of each second data, the sampling time of the previous data corresponding to the time sequence of the second data, and the unique identifier of the previous data;
[0100] S2072: For each first data and each second data, an identification encryption operation is performed based on the sampling time, the sampling time of the previous data and the unique identifier of the previous data, to obtain the target identifier of each first data and the target identifier of each second data;
[0101] S2073: Each first data is associated with the corresponding target identifier, and each second data is associated with the corresponding target identifier, and the target identifier is used to indicate the data display bit sequence.
[0102] Specifically, the sampling time refers to the time when the data is collected, which can be represented by a timestamp; the unique identifier refers to the identifier of each data, which can be a randomly generated identifier code, etc. For each first data or each second data, after determining its operation timing, the sampling time of a single data, the sampling time of the previous data in the timing of the data and the unique identifier of the previous data are encrypted and calculated to obtain the target identifier of the single data. The encryption operation can be a message digest algorithm, such as MD5 algorithm, SHA-3 algorithm, etc. Illustratively, the element fragments in the data queue are first data 3-second data 2-first data 4, then for the second data 2, the sampling time of the second data 2, the sampling time of the first data 3 and the unique identifier of the first data 3 are obtained to perform encryption calculation by using a preset encryption algorithm to obtain the target identifier of the second data 2, and the two are stored in association. By combining the encryption calculation of the data sequence information, the target identifier of each data which can represent the bit sequence is generated to mark the display bit sequence, so as to verify the display bit sequence of each first data and each second data during the playback operation, to determine whether the playback bit sequence is the same as the storage bit sequence, to avoid malicious tampering or playback errors during the playback, etc., to improve the reliability and security of the operation data playback.
[0103] Accordingly, in combination with the target identifier verification operation data playback (refer to S701-S703 hereinafter), the display position sequence of each first data and each second data in the restoration display process is obtained, and based on the display position sequence, for each first data and each second data, the sampling time, the sampling time of the previous data on the display position sequence, and the unique identifier of the previous data are obtained, and the identifier encryption operation is performed based on the sampling time, the sampling time of the previous data on the display position sequence, and the unique identifier of the previous data, to obtain the reference identifier of each first data and each second data. It can be understood that the identifier encryption operation here is similar to the foregoing S2072 and will not be repeated. The reference identifier of each data is compared with the target identifier, and if the comparison is consistent, it is determined that the display position sequence of the data is normal, and if the comparison is inconsistent, it is determined that the display position sequence of the data is abnormal, and relevant abnormal processing is performed. Alternatively, based on the display position sequence, the reference identifier of each data of the operation data playback is formed into an identifier sequence, and a corresponding target identifier sequence is formed to perform sequence comparison to obtain a sequence comparison result, which is used to represent whether there is a playback abnormality, so that the display position sequence verification of data playback is realized.
[0104] Based on the above partial or all embodiments, in the embodiment of the application, the method can further include S501: sending the target record data to the server based on the first application module.
[0105] Specifically, the first application module sends the target record data to the server for persistent storage through a heuristic scheduling scheme. The heuristic scheduling scheme can optimize the reliability of data transmission and ensure the integrity of the final data. Specifically, the heuristic scheduling scheme is used to configure the timing of sending part of the data to the server, the cleaning timing of the first end temporarily storing the record data, and the determination configuration of reliable data storage, etc.
[0106] In some embodiments, S501 can include the following S5011-S5014:
[0107] S5011: In the generation process of the target record data, periodically send the data fragments of the generated target record data to the server based on the timing sequence;
[0108] S5012: Receive feedback information sent by the server in response to the data fragments;
[0109] S5013: If the feedback information indicates that the data fragment is stored successfully, delete the data cache corresponding to the data fragment;
[0110] S5014: If the feedback information indicates that the data fragment fails to be stored, perform retry sending on the data fragment.
[0111] Specifically, the above-mentioned period can be in units of data increment size or in units of time length, such as when the cumulative data volume reaches 32 KB, a data fragment transmission is performed, or a data fragment is transmitted every 5 seconds.
[0112] Specifically, the feedback information indicates the transmission state of the data fragment, including storage success or storage failure. If the storage is successful, the corresponding cache in the first end is deleted to reduce resource occupation, and if the storage fails, the transmission is retried until the feedback information indicating that the data fragment is stored successfully is received, or the number of retries reaches a preset upper limit to report a data error. In this way, the load limit of the network request in the data transmission process can be met, the server pressure in the batch data processing process can be reduced, and the risk of data transmission failure can be reduced.
[0113] In some embodiments, the method can further include the following S601-S605:
[0114] S601: In response to an initialization event of the first view page, detecting a record data cache state corresponding to the first view page;
[0115] S603: If the record data cache state indicates that there is residual data fragment corresponding to the target record data, maintaining the sending operation of the residual data fragment to the server until the feedback information indicating that the residual data fragment is stored successfully is received;
[0116] S605: If the record data cache state indicates that there is no residual data fragment corresponding to the target record data, performing a page operation corresponding to the initialization event.
[0117] Specifically, the initialization event can include a page closing trigger event or a page jump trigger event. Before the page closing or page jump is executed, it is detected whether there is residual data fragment. If there is, it indicates that the target record data is not transmitted completely, and the transmission is continued until all data fragments are transmitted successfully, and then the page closing operation is executed, so as to avoid that the network request of the incomplete data transmission is canceled by the program kernel when the page is closed or jumped, thereby reducing the risk of data transmission failure.
[0118] Based on the above part or all of the embodiments, in the embodiment of the application, after S207, the method can further include the following S701-S703 to realize operation data playback:
[0119] S701: In response to a page operation reproduction request for a target function application, obtaining target record data corresponding to the page operation reproduction request, the target record data being obtained by merging the first operation record data and the second operation record data;
[0120] S703: The target record data is serialized and restored and displayed based on a playback view component of the target playback application, and the target playback application is a component implemented based on a single program programming language.
[0121] The following describes a page operation data processing method of the application based on the above application environment. Please refer to Figure 4 , Figure 4 is a flowchart of a page operation data processing method provided by an embodiment of the application. The present specification provides method operation steps as in the embodiments or flowcharts, but more or fewer operation steps can be included based on conventional or non-creative labor. The order of the steps listed in the embodiments is only one of the many execution orders, and does not represent the only execution order. In actual system or server product execution, the method order shown in the embodiments or the drawings can be executed in sequence or in parallel (for example, in a parallel processor or multi-threaded processing environment). Specifically, as shown in Figure 4 , the method is applied to a target playback application of a second end, and can include the following steps S801-S803.
[0122] S801: In response to a page operation reproduction request for a target function application, target record data corresponding to the page operation reproduction request is obtained;
[0123] S803: The target record data is serialized and restored and displayed based on a playback view component of the target playback application.
[0124] Specifically, the target playback application is a component implemented based on a single program programming language, and is preferably implemented based on a program programming language corresponding to the first application module, such as using web development technology to obtain the best compatibility and user experience. It can be applied to enterprise business back-end processing or forensics, etc., and can only use mouse operations without the need to install additional dedicated software. The peer component of the second view component is implemented through the program programming language corresponding to the first application module, such as a web technology component with consistent display effects, which only needs to meet the corresponding component operation playback function. Understandably, a single business can involve jumping between multiple first view pages and multiple second view pages, and the target record data can include a series of first operation record data corresponding to a series of first view pages and a series of second operation record data corresponding to a series of second view pages in a single business. In this way, the playback of the target playback application using only display functions for business operation restoration and playback does not need to process interactive operations and business logic, significantly reducing program complexity and optimizing device compatibility.
[0125] Specifically, the page operation reproduction request can carry an index identifier of the target record data to be played back, and the corresponding target record data is obtained based on the index identifier. The index identifier can be set based on actual business requirements, which is not limited here.
[0126] Specifically, the serialized page restoration display refers to implementing a view page by using a playback view component and changing a page display state based on corresponding operation time sequences and time intervals according to target operation data, so as to reproduce a page state response generated by a preset operation of an operation subject in a target function application.
[0127] Specifically, the target playback application sequentially reads operation record data corresponding to each first view page and second view page in the target record data, changes a display state (such as display / hide, content scrolling position, zoom, and the like) of the component according to sampling time, operation information, and operation environment state snapshot information recorded in the operation record data, and thus displays interface changes consistent with an operation process of the operation subject, to complete operation data playback.
[0128] The embodiment of the present application further provides a page operation data processing apparatus 10 applied to a target function application of a first end, wherein the target function application includes a first application module and a second application module, as shown in Figure 5 Figure 5 The embodiment of the present application shows a structural schematic diagram of a page operation data processing apparatus, and the apparatus can include the following modules.
[0129] The first collection module 11 is configured to collect first operation record data generated for the first view page, wherein the first view page is generated by view rendering of a first view component of the first application module;
[0130] The second collection module 12 is configured to collect second operation record data generated for the second view page, wherein the second view page is generated by view rendering of a second view component corresponding to application function call information in the second application module, and the application function call information is transmitted by the first application module through a bridge interface, and the first application module and the second application module are implemented by using different program programming languages;
[0131] The interface calling module 13 is configured to call the bridge interface through the second application module, to transmit the second operation record data to the first application module;
[0132] The data merging module 14 is configured to perform merging processing on the first operation record data and the second operation record data by the first application module, to obtain target record data.
[0133] In some embodiments, the apparatus further includes:
[0134] The first view rendering module is configured to perform view rendering on the first view component by the first application module, to obtain the first view page, before recording the second operation record data for the second view page by the second application module;
[0135] The second view rendering module is configured to, in response to a display trigger event of the second view page, transmit application function calling information by calling the bridge interface through the first application module, so that the second application module performs view rendering on the second view component based on the function calling information, and obtains the second view page.
[0136] The display control module is configured to control superimposed display of the first view page and the second view page by the first application module.
[0137] In some embodiments, the apparatus further comprises a record function calling module configured to, in response to a display trigger event of the second view page, transmit record function calling information by calling the bridge interface through the first application module, so as to trigger collection of second operation record data corresponding to the second view page based on the record function calling information.
[0138] In some embodiments, the first collection module 11 comprises:
[0139] The first obtaining unit is configured to obtain first interaction operation data submitted for the first view page and serialized node data corresponding to the first view page, the serialized node data being used to indicate a page state response generated by the first view page for the first interaction operation data.
[0140] The first generating unit is configured to generate first operation record data based on the first interaction operation data and the serialized node data.
[0141] In some embodiments, the second collection module 12 comprises:
[0142] The second obtaining unit is configured to obtain second interaction operation data submitted for the second view page and serialized component attribute data corresponding to the second view component, the serialized component attribute data being used to indicate a page state response generated by the second view page for the second interaction operation data.
[0143] The second generating unit is configured to generate second operation record data based on the second interaction operation data and the serialized component attribute data.
[0144] In some embodiments, the interface calling module 13 can be specifically configured to, in response to a closing trigger event of the second view page, call a second application method corresponding to the bridge interface by the second application module, and transmit the second operation record data as a method parameter, the second application method being a program method corresponding to the bridge interface and matched with a program running environment of the second application module.
[0145] In some embodiments, the apparatus further comprises a data sending module configured to send target record data to a server based on the first application module.
[0146] In some embodiments, the data sending module comprises:
[0147] a data fragment sending unit configured to send, in a process of generating the target record data, a data fragment of the generated target record data to the server based on a time sequence periodicity;
[0148] an information receiving unit configured to receive feedback information sent by the server in response to the data fragment;
[0149] a cache processing unit configured to delete a data cache corresponding to the data fragment if the feedback information indicates that the data fragment is stored successfully.
[0150] In some embodiments, the apparatus further comprises:
[0151] a cache detection module configured to detect a record data cache state corresponding to the first view page in response to an initialization event of the first view page;
[0152] a judgment module configured to maintain a sending operation of a residual data fragment to the server until feedback information indicating that the residual data fragment is stored successfully is received if the record data cache state indicates that the residual data fragment corresponding to the target record data exists.
[0153] In some embodiments, the first operation record data comprises at least one first data generated by performing a preset operation on the first view page, and the second operation record data comprises at least one second data generated by performing the preset operation on the second view page; and the data merging module 14 comprises:
[0154] a data adding unit configured to add, by the first application module, data information of each first data corresponding to the first operation record data and data information of each second data corresponding to the second operation record data to a data queue in a time sequence;
[0155] a data merging unit configured to perform data merging on each first data and each second data based on the data queue to obtain the target record data.
[0156] In some embodiments, the apparatus further comprises:
[0157] an identifier obtaining module configured to obtain a sampling time of each first data, a sampling time and a unique identifier of a previous data corresponding to a time sequence of the first data, and obtain a sampling time of each second data, a sampling time and a unique identifier of a previous data corresponding to a time sequence of the second data;
[0158] an encryption operation module configured to perform, for each first data and each second data, an identifier encryption operation based on the sampling time, the sampling time of the previous data, and the unique identifier of the previous data to obtain a target identifier of each first data and a target identifier of each second data;
[0159] The identification association module is configured to associate each first data with a corresponding target identification, and associate each second data with a corresponding target identification, the target identification being used to indicate a data display position.
[0160] The embodiment of the present application further provides a page operation data processing apparatus 20, which is applied to a target playback application of a second terminal. Figure 6 Figure 6 The embodiment of the present application shows a structural schematic diagram of a page operation data processing apparatus, and the apparatus can include the following modules.
[0161] The recording data acquisition module 21 is configured to acquire target recording data corresponding to a page operation reproduction request of a target function application in response to the page operation reproduction request, the target recording data being combined by the first operation recording data and the second operation recording data.
[0162] The restoration display module 22 is configured to perform serialized page restoration display on the target recording data based on a playback view component of the target playback application, the target playback application being a component implemented based on a single programming language.
[0163] It should be noted that the apparatus embodiment and the method embodiment are based on the same implementation.
[0164] The embodiment of the present application provides a page operation data processing device, which can be a terminal or a server, and includes a processor and a memory, the memory storing at least one instruction or at least one program, the at least one instruction or the at least one program being loaded and executed by the processor to implement the page operation data processing method provided in the above method embodiment.
[0165] The memory can be used to store software programs and modules, and the processor can execute various function applications and page operation data processing by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required by functions, etc.; and the data storage area can store data created according to the use of the device, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. Accordingly, the memory can also include a memory controller to provide access of the processor to the memory.
[0166] The method embodiment provided by the embodiment of the present application can be executed in a mobile terminal, a computer terminal, a server or similar computing devices and other electronic devices. Figure 7 FIG. 1 is a hardware structural block diagram of an electronic device of a page operation data processing method provided by the embodiment of the present application. As shown in Figure 7 As shown, the electronic device 900 can vary greatly in configuration and performance, and can include one or more Central Processing Units (CPU) 910 (processor 910 can include, but is not limited to, a microprocessor, a programmable logic device, a microcontroller, or the like), a memory 930 for storing data, one or more storage media 920 (e.g., one or more mass storage devices) for storing applications 923 or data 922. The memory 930 and the storage media 920 can be of the volatile or persistent storage type. The programs stored in the storage media 920 can include one or more modules, each of which can include a series of instructions for operating on the electronic device. Further, the CPU 910 can be configured to communicate with the storage media 920 to execute a series of instructions on the electronic device 900 stored in the storage media 920. The electronic device 900 can also include one or more power supplies 960, one or more wired or wireless network interfaces 950, one or more input / output interfaces 940, and / or one or more operating systems 921, such as Windows Server TM , Mac OS X TM , Unix TM , Linux™, FreeBSD™, and the like.
[0167] The input / output interface 940 can be configured to receive or transmit data via a network. Examples of the network can include a wireless network provided by a communication provider of the electronic device 900. In one example, the input / output interface 940 includes a network interface controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In one example, the input / output interface 940 can be a radio frequency (RF) module configured to communicate with the Internet through a wireless manner.
[0168] Those of ordinary skill in the art will understand, Figure 7 that the structure shown is merely illustrative and does not limit the structure of the electronic device described above. For example, the electronic device 900 can include more or fewer components than those shown in Figure 7 or have a different configuration than that shown in Figure 7 .
[0169] The embodiment of the present application further provides a computer readable storage medium, which can be arranged in an electronic device to store at least one instruction or at least one program for implementing a page operation data processing method in the method embodiment, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the page operation data processing method provided in the above method embodiment.
[0170] Optionally, in the embodiment, the storage medium can be located in at least one of a plurality of network servers of a computer network. Optionally, in the embodiment, the storage medium can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various media capable of storing program codes.
[0171] According to an aspect of the present application, a computer program product or a computer program is provided, which 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 the processor executes the computer instructions, so that the computer device executes the method provided in the various optional implementation manners.
[0172] According to the embodiments of the page operation data processing method, system, device, server, terminal, storage medium and program product provided in the present application, the application module of different program programming languages corresponds to collect the operation record data of the corresponding view page, and the transmission of the function calling information is realized based on the bridge interface, so that the function sharing and calling between the first application module and the second application module is realized, and the operation record data transmission of the second application module is completed, so that the first application module can perform the merging storage of the first operation record data and the second operation record data, and the complete collection of the component view data of multiple program languages is realized, the operation data loss and the program function loss are avoided, the integrity and reliability of the operation data record are ensured, the function implementation of the application program is realized without the single program development technology, the advantages of multiple development technologies are obtained at the same time of reducing the program development cost, the application compatibility and the function experience are improved, and the application scenarios of the operation data record and playback are expanded.
[0173] It should be noted that the above-mentioned order of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. And the above-mentioned specific embodiments of the present application are described. 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 the order in the embodiments and still achieve the desired result. In addition, the processes depicted in the figures do not necessarily require the particular order shown or sequential order to achieve the desired results. In certain implementations, multi-task processing and parallel processing are possible or advantageous.
[0174] Each of the embodiments in the present application is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other. Each embodiment focuses on the difference from other embodiments. Especially, for the device, equipment and storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment.
[0175] A person of ordinary skill in the art can understand that all or part of the steps of the above-mentioned embodiments can be completed by hardware, or by a program instructing the relevant hardware to complete, and the program can be stored in a computer readable storage medium. The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk.
[0176] The above is only the preferred embodiment of the present application, and does not limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A page operation data processing method applied to a target function application of a first end, the target function application comprising a first application module and a second application module, characterized in that, The method comprises: Collecting, by a first application module, first operation record data generated for a first view page, the first view page being generated by view rendering of a first view component of the first application module; collecting, by a second application module, second operation record data generated for a second view page, the second view page being generated by view rendering of a second view component corresponding to application function call information in the second application module, the application function call information being transmitted by the first application module through a bridge interface, the first application module and the second application module being implemented in different program programming languages, the first application module being implemented based on a program language of a web development technology, and the second application module being implemented based on a program language of a native development technology; the first application module transmits record function call information to the second application module through the bridge interface, so that the second application module obtains an indication of a data collection process, and recording and transmission of operation record data are in units of view pages; the bridge interface is a bridge SDK interface, comprising program methods in a running environment of the first application module and program methods in a running environment of the second application module; the second application module transmits the second operation record data to the first application module by calling the bridge interface through the second application module; Merging, by the first application module, the first operation record data and the second operation record data to obtain target record data, the first application module controlling integration and storage of operation record data.
2. The method of claim 1, wherein, Before the second operation record data for the second view page is recorded by the second application module, the method further comprises: View rendering, by the first application module, of the first view component to obtain the first view page; In response to a display trigger event of the second view page, transmitting, by the first application module, the application function call information by calling the bridge interface, so that the second application module renders the second view component based on the function call information to obtain the second view page; Controlling, by the first application module, superimposed display of the first view page and the second view page.
3. The method of claim 2, wherein, The method further comprises: In response to a display trigger event of the second view page, transmitting, by the first application module, record function call information by calling the bridge interface, so as to trigger collection of second operation record data corresponding to the second view page based on the record function call information.
4. The method of claim 1, wherein, The collecting of the first operation record data generated for the first view page comprises: Obtaining first interaction operation data submitted for the first view page and serialized node data corresponding to the first view page, the serialized node data being used to indicate a page state response generated by the first view page for the first interaction operation data; Generating the first operation record data based on the first interaction operation data and the serialized node data.
5. The method of claim 1, wherein, The collecting of the second operation record data generated for the second view page comprises: obtaining second interaction operation data submitted for the second view page and serialized component attribute data corresponding to the second view component, the serialized component attribute data being used to indicate a page state response generated by the second view page for the second interaction operation data; generating the second operation record data based on the second interaction operation data and the serialized component attribute data.
6. The method of claim 1, wherein, The calling, by the second application module, of the bridge interface to transmit the second operation record data to the first application module includes: In response to a closing trigger event of the second view page, calling, by the second application module, a second application method corresponding to the bridge interface to transmit the second operation record data as a method parameter, the second application method being a program method corresponding to the bridge interface and matched with a program running environment of the second application module.
7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: sending, by the first application module, the target record data to a server.
8. The method of claim 7, wherein, The sending, by the first application module, of the target record data to the server includes: In the process of generating the target record data, periodically sending, based on a time sequence, a data shard of the generated target record data to the server; receiving feedback information sent by the server in response to the data shard; if the feedback information indicates that the data shard is stored successfully, deleting a data cache corresponding to the data shard.
9. The method of claim 7, wherein, The method further includes: In response to an initialization event of the first view page, detecting a record data cache state corresponding to the first view page; if the record data cache state indicates that there is residual data shard corresponding to the target record data, maintaining a sending operation of the residual data shard to the server until feedback information indicating that the residual data shard is stored successfully is received.
10. The method according to any one of claims 1-6, characterized in that, The first operation record data includes at least one first data generated by performing a preset operation on the first view page, and the second operation record data includes at least one second data generated by performing a preset operation on the second view page. The merging, by the first application module, of the first operation record data and the second operation record data to obtain target record data includes: adding, by the first application module, data information of each first data corresponding to the first operation record data and data information of each second data corresponding to the second operation record data to a data queue in a time sequence; merging the first data and the second data based on the data queue to obtain the target record data.
11. The method of claim 10, wherein, The method further includes: obtaining a sampling time of each first data, a sampling time of a previous data corresponding to a time sequence of the first data, and a unique identifier of the previous data, and obtaining a sampling time of each second data, a sampling time of a previous data corresponding to a time sequence of the second data, and a unique identifier of the previous data; For each of the first data and each of the second data, based on the sampling time, the sampling time of the previous data and the unique identification of the previous data, an identification encryption operation is performed to obtain the target identification of each of the first data and the target identification of each of the second data; Each of the first data is associated with the corresponding target identification, and each of the second data is associated with the corresponding target identification, and the target identification is used to indicate the data display bit sequence.
12. A page operation data processing method applied to a target playback application of a second end, comprising: The method comprises: In response to a page operation reproduction request for a target function application, target record data corresponding to the page operation reproduction request is obtained, the target record data being combined from first operation record data and second operation record data; Based on a playback view component of the target playback application, the target record data is serialized and restored to display, the target playback application being a component implemented based on a single programming language, and the target record data being generated by the page operation data processing method of any one of claims 1-11.
13. A page operation data processing system comprising a target function application at a first end and a target playback application at a second end, the target function application comprising a first application module and a second application module, characterized in that, The first end is configured to: collect, by the first application module, first operation record data generated for a first view page, the first view page being generated by view rendering of a first view component of the first application module; collect, by the second application module, second operation record data generated for a second view page, the second view page being generated by view rendering of a second view component corresponding to application function call information in the second application module, the application function call information being transmitted by the first application module through a bridge interface, the first application module and the second application module being implemented in different programming languages, the first application module being implemented in a program language based on web development technology, and the second application module being implemented in a program language based on native development technology; the first application module transmits record function call information to the second application module through the bridge interface to enable the second application module to obtain an indication of a data collection process, and record and transmit operation record data in units of view pages; the bridge interface is a bridge SDK interface, including program methods in a running environment of the first application module and program methods in a running environment of the second application module; call the bridge interface by the second application module, the second application module transmitting the second operation record data to the first application module; and merge the first operation record data and the second operation record data by the first application module to obtain target record data, the first application module controlling the integration and storage of operation record data; The second end is configured to obtain target record data corresponding to a page operation reproduction request for a target function application in response to the page operation reproduction request. And based on a playback view component of the target playback application, the target record data is serialized and page-recovered and displayed, and the target playback application is a component implemented based on a single program programming language.
14. A page operation data processing apparatus applied to a target function application of a first end, the target function application comprising a first application module and a second application module, characterized in that, The device comprises: A first acquisition module is configured to acquire, by a first application module, first operation record data generated for a first view page, the first view page being generated by view rendering of a first view component of the first application module; A second acquisition module is configured to acquire, by a second application module, second operation record data generated for a second view page, the second view page being generated by view rendering of a second view component corresponding to application function call information in the second application module, the application function call information being transmitted by the first application module through a bridge interface, the first application module and the second application module being implemented by different program programming languages, the first application module being implemented by a program language based on web development technology, and the second application module being implemented by a program language based on native development technology; the first application module transmits record function call information to the second application module through the bridge interface, so that the second application module obtains an indication of a data acquisition process, and the recording and transmission of operation record data are in units of view pages; the bridge interface is a bridge SDK interface, including program methods in a running environment of the first application module and program methods in a running environment of the second application module; An interface calling module is configured to call the bridge interface by the second application module, and the second application module transmits the second operation record data to the first application module; A data merging module is configured to merge, by the first application module, the first operation record data and the second operation record data to obtain target record data, and the first application module controls the integration and storage of operation record data.
15. The apparatus of claim 14, wherein, The device further comprises: A first view rendering module is configured to perform view rendering on the first view component by the first application module to obtain a first view page before the second application module records second operation record data for a second view page; A second view rendering module is configured to, in response to a display trigger event of the second view page, call the bridge interface by the first application module to transmit the application function call information, so that the second application module performs view rendering on the second view component based on the function call information to obtain the second view page; A display control module is configured to control the superimposed display of the first view page and the second view page by the first application module.
16. The apparatus of claim 15, wherein, The device further comprises a record function calling module: configured to, in response to a display trigger event of the second view page, call the bridge interface by the first application module to transmit record function call information, so as to trigger the acquisition operation of the second operation record data corresponding to the second view page based on the record function call information.
17. The apparatus of claim 14, wherein, The first acquisition module comprises: The first acquisition unit is configured to acquire first interaction operation data submitted for the first view page and serialized node data corresponding to the first view page, the serialized node data being used to indicate a page state response generated by the first view page for the first interaction operation data. The first generation unit is configured to generate the first operation record data based on the first interaction operation data and the serialized node data.
18. The apparatus of claim 14, wherein, The second acquisition module comprises: The second acquisition unit is configured to acquire second interaction operation data submitted for the second view page and serialized component attribute data corresponding to the second view component, the serialized component attribute data being used to indicate a page state response generated by the second view page for the second interaction operation data. The second generation unit is configured to generate the second operation record data based on the second interaction operation data and the serialized component attribute data.
19. The apparatus of claim 14, wherein, The interface calling module is specifically configured to: In response to a closing trigger event of the second view page, call, by the second application module, a second application method corresponding to the bridge interface, to transmit the second operation record data as a method parameter, the second application method being a program method corresponding to the bridge interface and matched with a program running environment of the second application module.
20. The apparatus of any one of claims 14-19, wherein, The device further comprises a data sending module: configured to send, based on the first application module, the target record data to a server.
21. The apparatus of claim 20, wherein, The data sending module comprises: The fragment sending unit is configured to periodically send, based on a time sequence, a data fragment of the target record data generated in a generation process of the target record data to the server; The information receiving unit is configured to receive feedback information sent by the server in response to the data fragment; The cache processing unit is configured to delete a data cache corresponding to the data fragment if the feedback information indicates that the data fragment is stored successfully.
22. The apparatus of claim 20, wherein, The device further comprises: The cache detection module is configured to detect a record data cache state corresponding to the first view page in response to an initialization event of the first view page; The judgment module is configured to maintain a sending operation of residual data fragments corresponding to the target record data to the server if the record data cache state indicates that the residual data fragments exist, until feedback information indicating that the residual data fragments are stored successfully is received.
23. The apparatus of any one of claims 14-19, wherein, The first operation record data comprises at least one first data generated by performing a preset operation on the first view page, and the second operation record data comprises at least one second data generated by performing a preset operation on the second view page. The data merging module comprises: The data adding unit is configured to add, by the first application module, data information of each first data corresponding to the first operation record data and data information of each second data corresponding to the second operation record data to a data queue in a time sequence; The data merging unit is configured to merge the each first data and the each second data based on the data queue to obtain the target record data.
24. The apparatus of claim 23, wherein, The device further comprises: The identifier obtaining module is configured to obtain the sampling time of each first data, the sampling time of previous data corresponding to the time sequence of the first data, and the unique identifier of the previous data, and obtain the sampling time of each second data, the sampling time of previous data corresponding to the time sequence of the second data, and the unique identifier of the previous data; The encryption operation module is configured to perform an identifier encryption operation on each first data and each second data based on the sampling time, the sampling time of the previous data, and the unique identifier of the previous data, to obtain a target identifier of each first data and a target identifier of each second data; The identifier association module is configured to associate each first data with a corresponding target identifier, and associate each second data with a corresponding target identifier, the target identifier being used to indicate a data display bit sequence.
25. A page operation data processing apparatus applied to a target playback application of a second end, characterized in that, The device comprises: The recorded data obtaining module is configured to obtain target recorded data corresponding to a page operation reproduction request for a target function application in response to the page operation reproduction request, the target recorded data being obtained by merging first operation recorded data and second operation recorded data; The restoration display module is configured to perform serialized page restoration display on the target recorded data based on a playback view component of the target playback application, the target playback application being a component implemented based on a single program programming language, and the target recorded data being generated by using the page operation data processing method of any one of claims 1-11.
26. A computer device, comprising: The device comprises a processor and a memory, and the memory stores at least one instruction or at least one program, which is loaded and executed by the processor to implement the page operation data processing method of any one of claims 1-11.
27. A computer-readable storage medium, characterized in that, The storage medium stores at least one instruction or at least one program, which is loaded and executed by the processor to implement the page operation data processing method of any one of claims 1-11.
28. A computer program product, characterised in that, The computer program product comprises computer instructions, which are executed by the processor to implement the page operation data processing method of any one of claims 1-11.
Citation Information
Patent Citations
Method and device for determining user operation records in mixed APP
CN107239389A
Method for calling local function by webpage, electronic equipment and storage medium
CN112100561A
Webpage operation process recording and playback method
CN112148571A