A synchronous communication method and system for insurance schemes
By using a web-based, audio-visual synchronous communication system, insurance agents and customers can operate and interact synchronously on the insurance plan webpage, solving the problem of customer comprehension and improving the communication efficiency and interactivity of insurance business development.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-21
- Publication Date
- 2026-04-03
AI Technical Summary
In insurance sales, customers often struggle to fully understand insurance plans, resulting in low communication efficiency. Existing technologies cannot enable real-time communication that integrates insurance plan content, leading to poor interactivity.
Through a web-based, audio-visual synchronized communication system, insurance agents and customers can perform web operations, drawing operations, and synchronized voice and video on the insurance plan webpage, simulating face-to-face offline communication.
It enhanced customers' understanding of insurance plans, improved communication efficiency and interactivity, simulated offline communication scenarios, and improved the effectiveness of online communication in insurance sales.
Smart Images

Figure CN117611350B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communications, and more particularly to a synchronous communication method and system for use in insurance schemes. Background Technology
[0002] With the development of the internet, insurance agents increasingly use chat tools such as WeChat to send insurance plans (proposals, insurance plans, protection plans, etc.) to clients when conducting insurance business. The plans are generally in the form of HTML5 web pages, which contain the content of the plan designed by the insurance agent for the client to browse and read. The insurance agent communicates and explains to the client through telephone, chat tools or face-to-face meetings.
[0003] The existing methods have the following problems: On the one hand, customers' understanding of insurance plans is limited to passive reading; on the other hand, when customers have questions or agents need to explain, both parties rely on additional communication methods such as telephone, chat tools, or face-to-face meetings. Because insurance plans are generally technical, customers find it difficult to fully understand the core content by simply reading the plan; communication via telephone or chat tools cannot be combined with real-time information about the insurance plan, and there is a lack of reference points during the exchange; face-to-face meetings incur time and transportation costs, failing to demonstrate the advantages of online sales. These issues, leading to low communication efficiency and poor interactivity in insurance sales, urgently require solutions using new internet technologies. Summary of the Invention
[0004] In view of the above-mentioned existing situation, this application utilizes web pages, audio and video communication and related technologies to achieve synchronized web page operations, annotations, and voice and video communication between insurance agents and customers on the insurance plan web page during the communication process, thereby achieving the effect of face-to-face communication.
[0005] Firstly, this application provides a synchronous communication method for insurance schemes, the method comprising:
[0006] The method is applied to a synchronous communication system, which further includes an agent communication terminal, a customer communication terminal, and a synchronous communication server. The agent communication terminal is used to connect with insurance agents, and the customer communication terminal is used to connect with insurance customers. The method includes:
[0007] The agent's communication terminal accesses the insurance plan webpage through the first link and establishes a communication connection with the synchronous communication server;
[0008] The agent's communication terminal responds to webpage operations within the insurance plan webpage, performs webpage synchronization data collection based on the webpage operations, and the webpage synchronization data collection includes one or more of webpage operation instruction data collection and webpage content data collection. Based on the webpage operation instruction data and / or the webpage content data, the agent generates first webpage synchronization data and sends the first webpage synchronization data to at least one customer communication terminal.
[0009] The agent's communication terminal responds to the drawing operation in the first Canvas, generates image data and / or Canvas drawing instructions based on the drawing operation to generate the first drawing synchronization data, and sends the first drawing synchronization data to at least one customer communication terminal, wherein the first Canvas is created independently of the plan content within the insurance plan webpage;
[0010] The agent's communication terminal collects audio and / or video, generates audio data streams and / or video data streams, and transmits them to at least one client communication terminal;
[0011] The first webpage synchronization data is received and parsed by the client communication terminal to obtain webpage operation instruction data contained in the first webpage synchronization data, and the webpage operation instruction is executed in the client communication terminal; the webpage content data contained in the first webpage synchronization data is obtained, and the corresponding webpage content is updated in the client communication terminal based on the webpage content data;
[0012] The first graffiti synchronization data is received and parsed by the customer communication terminal to obtain the images or drawing instructions contained therein, and is drawn on the second Canvas of the customer communication terminal. The second Canvas is created independently of the insurance plan content within the insurance plan webpage of the customer communication terminal.
[0013] The audio and / or video data streams are received and played by the client communication terminal.
[0014] In one implementation of this application, after the communication terminal establishes a communication connection with the synchronous communication server, it further includes:
[0015] After the communication terminal detects webpage operations on the insurance plan webpage, it determines the control status of the communication terminal and performs the following judgments and operations based on the control status:
[0016] A. When in an idle state, a synchronous communication operation right request is sent to the synchronous communication server. After being granted permission, the synchronous communication operation right is obtained, and the control state of this communication terminal is set to the master control state. The web page operation is executed, and the timer of this communication terminal is started to start the timing operation. The synchronous communication server notifies other communication terminals to switch their control state to the controlled state. If a synchronous communication operation right request is sent to the synchronous communication server and rejected, the web page operation is intercepted.
[0017] B. When the system is under control, intercept the webpage operation;
[0018] C. When in master control mode, execute the webpage operation and refresh the timer to restart the timing.
[0019] In the above implementation of this application, after starting the timer to begin counting, it further includes:
[0020] A, within a preset time threshold, after detecting user actions on the insurance plan webpage, refreshes the timer to restart the timing;
[0021] When the timer reaches the preset time threshold, the control state of this communication terminal is set to idle state, and a notification to return the synchronization communication operation right is sent to the synchronization communication server. The synchronization communication server then notifies other communication terminals to switch their control state to idle state.
[0022] The technical solution provided in the first aspect above, before performing webpage synchronization data collection based on the webpage operation, further includes:
[0023] The node corresponding to the webpage operation within the HTML document is obtained. If it is determined that the node contains a synchronization-blocking attribute or its event attributes contain a synchronization-blocking method, or if the parent node of the node is searched level by level and it is determined that the parent node contains a synchronization-blocking attribute or its event attributes contain a synchronization-blocking method, the current synchronization data collection operation is abandoned. The synchronization-blocking attribute and the synchronization-blocking method in the event attributes are preset when the insurance scheme webpage is created. The synchronization-blocking attribute is set for the HTML document node, or a synchronization-blocking method is set in its event attributes, so that when a webpage operation occurs at that node, the synchronization operation for that webpage operation is abandoned.
[0024] The technical solution provided in the first aspect above, before performing webpage synchronization data collection based on the webpage operation, further includes:
[0025] Obtain the node N corresponding to the webpage operation within the HTML document, and use N as the current node. Based on the attributes of the current node, generate identification information to identify node N in the HTML document. If the identification information is not unique in the HTML document, recursively search upwards for the parent node of the current node, and combine the parent node with the current node according to the node path to generate a new current node. Based on the attributes of the new current node, generate identification information to identify node N in the HTML document until the identification information is unique in the HTML document, and then return the node identification information. The node identification information is used to locate the corresponding HTML document node within the insurance plan webpage before executing the webpage operation on the synchronized communication terminal, and to execute the webpage operation on that node.
[0026] Secondly, this application provides a synchronous communication method for insurance schemes, applied to a customer communication terminal, wherein the customer communication terminal is used to connect with insurance customers, and the method includes:
[0027] The customer communication terminal accesses the insurance plan webpage through the second link and establishes a communication connection with the synchronous communication server;
[0028] When the control state of the customer communication terminal is the master control state, the customer communication terminal responds to the webpage operation for the insurance plan webpage, performs webpage synchronization data collection based on the webpage operation, the webpage synchronization data collection includes one or more of webpage operation instruction data collection and webpage content data collection, generates second webpage synchronization data based on the webpage operation instruction data and / or the webpage content data, and sends the second webpage synchronization data to other communication terminals;
[0029] The client communication terminal responds to the drawing operation in the second Canvas, and generates image data and / or Canvas drawing instructions to generate second drawing synchronization data based on the drawing operation. The second Canvas is created independently of the insurance plan content within the insurance plan webpage.
[0030] The client communication terminal collects audio and / or video, generates audio data streams and / or video data streams, and transmits them to other communication terminals;
[0031] The second webpage synchronization data is received and parsed by other communication terminals to obtain webpage operation instruction data contained in the second webpage synchronization data, and execute the webpage operation instruction data in the other communication terminals; the webpage content data contained in the second webpage synchronization data is obtained, and the corresponding webpage content is updated in the other communication terminals based on the webpage content data;
[0032] The second graffiti synchronization data is received and parsed by other communication terminals to obtain the images or drawing instructions contained therein, and then drawn on the first or second Canvas of the other communication terminals.
[0033] The audio and / or video data streams are received and played by other communication terminals.
[0034] Thirdly, this application provides a synchronous communication method for insurance schemes, wherein the method is applied to a customer communication terminal, and the method includes:
[0035] The customer communication terminal accesses the insurance plan webpage through the second link and establishes a communication connection with the synchronous communication server;
[0036] After the customer communication terminal listens to the web page operation in the insurance plan web page, it intercepts the web page operation and collects the web page operation instruction data, obtains the web page operation instruction data and generates third web page synchronization data, and sends the third web page synchronization data to the agent communication terminal.
[0037] The third webpage synchronization data is received and parsed by the agent's communication terminal to obtain the webpage operation instruction data contained therein, and the webpage operation instruction is executed in the agent's communication terminal.
[0038] In some embodiments of the first, second, and third aspects of this application described above, before generating webpage synchronization data, the method further includes:
[0039] A custom-sized webpage container is created in the HTML document. The webpage content of the communication terminal insurance solution is placed into the webpage container. The webpage content is adapted to the webpage container for display based on an adaptive or responsive layout. The webpage content data and webpage operation instruction data are calculated based on the display result of the webpage container. The size of the webpage container is compatible with the webpage display size and ratio of each communication terminal device. During synchronous communication, each communication terminal webpage is set based on the size of the webpage container, and the display area and position of its contained HTML elements and the execution position of webpage operations remain consistent. Alternatively, the size of the webpage container is compatible with the webpage display ratio of each communication terminal device. During synchronous communication, each communication terminal webpage is scaled by applying the CSS3 zoom property based on the size of the webpage container, and the display area and relative position of its contained HTML elements and the relative position of webpage operation execution remain consistent.
[0040] Fourthly, this application provides a synchronous communication system for insurance schemes, the system comprising: an agent communication terminal, at least one customer communication terminal, and a synchronous communication server.
[0041] The agent communication terminal includes an insurance plan webpage and a first synchronous communication unit. The insurance plan webpage includes plan content and a first Canvas for drawing operations. The first synchronous communication unit includes:
[0042] A webpage operation monitoring module monitors webpage operations on the insurance plan webpage.
[0043] The webpage operation acquisition module acquires corresponding webpage operation instruction data based on the webpage operation.
[0044] The webpage content acquisition module performs webpage content data acquisition based on the webpage operations;
[0045] The graffiti operation module collects user graffiti information on the first Canvas during synchronous communication, and simultaneously performs drawing on the first Canvas based on graffiti information from other communication terminals.
[0046] The audio and video acquisition module performs audio and / or video acquisition on the insurance agent's communication terminal;
[0047] The synchronous operation control module executes the control of the agent's communication terminal during synchronous communication. The control includes: webpage operation control, drawing control, audio and / or video acquisition and playback control, and control status display. The control status includes master control status, idle status, and controlled status.
[0048] The first synchronous communication module sends webpage synchronization data, graffiti synchronization data, audio stream data and / or video stream data, and control data to the synchronous communication server.
[0049] The customer communication terminal includes an insurance plan webpage and a second synchronous communication unit. The insurance plan webpage includes plan content and a second Canvas for drawing operations. The second synchronous communication unit includes:
[0050] The webpage operation parsing module receives and parses the synchronized data to obtain the webpage operation instruction data and webpage content data contained therein.
[0051] The webpage operation instruction execution module executes the webpage operation instructions contained in the synchronized data;
[0052] The webpage content update module updates the webpage content of the insurance plan webpage based on the webpage content data contained in the synchronized data;
[0053] The graffiti operation module collects user graffiti information on the second Canvas during synchronous communication, and simultaneously performs drawing on the second Canvas based on graffiti information from other communication terminals;
[0054] The audio and video playback module receives and plays the audio stream data and / or video stream data;
[0055] The synchronous operation control module executes the control of the client communication terminal during synchronous communication. The control includes: webpage operation control, drawing control, audio and / or video acquisition and playback control, and control status display. The control status includes master control status, idle status, and controlled status.
[0056] The second synchronous communication module receives webpage synchronization data, graffiti synchronization data, audio stream data and / or video stream data, and control data from the synchronous communication server.
[0057] The synchronous communication server includes:
[0058] A synchronous communication control service unit is used to receive and send control data and provide synchronous communication control services. It includes at least an operation permission allocation module, which allocates synchronous communication operation rights to the communication terminals and ensures that only one communication terminal in the synchronous communication system possesses the synchronous communication operation rights at any given time.
[0059] The communication service unit is used to communicate with the communication terminal, including a web page operation synchronous communication service module, a graffiti synchronous communication service module, and an audio and video communication service module. The web page operation synchronous communication service module is used to receive or send the web page synchronous data, the graffiti synchronous communication service module is used to receive or send graffiti synchronous data, and the audio and video communication service module is used to receive and send audio stream data and / or video stream data.
[0060] In some embodiments of the fourth aspect of this application, the second synchronous communication unit in the above system further includes a webpage operation monitoring module and a webpage operation instruction acquisition module, and the first synchronous communication unit further includes a webpage operation parsing module and a webpage operation instruction execution module. The webpage operation synchronous communication service module further includes receiving third webpage synchronization data and sending it to the first synchronous communication service module.
[0061] The webpage operation monitoring module listens for webpage operations on the client communication terminal. When the client communication terminal is in a controlled state, it intercepts the webpage operation. When the client communication terminal is in a master state, it calls the webpage operation instruction acquisition module to collect webpage operation instruction data.
[0062] The webpage operation instruction acquisition module collects webpage operation instruction data based on the webpage operation, and the second synchronization communication module sends the collected webpage operation instruction data as third webpage synchronization data to the webpage operation synchronization communication service module.
[0063] The webpage operation parsing module parses the third webpage synchronization data received by the first synchronization communication service module.
[0064] The webpage operation instruction execution module executes the webpage operation instructions parsed by the webpage operation parsing module, and according to the method provided in the first aspect, the agent communication terminal responds to the webpage operation instructions and executes the corresponding webpage operation to synchronize the webpage operation.
[0065] The solution provided in this application embodiment collects the webpage operation and drawing operation data of the insurance agent at the agent's communication terminal, and sends it to the customer's corresponding communication terminal for parsing and restoration into the corresponding operation. Correspondingly, the customer communication terminal can also collect the customer's webpage operation and drawing operation data and send it to the agent's communication terminal. In addition, it includes audio and video communication, thereby realizing synchronous communication between the insurance agent and the customer regarding the insurance plan, simulating the on-site communication scenario of offline insurance business, helping the customer to understand the insurance plan more deeply, and enhancing the communication effect between the insurance agent and the customer. Attached Figure Description
[0066] Figure 1 A schematic diagram of the architecture of a synchronous communication system applied to an insurance scheme, provided as an embodiment of this application;
[0067] Figure 2 An activity diagram illustrating a synchronous communication method applied to an insurance scheme, as provided in an embodiment of this application;
[0068] Figure 3 An activity diagram illustrating the operation of the communication terminal under different control states in the synchronous communication method provided in this application embodiment;
[0069] Figure 4 This is a state diagram of timer operation and related control in the master control state of the AC terminal according to an embodiment of this application;
[0070] Figure 5 A flowchart illustrating the processing of attributes or methods for masking synchronization, provided for embodiments of this application;
[0071] Figure 6 A flowchart for establishing a unique identifier for a node in an HTML document, as provided in this application embodiment;
[0072] Figure 7 An activity diagram illustrating a synchronous communication method applied to an insurance scheme, as provided in an embodiment of this application;
[0073] Figure 8 An activity diagram illustrating a synchronous communication method applied to an insurance scheme, as provided in an embodiment of this application;
[0074] Figure 9 A flowchart illustrating a process for synchronous data collection using a webpage container with a custom size, provided as an embodiment of this application;
[0075] Figure 10 This is a module composition diagram of a synchronous communication system applied to an insurance scheme, provided as an embodiment of this application. Detailed Implementation
[0076] The implementation details in this application are for illustrative purposes only and are not intended to limit the scope of this application.
[0077] The synchronization method and system provided in this application for insurance schemes are intended to illustrate the technical implementation principle using insurance schemes as an example. The same technology can be applied to communication scenarios in finance and other fields, and should not be used to limit this application.
[0078] The embodiments of this application are described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. As those skilled in the art will recognize, with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
[0079] like Figure 1 As shown, this embodiment of the invention provides a synchronous communication system for insurance schemes. The system includes an agent communication terminal, a synchronous communication server, and at least one customer communication terminal. The agent communication terminal and the customer communication terminal run on smart devices with network communication capabilities, such as mobile phones, laptops, desktop computers, etc. The synchronous communication server can be a single server or a server cluster composed of multiple servers. The synchronous communication server and the communication terminals are connected via the Internet.
[0080] Example 1: This example provides a synchronous communication method for insurance schemes based on the aforementioned synchronous communication system. (Refer to...) Figure 2 As shown, the method involves the agent's communication terminal performing a synchronization operation to synchronize with the client's communication terminal, specifically including:
[0081] Step S201: The agent's communication terminal accesses the insurance plan webpage through the first link and establishes a communication connection with the synchronous communication server;
[0082] Step S202: The agent's communication terminal responds to webpage operations in the insurance plan webpage;
[0083] Step S203: The agent communication terminal performs webpage synchronization data collection based on the webpage operation. The webpage synchronization data collection includes one or more of webpage operation instruction data collection and webpage content data collection.
[0084] Step S204: Generate first webpage synchronization data from the collected webpage operation instruction data and / or webpage content data, and send the first webpage synchronization data to at least one client communication terminal;
[0085] Step S205: The agent's communication terminal responds to the drawing operation on the first Canvas;
[0086] Step S206: Generate image data and / or Canvas drawing instructions based on the graffiti operation;
[0087] Step S207: Generate first graffiti synchronization data from the image data and / or Canvas drawing instructions and send it to at least one client communication terminal;
[0088] Step S208: The agent's communication terminal collects audio and / or video.
[0089] Step S209: Generate an audio data stream and / or a video data stream and transmit it to at least one client communication terminal;
[0090] Step S210: The client communication terminal receives and parses the first webpage synchronization data;
[0091] Step S211: The client communication terminal obtains webpage operation instruction data and executes the webpage operation instruction;
[0092] Step S212: The client communication terminal obtains webpage content data and updates the corresponding webpage content;
[0093] Step S213: The client communication terminal receives and parses the first graffiti synchronization data;
[0094] Step S214: The client communication terminal performs drawing on the second Canvas;
[0095] Step S215: The client communication terminal receives and plays the audio and / or video data stream.
[0096] According to the above steps of the embodiments of the present invention, the operation on the agent's communication terminal is synchronized with the customer's communication terminal. Specifically, in step S201, the communication connection with the synchronization communication server is established by accessing the first link, opening the insurance plan webpage, and initiating the synchronization communication with the customer's communication terminal. The first link and the second link can be in the form of URL links, QR codes, etc., generated when creating the insurance plan webpage. The first link is for use by the insurance agent, and the second link is for use by the customer. Optionally, the first link and the second link can be the same link.
[0097] After the first and second links are generated, they are registered on the synchronous communication server, and a correspondence is established between the two links. When the insurance agent accesses the first link, the agent's communication terminal establishes a socket communication connection with the synchronous communication server. In a preferred embodiment of this example, the insurance agent shares the second link to the client. After the client's communication terminal accesses the second link, it sends a receipt to the agent's communication terminal. Upon receiving the receipt, the agent's communication terminal opens the first link. This implementation facilitates synchronous communication between the client and the agent while the client is reading the plan.
[0098] After the agent's communication terminal and the synchronous communication server establish a communication connection, step S202 is executed. When the insurance plan webpage loads, the agent's communication terminal registers an event listener (addEventListener / attachEvent) during the capture phase of the DOM event stream of the insurance plan webpage. This event listener is used to monitor webpage operations on the insurance plan webpage. These webpage operations include clicking, touching, swiping, inputting, dragging, mouse movement, touch movement, etc., and also include webpage operations automatically executed by the webpage program due to non-user operations, including but not limited to timer execution programs, webpage loading triggered execution programs, browser triggered execution programs, asynchronous execution programs, externally triggered execution programs, callback execution programs, etc., but excluding webpage operations executed to implement this method (synchronous communication), such as audio / video on / off, drawing on / off, etc. When the above operation is detected, a callback function of the corresponding type on the DOM node that triggered the operation is executed. This callback function contains preset business logic for synchronous processing; for example, when a button is clicked, the event listener will detect the operation on that button. <button>The click event on the node triggers the corresponding callback function.
[0099] The corresponding step S203 involves webpage synchronization data collection, which includes webpage command data collection and webpage content data collection. For webpage command data collection, when a callback function for a specific operation type is executed, the callback function receives an event object (event) based on the operation event as a parameter. The agent communication terminal then uses this event object to collect webpage operation command data. During operation command data collection, the event type (event.type) and the DOM node that triggered the event (event.target) of the event object are first obtained. For different types of operation events, relevant data for the corresponding operation event is further obtained, and operation commands are generated based on the operation event and its related data.
[0100] The above-mentioned operation events and related data, specifically, when the user performs an operation related to... <input> , <textarea> When performing operations related to tags (such as text input, file upload, date selection, dropdown menu selection, etc.), the `change` and `input` events will be listened to. After obtaining the DOM node that triggered the event, the node value (`target.value`) will also be obtained. This node value corresponds to the value of the user's operation, such as the text entered by the user, the file uploaded by the user, the option selected by the user, etc. When the user scrolls the webpage, the `scroll` event will be listened to, and relevant data after scrolling will be obtained based on the DOM node where the scrolling occurred. This may include, but is not limited to, the DOM node's attribute values (`scrollTop`, `scrollLeft`, `scrollHeight`, `scrollWidth`, etc.), the DOM node's style values (2D transformation, 3D transformation, multi-column, transition, animation, etc.), the execution time of the scrolling process, and the scrolling speed. The above scroll-related data values are used by the client communication terminal to achieve the same animation effects and scrolling positions as the agent communication terminal when this scrolling event is executed. When a user touches and moves, the system also listens for touch start, touch move, and touch end events. At this time, calculations are performed based on the event properties contained in the event object of the above touch events. The event properties include a list of all touch points on the current screen (touches), a list of all touch points on the current web page node (targetTouches), and a list of touch points involved in triggering this event (changedTouches). Based on the relevant properties of the touch events, the system calculates the position before and after the touch, the touch path, and the current position of the mouse pointer.< / textarea>
[0101] Another form of data collection corresponding to the webpage synchronization data collection in step S203 is webpage content data collection, such as: when a webpage operation occurs, collecting the data of the changed part of the webpage content (HTML document content) caused by the webpage operation as webpage synchronization data.
[0102] In step S205, the first Canvas is created independently of the insurance plan content within the insurance plan webpage and is used to collect data on the agent's drawing and explanation operations. Preferably, the insurance plan webpage includes a drawing function switch control button. When the drawing function is enabled, all webpage operations targeting the insurance plan content are intercepted and the aforementioned webpage operation monitoring stops. Instead, the monitoring of the insurance agent's drawing operations begins, and the operation data of the drawing operations is collected.
[0103] The graffiti operation data includes one or more of the following: graffiti-related attributes, graffiti location, graffiti path, and graffiti time. Users can perform graffiti operations by moving the mouse or touching the screen, and mouse button press events will be detected.
[0104] The system collects and generates Canvas drawing instructions (or a set of drawing instructions) based on the above drawing process, including events such as mouseDown, mouseMove, mouseUp, touchStart, touchMove, and touchEnd. It also calls the Canvas drawing API to draw the trajectory according to the corresponding events and execution paths. Simultaneously, it records the initial coordinates (startX, startY) and the relative position coordinates (offsetX, offsetY) during the trajectory movement, based on the time points triggered by different events. Step S206: Based on the above drawing process, it collects and generates Canvas drawing instructions (or a set of drawing instructions) or generates image data from the drawing results.
[0105] Step S207: Based on the information collected in step S206, generate the first graffiti synchronization data and send it to the communication terminal. In an optional implementation, the data generated in step S206 is sent directly to the communication terminal.
[0106] Step S208 collects audio / video data from the agent's communication terminal, and step S209 generates an audio / video data stream for transmission to the communication terminal. In one optional implementation, the real-time audio / video program is implemented by introducing and re-encapsulating APIs such as WebRTC. In another optional implementation, a third-party audio / video communication method, such as telephone, WeChat voice call, or video call, is directly used instead.
[0107] In one possible implementation of this embodiment, the webpage operation is further processed according to the control state of the communication terminal, referring to... Figure 3 As shown, the specific steps are as follows:
[0108] S301, after the communication terminal listens to the webpage operation on the insurance plan webpage, it determines the control status of the communication terminal;
[0109] S302, when in master control mode, execute the webpage operation and refresh the timer to restart the timing;
[0110] S303, When in a controlled state, intercept the webpage operation;
[0111] S304, when in an idle state, sends a request for synchronization communication operation right to the synchronization communication server;
[0112] S305, The synchronous communication server receives and processes requests for synchronous communication operation rights.
[0113] S306, After the synchronous communication server rejects the application, it intercepts the webpage operation;
[0114] S307, After the synchronous communication server agrees to the application, it sets the control state of this communication terminal to the master control state, executes the web page operation, and starts the timer of this communication terminal to start the timing operation.
[0115] S308, the synchronous communication server sends a message to notify other communication terminals to switch the control state to the controlled state.
[0116] The above implementation method is applied to any end of the synchronous communication system. In this implementation method, the synchronous communication operation right is determined according to the control state of the communication end. The control state includes three states: master control, controlled, and idle. In the synchronous communication system, only one end has the synchronous communication operation right, that is, it has the right to perform web page operations during the synchronous communication process. The executed web page operations are synchronized to other communication ends. The synchronous communication operation right can be transferred in the synchronous communication system. The purpose of this implementation method is to ensure that only one user can perform web page operations, and the executed operations are not interfered with. The following scenarios exist in this implementation method:
[0117] A. Only one communication terminal is in the master control state, which has the right to synchronize communication operations and can perform web page operations and synchronize. The other communication terminals are in the controlled state and cannot perform web page operations.
[0118] B. All communication terminals are in an idle state and do not have the right to perform synchronous communication operations. At this time, all communication terminals can perform web page operations and initiate a request to obtain the right to perform synchronous communication operations.
[0119] In scenario A above, if the end with the synchronous communication operation right does not perform a web page operation within a preset time, it will lose the synchronous communication operation right, and at the same time, the control state of all communication ends will change to the idle state, thus changing to scenario B.
[0120] In scenario B above, when a certain communication terminal first performs a webpage operation and is granted the right to synchronize communication operations, that communication terminal will change from an idle state to a master state, while other communication terminals will all become controlled states, thus changing to scenario A.
[0121] Specifically, corresponding to step S301, after the communication terminal detects a user's webpage operation on the insurance plan webpage, it determines the control status of its own communication terminal and executes the corresponding steps based on the different control statuses. Preferably, the control status of each communication terminal is uniformly controlled by the synchronous communication server.
[0122] When this communication terminal is in master control mode, execute step S302, listen for web page operations, execute and synchronize with other communication terminals, and refresh the current timer to restart the timing. For example, execute clearTimeout to clear the current timer of this communication terminal, and then execute setTimeout to reset the timer of this communication terminal to start.
[0123] When this communication terminal is in a controlled state, corresponding to step S303, after listening to the web page operation, the web page operation is intercepted, and the synchronous operation of the web page operation is not responded to.
[0124] When this communication terminal is idle, corresponding to step S304, it first sends a request to the synchronous communication server to request the right to perform synchronous communication operations. Upon receiving the request, corresponding to step S305, the synchronous communication server processes the request. The request result includes approval or rejection. The processing conditions can be preset in the synchronous communication server (e.g., pre-set that the client communication terminal cannot obtain the data, or that a certain communication terminal cannot obtain the data, or prioritizing acquisition based on the request time order, etc.). When the request result is rejection, step S306 is executed, the control state of this communication terminal remains unchanged, and the currently monitored web page operation is intercepted. When the request result is approval, step S307 is executed, the control state of this communication terminal is changed to master control, the current web page operation is executed and synchronized to other communication terminals, and the timer is restarted. When the synchronous communication server approves the request, step S308 is also included, such as sending a message notification to other communication terminals via WebSocket broadcast to switch the control state of other communication terminals to controlled state.
[0125] In one possible implementation of this embodiment, the user can actively control the transfer of synchronous communication operation rights. For example, the agent communication terminal can actively transfer synchronous communication operation rights. When the agent communication terminal is in the master control state, it adds an operation rights transfer instruction to the web page synchronization data and sends it to the corresponding client communication terminal. When the client communication terminal parses the operation rights transfer instruction in the synchronization data, it switches its current control state to the master control state and notifies the agent communication terminal to switch its control state to the controlled state, thereby realizing the active transfer of synchronous communication operation rights. Another example is that the client communication terminal can actively request synchronous communication operation rights. When the agent communication terminal is in the master control state and the client communication terminal is in the controlled state, the client communication terminal adds an operation rights request instruction to the web page synchronization data and sends it to the agent communication terminal. When the agent communication terminal parses the operation rights request instruction in the synchronization data, it performs an operation to determine whether to grant the client communication terminal operation rights. If the request is granted, the agent communication terminal switches its control state to the controlled state and notifies the corresponding client to switch to the master control state, thereby realizing the client communication terminal requesting synchronous communication operation rights from the agent communication terminal.
[0126] In one possible implementation of this embodiment, refer to Figure 4 After the timer starts counting, the following steps are also included:
[0127] S401, the AC terminal enters the master control state;
[0128] S402, Start or restart the timer to begin timing;
[0129] S403, Monitor webpage operations, which are generally user operations;
[0130] S404, after detecting a webpage operation, execute step S402 to restart the timer;
[0131] S405, the timer reaches the specified time threshold;
[0132] S406 enters the idle state and sends a control handover notification to the synchronization communication server.
[0133] Corresponding to step S401, after the AC terminal enters the master control state, step S402 is executed to start the timer to begin counting, such as: executing setTimeout(cb,time) to start the timer of this AC terminal, where the parameter time is a preset time threshold, representing the duration of the counting, and the parameter cb is the callback function executed when the timer is triggered. If a webpage operation is detected before the timer reaches the preset time threshold, `clearTimeout` is executed to clear the current timer on this communication terminal and `setTimeout` is executed to restart the timer. Optionally, the timer can be set to restart at the time the webpage operation is detected or at the time the webpage operation is completed, depending on the nature of the webpage operation. For example, for a webpage operation that takes a long time, such as file download, the timer can be set to restart after the webpage operation is completed. When the user clicks the file download button, the timer is paused first, and then restarted after the file download is completed, to prevent the control from being taken back due to the webpage operation taking a long time exceeding the specified time threshold. Corresponding to step S405, when the timer reaches the preset time threshold, the timer callback function `cb` is triggered to execute step S406, switching the control state to the idle state and sending a notification to the synchronous communication server to return the synchronous communication operation rights.
[0134] In another possible implementation of this embodiment, after gaining control at an exchange terminal, the total duration of this control is limited. In step S402, another timer for calculating the total duration is started. When it is determined that the set total duration has been exceeded, the user is reminded or control is forcibly revoked.
[0135] This embodiment also provides a possible implementation method: for web page operations that do not require synchronization during communication, a method is provided to create a blocking attribute for the corresponding HTML node, or to create a method to block synchronization in the event attribute of the corresponding HTML node, following the steps below, with reference to... Figure 5 As shown, it includes:
[0136] S501, retrieve the node corresponding to the webpage operation in the HTML document and set it as the current node;
[0137] S502, Check if the current node has a masked synchronization attribute or if its event attributes contain a method for masked synchronization;
[0138] S503. Based on the search results of S502, if the masking synchronization attribute or method is found, proceed to step S504; otherwise, proceed to step S505.
[0139] S504, Abandon the synchronous data collection operation for this webpage operation;
[0140] S505, find the parent node of the current node;
[0141] S506, Determine the search result. If the parent node is found, proceed to step S507; otherwise, proceed to step S508.
[0142] S507, set the parent node as the current node;
[0143] S508, Perform synchronous data collection operation for this webpage operation.
[0144] In this embodiment, the above steps achieve the synchronization of blocking certain webpage operations based on user-defined or system-preset conditions. Specifically, in step S501, when a webpage operation is detected, the DOM node (event.target) that triggered the webpage operation is obtained from the event object (event) passed as a parameter in the corresponding callback function. After obtaining the DOM node, the node is set as the current node. Then, step S502 is executed, and the attributes of the DOM node are analyzed to determine whether the data attribute (target.dataset) of the DOM node contains a preset blocking attribute. The blocking attribute is added in advance when creating the insurance plan webpage. For example, the DOM node is set as follows during creation:
[0145] <div data-sync=”ignore”>
[0146] Where data-sync is a system-preset attribute, and ignore is a system-preset attribute value used to indicate blocking.
[0147] Optionally, in the web page data or program configuration, a set of nodes that need to be blocked from synchronization can be configured. When synchronization is performed, if it is determined that the node belongs to the set, the synchronization data collection operation for this web page operation is abandoned.
[0148] Optionally, you can also consider whether the event properties of this DOM node contain methods to disable synchronization. For example, the DOM node is:
[0149] <div onclick=”method1”>
[0150] Here, onclick is the click event attribute, and method1 is a predefined method that blocks synchronization. Alternatively, if method1 calls a predefined method that blocks synchronization during execution, the click event on this DOM node will execute method1, thus abandoning the synchronous data collection operation for this webpage operation.
[0151] If no masking attribute or method is found for the current node in step S502, and the result in step S503 is empty, then step S505 is executed to search for the parent node of the current node level by level, set the parent node as the current node, and recursively execute the judgment in step S502 until all parent nodes do not contain a masking attribute and their event attributes do not contain a method for masking synchronization. In this case, the synchronization data collection operation for the corresponding webpage operation on this DOM node is executed; otherwise, the synchronization data collection operation for this webpage operation is abandoned. The purpose of the above implementation is that when a masking condition is set for a DOM node, all its child nodes will mask the synchronization of webpage operations. For example, if the webpage operations in a certain area of an insurance plan webpage do not need to be synchronized, then it is only necessary to set a masking condition for the container node of this area, without setting a masking condition for each node in the area.
[0152] This embodiment also provides a preferred implementation method for establishing unique identification information for HTML nodes corresponding to webpage operations, so that other communication terminals can obtain the nodes through the identification. (Refer to...) Figure 6 As shown, the following steps are specifically included:
[0153] S601, Obtain the node N corresponding to the webpage operation in the HTML document;
[0154] S602, Set node N as the current node;
[0155] S603, Based on the attributes of the current node, generate identification information in the HTML document to identify N;
[0156] S604, determine whether the identification information is unique in the HTML document. If it is unique, proceed to step S605; otherwise, proceed to step S606.
[0157] S605, Return the identification information used to identify N in the HTML document;
[0158] S606, find the parent node of the current node;
[0159] S607, Combine the parent node and the current node to generate a node combination according to the node path;
[0160] S608 sets the node combination as the current node;
[0161] The above step S603 generates identification information for identifying N in the HTML document. Its main purpose is to enable the unique node N to be found through the identification information.
[0162] In step S604, it is determined whether the identification information is unique in the HTML document. The determination method is as follows: The identification information is used to search within the HTML document, and the search result is determined to be N and unique. In practice, the id attribute of an HTML node is generally a unique attribute. If a node contains an id attribute, it can be used as a unique identifier. The name attribute is not a unique attribute. If the result obtained by executing getElementByName is unique, it can be considered a unique identifier. A unique identifier can be generated by combining the node type and sequence number, such as the second span node under the third div node in the HTML.
[0163] In step S607, the parent node and the current node are combined according to the node path to generate a node combination. In step S603, identification information is generated. The identification information integrates the identifications of each node in the combination. For example, node M contains multiple span type nodes, where the second span is node N. Node M has an id attribute "mid". Then, through this node combination, the identification information generated for node N is "id-mid-span-2", where "id" indicates that the identifier has the id attribute "mid". After obtaining M, span type nodes are searched among its child nodes, and the second node is obtained, which is node N.
[0164] In step S603, if the current node contains the root node of an HTML document, the identifier information of the current N node can be guaranteed to be unique according to the above node combination identifier generation method.
[0165] The above steps involve recursively searching for the parent node level by level for the current node, and then combining the parent node with the current node to generate the current node again to obtain the unique identifier information of node N.
[0166] Example 2: This example provides another synchronous communication method applied to insurance schemes, see reference... Figure 7 As shown, the method involves the client communication terminal performing a synchronization operation to synchronize with the agent communication terminal and other client communication terminals, specifically including:
[0167] Step S701: The customer communication terminal accesses the insurance plan webpage through the second link and establishes a communication connection with the synchronous communication server;
[0168] Step S702: The customer communication terminal responds to the webpage operation in the insurance plan webpage;
[0169] Step S703: The client communication terminal performs webpage synchronization data collection based on the webpage operation. The webpage synchronization data collection includes one or more of webpage operation instruction data collection and webpage content data collection.
[0170] Step S704: Generate second webpage synchronization data from the collected webpage operation instruction data and / or webpage content data, and send the second webpage synchronization data to the agent's communication terminal and other customer communication terminals;
[0171] Step S705: The client communication terminal responds to the drawing operation on the second Canvas;
[0172] Step S706: Generate image data and / or Canvas drawing instructions based on the graffiti operation;
[0173] Step S707: Generate second graffiti synchronization data from the image data and / or Canvas drawing instructions and send it to the agent's communication terminal and other customer communication terminals;
[0174] Step S708: The client communication terminal collects audio and / or video.
[0175] Step S709: Generate audio data streams and / or video data streams and transmit them to the agent's communication terminal and other client communication terminals;
[0176] Step S710: The agent's communication terminal receives and parses the second webpage synchronization data; Step S710-2: Other client communication terminals receive and parse the second webpage synchronization data.
[0177] Step S711: The agent's communication terminal obtains webpage operation instruction data and executes the webpage operation instruction; Step S711-2: Other client communication terminals obtain webpage operation instruction data and execute the webpage operation instruction.
[0178] Step S712: The agent's communication terminal obtains webpage content data and updates the corresponding webpage content; Step S712-2: Other client communication terminals obtain webpage content data and update the corresponding webpage content.
[0179] Step S713: The agent's communication terminal receives and parses the second graffiti synchronization data; Step S713-2: Other client communication terminals receive and parse the second graffiti synchronization data.
[0180] Step S714: The agent's communication terminal performs drawing on the first Canvas; Step S714-2: Other client communication terminals perform drawing on the second Canvas.
[0181] Step S715: The agent's communication terminal receives and plays the audio and / or video data stream; Step S715-2: Other client communication terminals receive and play the audio and / or video data stream.
[0182] In this embodiment, the synchronization of some web page operations is blocked, and unique identification information is established for the HTML node corresponding to the web page operation. The principle is the same as in Embodiment 1, and will not be repeated here.
[0183] According to the above steps of the embodiments of the present invention, an operation is performed on the client communication terminal and synchronized with the agent communication terminal and other client communication terminals. Optionally, the first link accessed by the agent communication terminal and the second link accessed by the client communication terminal can be the same link.
[0184] Example 3: This example provides another synchronous communication method applied to insurance schemes, see reference... Figure 8 As shown, the method involves the client's communication terminal executing web page operations. These web page operations are not actually executed; instead, they are synchronized to the agent's communication terminal, where they are executed on behalf of the client, and then synchronized back to the client's communication terminal. Specifically, this includes:
[0185] S801, the client communication terminal listens to the user's webpage operations on the insurance plan webpage;
[0186] S802, the client communication terminal intercepts the webpage operation it has been listening to;
[0187] S803, the client communication terminal collects web page operation instruction data based on the monitored web page operations;
[0188] S804, the client communication terminal generates third-party webpage synchronization data from the collected webpage operation instruction data and sends it to the agent communication terminal;
[0189] S805, the agent's communication terminal receives and parses the synchronization data from the third webpage;
[0190] S806, the agent communication terminal obtains webpage operation instruction data based on the parsed third webpage synchronization data, and executes the webpage operation instruction;
[0191] S807, the agent's communication terminal responds to the webpage operation in step S806 and performs webpage operation synchronization according to the method provided in Embodiment 1.
[0192] In all the above embodiments, the devices and browsers used by the agent communication terminal and the client communication terminal may differ. Preferably, this application provides an optional implementation method to solve the synchronization quality problem caused by the differences. (Refer to...) Figure 9 On the communication terminal performing the synchronization operation, follow these steps:
[0193] S901, creating web page containers with custom sizes in HTML documents;
[0194] S902, Place the insurance plan webpage content into the webpage container, and adapt the display in the webpage container according to the adaptive or responsive layout contained in the insurance plan webpage content;
[0195] S903, calculate the webpage content data and the webpage operation instruction data based on the display data within the webpage container;
[0196] S904 sets the size of the Canvas used for graffiti to the size of the webpage container;
[0197] S905, collect graffiti operation data based on the Canvas.
[0198] The webpage container in step S901 is characterized by its ability to hold webpage content, such as HTML div tags and webpage components. Customizing the webpage container also includes setting its parameters, such as size, font, whether scaling is supported, and text scaling percentage. Preferably, the size of the webpage container is compatible with the webpage display size and ratio of each communication terminal device. During synchronous communication, the webpages on each communication terminal are set based on the size of the webpage container. For example, if the agent's communication terminal uses a PC with a browser resolution of 1920*1080, and the client's communication terminal uses a mobile device with a resolution of 720*1080, then the agent's communication terminal constructs a webpage container according to the size corresponding to the 720*1080 resolution. Step S902 places the insurance plan webpage content into this container. The webpage content includes an adaptive layout, and after browser rendering, a new webpage content display effect is obtained. Step S903 collects webpage synchronization data based on the new webpage content display effect. Thus, the display area and relative position of HTML elements and the relative position of webpage operations on both communication terminals remain consistent, achieving a high-quality synchronization effect.
[0199] Correspondingly, step S904 sets the size of the Canvas used for graffiti to be consistent with the size of the web page container, thereby ensuring that the size of the Canvas used for graffiti is consistent in each communication terminal. Step S905 collects graffiti data based on the Canvas, and finally generates the same or proportional graffiti operation effect in each communication terminal.
[0200] Example 4 is a system embodiment of the present invention, which can be used to execute the method embodiment of this application. For details not disclosed in the system embodiment of the present invention, please refer to the method embodiment of the present invention.
[0201] refer to Figure 10 The system includes:
[0202] Agent communication terminal 101, at least one client communication terminal 103, and synchronous communication server 102.
[0203] Among them, the agent communication terminal 101 includes a first synchronous communication unit 1011 and a solution webpage 1012;
[0204] Insurance plan webpage 1012 includes plan content 10121 and a first Canvas 10122 for drawing operations;
[0205] The first synchronous communication unit 1011 includes:
[0206] Web page operation monitoring module 10111 monitors web page operations on 10121;
[0207] The webpage operation acquisition module 10112 acquires corresponding webpage operation instruction data based on the webpage operation.
[0208] Web page content acquisition module 10113 performs web page content data acquisition based on the web page operation;
[0209] The graffiti operation module 10114 collects user graffiti information on 10122 during synchronous communication, and performs drawing on 10122 based on graffiti information from other communication terminals.
[0210] The audio and video acquisition module 10115 performs audio and / or video acquisition for the insurance agent's communication terminal;
[0211] Synchronous operation control module 10116 executes the control of the agent's communication terminal during synchronous communication. The control includes: web page operation control, drawing control, audio and / or video acquisition and playback control, and control status display. The control status includes master control status, idle status, and controlled status.
[0212] The first synchronous communication module 10117 sends web page synchronous data, graffiti synchronous data, audio stream data and / or video stream data, and control data to 102;
[0213] The webpage operation parsing module 10118 parses the third webpage synchronization data received by 10117;
[0214] The webpage operation instruction execution module 10119 executes the webpage operation instructions parsed by 10118, and according to the method provided in Embodiment 1, the agent communication terminal responds to the webpage operation instructions to execute the corresponding webpage operation, thereby synchronizing the webpage operation.
[0215] Among them, the customer communication terminal 103 includes an insurance plan webpage 1032 and a second synchronous communication unit 1031.
[0216] The insurance plan webpage 1032 includes the plan content 10321 and a second Canvas 10322 for drawing operations;
[0217] The second synchronous communication unit 1031 includes:
[0218] The webpage operation parsing module 10311 receives and parses the synchronization data to obtain the webpage operation instruction data and webpage content data contained therein.
[0219] The webpage operation instruction execution module 10312 executes the webpage operation instructions contained in the synchronized data;
[0220] The webpage content update module 10313 updates the webpage content of the insurance plan webpage based on the webpage content data contained in the synchronized data;
[0221] The graffiti operation module 10314 collects user graffiti information on 10322 during synchronous communication, and performs drawing on 10322 based on graffiti information from other communication terminals.
[0222] The audio and video playback module 10315 receives and plays the audio stream data and / or video stream data;
[0223] Synchronous operation control module 10316 executes the control of the client communication terminal during synchronous communication. The control includes: web page operation control, drawing control, audio and / or video acquisition and playback control, and control status display. The control status includes master control status, idle status, and controlled status.
[0224] The second synchronous communication module 10317 receives web page synchronization data, graffiti synchronization data, audio stream data and / or video stream data, and control data from 102.
[0225] The webpage operation monitoring module 10318 monitors webpage operations in the client communication terminal. When the control state of the client communication terminal is under control, it intercepts the webpage operation. When the control state of the client communication terminal is under control, it calls the webpage operation instruction acquisition module to collect webpage operation instruction data.
[0226] The webpage operation instruction acquisition module 10319 acquires webpage operation instruction data based on the webpage operation, and 10317 sends the acquired webpage operation instruction data as third webpage synchronization data to the webpage operation synchronization communication service module 10221.
[0227] The synchronous communication server 102 includes a synchronous communication control service unit 1021 and a communication service unit 1022.
[0228] The synchronous communication control service unit 1021 is used to receive and send control data and provide synchronous communication control services. It includes at least an operation permission allocation module 10211, which allocates synchronous communication operation rights to the communication terminals and ensures that only one communication terminal in the synchronous communication system possesses the synchronous communication operation rights at any given time.
[0229] The communication service unit 1022 is used to communicate with the communication terminal, including a web page operation synchronization communication service module 10221, a graffiti synchronization communication service module 10222, and an audio and video communication service module 10223. 10221 is used to receive or send the web page synchronization data, 10222 is used to receive or send graffiti synchronization data, and 10223 is used to receive and send audio stream data and / or video stream data.
[0230] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the embodiments of this application should be included within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.< / button>
Claims
1. A method for online synchronous communication applied to insurance schemes, characterized in that, The method is applied to a synchronous communication system, which further includes an agent communication terminal, a customer communication terminal, and a synchronous communication server. The agent communication terminal is used to connect with insurance agents, and the customer communication terminal is used to connect with insurance customers. The agent's communication terminal accesses the insurance plan webpage through the first link and establishes a communication connection with the synchronous communication server; The agent's communication terminal responds to webpage operations within the insurance plan webpage, performs webpage synchronization data collection based on the webpage operations, and the webpage synchronization data collection includes one or more of webpage operation instruction data collection and webpage content data collection. Based on the webpage operation instruction data and / or the webpage content data, the agent generates first webpage synchronization data and sends the first webpage synchronization data to at least one customer communication terminal. The agent's communication terminal responds to the drawing operation in the first Canvas, generates image data and / or Canvas drawing instructions based on the drawing operation to generate the first drawing synchronization data, and sends the first drawing synchronization data to at least one customer communication terminal, wherein the first Canvas is created independently of the plan content within the insurance plan webpage; The agent's communication terminal collects audio and / or video, generates audio data streams and / or video data streams, and transmits them to at least one client communication terminal; The first webpage synchronization data is received and parsed by the client communication terminal to obtain webpage operation instruction data contained in the first webpage synchronization data, and the webpage operation instruction is executed in the client communication terminal; the webpage content data contained in the first webpage synchronization data is obtained, and the corresponding webpage content is updated in the client communication terminal based on the webpage content data; The first graffiti synchronization data is received and parsed by the customer communication terminal to obtain the images or drawing instructions contained therein, and is drawn on the second Canvas of the customer communication terminal. The second Canvas is created independently of the insurance plan content within the insurance plan webpage of the customer communication terminal. The audio data stream and / or video data stream are received and played by the client communication terminal; Before performing webpage synchronization data collection based on the aforementioned webpage operations, the process also includes: The node corresponding to the webpage operation within the HTML document is obtained. If it is determined that the node contains a synchronization-blocking attribute or its event attributes contain a synchronization-blocking method, or if the parent node of the node is searched level by level and it is determined that the parent node contains a synchronization-blocking attribute or its event attributes contain a synchronization-blocking method, the current synchronization data collection operation is abandoned. The synchronization-blocking attribute and the synchronization-blocking method in the event attributes are preset when the insurance scheme webpage is created. The synchronization-blocking attribute is set for the HTML document node, or a synchronization-blocking method is set in its event attributes, so that when a webpage operation occurs at that node, the synchronization operation for that webpage operation is abandoned.
2. The method according to claim 1, characterized in that, Before performing webpage synchronization data collection based on the aforementioned webpage operations, the following steps are also included: Obtain the node N corresponding to the webpage operation within the HTML document, and use N as the current node. Based on the attributes of the current node, generate identification information to identify node N in the HTML document. If the identification information is not unique in the HTML document, recursively search upwards for the parent node of the current node, and combine the parent node with the current node according to the node path to generate a new current node. Based on the attributes of the new current node, generate identification information to identify node N in the HTML document until the identification information is unique in the HTML document, and then return the node identification information. The node identification information is used to locate the corresponding HTML document node within the insurance plan webpage before executing the webpage operation on the synchronized communication terminal, and to execute the webpage operation on that node.
Citation Information
Patent Citations
Techniques to facilitate asynchronous communication
CN103034395A
Remote education data interaction system and method based on AR holographic glasses
CN110233841A