CN113064802B - Operation track restoration method, device, equipment and storage medium - Google Patents

Operation track restoration method, device, equipment and storage medium Download PDF

Info

Publication number
CN113064802B
CN113064802B CN202110286488.9A CN202110286488A CN113064802B CN 113064802 B CN113064802 B CN 113064802B CN 202110286488 A CN202110286488 A CN 202110286488A CN 113064802 B CN113064802 B CN 113064802B
Authority
CN
China
Prior art keywords
page
time
control
pages
information
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202110286488.9A
Other languages
Chinese (zh)
Other versions
CN113064802A (en
Inventor
张远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202110286488.9A priority Critical patent/CN113064802B/en
Publication of CN113064802A publication Critical patent/CN113064802A/en
Application granted granted Critical
Publication of CN113064802B publication Critical patent/CN113064802B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • 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/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to data processing and provides an operation track restoration method, an operation track restoration device, operation track restoration equipment and a storage medium. The method includes the steps of determining restoration time according to an operation track restoration request when the operation track restoration request is received, obtaining a restoration log corresponding to the restoration time, extracting page information and a trigger control from the restoration log, determining a plurality of pages to be restored according to the page information, obtaining control information on the plurality of pages to be restored, drawing the pages to be restored according to the control information to obtain drawn pages, obtaining receiving time of the operation track restoration request, calculating time difference between the receiving time and the restoration time, determining a skip sequence of the drawn pages according to the time difference, and generating an operation track according to the drawn pages, the trigger control and the skip sequence. The method and the device can accurately restore the operation track of the user on the page, thereby being convenient for operation and maintenance personnel to solve the corresponding operation problem. Furthermore, the invention also relates to a blockchain technique, the operation track can be stored in a blockchain.

Description

Operation track restoration method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for restoring an operation trajectory.
Background
At present, when a function on a browser runs incorrectly to generate an error log, a user needs to restore and display the whole operation track to operation and maintenance personnel, the current operation track restoration mode is completed by repeated operation of the user on the browser, however, the operation track generating the error log cannot be accurately displayed to the operation and maintenance personnel due to the fact that the user possibly has the problem of missing or newly added operation in the process of secondary operation, and therefore the operation and maintenance personnel cannot be assisted to solve the problem of positioning the error log.
Therefore, how to accurately restore the operation track of the user on the page becomes a problem which needs to be solved urgently.
Disclosure of Invention
In view of the above, it is necessary to provide an operation trajectory restoring method, apparatus, device and storage medium, which can accurately restore an operation trajectory of a user on a page, so as to assist an operation and maintenance worker to solve a corresponding operation problem according to the accurately restored operation trajectory.
In one aspect, the present invention provides an operation trajectory reduction method, where the operation trajectory reduction method includes:
when an operation track restoration request is received, determining restoration time according to the operation track restoration request;
acquiring a reduction log corresponding to the reduction time, and extracting page information and a trigger control from the reduction log;
determining a plurality of pages to be restored according to the page information, and acquiring control information on the plurality of pages to be restored;
drawing a plurality of pages to be restored according to the control information to obtain a plurality of drawn pages;
acquiring the receiving time of the operation track restoration request, and calculating the time difference between the receiving time and the restoration time;
and determining the skipping sequence of the plurality of drawing pages according to the time difference, and generating an operation track according to the plurality of drawing pages, the trigger control and the skipping sequence.
According to a preferred embodiment of the present invention, the determining a restore time according to the operation trajectory restore request includes:
analyzing the message of the operation track restoration request to obtain data information carried by the message;
acquiring information indicating time from the data information as time information;
and screening out information corresponding to a preset interval from the time information as the reduction time.
According to a preferred embodiment of the present invention, the obtaining the restore log corresponding to the restore time includes:
acquiring a request terminal of the operation track restoration request;
acquiring a list corresponding to the request terminal as a log list;
acquiring a log storage path corresponding to the restoration time from the log list;
and acquiring all logs from the log storage path as the recovery logs.
According to the preferred embodiment of the present invention, the page information includes a page name and a page version number, and the determining a plurality of pages to be restored according to the page information includes:
acquiring a page library, wherein the page library stores the mapping relation among names, version numbers and pages;
obtaining a list corresponding to the page name from the page library to obtain a plurality of page lists;
and obtaining the pages corresponding to the page version numbers from each page list to obtain the multiple pages to be restored.
According to a preferred embodiment of the present invention, the obtaining control information on a plurality of pages to be restored includes:
acquiring information corresponding to the page information and a first preset label from a control library as a control type, wherein the first preset label is used for indicating the type of the control;
acquiring information corresponding to the page information and a second preset label from the control library as a control position, wherein the second preset label is used for indicating the position of the control;
acquiring information corresponding to the page information and a third preset label from the control library as the control length, wherein the third preset label is used for indicating the size of the control;
and determining the control type, the control position and the control length as the control information.
According to a preferred embodiment of the present invention, the rendering a plurality of pages to be restored according to the control information to obtain a plurality of rendered pages includes:
acquiring a page template for each page to be restored;
determining a page control according to the control information;
determining the arrangement sequence of the page controls in the page template according to the positions of the controls;
based on the control information, drawing the page controls on the page template in sequence according to the arrangement sequence;
and when the last page control in the page controls in the sequential order is drawn in the page template, generating the plurality of drawing pages.
According to a preferred embodiment of the present invention, the generating an operation trajectory according to the plurality of rendered pages, the trigger control, and the jump sequence includes:
sequencing the plurality of drawn pages according to the skipping sequence to obtain a page skipping video;
determining a triggering sequence of the triggering controls according to the time difference, and sequencing the triggering controls according to the triggering sequence to obtain a control triggering video;
acquiring the jumping time of each frame of jumping image in the page jumping video, and acquiring the triggering time of each frame of triggering image in the control triggering video;
determining the jumping time and the triggering time as operation time, and determining the page jumping video and the control triggering video as operation video;
and sequencing each frame of image in the operation video according to the operation time to obtain the operation track.
On the other hand, the present invention further provides an operation trajectory restoring apparatus, including:
the determining unit is used for determining restoration time according to the operation track restoration request when the operation track restoration request is received;
the extraction unit is used for acquiring a reduction log corresponding to the reduction time, and extracting page information and a trigger control from the reduction log;
the acquiring unit is used for determining a plurality of pages to be restored according to the page information and acquiring control information on the plurality of pages to be restored;
the drawing unit is used for drawing a plurality of pages to be restored according to the control information to obtain a plurality of drawn pages;
the calculating unit is used for acquiring the receiving time of the operation track restoration request and calculating the time difference between the receiving time and the restoration time;
and the generating unit is used for determining the skipping sequence of the plurality of drawing pages according to the time difference and generating an operation track according to the plurality of drawing pages, the trigger control and the skipping sequence.
In another aspect, the present invention further provides an electronic device, including:
a memory storing computer readable instructions; and
a processor executing computer readable instructions stored in the memory to implement the operation trajectory restoration method.
In another aspect, the present invention further provides a computer-readable storage medium, in which computer-readable instructions are stored, and the computer-readable instructions are executed by a processor in an electronic device to implement the operation trajectory restoration method.
According to the technical scheme, the recovery log can be accurately determined through the recovery time, the page information and the trigger control for triggering page jumping can be obtained from the recovery log, the multiple pages to be recovered can be accurately determined according to the page information, the multiple drawing pages corresponding to the multiple pages to be recovered can be accurately drawn according to the obtained control information, the jumping sequence of the multiple drawing pages can be accurately determined according to the time difference, the operation track of the operation track recovery request can be accurately generated, and as operation and maintenance personnel can learn the specific operation of a user through the recovered operation track, the reason for generating the error log can be accurately positioned through the recovered operation track.
Drawings
FIG. 1 is a flowchart illustrating a method for restoring an operation trajectory according to a preferred embodiment of the present invention.
FIG. 2 is a functional block diagram of an operation trajectory recovery apparatus according to a preferred embodiment of the present invention.
Fig. 3 is a schematic structural diagram of an electronic device implementing the operation trajectory restoration method according to the preferred embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flow chart of a preferred embodiment of the operation trajectory restoration method according to the present invention. The order of the steps in the flow chart may be changed and some steps may be omitted according to different needs.
The operation trajectory restoring method is applied to one or more electronic devices, where the electronic devices are devices capable of automatically performing numerical calculation and/or information processing according to computer readable instructions set in advance or stored in advance, and hardware of the electronic devices includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The electronic device may be any electronic product capable of performing human-computer interaction with a user, for example, a Personal computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game machine, an interactive Internet Protocol Television (IPTV), a smart wearable device, and the like.
The electronic device may include a network device and/or a user device. Wherein the network device includes, but is not limited to, a single network electronic device, an electronic device group consisting of a plurality of network electronic devices, or a Cloud Computing (Cloud Computing) based Cloud consisting of a large number of hosts or network electronic devices.
The network in which the electronic device is located includes, but is not limited to: the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like.
S10, when an operation track restoration request is received, the restoration time is determined according to the operation track restoration request.
In at least one embodiment of the present invention, the operation trace restoring request is triggered and generated by a requesting terminal, and the operation trace restoring request is generated when the requesting terminal detects an error log.
The information carried by the operation track restoration request includes, but is not limited to: a tag indicating time, time information, etc.
The restoring time refers to the operation time required for page restoring. The restore time is at a time prior to a time of the error log generation. For example, the error log is generated at 9.
In at least one embodiment of the present invention, the determining, by the electronic device, a restore time according to the operation trajectory restore request includes:
analyzing the message of the operation track restoration request to obtain data information carried by the message;
acquiring information indicating time from the data information as time information;
and screening out information corresponding to a preset interval from the time information as the reduction time.
Wherein the data information comprises: the time information, etc. The time information includes: the restoration time, the generation time of the operation track restoration request and the like.
The preset interval refers to a set of numbers in a certain range. For example, the reduction time may be 18.
By analyzing the message, the whole operation track restoration request does not need to be analyzed, so that the acquisition efficiency of the data information can be improved, the time information can be accurately acquired from the data information according to the label indicating the time, and furthermore, because the time information comprises a time interval and the expression behavior of the restoration time is the time interval, the restoration time can be accurately determined.
S11, acquiring a reduction log corresponding to the reduction time, and extracting page information and triggering a control from the reduction log.
In at least one embodiment of the present invention, the restore log refers to a file recording operations of the user at the restore time.
In at least one embodiment of the present invention, the page information is used to indicate a page, and the trigger control is a control that triggers a page jump.
In at least one embodiment of the present invention, the obtaining, by the electronic device, the restore log corresponding to the restore time includes:
acquiring a request terminal of the operation track restoration request;
acquiring a list corresponding to the request terminal as a log list;
acquiring a log storage path corresponding to the restoration time from the log list;
and acquiring all logs from the log storage path as the recovery logs.
The request terminal is a terminal generating the operation track restoration request.
And the log list stores the storage path of the log on the request terminal.
The log list can be accurately determined through the request terminal, the log storage path can be accurately obtained from the log list by utilizing the recovery time, and the recovery log can be accurately obtained from the log storage path.
Specifically, the request terminal for the electronic device to obtain the operation trajectory restoring request includes:
analyzing a message header of the operation track restoration request to obtain address information carried by the message header;
acquiring an address indicating a sending request from the address information as a terminal address;
and determining the terminal corresponding to the terminal address as the request terminal.
In at least one embodiment of the present invention, the extracting, by the electronic device, the page information and the triggering control from the restore log includes:
analyzing the restored log to obtain log information in the restored log;
acquiring information indicating a page from the log information as the page information;
and acquiring information indicating a control from the log information as a control name, and determining the trigger control according to the control name.
By the implementation mode, the page information and the trigger control can be accurately acquired from the reduction log.
And S12, determining a plurality of pages to be restored according to the page information, and acquiring control information on the plurality of pages to be restored.
In at least one embodiment of the present invention, each page to be restored refers to an operation page that needs to be restored within the restoration time.
The control information refers to information of a control on each page to be restored.
In at least one embodiment of the present invention, the determining, by the electronic device, a plurality of pages to be restored according to the page information includes:
the page information comprises a page name and a page version number;
acquiring a page library, wherein the page library stores the mapping relation among names, version numbers and pages;
obtaining a list corresponding to the page name from the page library to obtain a plurality of page lists;
and obtaining the pages corresponding to the page version numbers from each page list to obtain the multiple pages to be restored.
The page list can be accurately acquired from the page library through the page name, the screening range of the pages to be restored can be narrowed through the determined page lists, the acquiring efficiency of the pages to be restored is improved, and the pages to be restored can be accurately acquired from the page lists through the page version number.
In at least one embodiment of the present invention, the acquiring, by the electronic device, control information on a plurality of pages to be restored includes:
acquiring information corresponding to the page information and a first preset label from a control library as a control type, wherein the first preset label is used for indicating the type of the control;
acquiring information corresponding to the page information and a second preset label at the same time from the control library as a control position, wherein the second preset label is used for indicating the position of the control;
acquiring information corresponding to the page information and a third preset label from the control library as the control length, wherein the third preset label is used for indicating the size of the control;
and determining the control type, the control position and the control length as the control information.
And the control library stores the mapping relation between the page information and the control information.
The control length comprises the length of the control and the width of the control.
The control type can be accurately obtained from the control library through the page information and the first preset label, the control position can be accurately obtained from the control library through the page information and the second preset label, and the control length can be accurately obtained from the control library through the page information and the third preset label.
And S13, drawing a plurality of pages to be restored according to the control information to obtain a plurality of drawn pages.
In at least one embodiment of the present invention, the plurality of rendered pages refer to pages obtained by rendering the plurality of pages to be restored.
In at least one embodiment of the present invention, the electronic device draws a plurality of pages to be restored according to the control information, and obtaining a plurality of drawn pages includes:
acquiring a page template for each page to be restored;
determining a page control according to the control information;
determining the arrangement sequence of the page controls in the page template according to the positions of the controls;
based on the control information, drawing the page controls on the page template in sequence according to the arrangement sequence;
and when the last page control in the page controls sequenced in sequence is drawn in the page template, generating the plurality of drawing pages.
Wherein the page template can be any canvas.
The arrangement sequence of the page controls on the page template can be accurately determined through the positions of the controls, and the drawing of the drawing page can be ensured to be completed according to the arrangement sequence.
And S14, acquiring the receiving time of the operation track restoration request, and calculating the time difference between the receiving time and the restoration time.
In at least one embodiment of the present invention, the receiving time refers to a time when the electronic device receives the operation trajectory restoring request.
The time difference is the difference between the receiving time and the recovering time.
In at least one embodiment of the present invention, the obtaining, by the electronic device, the receiving time of the operation trajectory restoring request includes:
acquiring a request identifier of the operation track restoration request;
acquiring a receiving log of the operation track restoration request according to the request identifier;
acquiring information indicating a time from the reception log as the reception time.
Wherein the request identifier is used for uniquely indicating the operation track restoration request.
The receiving log can be accurately obtained through the request identifier, and further the receiving time can be accurately obtained from the receiving log.
In at least one embodiment of the present invention, the electronic device calculates a time difference between the reception time and the restoration time.
For example, the receiving time is 11.
S15, determining the skipping sequence of the plurality of drawing pages according to the time difference, and generating an operation track according to the plurality of drawing pages, the trigger control and the skipping sequence.
It is emphasized that the operation traces can also be stored in nodes of a blockchain to further ensure the privacy and security of the operation traces.
In at least one embodiment of the present invention, the electronic device determining a jump order of the plurality of rendered pages according to the time difference includes:
and sequencing the plurality of drawing pages corresponding to the reduction time according to the sequence of the time difference from large to small to obtain the jump sequence.
In at least one embodiment of the present invention, the generating, by the electronic device, an operation trajectory according to the plurality of rendered pages, the trigger control, and the skip sequence includes:
sequencing the plurality of drawn pages according to the skipping sequence to obtain a page skipping video;
determining the trigger sequence of the trigger controls according to the time difference, and sequencing the trigger controls according to the trigger sequence to obtain a control trigger video;
acquiring the jumping time of each frame of jumping image in the page jumping video, and acquiring the triggering time of each frame of triggering image in the control triggering video;
determining the jumping time and the triggering time as operation time, and determining the page jumping video and the control triggering video as operation video;
and sequencing each frame of image in the operation video according to the operation time to obtain the operation track.
Specifically, the electronic device sorts each frame of image in the operation video according to the time sequence of the operation time to obtain the operation track.
The page jump video can be accurately generated through the jump sequence and the plurality of rendered pages, the control trigger video can be accurately generated through the trigger sequence and the trigger control, and furthermore, the operation track can be accurately generated according to the jump time of each frame of jump image and the trigger time of each frame of trigger image because the operation process of the page is circulated by taking time as the sequence.
In at least one embodiment of the present invention, after generating an operation trajectory according to a plurality of the drawing pages, the trigger control, and the jump sequence, the method further includes:
generating prompt information according to the request identification and the operation track;
encrypting the prompt information by adopting a symmetric encryption technology to obtain a ciphertext;
and sending the ciphertext to the request terminal.
Through the implementation mode, the prompt message can be generated in time after the operation track is generated, and then the prompt message can be sent to the request terminal of the operation track restoration request in time.
According to the technical scheme, the recovery log can be accurately determined through the recovery time, the page information and the trigger control for triggering page jumping can be obtained from the recovery log, the multiple pages to be recovered can be accurately determined according to the page information, the multiple drawing pages corresponding to the multiple pages to be recovered can be accurately drawn according to the obtained control information, the jumping sequence of the multiple drawing pages can be accurately determined according to the time difference, the operation track of the operation track recovery request can be accurately generated, and as operation and maintenance personnel can learn the specific operation of a user through the recovered operation track, the reason for generating the error log can be accurately positioned through the recovered operation track.
Fig. 2 is a functional block diagram of an operation trajectory recovery apparatus according to a preferred embodiment of the present invention. The operation trajectory restoring apparatus 11 includes a determining unit 110, an extracting unit 111, an obtaining unit 112, a drawing unit 113, a calculating unit 114, a generating unit 115, an encrypting unit 116, and a transmitting unit 117. The module/unit referred to herein is a series of computer readable instruction segments that can be accessed by the processor 13 and perform a fixed function and that are stored in the memory 12. In the present embodiment, the functions of the modules/units will be described in detail in the following embodiments.
When receiving an operation trajectory restoration request, the determination unit 110 determines a restoration time according to the operation trajectory restoration request.
In at least one embodiment of the present invention, the operation trace restoring request is triggered and generated by a requesting terminal, and the operation trace restoring request is generated when the requesting terminal detects an error log.
The information carried by the operation track restoration request includes, but is not limited to: a tag indicating time, time information, etc.
The restoring time refers to the operation time required for page restoring. The restore time is at a time prior to a time of the error log generation. For example, the error log is generated at 9.
In at least one embodiment of the present invention, the determining unit 110 determines the restoration time according to the operation trajectory restoration request, including:
analyzing the message of the operation track restoration request to obtain data information carried by the message;
acquiring information indicating time from the data information as time information;
and screening out information corresponding to a preset interval from the time information as the reduction time.
Wherein the data information comprises: the time information, etc. The time information includes: the restoration time, the generation time of the operation track restoration request and the like.
The preset interval refers to a set of numbers in a certain range. For example, the reduction time may be 18.
By analyzing the message, the whole operation track restoration request does not need to be analyzed, so that the acquisition efficiency of the data information can be improved, the time information can be accurately acquired from the data information according to the label indicating the time, and furthermore, because the time information comprises a time interval and the expression behavior of the restoration time is the time interval, the restoration time can be accurately determined.
The extracting unit 111 obtains a restore log corresponding to the restore time, and extracts page information and a trigger control from the restore log.
In at least one embodiment of the present invention, the restore log refers to a file recording operations of the user at the restore time.
In at least one embodiment of the present invention, the page information is used to indicate a page, and the trigger control is a control that triggers a page jump.
In at least one embodiment of the present invention, the acquiring, by the extracting unit 111, the restore log corresponding to the restore time includes:
acquiring a request terminal of the operation track restoration request;
acquiring a list corresponding to the request terminal as a log list;
acquiring a log storage path corresponding to the restoration time from the log list;
and acquiring all logs from the log storage path as the recovery logs.
The request terminal is a terminal generating the operation track restoration request.
And the log list stores the storage path of the log on the request terminal.
The log list can be accurately determined through the request terminal, the log storage path can be accurately obtained from the log list by utilizing the recovery time, and the recovery log can be accurately obtained from the log storage path.
Specifically, the request terminal for acquiring the operation trajectory restoration request by the extracting unit 111 includes:
analyzing a message header of the operation track restoration request to obtain address information carried by the message header;
acquiring an address indicating a sending request from the address information as a terminal address;
and determining the terminal corresponding to the terminal address as the request terminal.
In at least one embodiment of the present invention, the extracting unit 111 extracts page information and a trigger control from the restore log, including:
analyzing the restored log to obtain log information in the restored log;
acquiring information indicating a page from the log information as the page information;
and acquiring information indicating a control from the log information as a control name, and determining the trigger control according to the control name.
By the implementation mode, the page information and the trigger control can be accurately acquired from the reduction log.
The obtaining unit 112 determines a plurality of pages to be restored according to the page information, and obtains control information on the plurality of pages to be restored.
In at least one embodiment of the present invention, each page to be restored refers to an operation page that needs to be restored within the restoration time.
The control information refers to information of a control on each page to be restored.
In at least one embodiment of the present invention, the determining, by the obtaining unit 112, a plurality of pages to be restored according to the page information includes:
the page information comprises a page name and a page version number;
acquiring a page library, wherein the page library stores the mapping relation among names, version numbers and pages;
obtaining a list corresponding to the page name from the page library to obtain a plurality of page lists;
and obtaining the pages corresponding to the page version numbers from each page list to obtain the multiple pages to be restored.
The page list can be accurately acquired from the page library through the page name, the screening range of the pages to be restored can be narrowed through the determined page lists, the acquiring efficiency of the pages to be restored is improved, and the pages to be restored can be accurately acquired from the page lists through the page version number.
In at least one embodiment of the present invention, the obtaining unit 112 obtains control information on a plurality of pages to be restored, where the obtaining unit includes:
acquiring information corresponding to the page information and a first preset label from a control library as a control type, wherein the first preset label is used for indicating the type of the control;
acquiring information corresponding to the page information and a second preset label at the same time from the control library as a control position, wherein the second preset label is used for indicating the position of the control;
acquiring information corresponding to the page information and a third preset label from the control library as the length of the control, wherein the third preset label is used for indicating the size of the control;
and determining the control type, the control position and the control length as the control information.
And the control library stores the mapping relation between the page information and the control information.
The control length comprises the length of the control and the width of the control.
The control type can be accurately obtained from the control library through the page information and the first preset label, the control position can be accurately obtained from the control library through the page information and the second preset label, and the control length can be accurately obtained from the control library through the page information and the third preset label.
The drawing unit 113 draws the multiple pages to be restored according to the control information to obtain multiple drawn pages.
In at least one embodiment of the present invention, the multiple rendered pages refer to pages obtained by rendering the multiple pages to be restored.
In at least one embodiment of the present invention, the drawing unit 113 draws a plurality of pages to be restored according to the control information, and obtaining a plurality of drawn pages includes:
acquiring a page template for each page to be restored;
determining a page control according to the control information;
determining the arrangement sequence of the page controls in the page template according to the positions of the controls;
based on the control information, drawing the page controls on the page template in sequence according to the arrangement sequence;
and when the last page control in the page controls in the sequential order is drawn in the page template, generating the plurality of drawing pages.
Wherein the page template can be any canvas.
The arrangement sequence of the page controls on the page template can be accurately determined through the positions of the controls, and the drawing of the drawing page can be ensured to be completed according to the arrangement sequence.
The calculation unit 114 obtains a reception time of the operation trajectory restoration request, and calculates a time difference between the reception time and the restoration time.
In at least one embodiment of the present invention, the receiving time refers to a time when the determining unit 110 receives the operation trajectory restoring request.
The time difference is the difference between the receiving time and the recovering time.
In at least one embodiment of the present invention, the obtaining, by the computing unit 114, the receiving time of the operation trajectory restoring request includes:
acquiring a request identifier of the operation track restoration request;
acquiring a receiving log of the operation track restoration request according to the request identifier;
acquiring information indicating a time from the reception log as the reception time.
Wherein the request identifier is used for uniquely indicating the operation track restoration request.
The receiving log can be accurately obtained through the request identification, and the receiving time can be accurately obtained from the receiving log.
In at least one embodiment of the present invention, the calculation unit 114 calculates a time difference between the reception time and the restoration time.
For example, the receiving time is 11.
The generating unit 115 determines a skip sequence of the plurality of drawing pages according to the time difference, and generates an operation trajectory according to the plurality of drawing pages, the trigger control, and the skip sequence.
It is emphasized that the operation traces can also be stored in nodes of a blockchain to further ensure the privacy and security of the operation traces.
In at least one embodiment of the present invention, the generating unit 115 determining a jump order of the plurality of drawn pages according to the time difference includes:
and sequencing the plurality of drawing pages corresponding to the reduction time according to the sequence of the time difference from large to small to obtain the jump sequence.
In at least one embodiment of the present invention, the generating unit 115 generates an operation trajectory according to the plurality of drawing pages, the trigger control, and the jump sequence, including:
sequencing the plurality of drawn pages according to the skipping sequence to obtain a page skipping video;
determining the trigger sequence of the trigger controls according to the time difference, and sequencing the trigger controls according to the trigger sequence to obtain a control trigger video;
acquiring the jumping time of each frame of jumping image in the page jumping video, and acquiring the triggering time of each frame of triggering image in the control triggering video;
determining the jumping time and the triggering time as operation time, and determining the page jumping video and the control triggering video as operation video;
and sequencing each frame of image in the operation video according to the operation time to obtain the operation track.
The page jump video can be accurately generated through the jump sequence and the plurality of rendered pages, the control trigger video can be accurately generated through the trigger sequence and the trigger control, and furthermore, the operation track can be accurately generated according to the jump time of each frame of jump image and the trigger time of each frame of trigger image because the operation process of the page is circulated by taking time as the sequence.
In at least one embodiment of the present invention, after generating an operation trajectory according to a plurality of the drawing pages, the trigger control, and the skip sequence, the generating unit 115 generates a prompt message according to the request identifier and the operation trajectory;
the encryption unit 116 encrypts the prompt message by using a symmetric encryption technology to obtain a ciphertext;
the transmitting unit 117 transmits the ciphertext to the requesting terminal.
Through the implementation mode, the prompt message can be generated in time after the operation track is generated, and then the prompt message can be sent to the request terminal of the operation track restoration request in time.
According to the technical scheme, the recovery log can be accurately determined through the recovery time, the page information and the trigger control for triggering page jumping can be obtained from the recovery log, the multiple pages to be recovered can be accurately determined according to the page information, the multiple drawing pages corresponding to the multiple pages to be recovered can be accurately drawn according to the obtained control information, the jumping sequence of the multiple drawing pages can be accurately determined according to the time difference, the operation track of the operation track recovery request can be accurately generated, and as operation and maintenance personnel can learn the specific operation of a user through the recovered operation track, the reason for generating the error log can be accurately positioned through the recovered operation track.
Fig. 3 is a schematic structural diagram of an electronic device implementing the operation trajectory restoration method according to the preferred embodiment of the present invention.
In one embodiment of the present invention, the electronic device 1 includes, but is not limited to, a memory 12, a processor 13, and computer readable instructions stored in the memory 12 and executable on the processor 13, such as an operation trace restoring program.
It will be appreciated by a person skilled in the art that the schematic diagram is only an example of the electronic device 1 and does not constitute a limitation of the electronic device 1, and that it may comprise more or less components than shown, or some components may be combined, or different components, e.g. the electronic device 1 may further comprise an input output device, a network access device, a bus, etc.
The Processor 13 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The processor 13 is an operation core and a control center of the electronic device 1, and is connected to each part of the whole electronic device 1 by various interfaces and lines, and executes an operating system of the electronic device 1 and various installed application programs, program codes, and the like.
Illustratively, the computer readable instructions may be partitioned into one or more modules/units that are stored in the memory 12 and executed by the processor 13 to implement the present invention. The one or more modules/units may be a series of computer readable instruction segments capable of performing specific functions, which are used for describing the execution process of the computer readable instructions in the electronic device 1. For example, the computer-readable instructions may be divided into a determination unit 110, an extraction unit 111, an acquisition unit 112, a rendering unit 113, a calculation unit 114, a generation unit 115, an encryption unit 116, and a transmission unit 117.
The memory 12 may be used for storing the computer readable instructions and/or modules, and the processor 13 implements various functions of the electronic device 1 by executing or executing the computer readable instructions and/or modules stored in the memory 12 and invoking data stored in the memory 12. The memory 12 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. The memory 12 may include non-volatile and volatile memories, such as: a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other storage device.
The memory 12 may be an external memory and/or an internal memory of the electronic device 1. Further, the memory 12 may be a memory having a physical form, such as a memory stick, a TF Card (Trans-flash Card), or the like.
The integrated modules/units of the electronic device 1 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the above embodiments may be implemented by hardware that is configured to be instructed by computer readable instructions, which may be stored in a computer readable storage medium, and when the computer readable instructions are executed by a processor, the steps of the method embodiments may be implemented.
Wherein the computer readable instructions comprise computer readable instruction code which may be in source code form, object code form, an executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying said computer readable instruction code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM).
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
With reference to fig. 1, the memory 12 in the electronic device 1 stores computer-readable instructions to implement an operation trace restoring method, and the processor 13 can execute the computer-readable instructions to implement:
when an operation track restoration request is received, determining restoration time according to the operation track restoration request;
acquiring a reduction log corresponding to the reduction time, and extracting page information and a trigger control from the reduction log;
determining a plurality of pages to be restored according to the page information, and acquiring control information on the plurality of pages to be restored;
drawing a plurality of pages to be restored according to the control information to obtain a plurality of drawn pages;
acquiring the receiving time of the operation track restoration request, and calculating the time difference between the receiving time and the restoration time;
and determining the skipping sequence of the plurality of drawing pages according to the time difference, and generating an operation track according to the plurality of drawing pages, the trigger control and the skipping sequence.
Specifically, the processor 13 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer readable instructions, which is not repeated herein.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The computer readable storage medium has computer readable instructions stored thereon, wherein the computer readable instructions when executed by the processor 13 are configured to implement the steps of:
when an operation track restoration request is received, determining restoration time according to the operation track restoration request;
acquiring a reduction log corresponding to the reduction time, and extracting page information and a trigger control from the reduction log;
determining a plurality of pages to be restored according to the page information, and acquiring control information on the plurality of pages to be restored;
drawing a plurality of pages to be restored according to the control information to obtain a plurality of drawn pages;
acquiring the receiving time of the operation track restoration request, and calculating the time difference between the receiving time and the restoration time;
and determining the skipping sequence of the plurality of drawing pages according to the time difference, and generating an operation track according to the plurality of drawing pages, the trigger control and the skipping sequence.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. The plurality of units or devices may also be implemented by one unit or device through software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (9)

1. An operation trajectory restoration method, characterized in that the operation trajectory restoration method comprises:
when an operation track restoration request is received, determining restoration time according to the operation track restoration request;
acquiring a reduction log corresponding to the reduction time, and extracting page information and a trigger control from the reduction log;
determining a plurality of pages to be restored according to the page information, and acquiring control information on the plurality of pages to be restored, wherein the control information comprises control positions;
drawing a plurality of pages to be restored according to the control information to obtain a plurality of drawn pages, wherein the drawing comprises the following steps: acquiring a page template for each page to be restored; determining a page control according to the control information; determining the arrangement sequence of the page controls in the page template according to the positions of the controls; based on the control information, drawing the page controls on the page template in sequence according to the arrangement sequence; generating the plurality of rendered pages when a last of the sequentially ordered page controls is rendered in the page template;
acquiring the receiving time of the operation track restoration request, and calculating the time difference between the receiving time and the restoration time;
and determining the skipping sequence of the plurality of drawing pages according to the time difference, and generating an operation track according to the plurality of drawing pages, the trigger control and the skipping sequence.
2. The operation track restoration method according to claim 1, wherein the determining of the restoration time according to the operation track restoration request includes:
analyzing the message of the operation track restoration request to obtain data information carried by the message;
acquiring information indicating time from the data information as time information;
and screening out information corresponding to a preset interval from the time information as the reduction time.
3. The operation trajectory restoration method according to claim 1, wherein the obtaining of the restoration log corresponding to the restoration time includes:
acquiring a request terminal of the operation track restoration request;
acquiring a list corresponding to the request terminal as a log list;
acquiring a log storage path corresponding to the restoration time from the log list;
and acquiring all logs from the log storage path as the recovery logs.
4. The operation track restoration method according to claim 1, wherein the page information includes a page name and a page version number, and the determining a plurality of pages to be restored according to the page information includes:
acquiring a page library, wherein the page library stores the mapping relation among names, version numbers and pages;
obtaining a list corresponding to the page name from the page library to obtain a plurality of page lists;
and obtaining the pages corresponding to the page version numbers from each page list to obtain the multiple pages to be restored.
5. The operation trajectory recovery method according to claim 1, wherein the obtaining control information on the plurality of pages to be recovered includes:
acquiring information corresponding to the page information and a first preset label from a control library as a control type, wherein the first preset label is used for indicating the type of the control;
acquiring information corresponding to the page information and a second preset label from the control library as the control position, wherein the second preset label is used for indicating the position of the control;
acquiring information corresponding to the page information and a third preset label from the control library as the control length, wherein the third preset label is used for indicating the size of the control;
and determining the control type, the control position and the control length as the control information.
6. The operation trajectory restoration method according to claim 1, wherein the generating an operation trajectory according to the plurality of rendered pages, the trigger control, and the jump sequence includes:
sequencing the plurality of drawn pages according to the skipping sequence to obtain a page skipping video;
determining a triggering sequence of the triggering controls according to the time difference, and sequencing the triggering controls according to the triggering sequence to obtain a control triggering video;
acquiring the jumping time of each frame of jumping image in the page jumping video, and acquiring the triggering time of each frame of triggering image in the control triggering video;
determining the jumping time and the triggering time as operation time, and determining the page jumping video and the control triggering video as operation video;
and sequencing each frame of image in the operation video according to the operation time to obtain the operation track.
7. An operation trajectory restoration device, characterized in that the operation trajectory restoration device comprises:
the determining unit is used for determining restoration time according to the operation track restoration request when the operation track restoration request is received;
the extraction unit is used for acquiring a reduction log corresponding to the reduction time, and extracting page information and a trigger control from the reduction log;
the acquiring unit is used for determining a plurality of pages to be restored according to the page information and acquiring control information on the plurality of pages to be restored, wherein the control information comprises control positions;
the drawing unit is used for drawing the pages to be restored according to the control information to obtain a plurality of drawn pages, and the drawing unit comprises: acquiring a page template for each page to be restored; determining a page control according to the control information; determining the arrangement sequence of the page controls in the page template according to the positions of the controls; based on the control information, drawing the page controls on the page template in sequence according to the arrangement sequence; generating the plurality of rendered pages when a last of the sequentially ordered page controls is rendered in the page template;
the calculating unit is used for acquiring the receiving time of the operation track restoration request and calculating the time difference between the receiving time and the restoration time;
and the generating unit is used for determining the skipping sequence of the plurality of drawing pages according to the time difference and generating an operation track according to the plurality of drawing pages, the trigger control and the skipping sequence.
8. An electronic device, characterized in that the electronic device comprises:
a memory storing computer readable instructions; and
a processor executing computer readable instructions stored in the memory to implement the operation trajectory restoration method according to any one of claims 1 to 6.
9. A computer-readable storage medium characterized by: the computer-readable storage medium stores therein computer-readable instructions, which are executed by a processor in an electronic device to implement the operation trajectory restoration method according to any one of claims 1 to 6.
CN202110286488.9A 2021-03-17 2021-03-17 Operation track restoration method, device, equipment and storage medium Active CN113064802B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110286488.9A CN113064802B (en) 2021-03-17 2021-03-17 Operation track restoration method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110286488.9A CN113064802B (en) 2021-03-17 2021-03-17 Operation track restoration method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113064802A CN113064802A (en) 2021-07-02
CN113064802B true CN113064802B (en) 2023-02-07

Family

ID=76561269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110286488.9A Active CN113064802B (en) 2021-03-17 2021-03-17 Operation track restoration method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113064802B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017107834A1 (en) * 2015-12-21 2017-06-29 北京奇虎科技有限公司 Page switching method and apparatus, computer program, and readable medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055451B (en) * 2016-05-23 2019-02-15 努比亚技术有限公司 Information processing method and electronic equipment
CN107103014A (en) * 2016-10-11 2017-08-29 阿里巴巴集团控股有限公司 The replay method of history pushed information, device and system
US10417063B2 (en) * 2017-06-28 2019-09-17 Microsoft Technology Licensing, Llc Artificial creation of dominant sequences that are representative of logged events
CN108710574A (en) * 2018-05-23 2018-10-26 百度在线网络技术(北京)有限公司 Ui testing method and apparatus
CN109710354A (en) * 2018-12-13 2019-05-03 平安普惠企业管理有限公司 Page monitor method, page restoring method, device, equipment and medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017107834A1 (en) * 2015-12-21 2017-06-29 北京奇虎科技有限公司 Page switching method and apparatus, computer program, and readable medium

Also Published As

Publication number Publication date
CN113064802A (en) 2021-07-02

Similar Documents

Publication Publication Date Title
CN111831485B (en) Data recovery method, device, electronic equipment and medium
CN111639284A (en) Webpage labeling method and device, electronic equipment and medium
CN111797351A (en) Page data management method and device, electronic equipment and medium
CN112511340A (en) Data transmission method and device, electronic equipment and storage medium
CN110659569A (en) Electronic signature method, device, storage medium and electronic equipment
CN114035827A (en) Application program updating method, device, equipment and storage medium
CN113050900A (en) Screen sharing method, device, equipment and storage medium
CN112416583A (en) High-frequency request processing method and device, electronic equipment and storage medium
CN112001159A (en) Document generation method and device, electronic equipment and storage medium
CN113536770B (en) Text analysis method, device and equipment based on artificial intelligence and storage medium
CN113378224B (en) Medical image storage method, device, equipment and storage medium
CN112947911A (en) Interface script generation method, device, equipment and storage medium
CN114116108A (en) Dynamic rendering method, device, equipment and storage medium
CN113064802B (en) Operation track restoration method, device, equipment and storage medium
CN113283389A (en) Handwritten character quality detection method, device, equipment and storage medium
CN112784566A (en) Document generation method, device, equipment and storage medium
CN112134968A (en) Domain name access method and device, electronic equipment and storage medium
CN112199483A (en) Information input assisting method and device, electronic equipment and storage medium
CN112199364A (en) Data cleaning method and device, electronic equipment and storage medium
CN115205032A (en) Credit investigation query method, apparatus, device and storage medium
CN114329095A (en) System logic diagram generation method, device, equipment and storage medium
CN114610386A (en) Interaction method, device, equipment and storage medium of H5 and application program
CN114238296A (en) Product index data display method, device, equipment and storage medium
CN113282218A (en) Multi-dimensional report generation method, device, equipment and storage medium
CN114003784A (en) Request recording method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant