Page sharing processing methods, devices, equipment and storage media
By synchronizing target-shared page data on the mirror terminal and using control event data to simulate operations, the problem of the inability to remotely operate the mirror terminal is solved, achieving efficient page interaction and remote control.
Patent Information
- Application Number
- CN202210577370.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-25
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2042-05-25
AI Technical Summary
In existing technologies, mirrored terminals cannot remotely operate web pages on shared terminals, resulting in poor page interaction performance.
By acquiring the page data of the target sharing page and synchronizing it to the target mirror terminal, and using the control event data sent by the target mirror terminal to simulate user interaction operations, the page data of the target mirror terminal is updated in real time, thereby realizing remote control and page interaction operations.
It improves the performance of page interaction and enables real-time interaction and remote control of the target mirror terminal on the target shared page.
Smart Images

Figure CN115016956B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a page sharing processing method, apparatus, device, and storage medium. Background Technology
[0002] With the development of internet technology, page sharing can now achieve text sharing, image sharing, file sharing, and even remote operation. Page sharing specifically refers to sending the webpage content data of the client (the sharing terminal) to other terminals (the mirrored terminals).
[0003] In existing technologies, the page content of a shared terminal can be synchronized to a mirror terminal, but the mirror terminal cannot remotely operate the web pages on the shared terminal. In other words, the data flow between the shared terminal and the mirror terminal is unidirectional, resulting in poor page interaction performance. Summary of the Invention
[0004] This invention provides a page sharing processing method, apparatus, device, and storage medium, which enables a target mirror terminal to perform page interaction operations and remote control functions on a target shared page, thereby improving the performance of page interaction operations.
[0005] To achieve the above objectives, a first aspect of the present invention provides a page sharing processing method, comprising: acquiring target page data corresponding to a target sharing page, wherein the target page data is used to indicate at least one document object model element and an event listener function corresponding to each document object model element; synchronizing the target page data to a target mirror terminal, so that the target mirror terminal draws and displays the target page data; acquiring target page control event data sent by the target mirror terminal, wherein the target page control event data is used to indicate user operation data that remotely controls the target page data; performing simulated user interaction operations on the target sharing page according to the target page control event data, and obtaining an interaction operation result; when the interaction operation result is that the operation is completed, and a page change is detected on the target sharing page, acquiring the changed sharing page data, and pushing the changed sharing page data to the target mirror terminal.
[0006] Optionally, in a first implementation of the first aspect of the present invention, obtaining the target page data corresponding to the target sharing page includes: receiving a page acquisition request and reading a page identifier from the page acquisition request; extracting initial page data from the target sharing page based on the page identifier, wherein the page identifier corresponds one-to-one with the target sharing page; and converting the initial page data into target page data according to a preset data format.
[0007] Optionally, in a second implementation of the first aspect of the present invention, synchronizing the target page data to the target mirror terminal includes: obtaining a shared terminal identifier and a mirror terminal identifier corresponding to the target mirror terminal, and generating a synchronization permission confirmation request based on the shared terminal identifier and the mirror terminal identifier; sending the synchronization permission confirmation request to the target mirror terminal to obtain synchronization permission response data; and sending the target page data to the target mirror terminal according to the synchronization permission response data.
[0008] Optionally, in a third implementation of the first aspect of the present invention, obtaining the target page control event data sent by the target mirror terminal includes: when the target page data is rendered, listening to the user operations performed by each document object model element through the event listening function corresponding to each document object model element in the target mirror terminal to obtain initial page control event data, and setting a user operation simulation request according to the initial page control event data; receiving the user operation simulation request sent by the target mirror terminal, and performing parameter parsing and parameter verification on the user operation simulation request to obtain the target page control event data.
[0009] Optionally, in a fourth implementation of the first aspect of the present invention, the step of simulating user interaction operations on the target sharing page according to the target page control event data to obtain interaction operation results includes: parsing the target page control event data according to a preset data format to obtain parsed page control event data; performing element verification on the parsed page control event data according to the document object model elements in the target sharing page to obtain a verification result; when the verification result is a successful verification, generating at least one user interaction operation instruction according to the parsed page control event data; triggering a user interaction operation according to the at least one user interaction operation instruction to obtain an interaction operation result.
[0010] Optionally, in a fifth implementation of the first aspect of the present invention, the step of acquiring the changed sharing page data and pushing the changed sharing page data to the target mirror terminal when the interaction operation result is operation completed and page changes are detected on the target sharing page includes: acquiring user interaction operation page data according to a preset page data acquisition function when the interaction operation result is operation completed and page changes are detected on the target sharing page; determining whether the user interaction operation page data and the target page data are consistent; if the user interaction operation page data and the target page data are inconsistent, determining the changed sharing page data according to the user interaction operation page data and the target page data, and pushing the changed sharing page data to the target mirror terminal.
[0011] Optionally, in the sixth implementation of the first aspect of the present invention, after the step of obtaining the changed sharing page data and pushing the changed sharing page data to the target mirror terminal when the interaction operation result is operation completion and page changes are detected on the target sharing page, the page sharing processing method further includes: performing data persistence processing on the target page control event data to obtain a persistent control event dataset; performing event statistical analysis on the persistent control event dataset based on a preset duration to obtain user interaction operation statistical data, and drawing a user interaction operation statistical table based on the user interaction operation statistical data.
[0012] A second aspect of the present invention provides a page sharing processing apparatus, comprising: a first acquisition module, configured to acquire target page data corresponding to a target sharing page, the target page data being used to indicate at least one document object model element and event listener functions corresponding to each document object model element; a synchronization module, configured to synchronize the target page data to a target mirror terminal, so that the target mirror terminal draws and displays the target page data; a second acquisition module, configured to acquire target page control event data sent by the target mirror terminal, the target page control event data being used to indicate user operation data illustrating remote control of the target page data; a simulation module, configured to perform simulated user interaction operations on the target sharing page according to the target page control event data, and obtain interaction operation results; and a push module, configured to acquire the changed sharing page data and push the changed sharing page data to the target mirror terminal when the interaction operation result is that the operation is completed and a page change is detected on the target sharing page.
[0013] Optionally, in a first implementation of the second aspect of the present invention, the first acquisition module is specifically configured to: receive a page acquisition request and read a page identifier from the page acquisition request; extract initial page data from the target sharing page based on the page identifier, wherein the page identifier corresponds one-to-one with the target sharing page; and convert the initial page data into target page data according to a preset data format.
[0014] Optionally, in a second implementation of the second aspect of the present invention, the synchronization module is specifically used to: obtain the shared terminal identifier and the mirror terminal identifier corresponding to the target mirror terminal, and generate a synchronization permission confirmation request based on the shared terminal identifier and the mirror terminal identifier; send the synchronization permission confirmation request to the target mirror terminal to obtain synchronization permission response data; and send the target page data to the target mirror terminal according to the synchronization permission response data.
[0015] Optionally, in a third implementation of the second aspect of the present invention, the second acquisition module is specifically used to: when the target page data is rendered, listen to the user operations performed by each document object model element through the event listening function corresponding to each document object model element in the target mirror terminal, and obtain target page control event data; receive user operation simulation requests sent by the target mirror terminal, and perform parameter parsing and parameter verification on the user operation simulation requests to obtain the target page control event data.
[0016] Optionally, in the fourth implementation of the second aspect of the present invention, the simulation module is specifically used for: parsing the target page control event data according to a preset data format to obtain parsed page control event data; performing element verification on the parsed page control event data according to the document object model elements in the target sharing page to obtain a verification result; when the verification result is a successful verification, generating at least one user interaction operation instruction according to the parsed page control event data; triggering a user interaction operation according to the at least one user interaction operation instruction to obtain an interaction operation result.
[0017] Optionally, in the fifth implementation of the second aspect of the present invention, the push module is specifically used for: when the interaction operation result is that the operation is completed, and when a page change is detected on the target sharing page, acquiring user interaction operation page data according to a preset page data acquisition function; determining whether the user interaction operation page data and the target page data are consistent; if the user interaction operation page data and the target page data are inconsistent, determining the changed sharing page data according to the user interaction operation page data and the target page data, and pushing the changed sharing page data to the target mirror terminal.
[0018] Optionally, in a sixth implementation of the second aspect of the present invention, the page sharing processing device further includes: a persistence module, used to perform data persistence processing on the target page control event data to obtain a persistent control event dataset; and a statistics module, used to perform event statistical analysis on the persistent control event dataset based on a preset duration to obtain user interaction operation statistics data, and to draw a user interaction operation statistics table based on the user interaction operation statistics data.
[0019] A third aspect of the present invention provides a page sharing processing device, comprising: a memory and at least one processor, wherein the memory stores a computer program; the at least one processor invokes the computer program in the memory to cause the page sharing processing device to perform the page sharing processing method described above.
[0020] A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to perform the page sharing processing method described above.
[0021] The technical solution provided by this invention involves: acquiring target page data corresponding to a target sharing page, wherein the target page data is used to indicate at least one document object model element and event listener functions corresponding to each document object model element; synchronizing the target page data to a target mirror terminal so that the target mirror terminal can draw and display the target page data; acquiring target page control event data sent by the target mirror terminal, wherein the target page control event data is used to indicate user operation data illustrating remote control of the target page data; performing simulated user interaction operations on the target sharing page according to the target page control event data to obtain interaction operation results; when the interaction operation result indicates operation completion and page changes are detected on the target sharing page, acquiring the changed sharing page data and pushing the changed sharing page data to the target mirror terminal. In this embodiment of the invention, by synchronizing the target page data corresponding to the target sharing page to the target mirror terminal, performing simulated user interaction operations on the target sharing page according to the target page control event data sent by the target mirror terminal, and listening to and acquiring changed sharing page data, the page data corresponding to the target mirror terminal is updated in real time, thereby realizing page interaction operations and remote control functions of the target mirror terminal on the target sharing page and improving page interaction operation performance. Attached Figure Description
[0022] Figure 1 This is a schematic diagram of one embodiment of the page sharing processing method in this invention;
[0023] Figure 2 This is a schematic diagram of another embodiment of the page sharing processing method in this invention;
[0024] Figure 3 This is a schematic diagram of one embodiment of the page sharing processing device in this invention;
[0025] Figure 4 This is a schematic diagram of another embodiment of the page sharing processing device in this invention;
[0026] Figure 5 This is a schematic diagram of one embodiment of the page sharing processing device in this invention. Detailed Implementation
[0027] This invention provides a page sharing processing method, apparatus, device, and storage medium, which enables a target mirror terminal to perform page interaction operations and remote control functions on a target shared page, thereby improving the performance of page interaction operations.
[0028] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” or “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0029] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 One embodiment of the page sharing processing method in this invention includes:
[0030] 101. Obtain the target page data corresponding to the target sharing page. The target page data is used to indicate at least one document object model element and the event listener function corresponding to each document object model element.
[0031] The target sharing page belongs to the sharing terminal. The sharing terminal converts the page content of the target sharing page into a pre-set data structure, which is the target page data. Specifically, the sharing terminal parses the target sharing page data according to the preset Document Object Model (DOM) processing plugin, obtaining at least one DOM element and the corresponding event listener functions for each DOM element (i.e., the initial page data). The sharing terminal then encapsulates the at least one DOM element and the corresponding event listener functions according to a preset data format to obtain the target page data. For example, the target page data is {"1":"","2":"} <input> ","3": <button>< / button> Furthermore, the shared terminal stores the target page data in a blockchain database, the specifics of which are not limited here.
[0032] It is understood that the executing entity of this invention can be a page sharing processing device, a sharing terminal, or a server; the specific implementation is not limited here. This embodiment of the invention will be described using a sharing terminal as an example.
[0033] 102. Synchronize the target page data to the target mirror terminal so that the target mirror terminal can draw and display the target page data.
[0034] In other words, after the sharing terminal sends the target page data to the target mirror terminal, the target mirror terminal restores the target page data to the same page content as the target shared page, thereby achieving the purpose of real-time page sharing. Specifically, the sharing terminal verifies access permissions through the sharing terminal identifier and the target mirror terminal identifier, and obtains the verification result. When the verification result is successful, the sharing terminal calls the preset synchronization interface to send the target page data to the target mirror terminal, so that the target mirror terminal can parse, draw, and display the page content corresponding to the target page data.
[0035] 103. Obtain target page control event data sent by the target mirror terminal. The target page control event data refers to user operation data that remotely controls the target page data.
[0036] It should be noted that, in order to achieve the effect of remote control, the target mirror terminal collects the user's interactive operations (such as click operations, scrolling operations, etc.) in real time, converts them into a preset data structure, obtains the target page control event data, and transmits the target page control event data to the shared terminal.
[0037] Specifically, the shared terminal receives a user operation simulation request sent by the target mirror terminal; the shared terminal parses the user operation simulation request to obtain parsed data, which includes the mirror terminal identifier and target page control event data; the shared terminal verifies the mirror terminal identifier to obtain a verification result; when the verification result is successful, the shared terminal reads the target page control event data from the parsed data. The target page control event data refers to user operation data used to remotely control the target page. For example, the target page control event data is [{"id":
[0038] "3","action":"click"},{"id":"1","action":"scroll","x":"number","y":
[0039] "number"},{"id":"2","action":"input","content":"string"}].
[0040] 104. Perform simulated user interaction operations on the target sharing page according to the target page control event data, and obtain the interaction operation results.
[0041] Specifically, the shared terminal parses the target page control event data according to a preset data format to obtain parsed page control event data. Based on this parsed data, the shared terminal simulates user operations to sequentially trigger events corresponding to each document object model element on the target sharing page, executing the corresponding code for each event to obtain the interactive operation result. The shared terminal automatically triggers events corresponding to each document object model element on the target sharing page through the target page control event data and executes the corresponding code, thereby updating the content of the target sharing page.
[0042] 105. When the interaction operation result is "operation completed" and a page change is detected on the target sharing page, obtain the changed sharing page data and push the changed sharing page data to the target mirror terminal.
[0043] Understandably, after parsing the control event data of the target page, the shared terminal simulates user interaction. If the interaction results in completion and a change in the content of the target shared page is detected, the shared terminal reads the changed shared page data from the target shared page in real time and pushes the changed shared page data to the target mirror terminal, thereby achieving the purpose of remote control. The changed shared page data includes newly added, deleted, and / or modified data on the target shared page.
[0044] In this embodiment of the invention, by synchronizing the target page data corresponding to the target sharing page to the target mirror terminal, and performing simulated user interaction operations on the target sharing page based on the target page control event data sent by the target mirror terminal, and by listening to and acquiring the changed sharing page data, the page data corresponding to the target mirror terminal is updated in real time. This enables the target mirror terminal to perform page interaction operations and remote control functions on the target sharing page, thereby improving the performance of page interaction operations.
[0045] Please see Figure 2 Another embodiment of the page sharing processing method in this invention includes:
[0046] 201. Obtain the target page data corresponding to the target sharing page. The target page data is used to indicate at least one document object model element and the event listener function corresponding to each document object model element.
[0047] The target page data is used to indicate at least one Document Object Model (DOM) element and its corresponding event listener function. For example, DOM elements include the document body, text input boxes, and buttons. There is a correspondence between the DOM elements and their corresponding identifiers in the target page data.
[0048] Optionally, the sharing terminal receives a page retrieval request and reads the page identifier from the request. The page identifier may contain characters such as numbers, letters, and underscores; no specific limitation is made here. Based on the page identifier, the sharing terminal extracts initial page data from the target sharing page. Each page identifier corresponds one-to-one with the target sharing page. The initial page data is in Hypertext Markup Language (HTML) format. The sharing terminal then converts the initial page data into target page data according to a preset data format. This preset data format can be either a JavaScript object notation format or a data serialization format; no specific limitation is made here.
[0049] 202. Synchronize the target page data to the target mirror terminal so that the target mirror terminal can draw and display the target page data.
[0050] It should be noted that page data sharing occurs between the sharing terminal and the target mirror terminal. The sharing terminal has a unique shared terminal identifier, and the target mirror terminal has a unique mirror terminal identifier. Optionally, the sharing terminal obtains the shared terminal identifier and the corresponding mirror terminal identifier of the target mirror terminal, and generates a synchronization permission confirmation request based on these identifiers. The sharing terminal sends the synchronization permission confirmation request to the target mirror terminal, obtaining synchronization permission response data. The sharing terminal then sends the target page data to the target mirror terminal according to the synchronization permission response data. Further, when the synchronization permission response data confirms data synchronization, the sharing terminal calls a preset synchronization interface to send the target page data to the target mirror terminal.
[0051] 203. Obtain target page control event data sent by the target mirror terminal. The target page control event data refers to user operation data for remote control of the target page data.
[0052] Among them, the target page control event data refers to user operation data used to remotely control the target page data. In other words, page interaction operations are performed on the target mirror end to achieve the effect of the target mirror end controlling the shared terminal, breaking down the barriers of one-way data exchange and realizing two-way data exchange, thereby increasing the real-time sharing and remote control functionality and interactive experience of the page.
[0053] Optionally, when the target page data is rendered, the shared terminal listens to the user operations performed by each document object model element in the target mirror terminal through the event listener function corresponding to each document object model element, obtains the initial page control event data, and sets the user operation simulation request according to the initial page control event data. Specifically, the shared terminal converts the initial page control event data into target page control event data according to a preset data format, and generates a user operation simulation request based on the target page control event data; the shared terminal receives the user operation simulation request sent by the target mirror terminal, and performs parameter parsing and parameter verification on the user operation simulation request to obtain the target page control event data.
[0054] 204. Perform simulated user interaction operations on the target sharing page according to the target page control event data, and obtain the interaction operation results.
[0055] The interaction result indicates whether the operation is incomplete or complete, with completion including success and failure. Optionally, the shared terminal parses the target page control event data according to a preset data format to obtain parsed page control event data; the shared terminal performs element verification on the parsed page control event data according to the document object model elements in the target shared page to obtain a verification result; when the verification result is successful, the shared terminal generates at least one user interaction operation instruction according to the parsed page control event data; the shared terminal triggers the user interaction operation according to at least one user interaction operation instruction to obtain the interaction operation result.
[0056] 205. When the interaction operation result is "operation completed" and a page change is detected on the target sharing page, obtain the changed sharing page data and push the changed sharing page data to the target mirror terminal.
[0057] In other words, the target mirror terminal adjusts its page content based on the changed shared page data to ensure consistency between the page content on the target mirror terminal and the page content on the shared terminal. Optionally, when the interaction operation result is "operation completed" and a page change is detected on the target shared page, the shared terminal acquires the user interaction operation page data according to a preset page data acquisition function. The shared terminal determines whether the user interaction operation page data and the target page data are consistent, wherein the data format of the user interaction operation page data and the data format of the target page data are the same to improve data comparison efficiency. If the user interaction operation page data and the target page data are inconsistent, the shared terminal determines the changed shared page data based on the user interaction operation page data and the target page data, and pushes the changed shared page data to the target mirror terminal. If the user interaction operation page data and the target page data are inconsistent, the shared terminal determines that the target page data has not been updated.
[0058] 206. Perform data persistence processing on the target page control event data to obtain a persistent control event dataset.
[0059] It should be noted that during data interaction with the target mirror terminal, the shared terminal caches the target page control event data in a preset memory database in real time. Furthermore, the shared terminal also persists the target page control event data. Specifically, the shared terminal sends a data persistence request to the target server, which includes the shared terminal identifier and the target page control event data. This allows the target server to persist the shared terminal identifier and the target page control event data according to a preset data storage format. The shared terminal then receives the persisted control event dataset from the target server.
[0060] 207. Perform event statistical analysis on the persistent control event dataset based on the preset duration to obtain user interaction operation statistics, and draw a user interaction operation statistics table based on the user interaction operation statistics.
[0061] Specifically, the shared terminal receives a statistical table generation instruction and reads multiple preset event indicators from the preset indicator configuration table according to the instruction. The shared terminal then uses a preset statistical model to summarize and statistically analyze the persistent control event dataset according to the multiple preset event indicators and preset durations to obtain user interaction operation statistics. The shared terminal converts the user interaction operation statistics into a user interaction operation statistics table according to a preset chart template and displays the table in the browser of the shared terminal, so that users can intuitively view the persistent control event dataset.
[0062] In this embodiment of the invention, by synchronizing the target page data corresponding to the target sharing page to the target mirror terminal, and performing simulated user interaction operations on the target sharing page based on the target page control event data sent by the target mirror terminal, and by listening to and acquiring the changed sharing page data, the page data corresponding to the target mirror terminal is updated in real time. This enables the target mirror terminal to perform page interaction operations and remote control functions on the target sharing page, thereby improving the performance of page interaction operations.
[0063] The page sharing processing method in the embodiments of the present invention has been described above. The page sharing processing apparatus in the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 3 One embodiment of the page sharing processing device in this invention includes:
[0064] The first acquisition module 301 is used to acquire target page data corresponding to the target sharing page, wherein the target page data is used to indicate at least one document object model element and the event listener function corresponding to each document object model element.
[0065] The synchronization module 302 is used to synchronize the target page data to the target mirror terminal, so that the target mirror terminal can draw and display the target page data;
[0066] The second acquisition module 303 is used to acquire target page control event data sent by the target mirror terminal. The target page control event data is used to refer to user operation data that remotely controls the target page data.
[0067] Simulation module 304 is used to simulate user interaction operations on the target sharing page according to the target page control event data, and obtain the interaction operation results;
[0068] The push module 305 is used to obtain the changed sharing page data and push the changed sharing page data to the target mirror terminal when the interaction operation result is that the operation is completed and the page change of the target sharing page is detected.
[0069] Furthermore, the target page data is stored in a blockchain database, the specifics of which are not limited here.
[0070] In this embodiment of the invention, by synchronizing the target page data corresponding to the target sharing page to the target mirror terminal, and performing simulated user interaction operations on the target sharing page based on the target page control event data sent by the target mirror terminal, and by listening to and acquiring the changed sharing page data, the page data corresponding to the target mirror terminal is updated in real time. This enables the target mirror terminal to perform page interaction operations and remote control functions on the target sharing page, thereby improving the performance of page interaction operations.
[0071] Please see Figure 4 Another embodiment of the page sharing processing device in this invention includes:
[0072] The first acquisition module 301 is used to acquire target page data corresponding to the target sharing page, wherein the target page data is used to indicate at least one document object model element and the event listener function corresponding to each document object model element.
[0073] The synchronization module 302 is used to synchronize the target page data to the target mirror terminal, so that the target mirror terminal can draw and display the target page data;
[0074] The second acquisition module 303 is used to acquire target page control event data sent by the target mirror terminal. The target page control event data is used to refer to user operation data that remotely controls the target page data.
[0075] Simulation module 304 is used to simulate user interaction operations on the target sharing page according to the target page control event data, and obtain the interaction operation results;
[0076] The push module 305 is used to obtain the changed sharing page data and push the changed sharing page data to the target mirror terminal when the interaction operation result is that the operation is completed and the page change of the target sharing page is detected.
[0077] Optionally, the first acquisition module 301 can also be specifically used for:
[0078] Receive a page retrieval request and read the page identifier from the page retrieval request;
[0079] Initial page data is extracted from the target sharing page based on the page identifier, where each page identifier corresponds one-to-one with the target sharing page.
[0080] The initial page data is converted into target page data according to a preset data format.
[0081] Optionally, the synchronization module 302 can also be specifically used for:
[0082] Obtain the shared terminal identifier and the mirror terminal identifier corresponding to the target mirror terminal, and generate a synchronization permission confirmation request based on the shared terminal identifier and the mirror terminal identifier;
[0083] The synchronization permission confirmation request is sent to the target mirror terminal to obtain synchronization permission response data;
[0084] The target page data is sent to the target mirror terminal according to the synchronization permission response data.
[0085] Optionally, the second acquisition module 303 can also be specifically used for:
[0086] When the target page data is rendered, the user operations performed by each document object model element are monitored through the event listener function corresponding to each document object model element in the target mirror terminal to obtain the target page control event data.
[0087] The system receives user operation simulation requests sent by the target mirror terminal, performs parameter parsing and parameter verification on the user operation simulation requests, and obtains the target page control event data.
[0088] Optionally, the simulation module 304 can also be specifically used for:
[0089] The target page control event data is parsed according to a preset data format to obtain parsed page control event data;
[0090] The parsed page control event data is validated according to the document object model elements in the target sharing page to obtain the validation result;
[0091] When the verification result is successful, at least one user interaction operation instruction is generated according to the parsed page control event data;
[0092] The user interaction operation is triggered according to the at least one user interaction operation instruction, and the interaction operation result is obtained.
[0093] Optionally, the push module 305 can also be specifically used for:
[0094] When the interaction operation result is "operation completed" and a page change is detected on the target sharing page, the user interaction operation page data is obtained according to the preset page data collection function.
[0095] Determine whether the user interaction page data and the target page data are consistent;
[0096] If the user interaction page data and the target page data are inconsistent, the changed sharing page data is determined according to the user interaction page data and the target page data, and the changed sharing page data is pushed to the target mirror terminal.
[0097] Optionally, the page sharing processing device also includes:
[0098] The persistence module 306 is used to perform data persistence processing on the target page control event data to obtain a persistent control event dataset;
[0099] The statistics module 307 is used to perform event statistical analysis on the persistent control event dataset based on a preset duration, obtain user interaction operation statistics data, and draw a user interaction operation statistics table based on the user interaction operation statistics data.
[0100] In this embodiment of the invention, by synchronizing the target page data corresponding to the target sharing page to the target mirror terminal, and performing simulated user interaction operations on the target sharing page based on the target page control event data sent by the target mirror terminal, and by listening to and acquiring the changed sharing page data, the page data corresponding to the target mirror terminal is updated in real time. This enables the target mirror terminal to perform page interaction operations and remote control functions on the target sharing page, thereby improving the performance of page interaction operations.
[0101] above Figure 3 and Figure 4 The page sharing processing device in the embodiments of the present invention will be described in detail from a modular perspective. The page sharing processing device in the embodiments of the present invention will be described in detail from a hardware processing perspective.
[0102] Figure 5 This is a schematic diagram of the structure of a page-sharing processing device 500 provided in an embodiment of the present invention. The page-sharing processing device 500 can vary significantly due to different configurations or performance. It may include one or more central processing units (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing application programs 533 or data 532. The memory 520 and storage media 530 can be temporary or persistent storage. The program stored in the storage media 530 may include one or more modules (not shown in the diagram), each module including a series of computer program operations on the page-sharing processing device 500. Furthermore, the processor 510 may be configured to communicate with the storage media 530 and execute the series of computer program operations in the storage media 530 on the page-sharing processing device 500.
[0103] The page sharing processing device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input / output interfaces 560, and / or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will understand that... Figure 5 The illustrated page sharing processing device structure does not constitute a limitation on the page sharing processing device, and may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.
[0104] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein a computer program is stored in the computer program, and when the computer program is run on a computer, the computer performs the steps of the page sharing processing method.
[0105] The present invention also provides a page sharing processing device, which includes a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the page sharing processing method in the above embodiments.
[0106] Furthermore, the computer-readable storage medium may primarily include a program storage area and a data storage area, wherein the program storage area may store the operating system, at least one application required for a function, etc.; and the data storage area may store data created based on the use of blockchain nodes, etc.
[0107] The blockchain referred to in this invention is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include an underlying blockchain platform, a platform product service layer, and an application service layer.
[0108] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0109] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several computer programs to cause a computer device (which may be a personal computer, terminal, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0110] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A page sharing processing method, characterized in that, Applied to shared terminals, the page sharing processing method includes: Obtain the target page data corresponding to the target sharing page, wherein the target page data is used to indicate at least one document object model element and the event listener function corresponding to each document object model element; The target page data is synchronized to the target mirror terminal so that the target mirror terminal can draw and display the target page data; The target page control event data sent by the target mirror terminal is obtained by the event listening function corresponding to each document object model element in the target mirror terminal. The target page control event data is used to refer to user operation data that remotely controls the target page data. The target sharing page is simulated with user interaction based on the target page control event data to obtain the interaction result. When the interaction operation result is that the operation is completed, and a page change is detected on the target sharing page, the changed sharing page data is obtained and the changed sharing page data is pushed to the target mirror terminal; The step of simulating user interaction operations on the target sharing page according to the target page control event data to obtain the interaction operation result includes: The target page control event data is parsed according to a preset data format to obtain parsed page control event data; The parsed page control event data is validated according to the document object model elements in the target sharing page to obtain the validation result; When the verification result is successful, at least one user interaction operation instruction is generated according to the parsed page control event data; A user interaction operation is triggered according to at least one user interaction operation instruction, and the interaction operation result is obtained; The step of synchronizing the target page data to the target mirror terminal includes: Obtain the shared terminal identifier and the mirror terminal identifier corresponding to the target mirror terminal, and generate a synchronization permission confirmation request based on the shared terminal identifier and the mirror terminal identifier; The synchronization permission confirmation request is sent to the target mirror terminal to obtain synchronization permission response data; The target page data is sent to the target mirror terminal according to the synchronization permission response data.
2. The page sharing processing method according to claim 1, characterized in that, The step of obtaining the target page data corresponding to the target sharing page includes: Receive a page retrieval request and read the page identifier from the page retrieval request; Initial page data is extracted from the target sharing page based on the page identifier, where each page identifier corresponds one-to-one with the target sharing page. The initial page data is converted into target page data according to a preset data format.
3. The page sharing processing method according to claim 1, characterized in that, The step of obtaining the target page control event data sent by the target mirror terminal includes: When the target page data is rendered, the user operations performed by each document object model element are monitored through the event listener function corresponding to each document object model element in the target mirror terminal to obtain the initial page control event data, and the user operation simulation request is set according to the initial page control event data. The system receives user operation simulation requests sent by the target mirror terminal, and performs parameter parsing and parameter verification on the user operation simulation requests to obtain target page control event data.
4. The page sharing processing method according to claim 1, characterized in that, When the interaction operation result is "operation completed" and a page change is detected on the target sharing page, the changed sharing page data is obtained, and the changed sharing page data is pushed to the target mirror terminal, including: When the interaction operation result is "operation completed" and a page change is detected on the target sharing page, the user interaction operation page data is obtained according to the preset page data collection function. Determine whether the user interaction page data and the target page data are consistent; If the user interaction page data and the target page data are inconsistent, the changed sharing page data is determined according to the user interaction page data and the target page data, and the changed sharing page data is pushed to the target mirror terminal.
5. The page sharing processing method according to any one of claims 1-4, characterized in that, After the interaction operation result is "operation completed" and a page change is detected on the target sharing page, the method further includes: obtaining the changed sharing page data and pushing the changed sharing page data to the target mirror terminal. The target page control event data is persisted to obtain a persistent control event dataset. Based on a preset duration, the persistent control event dataset is subjected to event statistical analysis to obtain user interaction operation statistics data, and a user interaction operation statistics table is drawn based on the user interaction operation statistics data.
6. A page sharing processing device, characterized in that, Applied to shared terminals, the page sharing processing device includes: The first acquisition module is used to acquire target page data corresponding to the target sharing page, wherein the target page data is used to indicate at least one document object model element and the event listener function corresponding to each document object model element; A synchronization module is used to synchronize the target page data to the target mirror terminal, so that the target mirror terminal can draw and display the target page data; The second acquisition module is used to acquire target page control event data sent by the target mirror terminal through the event listening function corresponding to each document object model element in the target mirror terminal. The target page control event data is used to refer to user operation data that remotely controls the target page data. The simulation module is used to simulate user interaction operations on the target sharing page according to the target page control event data, and obtain the interaction operation results; The push module is used to obtain the changed sharing page data and push the changed sharing page data to the target mirror terminal when the result of the interaction operation is that the operation is completed and the page change of the target sharing page is detected. The simulation module is specifically used for: parsing the target page control event data according to a preset data format to obtain parsed page control event data; performing element verification on the parsed page control event data according to the document object model elements in the target sharing page to obtain a verification result; when the verification result is successful, generating at least one user interaction operation instruction according to the parsed page control event data; triggering a user interaction operation according to the at least one user interaction operation instruction to obtain an interaction operation result. The synchronization module is specifically used for: obtaining the shared terminal identifier and the mirror terminal identifier corresponding to the target mirror terminal, and generating a synchronization permission confirmation request based on the shared terminal identifier and the mirror terminal identifier; sending the synchronization permission confirmation request to the target mirror terminal to obtain synchronization permission response data; and sending the target page data to the target mirror terminal according to the synchronization permission response data.
7. The page sharing processing apparatus according to claim 6, characterized in that, The first acquisition module is specifically used for: receiving a page acquisition request and reading a page identifier from the page acquisition request; extracting initial page data from the target sharing page based on the page identifier, wherein the page identifier corresponds one-to-one with the target sharing page; and converting the initial page data into target page data according to a preset data format.
8. The page sharing processing apparatus according to claim 6, characterized in that, The second acquisition module is specifically used for: when the target page data is rendered, listening to the user operations performed by each document object model element through the event listening function corresponding to each document object model element in the target mirror terminal, and obtaining target page control event data; receiving user operation simulation requests sent by the target mirror terminal, and performing parameter parsing and parameter verification on the user operation simulation requests, and obtaining the target page control event data.
9. A page sharing processing device, characterized in that, The page sharing processing device includes: a memory and at least one processor, wherein the memory stores a computer program; The at least one processor invokes the computer program in the memory to cause the page sharing processing device to perform the page sharing processing method as described in any one of claims 1-5.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the page sharing processing method as described in any one of claims 1-5.
Citation Information
Patent Citations
Same-screen interaction method and device, computer equipment and computer readable storage medium
CN113377312A