WO2020186780A1 - 用户操作录制还原方法、装置、设备及可读存储介质 - Google Patents

用户操作录制还原方法、装置、设备及可读存储介质 Download PDF

Info

Publication number
WO2020186780A1
WO2020186780A1 PCT/CN2019/117541 CN2019117541W WO2020186780A1 WO 2020186780 A1 WO2020186780 A1 WO 2020186780A1 CN 2019117541 W CN2019117541 W CN 2019117541W WO 2020186780 A1 WO2020186780 A1 WO 2020186780A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
burning
sub
recording
delegation
Prior art date
Application number
PCT/CN2019/117541
Other languages
English (en)
French (fr)
Inventor
黄亮
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020186780A1 publication Critical patent/WO2020186780A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/484Precedence

Definitions

  • This application relates to the field of computer technology, and in particular to a method, device, device, and readable storage medium for recording and restoring user operations.
  • the main purpose of this application is to provide a method, device, device, and readable storage medium for recording and restoring user operations, aiming to solve the technical problem that existing user operations are difficult to accurately restore.
  • this application provides a method for restoring user operation recording.
  • the method for restoring user operation recording is applied to a user terminal, and the method for restoring user operation recording includes:
  • the burning of the operating data is completed, and the burned operating data is sent to the server corresponding to the client, so that the server can complete the restoration processing of the operating data.
  • the present application also provides a method for restoring user operation recording.
  • the method for restoring user operation recording is applied to the server side, and the method for restoring user operation recording includes:
  • the type of the error analysis content is an extreme value type
  • a preset JSON serialization process is performed on the error analysis content to obtain a second analysis result of the target data.
  • This application also provides a user-operated recording and restoring device, the user-operated recording and restoring device is applied to a user terminal, and the user-operated recording and restoring device includes:
  • the start module is used to start the burning process of the operation data corresponding to the user operation when the user operation is detected on the user side;
  • the first judging module is used to judge whether there is a sub-process of burning multiple delegation type data in the burning process of the operating data
  • the calling module is used to call the preset dynamic callback rule to process the multiple delegate type data if there is a sub-process of burning multiple delegate type data to obtain the callback result;
  • the sending module is configured to complete the burning of the operation data based on the callback result, and send the burning operation data to the server corresponding to the client, so that the server can complete the operation Data restoration processing.
  • This application also provides a user operation recording and restoring device, the user operation recording and restoring device is applied to the server side, and the user operation recording and restoring device includes:
  • the parsing module is used for parsing the target data when receiving the target data sent by the user terminal to obtain the first parsing result
  • the second judgment module is configured to judge whether the first analysis result contains a preset keyword or a preset number, and if the first analysis result contains a preset keyword or a preset number, then judge the first The analysis result contains incorrect analysis content;
  • the first obtaining module is used to obtain the type of the error analysis content
  • the serialization processing module is configured to perform preset JSON serialization processing on the error analysis content if the type of the error analysis content is an extreme value type to obtain a second analysis result of the target data.
  • the user operation recording and restoring device includes a memory, a processor, a communication bus, and computer-readable instructions stored on the memory,
  • the communication bus is used to realize the communication connection between the processor and the memory
  • the processor is configured to execute the computer-readable instructions to implement the steps of the method for recording and restoring user operations.
  • the present application also provides a readable storage medium that stores one or more computer readable instructions, and the one or more computer readable instructions can be The above processor executes the steps for realizing all the above user operation recording and restoring methods.
  • the burning process of the operation data corresponding to the user operation is started; it is judged whether there is a sub-process of burning multiple delegation type data in the burning process of the operation data; if there is multiple delegation In the sub-process of burning type data, the preset dynamic callback rule is called to process the multiple delegate type data to obtain the callback result; based on the callback result, the burning of the operation data is completed, and the burned operation data Sent to the server side corresponding to the user side for the server side to complete the restoration processing of the operation data.
  • the time point of the user operation recorded by the system is no longer used as a reference for the restoration of the user operation
  • the standard is to directly burn the operation data, thus avoiding the error of the time point of the user operation recorded by the system that affects the restoration of the user operation.
  • the preset dynamic callback rule is directly called to process the multiple delegation type data to obtain the callback result.
  • the preset dynamic callback rule is a preset rule that can avoid the loss of operation data when multiple delegation data is involved, and thus can avoid During the burning process, data is lost, thus facilitating the restoration of user operations, that is, in this application, the technical problem that user operations are difficult to accurately restore in the prior art is solved.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for recording and restoring operations by a user of this application;
  • FIG. 2 is a detailed flow diagram after the sub-process step of judging whether there is multiple delegation type data burning in the burning process of the operation data described in the user operation recording restoration method of this application;
  • FIG. 3 is a schematic diagram of the device structure of the hardware operating environment involved in the method of the embodiment of the present application.
  • This application provides a user operation recording and restoring method.
  • the user operation recording and restoring method is applied to the user terminal.
  • the user operation recording and restoring method includes :
  • Step S10 when a user operation is detected on the user side, start a burning process of operation data corresponding to the user operation;
  • Step S20 It is judged whether there is a sub-process of burning multiple delegation type data in the burning process of the operation data;
  • Step S30 if there is a sub-process for burning multiple delegation type data, call a preset dynamic callback rule to process the multiple delegation type data to obtain a callback result;
  • Step S40 based on the callback result, complete the burning of the operating data, and send the burned operating data to the server corresponding to the client, so that the server can complete the operating data Restore processing.
  • Step S10 when a user operation is detected on the user side, start a burning process of operation data corresponding to the user operation;
  • user operations include touch operations, click operations, and sliding operations.
  • user operations are described as sliding operations.
  • the burning process of the operation data corresponding to the sliding operation is started. That is, in the existing sliding operation event, although the actual sliding operation start operation (touchBegan) occurs in a millisecond, the sliding operation process (touchMoved ) Occurred in b and c milliseconds respectively, but the user end may record the sliding operation event process (touchMoved) time point occurred in b+10, c+5 milliseconds, therefore, the inertial speed of the recorded sliding operation increased, and the position occurred Offset, in this embodiment, it is no longer to restore the slide operation by recording the event time, but to restore the slide operation by burning user operation data, and to restore the slide operation by recording the event time.
  • the difference between the restoration of the sliding operation by burning the user operation data is: the restoration of the sliding operation by burning the user operation data is to obtain all the user operation data and not just the time point of the event. Since all the operation data is obtained, the All operation data includes information such as the touch position of the user's operation on the touch screen and the actual time when the touch occurred. Therefore, it can avoid that the inertial speed of the recorded sliding operation increases and the position shifts due to the time error of collecting the event state. And other issues.
  • the actual touch occurrence time is displayed in NSDate date format instead of NSString date format. This is because the delay caused by time processing can be avoided.
  • the burning process of the operation data corresponding to the user operation is started.
  • the subsequent user operation can be an operation type such as a click or touch operation.
  • scanning of the burning process is also performed.
  • the scanning objects of the burning process include two types. One of the scanned objects can be the currently executing job and other events or its corresponding processes, and the other scanning objects are for possible occurrences. The event or process that needs to be processed.
  • Step S20 It is judged whether there is a sub-process of burning multiple delegation type data in the burning process of the operation data;
  • the delegation includes the delegator and the delegated party, except for the delegate with the highest priority and the delegate with the lowest priority.
  • the object involved in the delegation relationship is both the delegator and the delegated party.
  • the judgment method may include:
  • the judgment basis for judging multiple delegate keywords lies in: obtaining the relationship between the codes corresponding to the different delegate keywords and determining whether the relationship between the categories is pointing or containing. In order to refer to or contain the relationship, determine the existence of multiple delegate keywords.
  • the step of judging whether there is a sub-process of burning multiple delegation type data in the burning process of the operating data includes:
  • Step S21 scanning the recording process corresponding to the operation data, and determining whether there is a preset multiple pointer function in the recording process, wherein the pointer function has a predetermined function identifier;
  • the burning process includes the process corresponding to the currently executing job and other events, or the event or process that may occur that needs to be processed, and judges the currently executing code or pending code in the burning process. Whether there is a preset multi-pointer function in the executed code, wherein the pointer function has a preset and determined function identifier, and therefore, whether there is a preset multi-pointer function in the burning process is identified through the determined function identifier.
  • step S22 if there is a preset multiple pointer function in the burning process, there is a burning sub-process of multiple delegate type data in the burning process of the operating data.
  • Step S30 if there is a sub-process for burning multiple delegation type data, call a preset dynamic callback rule to process the multiple delegation type data to obtain a callback result;
  • the preset dynamic callback rule is called to process the multiple delegation type data to obtain the callback result.
  • the preset dynamic callback rule is preset when multiple delegation data is involved It can avoid the rules that cause the loss of operating data.
  • the preset dynamic callback rules can be stored on the user side in the form of a script. When multiple delegated data segments are required to be processed, the script can be called. In addition, the preset The dynamic callback rules can also be stored on the user side in an embedded manner in the form of computer-readable instruction segments.
  • the preset dynamic callback rule includes that if there is a sub-process for burning multiple delegation type data, when burning the multiple delegation type data, if the recording sub-data of the delegated party with the lowest priority among the multiple delegations is captured , Send the sub-data recording of the delegated party with the lowest priority to all the delegates with higher priority, so that all other delegates with higher priority can process the sub-data recording based on the delegated party. Processing in order to obtain the callback result.
  • Step S40 based on the callback result, complete the burning of the operating data, and send the burned operating data to the server corresponding to the client, so that the server can complete the operating data Restore processing.
  • the burning of the operation data is completed, that is, all user operation data is obtained, and the burned operation data is sent to the client
  • the corresponding server side is used for the server side to complete the restoration processing of the operation data.
  • the restoration process takes place on the server side.
  • the operation data is sent to the server side for restoration, the current network status of the user side can be obtained, and based on the network status, it is determined and sent to the server side.
  • the operating data when the operating data is sent to the server, the operating data is also compressed.
  • the burning process of the operation data corresponding to the user operation is started; it is judged whether there is a sub-process of burning multiple delegation type data in the burning process of the operation data; if there is multiple delegation In the sub-process of burning type data, the preset dynamic callback rule is called to process the multiple delegate type data to obtain the callback result; based on the callback result, the burning of the operation data is completed, and the burned operation data Sent to the server side corresponding to the user side for the server side to complete the restoration processing of the operation data.
  • the time point of the user operation recorded by the system is no longer used as a reference for the restoration of the user operation
  • the standard is to directly burn the operation data, thus avoiding the error of the time point of the user operation recorded by the system that affects the restoration of the user operation.
  • the preset dynamic callback rule is directly called to process the multiple delegation type data to obtain the callback result.
  • the preset dynamic callback rule is a preset rule that can avoid the loss of operation data when multiple delegation data is involved, and thus can avoid During the burning process, data is lost, thus facilitating the restoration of user operations, that is, in this application, the technical problem that user operations are difficult to accurately restore in the prior art is solved.
  • this application provides another embodiment of a method for recording and restoring user operations.
  • a preset dynamic callback rule is called to process the multiple delegation type data
  • To obtain the callback result steps include:
  • step S31 if there is a sub-process for writing multiple-delegation type data, when the multiple-delegation type data is recorded, if the first number of the delegating party with the lowest priority among the multiple delegations is captured, then all The first recording sub-data of the delegated party with the lowest priority is sent to the delegate with the highest priority, so that the delegate with the highest priority can base on the first recording sub-data and the delegated party in the multiple delegation Prioritize the directional callback step by step to obtain the callback result.
  • Step A2 if there is a sub-process for recording the data of the single-delegation type, obtain the second sub-data of the entrusted party in the single-delegation from the data of the single-delegation type;
  • the second sub-data of the delegating party in the single-delegation type data can be obtained from the data of the single-delegation type.
  • Step A3 Call back the entrusted second sub-data recording to the entrusting party in the first order, so that the entrusting party can process the sub-recording sub-data.
  • the second entrusted recording sub-data is called back to the entrusting party in the one-level entrustment, so that the entrusting party can process the recording sub-data, so that no event or data loss will be caused.
  • this application provides another embodiment of a method for restoring user operation recording.
  • the operation data after the recording is sent to the server side corresponding to the user side for the server side.
  • the steps of completing the restoration processing of the operation data include:
  • Step S41 Perform JSON data formatting and compression processing on the burned operation data to obtain target data
  • the burned operation data is further subjected to JSON data formatting processing and compression processing to obtain target data.
  • the JSON data formatting processing is to record user operation data using short key-values. Therefore, the amount of data can be reduced.
  • JSON format such as ⁇ "eventID”:"198",action”:"move”,"time”:"10000.0000f”,”module”:"HomeController", "x":"100", “y”: “10”, “contentOffset”: "123” ⁇ and other contents, after formatting the operation data JSON data, perform GZip compression processing of the operation data to obtain the target data.
  • Step S42 Send the target data to the server corresponding to the client, so that the server can analyze the target data, so as to complete the restoration process of the operation data.
  • the target data is sent to the server side corresponding to the client side, so that the server side can analyze the target data, so as to complete the restoration process of the operation data.
  • the target data is obtained by subjecting the burned operation data to JSON data formatting processing and compression processing; the target data is sent to the server corresponding to the client for the server
  • the terminal analyzes the target data to complete the restoration process of the operation data. Therefore, the efficiency of data restoration can be improved.
  • this application provides another embodiment of a method for restoring user operation recording.
  • the method for restoring user operation recording is applied to the server side, and the method for restoring user operation recording includes:
  • Step B1 When the target data sent by the user terminal is received, the target data is analyzed to obtain the first analysis result;
  • the user operation recording and restoring method is applied to the server side, and the server side receives the target data sent by the user side, and after receiving the data, analyzes the target data to obtain the first analysis result.
  • the server side receives the target data sent by the user side, and after receiving the data, analyzes the target data to obtain the first analysis result.
  • a pure digital string is not processed, that is, when parsing, Return a purely numeric string in a string format instead of a definite object format.
  • the extreme value digital data in the target data is common, which leads to the re-analysis of the target data due to the incorrect analysis of the extreme value digital data This phenomenon seriously affects the efficiency of target data analysis.
  • the target data parsing instruction from the server side is received, the target data is analyzed based on the parsing instruction, and the first parsing result is obtained, where the first parsing result may be all correct first A parsing result, or the first parsing result is a partially wrong first parsing result, where parsing the target data is the specific process of converting the target data expressed in a string format into the target data expressed in a certain object format, No specific explanation here.
  • Step B2 Determine whether the first analysis result contains a preset keyword or a preset number, and if the first analysis result contains a preset keyword or a preset number, then it is determined that the first analysis result contains Error parsing content;
  • the step of determining whether the first analysis result contains error analysis content includes:
  • the processing logic of the error analysis content is adopted. If the first analysis result does not contain the error analysis content, the first analysis result after the analysis is directly obtained, and the first analysis result is used as the final analysis result.
  • Step B3 obtaining the type of the error analysis content
  • the error analysis content may be extreme value type error analysis content, logic disorder type error analysis content, or computer readable instruction disorder type error analysis content, etc., before determining the first
  • the terminal determines the type of the incorrect parsing content if the first parsing result contains incorrect parsing content. , It is necessary to set a computer-readable instruction segment in the built-in processor in advance.
  • the computer-readable instruction segment represents the processing logic for determining the type of the error analysis content, and the processing logic is used to detect that the first analysis result contains an error When the content is parsed, the processor is triggered to determine the type of the error analysis content based on the error analysis content.
  • the type of the error analysis content is a non-extreme type, other types of positioning are performed on the error analysis content, such as judging whether the error analysis content is a logic disorder type error analysis content or a computer-readable instruction disorder type error analysis content. If the parsing content is a logic disorder type error parsing content, the error will be processed and returned directly. If the error parsing content is a computer readable instruction disorder type error parsing content, a computer readable instruction will be obtained and the target data content will be performed Re-sort and process to obtain the sorted processing result and analyze the target data in time to achieve accurate restoration.
  • the memory 1005 as a computer storage medium may include an operating system, a network communication module, and computer readable instructions.
  • the operating system is a computer-readable instruction that manages and controls the hardware and software resources of the user's operation of the recording and restoration device, and supports the operation of computer-readable instructions and other software and/or computer-readable instructions.
  • the network communication module is used to implement communication between various components in the memory 1005, and communication with other hardware and software in the user's operation recording and restoring device.
  • the present application provides a readable storage medium.
  • the readable storage medium may be a non-volatile readable storage medium, and the readable storage medium stores one or more computer readable instructions.
  • the above computer-readable instructions may also be executed by one or more processors to implement the steps of the user operation recording and restoring method described in any one of the above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种用户操作录制还原方法、装置、设备及可读存储介质,所述方法包括:在用户端检测到用户操作时,启动所述用户操作对应操作数据的刻录流程(S10);判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程(S20);若存在多重委托类型数据的刻录子流程,则调用预设动态回调规则处理所述多重委托类型数据,以获取回调结果(S30);基于所述回调结果,完成所述操作数据的刻录,并将刻录后的所述操作数据发送给所述用户端对应的服务器端,以供所述服务器端完成对所述操作数据的还原处理(S40)。该方法实现现有用户操作难以精准还原的技术问题。

Description

用户操作录制还原方法、装置、设备及可读存储介质
本申请要求于2019年03月16日提交中国专利局、申请号为201910205660.6、发明名称为“用户操作录制还原方法、装置、设备及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。
技术领域
本申请涉及计算机技术领域,尤其涉及一种用户操作录制还原方法、装置、设备及可读存储介质。
背景技术
在应用开发测试过程中,常常需要进行用户操作的还原,然而,目前,存在大量的用户操作难以精准还原的现象,这是因为,基础控件(UIScrollView)记录用户操作信息时易发生卡顿或偏移,导致用户界面事件(UIEvent)发生的实际时间和还原时的触发时间有差异。例如,在一次用户操作事件中,开始操作(touchBegan)发生在a毫秒,滑动操作(touchMoved)分别发生在b和c毫秒,滑动结束(touchEnded)发生在d毫秒。还原时,由于记录的滑动操作的开始与结束时间时的误差,滑动操作(touchMoved)记录时间点发生在了b+10、c+5毫秒,很显然,用户操作经过的时间间隔缩小了,导致整个基础控件(UIScrollView)的惯性速度变大,终点位置发生偏移,而难以精准还原用户操作,另外,在进行用户操作还原时,由于用户操作往往涉及多重委托类型操作,多重委托类型操作由于易丢失数据的记录,因而也加剧了用户操作还原的难度。
发明内容
本申请的主要目的在于提供一种用户操作录制还原方法、装置、设备及可读存储介质,旨在解决现有用户操作难以精准还原的技术问题。
为实现上述目的,本申请提供一种用户操作录制还原方法,所述用户操作录制还原方法应用于用户端,所述用户操作录制还原方法包括:
在用户端检测到用户操作时,启动所述用户操作对应操作数据的刻录流程;
判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程;
若存在多重委托类型数据的刻录子流程,则调用预设动态回调规则处理所述多重委托类型数据,以获取回调结果;
基于所述回调结果,完成所述操作数据的刻录,并将刻录后的所述操作数据发送给所述用户端对应的服务器端,以供所述服务器端完成对所述操作数据的还原处理。
可选地,本申请还提供一种用户操作录制还原方法,所述用户操作录制还原方法应用于服务器端,所述用户操作录制还原方法包括:
在接收到用户端发送的目标数据时,对所述目标数据进行解析,以获取第一解析结果;
判断所述第一解析结果中是否包含预设关键字或者预设数字,若所述第一解析结果中包含预设关键字或者预设数字,则判定所述第一解析结果中包含错误解析内容;
获取所述错误解析内容的类型;
若所述错误解析内容的类型是极值类型,则对所述错误解析内容进行预设JSON序列化处理,以得到所述目标数据的第二解析结果。
本申请还提供一种用户操作录制还原装置,所述用户操作录制还原装置应用于用户端,所述用户操作录制还原装置包括:
启动模块,用于在用户端检测到用户操作时,启动所述用户操作对应操作数据的刻录流程;
第一判断模块,用于判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程;
调用模块,用于若存在多重委托类型数据的刻录子流程,则调用预设动态回调规则处理所述多重委托类型数据,以获取回调结果;
发送模块,用于基于所述回调结果,完成所述操作数据的刻录,并将刻录后的所述操作数据发送给所述用户端对应的服务器端,以供所述服务器端完成对所述操作数据的还原处理。
本申请还提供一种用户操作录制还原装置,所述用户操作录制还原装置应用于服务器端,所述用户操作录制还原装置包括:
解析模块,用于在接收到用户端发送的目标数据时,对所述目标数据进行解析,以获取第一解析结果;
第二判断模块,用于判断所述第一解析结果中是否包含预设关键字或者预设数字,若所述第一解析结果中包含预设关键字或者预设数字,则判定所述第一解析结果中包含错误解析内容;
第一获取模块,用于获取所述错误解析内容的类型;
序列化处理模块,用于若所述错误解析内容的类型是极值类型,则对所述错误解析内容进行预设JSON序列化处理,以得到所述目标数据的第二解析结果。
此外,为实现上述目的,本申请还提供一种用户操作录制还原设备,所述用户操作录制还原设备包括:存储器、处理器,通信总线以及存储在所述存储器上的计算机可读指令,
所述通信总线用于实现处理器与存储器间的通信连接;
所述处理器用于执行所述计算机可读指令,以实现上述用户操作录制还原方法的步骤。
此外,为实现上述目的,本申请还提供一种可读存储介质,所述可读存储介质存储有一个或者一个以上计算机可读指令,所述一个或者一个以上计算机可读指令可被一个或者一个以上的处理器执行以用于实现上述所有用户操作录制还原方法的步骤。
本申请通过在用户端检测到用户操作时,启动所述用户操作对应操作数据的刻录流程;判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程;若存在多重委托类型数据的刻录子流程,则调用预设动态回调规则处理所述多重委托类型数据,以获取回调结果;基于所述回调结果,完成所述操作数据的刻录,并将刻录后的所述操作数据发送给所述用户端对应的服务器端,以供所述服务器端完成对所述操作数据的还原处理,在本申请中,不再是以系统记录的用户操作的时间点作为用户操作还原的参考标准,而是直接进行操作数据的刻录,因而,避免因系统记录的用户操作的时间点的错误而影响用户操作的还原,另外,在本申请中,若存在多重委托类型数据的刻录子流程,则直接调用预设动态回调规则处理所述多重委托类型数据,以获取回调结果,由于预设动态回调规则是预设的在涉及多重委托数据时能够避免造成操作数据丢失的规则,进而,能够避免在刻录过程中,丢失数据,因而,便于用户操作的还原,也即在本申请中,解决了现有技术中用户操作难以精准还原的技术问题。
附图说明
图1为本申请用户操作录制还原方法第一实施例的流程示意图;
图2为本申请用户操作录制还原方法中所述判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程步骤之后的细化流程示意图;
图3是本申请实施例方法涉及的硬件运行环境的设备结构示意图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请提供一种用户操作录制还原方法,所述用户操作录制还原方法应用于用户端,在本申请用户操作录制还原方法的第一实施例中,参照图1,所述用户操作录制还原方法包括:
步骤S10,在用户端检测到用户操作时,启动所述用户操作对应操作数据的刻录流程;
步骤S20,判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程;
步骤S30,若存在多重委托类型数据的刻录子流程,则调用预设动态回调规则处理所述多重委托类型数据,以获取回调结果;
步骤S40,基于所述回调结果,完成所述操作数据的刻录,并将刻录后的所述操作数据发送给所述用户端对应的服务器端,以供所述服务器端完成对所述操作数据的还原处理。
具体步骤如下:
步骤S10,在用户端检测到用户操作时,启动所述用户操作对应操作数据的刻录流程;
需要说明的是,用户操作包括触摸操作,点击操作以及滑动操作等类型,在本实施例中,以用户操作为滑动操作进行具体说明。
在检测到用户端的滑动操作时,启动所述滑动操作对应操作数据的刻录流程,也即,现有滑动操作事件中,尽管实际滑动操作开始操作(touchBegan)发生在a毫秒,滑动操作进程(touchMoved)分别发生在b和c毫秒,但是用户端可能记录滑动操作事件的进程(touchMoved)时间点发生在b+10、c+5毫秒,因而,造成记录的滑动操作的惯性速度变大,位置发生偏移,在本实施例中,不再是采用通过事件时间记录的方式进行滑动操作的还原,而是通过刻录用户操作数据进行滑动操作的还原,通过事件时间记录的方式进行滑动操作的还原以及通过刻录用户操作数据进行滑动操作的还原的区别点在于:通过刻录用户操作数据进行滑动操作的还原是获取了所有的用户操作数据而不只是事件的时间点,由于获取了所有的操作数据,该所有的操作数据包括用户操作在触摸屏上的触摸位置,以及实际的触摸发生时刻等信息,因而,能够避免由于收集事件状态的时间误差而导致记录的滑动操作的惯性速度变大,位置发生偏移等问题。
需要说明的是,在通过刻录用户操作数据进行滑动操作的还原过程中,实际的触摸发生时刻是以NSDate日期格式显示的,而不是以NSString日期格式,这是因为,可以避免时间处理造成的延时,另外,在本实施例中,只要检测到用户操作对应的操作数据,即启动所述用户操作对应操作数据的刻录流程,后续用户操作可以为点击或者触摸操作等操作类型,在启动刻录流程后,还进行刻录流程的扫描,其中,刻录流程的扫描对象包括两种类型,其中一种扫描的对象可以是当前正在执行的job等事件或者其对应流程,另一种扫描对象在于可能发生的需要处理的事件或者流程等。
步骤S20,判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程;
需要说明的是,由于委托类型数据的属性,只能进行被动回调,只能进行被动回调也即委托方在接收到被委托方的数据后,不再主动触发上一层级的回调,由于不进行主动回调而是被动回调,因而,会造成委托方的数据未及时传送,因而,容易造成数据或者是事件的丢失。需要说明的是,委托中包括委托方与被委托方,除了优先级最高的委托方以及优先级最低的被委托方,委托关系中涉及的对象既是委托方也是被委托方身份。
在开启刻录后,也即在刻录过程中,判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程,判断的方式可以包括:
判断当前执行的job等事件中,该job等事件中对应的执行代码是否存在或者包括多重delegat等关键词,若job等事件中对应的执行代码存在或者包括多重delegat等关键词,则确定存在多重委托类型数据的刻录子流程,需要说明的是,判断多重delegat关键词的判断依据在于:获取不同delegat关键词所属代码对应所属类的关系,判断所属类的关系是否为指向或者是包含关系,若为指向或者是包含关系,确定存在多重delegat关键词。
进一步地,所述判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程步骤包括:
步骤S21,扫描所述操作数据对应的刻录流程,判断所述刻录流程中是否存在预设多重指针函数,其中,所述指针函数具有预设确定的函数标识;
扫描所述操作数据对应的刻录流程,刻录流程包括当前正在执行的job等事件对应的流程,或者可能发生的需要处理的事件或者流程等,判断所述刻录流程中也即当前执行的代码或者待执行的代码中是否存在预设多重指针函数,其中,所述指针函数具有预设确定的函数标识,因而通过确定的函数标识识别刻录流程中是否存在预设多重指针函数。
步骤S22,若所述刻录流程中存在预设多重指针函数,则在所述操作数据的刻录流程中,存在多重委托类型数据的刻录子流程。
若所述刻录流程中存在预设多重指针函数,则在所述操作数据的刻录流程中,存在多重委托类型数据的刻录子流程。
判断结束后,执行如下步骤S30;
步骤S30,若存在多重委托类型数据的刻录子流程,则调用预设动态回调规则处理所述多重委托类型数据,以获取回调结果;
若存在多重委托类型数据的刻录子流程,则调用预设动态回调规则处理所述多重委托类型数据,以获取回调结果,需要说明的是,预设动态回调规则是预设的在涉及多重委托数据时能够避免造成操作数据丢失的规则,该预设动态回调规则可以是以脚本的形式存储在用户端,在需要进行多重委托数据段的处理时,即调用该脚本即可,另外,该预设动态回调规则还可以是以计算机可读指令段形式嵌入方式存储在用户端。
具体地,预设动态回调规则包括若存在多重委托类型数据的刻录子流程,则在刻录所述多重委托类型数据时,若捕捉到所述多重委托中优先级最低的被委托方的刻录子数据,则将所述优先级最低的被委托方的刻录子数据发送至所有优先级更高的委托方,以供其他所有优先级更高的委托方处理该基于该被委托方的刻录子数据进行处理,以便获取回调结果。
步骤S40,基于所述回调结果,完成所述操作数据的刻录,并将刻录后的所述操作数据发送给所述用户端对应的服务器端,以供所述服务器端完成对所述操作数据的还原处理。
在本实施例中,在得到回调结果后,基于所述回调结果,完成所述操作数据的刻录,即是获取全部的用户操作数据,并将刻录后的所述操作数据发送给所述用户端对应的服务器端,以供所述服务器端完成对所述操作数据的还原处理。需要说明的是,在本实施例中,还原处理是发生在服务器端的,在将操作数据发送给服务器端进行还原时,可以获取当前用户端的网络状态,基于该网络状态确定发送给服务器端所述操作数据的时机,在将操作数据发送给服务器端时,还对操作数据进行压缩处理。
本申请通过在用户端检测到用户操作时,启动所述用户操作对应操作数据的刻录流程;判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程;若存在多重委托类型数据的刻录子流程,则调用预设动态回调规则处理所述多重委托类型数据,以获取回调结果;基于所述回调结果,完成所述操作数据的刻录,并将刻录后的所述操作数据发送给所述用户端对应的服务器端,以供所述服务器端完成对所述操作数据的还原处理,在本申请中,不再是以系统记录的用户操作的时间点作为用户操作还原的参考标准,而是直接进行操作数据的刻录,因而,避免因系统记录的用户操作的时间点的错误而影响用户操作的还原,另外,在本申请中,若存在多重委托类型数据的刻录子流程,则直接调用预设动态回调规则处理所述多重委托类型数据,以获取回调结果,由于预设动态回调规则是预设的在涉及多重委托数据时能够避免造成操作数据丢失的规则,进而,能够避免在刻录过程中,丢失数据,因而,便于用户操作的还原,也即在本申请中,解决了现有技术中用户操作难以精准还原的技术问题。
进一步地,本申请提供用户操作录制还原方法的另一实施例,在该实施例中,所述若存在多重委托类型数据的刻录子流程,则调用预设动态回调规则处理所述多重委托类型数据,以获取回调结果步骤包括:
步骤S31,若存在多重委托类型数据的刻录子流程,则在刻录所述多重委托类型数据时,若捕捉到所述多重委托中优先级最低的被委托方的第一刻录子数,则将所述优先级最低的被委托方的第一刻录子数据发送至优先级最高的委托方,以供所述优先级最高的委托方基于所述第一刻录子数据与所述多重委托中被委托方的优先级排序逐级进行定向回调,以获取回调结果。
若存在多重委托类型数据的刻录子流程,例如,A委托B,B委托C,C委托D,具体地,A委托B,B委托C,C委托D的关系也即:当D满足条件时,才会执行C,当C满足条件时,才会执行B,当B满足条件时,才会执行A,则在刻录所述多重委托类型数据时,若捕捉到所述多重委托中优先级最低的被委托方的第一刻录子数,例如,捕捉到D满足条件时,则将所述优先级最低的被委托方的第一刻录子数据发送至优先级最高的委托方,也即将D满足条件对应的数据发送给A,以供所述优先级最高的委托方基于所述第一刻录子数据与所述多重委托中被委托方的优先级排序逐级进行定向回调,以获取回调结果,逐级进行回调也即A在得到D的第一刻录子数据后,将第一刻录子数据发送给C,并接收C处理第一刻录子数据后得到的C处理数据,并将C处理数据发送给B,接收B处理后端额C处理数据,以最终得到回调结果。需要说明的是,优先级最高的委托方知晓其他委托方的优先级顺序以及数据处理顺序。
在本实施例中,通过若存在多重委托类型数据的刻录子流程,则在刻录所述多重委托类型数据时,若捕捉到所述多重委托中优先级最低的被委托方的第一刻录子数,则将所述优先级最低的被委托方的第一刻录子数据发送至优先级最高的委托方,以供所述优先级最高的委托方基于所述第一刻录子数据与所述多重委托中被委托方的优先级排序逐级进行定向回调,以获取回调结果。在本实施例中,具体的预设动态回调规则能够避免造成操作数据丢失,因而,能够为用户操作精准还原奠定基础。
进一步地,本申请提供用户操作录制还原方法的另一实施例,参照图2,在该实施例中,所述判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程步骤之后包括:
步骤A1,若未存在程多重委托类型数据的刻录子流程,则判断是否存在一重委托类型数据的刻录子流程;
在本实施例中,操作数据的刻录流程中还有可能不涉及或者未存在多重委托类型数据的刻录子流程,此时判断刻录流程中是否存在一重委托类型数据的刻录子流程。
步骤A2,若存在一重委托类型数据的刻录子流程,则从所述一重委托类型数据中获取所述一重委托中被委托方的第二刻录子数据;
若存在一重委托类型数据的刻录子流程,则只是包括一个委托方与被委托方,因而从所述一重委托类型数据中获取所述一重委托中被委托方的第二刻录子数据即可。
步骤A3,将所述被委托的第二刻录子数据回调给一重委托中的委托方,以供所述委托方处理所述刻录子数据。
将所述被委托的第二刻录子数据回调给一重委托中的委托方,以供所述委托方处理所述刻录子数据,因而,不会造成事件或者是数据的丢失。
需要说明的是,若未存在程多重或者一重委托类型数据的刻录子流程,则直接进行正常刻录处理即可。
在本实施例中,通过若未存在程多重委托类型数据的刻录子流程,则判断是否存在一重委托类型数据的刻录子流程;若存在一重委托类型数据的刻录子流程,则从所述一重委托类型数据中获取所述一重委托中被委托方的第二刻录子数据;将所述被委托的第二刻录子数据回调给一重委托中的委托方,以供所述委托方处理所述刻录子数据。在本实施例中,避免一重委托类型数据的繁琐处理流程。
进一步地,本申请提供用户操作录制还原方法的另一实施例,在该实施例中,所述将刻录后的所述操作数据发送给所述用户端对应的服务器端,以供所述服务器端完成对所述操作数据的还原处理步骤包括:
步骤S41,将刻录后的所述操作数据进行JSON数据格式化处理以及压缩处理,得到目标数据;
在本实施例中,还将刻录后的所述操作数据进行JSON数据格式化处理以及压缩处理,得到目标数据,其中,JSON数据格式化处理即是:使用简短的key-value记录用户操作数据,因而能够减少数据量,例如,JSON格式如{"eventID":"198",action":"move","time":"10000.0000f","module":"HomeController", "x":"100", "y":"10","contentOffset":"123"}等内容,在将操作数据JSON数据格式化处理后,进行操作数据的GZip压缩处理,以得到目标数据。
步骤S42,将所述目标数据发送给所述用户端对应的服务器端,以供所述服务器端进行所述目标数据的解析,以完成对所述操作数据进行还原处理。
将所述目标数据发送给所述用户端对应的服务器端,以供所述服务器端进行所述目标数据的解析,以完成对所述操作数据进行还原处理。
在本实施例中,通过将刻录后的所述操作数据进行JSON数据格式化处理以及压缩处理,得到目标数据;将所述目标数据发送给所述用户端对应的服务器端,以供所述服务器端进行所述目标数据的解析,以完成对所述操作数据进行还原处理。因而,能够提升数据还原的效率。
进一步地,本申请提供用户操作录制还原方法的另一实施例,在该实施例中,所述用户操作录制还原方法应用于服务器端,所述用户操作录制还原方法包括:
步骤B1,在接收到用户端发送的目标数据时,对所述目标数据进行解析,以获取第一解析结果;
在本实施例中,用户操作录制还原方法应用于服务器端,服务器端接收用户端发送的目标数据,在接收数据后,对目标数据进行解析,以获取第一解析结果,在本实施例中,对目标数据进行解析的过程中,常常存在极值数字数据错误解析的情况,也即在解析过程中,由于现有IOS系统的缺陷,不对一个纯数字的字符串进行处理,也即解析时,将一个纯数字的字符串还是以字符串格式而不是以确定的对象格式进行返回,而目标数据中极值数字数据是常见的,导致因极值数字数据错误解析而造成目标数据全部重新解析的现象严重影响了目标数据解析的效率。
在本实施例中,若在接收到服务器端的目标数据解析指令时,则基于所述解析指令解析所述目标数据,并获取第一解析结果,其中,该第一解析结果可能为全部正确的第一解析结果,或者该第一解析结果为部分错误的第一解析结果,其中,对目标数据进行解析即是将字符串格式表示的目标数据转换为确定的对象格式表示的目标数据的具体过程,在此不作具体说明。
步骤B2,判断所述第一解析结果中是否包含预设关键字或者预设数字,若所述第一解析结果中包含预设关键字或者预设数字,则判定所述第一解析结果中包含错误解析内容;
其中,判断所述第一解析结果中是否包含错误解析内容步骤包括:
判断所述第一解析结果中是否包含预设数字,或者判断所述第一解析结果中是否包含预设关键字,其中,所述预设关键字包括预设描述关键字以及预设编码关键字;
通过判断所述第一解析结果中是否包含预设数字,或者判断所述第一解析结果中是否包含预设关键字的方式判断所述第一解析结果中是否包含错误解析内容,其中,所述预设关键字包括预设描述关键字以及预设编码关键字,用以具体实施例进行说明,该预设数字可以为设置的数字3840,该预设描述关键字可以为error.code或则是error.description等。
若所述第一解析结果中包含预设数字,或者所述第一解析结果中包含预设关键字,则判定所述第一解析结果中包含错误解析内容,若第一解析结果中包含错误解析内容,则采取错误解析内容的处理逻辑,若第一解析结果中未包含错误解析内容,则直接获取解析后的第一解析结果,将第一解析结果作为最终的解析结果。
步骤B3,获取所述错误解析内容的类型;
判断所述第一解析结果中是否包含错误解析内容,该错误解析内容可以是极值类型错误解析内容、逻辑紊乱类型错误解析内容或者是计算机可读指令错乱类型错误解析内容等,在确定第一解析结果中包含错误解析内容后,需要确定所述错误解析内容的类型,本实施例中,终端要在若所述第一解析结果中包含错误解析内容时,则确定所述错误解析内容的类型,需要事先在内置的处理器中设置计算机可读指令段,该计算机可读指令段表示确定所述错误解析内容的类型的处理逻辑,该处理逻辑用于在检测到第一解析结果中包含错误解析内容时,触发处理器以以基于该含错误解析内容确定所述错误解析内容的类型。
步骤B4,若所述错误解析内容的类型是极值类型,则对所述错误解析内容进行预设JSON序列化处理,以得到所述目标数据的第二解析结果。
若所述错误解析内容的类型是极值类型,则对所述错误解析内容进行预设JSON序列化处理,以得到所述目标数据的第二解析结果。
在确定存在错误解析内容后,则对错误解析内容进行定位,判断错误解析内容的类型,具体地,将错误解析内容与预设极值正则表达式进行比对匹配,以判断所述错误解析内容的类型是否为极值类型,极值类型指的是:待解析的内容超出系统预设解析的数字的范围,如系统预设解析的数字的范围为0-100,而待解析的内容为数字101,则该数字101为极值类型数字内容,若所述错误解析内容的类型是极值类型,则将所述错误解析内容进行预设JSON序列化处理,预设JSON序列化处理也即对错误解析内容进行重构解析处理,得到序列化处理结果,再将序列化处理结果嵌入至原第一解析结果中,以得到所述目标数据的第二解析结果。
若所述错误解析内容的类型是非极值类型,则对错误解析内容进行其他类型定位,例如判断错误解析内容是否为逻辑紊乱类型错误解析内容或者是计算机可读指令错乱类型错误解析内容,若错误解析内容为逻辑紊乱类型错误解析内容,则报错处理,并直接返回,若错误解析内容为计算机可读指令错乱类型错误解析内容,则获取计算机可读指令,根据计算机可读指令对目标数据内容进行重新排序并处理,得到排序处理结果因而及时进行目标数据的解析,以实现准确还原。
参照图3,图3是本申请实施例方案涉及的硬件运行环境的设备结构示意图。
本申请实施例用户操作录制还原设备可以是PC,也可以是智能手机、平板电脑、电子书阅读器、MP3(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、便携计算机等终端设备。
如图3所示,该用户操作录制还原设备可以包括:处理器1001,例如CPU,存储器1005,通信总线1002。其中,通信总线1002用于实现处理器1001和存储器1005之间的连接通信。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储设备。
可选地,该用户操作录制还原设备还可以包括目标用户接口、网络接口、摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。目标用户接口可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选目标用户接口还可以包括标准的有线接口、无线接口。网络接口可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。
本领域技术人员可以理解,图3中示出的用户操作录制还原设备结构并不构成对用户操作录制还原设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图3所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块以及计算机可读指令。操作系统是管理和控制用户操作录制还原设备硬件和软件资源的计算机可读指令,支持计算机可读指令以及其它软件和/或计算机可读指令的运行。网络通信模块用于实现存储器1005内部各组件之间的通信,以及与用户操作录制还原设备中其它硬件和软件之间通信。
在图3所示的用户操作录制还原设备中,处理器1001用于执行存储器1005中存储的计算机可读指令,实现上述任一项所述的用户操作录制还原方法的步骤。
本申请用户操作录制还原设备具体实施方式与上述用户操作录制还原方法各实施例基本相同,在此不再赘述。
本申请还提供一种用户操作录制还原装置,本申请用户操作录制还原装置具体实施方式与上述用户操作录制还原方法各实施例基本相同,在此不再赘述。
本申请提供了一种可读存储介质,所述可读存储介质可以为非易失性可读存储介质,所述可读存储介质存储有一个或者一个以上计算机可读指令,所述一个或者一个以上计算机可读指令还可被一个或者一个以上的处理器执行以用于实现上述任一项所述的用户操作录制还原方法的步骤。
本申请可读存储介质具体实施方式与上述用户操作录制还原方法各实施例基本相同,在此不再赘述。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利处理范围内。

Claims (20)

  1. 一种用户操作录制还原方法,其中,所述用户操作录制还原方法应用于用户端,所述用户操作录制还原方法包括:
    在用户端检测到用户操作时,启动所述用户操作对应操作数据的刻录流程;
    判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程;
    若存在多重委托类型数据的刻录子流程,则调用预设动态回调规则处理所述多重委托类型数据,以获取回调结果;
    基于所述回调结果,完成所述操作数据的刻录,并将刻录后的所述操作数据发送给所述用户端对应的服务器端,以供所述服务器端完成对所述操作数据的还原处理。
  2. 如权利要求1所述的用户操作录制还原方法,其中,所述若存在多重委托类型数据的刻录子流程,则调用预设动态回调规则处理所述多重委托类型数据,以获取回调结果步骤包括:
    若存在多重委托类型数据的刻录子流程,则在刻录所述多重委托类型数据时,若捕捉到所述多重委托中优先级最低的被委托方的第一刻录子数,则将所述优先级最低的被委托方的第一刻录子数据发送至优先级最高的委托方,以供所述优先级最高的委托方基于所述第一刻录子数据与所述多重委托中被委托方的优先级排序逐级进行定向回调,以获取回调结果。
  3. 如权利要求1所述的用户操作录制还原方法,其中,所述判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程步骤之后包括:
    若未存在程多重委托类型数据的刻录子流程,则判断是否存在一重委托类型数据的刻录子流程;
    若存在一重委托类型数据的刻录子流程,则从所述一重委托类型数据中获取所述一重委托中被委托方的第二刻录子数据;
    将所述被委托的第二刻录子数据回调给一重委托中的委托方,以供所述委托方处理所述刻录子数据。
  4. 如权利要求1所述的用户操作录制还原方法,其中,所述判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程步骤包括:
    扫描所述操作数据对应的刻录流程,判断所述刻录流程中是否存在预设多重指针函数,其中,所述指针函数具有预设确定的函数标识;
    若所述刻录流程中存在预设多重指针函数,则在所述操作数据的刻录流程中,存在多重委托类型数据的刻录子流程。
  5. 如权利要求1所述的用户操作录制还原方法,其中,所述将刻录后的所述操作数据发送给所述用户端对应的服务器端,以供所述服务器端完成对所述操作数据的还原处理步骤包括:
    将刻录后的所述操作数据进行JSON数据格式化处理以及压缩处理,得到目标数据;
    将所述目标数据发送给所述用户端对应的服务器端,以供所述服务器端进行所述目标数据的解析,以完成对所述操作数据进行还原处理。
  6. 一种用户操作录制还原方法,其中,所述用户操作录制还原方法应用于服务器端,所述用户操作录制还原方法包括:
    在接收到用户端发送的目标数据时,对所述目标数据进行解析,以获取第一解析结果;
    判断所述第一解析结果中是否包含预设关键字或者预设数字,若所述第一解析结果中包含预设关键字或者预设数字,则判定所述第一解析结果中包含错误解析内容;
    获取所述错误解析内容的类型;
    若所述错误解析内容的类型是极值类型,则对所述错误解析内容进行预设JSON序列化处理,以得到所述目标数据的第二解析结果。
  7. 一种用户操作录制还原装置,其中,所述用户操作录制还原装置应用于用户端,所述用户操作录制还原装置包括:
    启动模块,用于在用户端检测到用户操作时,启动所述用户操作对应操作数据的刻录流程;
    第一判断模块,用于判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程;
    调用模块,用于若存在多重委托类型数据的刻录子流程,则调用预设动态回调规则处理所述多重委托类型数据,以获取回调结果;
    发送模块,用于基于所述回调结果,完成所述操作数据的刻录,并将刻录后的所述操作数据发送给所述用户端对应的服务器端,以供所述服务器端完成对所述操作数据的还原处理。
  8. 一种用户操作录制还原装置,其中,所述用户操作录制还原装置应用于服务器端,所述用户操作录制还原装置包括:
    解析模块,用于在接收到用户端发送的目标数据时,对所述目标数据进行解析,以获取第一解析结果;
    第二判断模块,用于判断所述第一解析结果中是否包含预设关键字或者预设数字,若所述第一解析结果中包含预设关键字或者预设数字,则判定所述第一解析结果中包含错误解析内容;
    第一获取模块,用于获取所述错误解析内容的类型;
    序列化处理模块,用于若所述错误解析内容的类型是极值类型,则对所述错误解析内容进行预设JSON序列化处理,以得到所述目标数据的第二解析结果。
  9. 一种用户操作录制还原设备,其中,所述用户操作录制还原设备包括:存储器、处理器,通信总线以及存储在所述存储器上的计算机可读指令,
    所述通信总线用于实现处理器与存储器间的通信连接;
    所述处理器用于执行所述计算机可读指令,以实现如下步骤:
    在用户端检测到用户操作时,启动所述用户操作对应操作数据的刻录流程;
    判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程;
    若存在多重委托类型数据的刻录子流程,则调用预设动态回调规则处理所述多重委托类型数据,以获取回调结果;
    基于所述回调结果,完成所述操作数据的刻录,并将刻录后的所述操作数据发送给所述用户端对应的服务器端,以供所述服务器端完成对所述操作数据的还原处理。
  10. 如权利要求9所述的用户操作录制还原设备,其中,所述若存在多重委托类型数据的刻录子流程,则调用预设动态回调规则处理所述多重委托类型数据,以获取回调结果步骤包括:
    若存在多重委托类型数据的刻录子流程,则在刻录所述多重委托类型数据时,若捕捉到所述多重委托中优先级最低的被委托方的第一刻录子数,则将所述优先级最低的被委托方的第一刻录子数据发送至优先级最高的委托方,以供所述优先级最高的委托方基于所述第一刻录子数据与所述多重委托中被委托方的优先级排序逐级进行定向回调,以获取回调结果。
  11. 如权利要求9所述的用户操作录制还原设备,其中,所述判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程步骤之后包括:
    若未存在程多重委托类型数据的刻录子流程,则判断是否存在一重委托类型数据的刻录子流程;
    若存在一重委托类型数据的刻录子流程,则从所述一重委托类型数据中获取所述一重委托中被委托方的第二刻录子数据;
    将所述被委托的第二刻录子数据回调给一重委托中的委托方,以供所述委托方处理所述刻录子数据。
  12. 如权利要求9所述的用户操作录制还原设备,其中,所述判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程步骤包括:
    扫描所述操作数据对应的刻录流程,判断所述刻录流程中是否存在预设多重指针函数,其中,所述指针函数具有预设确定的函数标识;
    若所述刻录流程中存在预设多重指针函数,则在所述操作数据的刻录流程中,存在多重委托类型数据的刻录子流程。
  13. 如权利要求9所述的用户操作录制还原设备,其中,所述将刻录后的所述操作数据发送给所述用户端对应的服务器端,以供所述服务器端完成对所述操作数据的还原处理步骤包括:
    将刻录后的所述操作数据进行JSON数据格式化处理以及压缩处理,得到目标数据;
    将所述目标数据发送给所述用户端对应的服务器端,以供所述服务器端进行所述目标数据的解析,以完成对所述操作数据进行还原处理。
  14. 一种用户操作录制还原设备,其中,所述用户操作录制还原设备应用于服务器端,所述用户操作录制还原设备包括:存储器、处理器,通信总线以及存储在所述存储器上的计算机可读指令,
    所述通信总线用于实现处理器与存储器间的通信连接;
    所述处理器用于执行所述计算机可读指令,以实现如下步骤:
    在接收到用户端发送的目标数据时,对所述目标数据进行解析,以获取第一解析结果;
    判断所述第一解析结果中是否包含预设关键字或者预设数字,若所述第一解析结果中包含预设关键字或者预设数字,则判定所述第一解析结果中包含错误解析内容;
    获取所述错误解析内容的类型;
    若所述错误解析内容的类型是极值类型,则对所述错误解析内容进行预设JSON序列化处理,以得到所述目标数据的第二解析结果。
  15. 一种可读存储介质,其中,所述可读存储介质上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如下步骤:
    在用户端检测到用户操作时,启动所述用户操作对应操作数据的刻录流程;
    判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程;
    若存在多重委托类型数据的刻录子流程,则调用预设动态回调规则处理所述多重委托类型数据,以获取回调结果;
    基于所述回调结果,完成所述操作数据的刻录,并将刻录后的所述操作数据发送给所述用户端对应的服务器端,以供所述服务器端完成对所述操作数据的还原处理。
  16. 如权利要求15所述的可读存储介质,其中,所述若存在多重委托类型数据的刻录子流程,则调用预设动态回调规则处理所述多重委托类型数据,以获取回调结果步骤包括:
    若存在多重委托类型数据的刻录子流程,则在刻录所述多重委托类型数据时,若捕捉到所述多重委托中优先级最低的被委托方的第一刻录子数,则将所述优先级最低的被委托方的第一刻录子数据发送至优先级最高的委托方,以供所述优先级最高的委托方基于所述第一刻录子数据与所述多重委托中被委托方的优先级排序逐级进行定向回调,以获取回调结果。
  17. 如权利要求15所述的可读存储介质,所述判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程步骤之后包括:
    若未存在程多重委托类型数据的刻录子流程,则判断是否存在一重委托类型数据的刻录子流程;
    若存在一重委托类型数据的刻录子流程,则从所述一重委托类型数据中获取所述一重委托中被委托方的第二刻录子数据;
    将所述被委托的第二刻录子数据回调给一重委托中的委托方,以供所述委托方处理所述刻录子数据。
  18. 如权利要求15所述的可读存储介质,其中,所述判断在所述操作数据的刻录流程中,是否存在多重委托类型数据的刻录子流程步骤包括:
    扫描所述操作数据对应的刻录流程,判断所述刻录流程中是否存在预设多重指针函数,其中,所述指针函数具有预设确定的函数标识;
    若所述刻录流程中存在预设多重指针函数,则在所述操作数据的刻录流程中,存在多重委托类型数据的刻录子流程。
  19. 如权利要求15所述的可读存储介质,其中,所述将刻录后的所述操作数据发送给所述用户端对应的服务器端,以供所述服务器端完成对所述操作数据的还原处理步骤包括:
    将刻录后的所述操作数据进行JSON数据格式化处理以及压缩处理,得到目标数据;
    将所述目标数据发送给所述用户端对应的服务器端,以供所述服务器端进行所述目标数据的解析,以完成对所述操作数据进行还原处理。
  20. 一种可读存储介质,其中,所述可读存储介质上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如下步骤:
    在接收到用户端发送的目标数据时,对所述目标数据进行解析,以获取第一解析结果;
    判断所述第一解析结果中是否包含预设关键字或者预设数字,若所述第一解析结果中包含预设关键字或者预设数字,则判定所述第一解析结果中包含错误解析内容;
    获取所述错误解析内容的类型;
    若所述错误解析内容的类型是极值类型,则对所述错误解析内容进行预设JSON序列化处理,以得到所述目标数据的第二解析结果。
PCT/CN2019/117541 2019-03-16 2019-11-12 用户操作录制还原方法、装置、设备及可读存储介质 WO2020186780A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910205660.6 2019-03-16
CN201910205660.6A CN110209557B (zh) 2019-03-16 2019-03-16 用户操作录制还原方法、装置、设备及可读存储介质

Publications (1)

Publication Number Publication Date
WO2020186780A1 true WO2020186780A1 (zh) 2020-09-24

Family

ID=67785036

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/117541 WO2020186780A1 (zh) 2019-03-16 2019-11-12 用户操作录制还原方法、装置、设备及可读存储介质

Country Status (2)

Country Link
CN (1) CN110209557B (zh)
WO (1) WO2020186780A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117331754A (zh) * 2023-10-17 2024-01-02 书行科技(北京)有限公司 异常问题还原方法、系统、电子设备和计算机存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110209557B (zh) * 2019-03-16 2022-05-17 平安科技(深圳)有限公司 用户操作录制还原方法、装置、设备及可读存储介质
CN110750511A (zh) * 2019-09-06 2020-02-04 平安普惠企业管理有限公司 操作历史还原方法、装置、计算机设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140282129A1 (en) * 2013-03-15 2014-09-18 Qixing Du Defer Heavy Operations While Scrolling
CN106294116A (zh) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 记录和重现操作过程的方法、装置和系统
CN107239389A (zh) * 2017-06-07 2017-10-10 网易(杭州)网络有限公司 一种在混合app中确定用户操作记录的方法及装置
CN109783335A (zh) * 2018-12-14 2019-05-21 平安科技(深圳)有限公司 用户操作录制还原方法、装置、设备及可读存储介质
CN110209557A (zh) * 2019-03-16 2019-09-06 平安科技(深圳)有限公司 用户操作录制还原方法、装置、设备及可读存储介质

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009032108A (ja) * 2007-07-27 2009-02-12 Hitachi Ltd 稼働実績記録制御方法及び装置、並びに監視システム
CN102841789B (zh) * 2012-06-29 2016-05-25 北京奇虎科技有限公司 一种对浏览器中的用户操作进行录制和回放的方法和装置
CN103678106A (zh) * 2012-09-19 2014-03-26 腾讯科技(深圳)有限公司 一种内容录制方法和装置
CN105808233B (zh) * 2016-01-04 2019-06-25 平安科技(深圳)有限公司 屏幕录制方法和装置
CN107247659A (zh) * 2016-12-15 2017-10-13 珠海金山网络游戏科技有限公司 一种用户操作录制与回放方法和系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140282129A1 (en) * 2013-03-15 2014-09-18 Qixing Du Defer Heavy Operations While Scrolling
CN106294116A (zh) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 记录和重现操作过程的方法、装置和系统
CN107239389A (zh) * 2017-06-07 2017-10-10 网易(杭州)网络有限公司 一种在混合app中确定用户操作记录的方法及装置
CN109783335A (zh) * 2018-12-14 2019-05-21 平安科技(深圳)有限公司 用户操作录制还原方法、装置、设备及可读存储介质
CN110209557A (zh) * 2019-03-16 2019-09-06 平安科技(深圳)有限公司 用户操作录制还原方法、装置、设备及可读存储介质

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117331754A (zh) * 2023-10-17 2024-01-02 书行科技(北京)有限公司 异常问题还原方法、系统、电子设备和计算机存储介质
CN117331754B (zh) * 2023-10-17 2024-04-19 书行科技(北京)有限公司 异常问题还原方法、系统、电子设备和计算机存储介质

Also Published As

Publication number Publication date
CN110209557B (zh) 2022-05-17
CN110209557A (zh) 2019-09-06

Similar Documents

Publication Publication Date Title
WO2020253034A1 (zh) 客户端埋点测试方法、装置、设备及存储介质
WO2020186780A1 (zh) 用户操作录制还原方法、装置、设备及可读存储介质
WO2020233077A1 (zh) 系统服务的监控方法、装置、设备及存储介质
WO2020015064A1 (zh) 系统故障处理方法、装置、设备及存储介质
WO2020015067A1 (zh) 数据采集方法、装置、设备及存储介质
WO2012002776A2 (en) Apparatus and method for controlling access to multiple services
WO2021072881A1 (zh) 基于对象存储的请求处理方法、装置、设备及存储介质
WO2020147264A1 (zh) 多系统日志数据的监控方法、装置、设备及可读存储介质
WO2018036167A1 (zh) 测试任务执行机分配方法、装置、服务器和存储介质
WO2020119369A1 (zh) 智能it运维故障定位方法、装置、设备及可读存储介质
WO2020186773A1 (zh) 调用请求监控方法、装置、设备及存储介质
WO2020119115A1 (zh) 数据审核方法、装置、设备及存储介质
EP3262814A1 (en) Attestation by proxy
WO2020253116A1 (zh) 数据跑批方法、装置、存储介质及集群中的成员主机
WO2020233057A1 (zh) 文件打包方法、装置、设备及存储介质
WO2020107591A1 (zh) 重复投保限制方法、装置、设备及可读存储介质
WO2020073494A1 (zh) 网页后门检测方法、设备、存储介质及装置
WO2020147385A1 (zh) 数据录入方法、装置、终端及计算机可读存储介质
WO2020015060A1 (zh) 用电量异常评估方法、装置、设备和计算机存储介质
WO2017107367A1 (zh) 用户标识处理的方法、终端和非易失性计算可读存储介质
WO2020237859A1 (zh) 基于nbd设备的数据迁移方法、装置、设备及存储介质
WO2020103275A1 (zh) 扣款控制方法、装置、设备及可读存储介质
WO2020233060A1 (zh) 事件通知方法、事件通知服务器、存储介质及装置
WO2014077458A1 (ko) 통신망의 종류를 구분하는 방법 및 이를 이용한 콘텐츠 제공 방법
WO2020233089A1 (zh) 测试用例生成方法、装置、终端及计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19920465

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19920465

Country of ref document: EP

Kind code of ref document: A1