CN111552591A - Page abnormity recovery method, device, equipment and computer readable storage medium - Google Patents

Page abnormity recovery method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111552591A
CN111552591A CN202010220151.3A CN202010220151A CN111552591A CN 111552591 A CN111552591 A CN 111552591A CN 202010220151 A CN202010220151 A CN 202010220151A CN 111552591 A CN111552591 A CN 111552591A
Authority
CN
China
Prior art keywords
information field
target page
timestamp
field variable
page
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.)
Pending
Application number
CN202010220151.3A
Other languages
Chinese (zh)
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 Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China 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 Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN202010220151.3A priority Critical patent/CN111552591A/en
Publication of CN111552591A publication Critical patent/CN111552591A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Storage Device Security (AREA)

Abstract

The application relates to the technical field of data processing, in particular to a page exception recovery method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: when an information field variable corresponding to a position to be filled of a target page changes, acquiring a timestamp when the information field variable changes, and acquiring effective content of the position to be filled; storing the effective content, the timestamp and the changed information field variable, and determining whether the target page is closed abnormally; and if the target page is abnormally closed, updating the abnormally closed target page according to the stored effective content, the timestamp and the information field variable when the abnormally closed target page is displayed again. According to the method and the device, the storage and the recovery of the page information are ensured, the safety of the user information is also ensured, and the use experience of the user is greatly improved.

Description

Page abnormity recovery method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for recovering a page exception.
Background
Differences among android operating systems, differences and instability of networks, performance problems caused by integration of third-party SDKs, memory management and memory leakage of operating systems and Application programs (APPs) depending on a compiling platform can cause APP flash back, and the APP flash back brings inconvenience to users. The traditional APP flash back reduction mechanism is that under the condition of a pure Native method (Native), partial information of a user which can be cached by an APP can be restored into an APP component after flash back. The Control System (EMCS) project adopts a hybrid development mode, that is, APP is embedded in H5(HTML5) page, and cannot realize the flash back recovery function by APP. Therefore, how to recover information from page exception is a problem to be solved urgently.
Disclosure of Invention
The application mainly aims to provide a page exception recovery method, a page exception recovery device, page exception recovery equipment and a computer readable storage medium, and aims to improve page exception recovery and user satisfaction.
In a first aspect, the present application provides a method for recovering a page exception, where the method for recovering a page exception includes the following steps:
when an information field variable corresponding to a position to be filled of a target page changes, acquiring a timestamp when the information field variable changes, and acquiring effective content of the position to be filled;
storing the effective content, the timestamp and the changed information field variable, and determining whether the target page is closed abnormally;
and if the target page is abnormally closed, updating the abnormally closed target page according to the stored effective content, the timestamp and the information field variable when the abnormally closed target page is displayed again.
In a second aspect, the present application further provides a page exception recovery apparatus, where the page exception recovery apparatus includes:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a timestamp when an information field variable corresponding to a position to be filled of a target page changes and acquiring effective content of the position to be filled;
the storage module is used for storing the effective content, the timestamp and the changed information field variable;
the judging module is used for determining whether the target page is closed abnormally;
and the updating module is used for updating the abnormally closed target page according to the stored effective content, the timestamp and the information field variable when the abnormally closed target page is displayed again if the target page is abnormally closed.
In a third aspect, the present application further provides a computer device, which includes a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the page exception recovery method as described above are implemented.
In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the page exception recovery method as described above.
The application provides a page abnormity recovery method, a device, equipment and a computer readable storage medium, when an information field variable corresponding to a position to be filled of a target page changes, a timestamp when the information field variable changes and effective content of the position to be filled are obtained, the effective content, the timestamp and the changed information field variable are stored, the page can be recovered after the subsequent page is abnormally closed, and then if the target page is abnormally closed, and the abnormally closed target page is displayed, data in the abnormally closed target page can be recovered according to the stored effective content, the timestamp and the information field variable, so that the storage and recovery of page information are ensured, the safety of user information is also ensured, and the use experience of a user is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a page exception recovery method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another page exception recovery method according to an embodiment of the present application;
FIG. 3 is a block diagram illustrating an exemplary page exception recovery apparatus according to an embodiment of the present disclosure;
FIG. 4 is a schematic block diagram of another page exception recovery apparatus provided in an embodiment of the present application;
fig. 5 is a block diagram schematically illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The embodiment of the application provides a page abnormity recovery method, a page abnormity recovery device, computer equipment and a computer readable storage medium. The page abnormity recovery method can be applied to terminal equipment, and the terminal equipment can be electronic equipment such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant and wearable equipment.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a page exception recovery method according to an embodiment of the present application.
As shown in fig. 1, the page exception recovery method includes steps S101 to S103.
Step S101, when an information field variable corresponding to a position to be filled of a target page changes, a timestamp when the information field variable changes is obtained, and effective content of the position to be filled is obtained.
The target page is a page for inputting information by a user, for example, an insurance page, the user is required to input information such as an identity card number, a contact telephone, a name, a company address and a family address in the insurance page, and the position to be filled is a position where the user is required to input the information.
In an embodiment, when a progressive JavaScript (VUE) framework of a user interface is constructed, an information field corresponding to each position to be filled is defined into a computed object, so that an information field variable is obtained, and when the content in the position to be filled is changed, the information field variable is changed, so that whether the content in the position to be filled is changed or not can be monitored, and the latest content can be stored subsequently.
Specifically, a current information field variable and a historical information field variable corresponding to a position to be filled of a target page are obtained; determining whether the current information field variable is the same as the historical information field variable; if the current information field variable is different from the historical information field variable, determining that the information field variable corresponding to the position to be filled of the target page is changed; and if the current information field variable is the same as the historical information field variable, determining that the information field variable corresponding to the position to be filled of the target page is not changed. And the historical information field variable is an information field variable corresponding to the position to be filled recorded before the current moment.
Specifically, page grabbing is carried out on a target page, each position to be filled in the target page has a unique address, and the position to be filled in the target page is identified according to the address; determining whether the content of the position to be filled changes or not according to the information field variable in the position to be filled; if the information field variable in the position to be filled is different from the historical information field variable, determining that the content of the position to be filled of the target page is changed; and if the information field variable in the position to be filled is the same as the historical information field variable, determining that the content of the position to be filled of the target page is not changed.
It should be noted that the target page capture mode may be selected according to the actual situation, and optionally the page capture mode: the method comprises the following steps of page grabbing modes such as a distributed crawler page grabbing mode, a JAVA crawler page grabbing mode, a non-JAVA crawler page grabbing mode and the like, and the method is not specifically limited herein.
In an embodiment, a system clock mode is adopted to detect the period at regular time, positions to be filled in a target page are captured periodically, and corresponding information field variables are obtained according to the positions to be filled. Illustratively, the user sets the timing detection period to be 2 minutes, performs timing according to the system clock, and performs page grabbing on the target page every 2 minutes.
In one embodiment, the page information is acquired through a page updating period capturing method, a rule is formulated according to the page updating time and other definition indexes, and the page is captured according to the rule, so that the real-time performance of capturing the target page is enhanced. The formulated rule includes, but is not limited to, triggering real-time crawling of the target page according to a filling operation of a user and triggering real-time crawling of the target page according to historical data, and the application is not specifically limited herein.
Illustratively, the rules for crawling the target page in real time are triggered according to historical data. Specifically, the historical data of the target page belongs to an address at a certain position to be filled, and when the information such as a house number and the like of the address of the user input by the user is detected, the user can be presumed to be filled in the position to be filled, the effective content of the position to be filled can be intelligently captured, and the intelligent and real-time capturing of the changed effective content is realized for storage.
It should be noted that, the target page is captured by one or a combination of a plurality of capturing modes, which can be timing detection cycle capturing, page updating real-time capturing and historical data triggering real-time capturing, so as to improve the accuracy and real-time performance of page capturing.
In one embodiment, the valid content is packaged into components, and the information field variable corresponds to data (data) of the current component. The hierarchy of the stored information field variable data is consistent with the data, namely the hierarchy format of the information field variable data is consistent with the data. A key (key) on a resource location system (URL) is unified in an equipment monitoring system (EMCS) and is used for encryption and decryption.
And S102, storing the effective content, the timestamp and the changed information field variable, and determining whether the target page is closed abnormally.
And after the effective content and the timestamp are obtained, storing the effective content, the timestamp and the changed information field variable, and determining whether the target page is closed abnormally. The valid content, the timestamp, and the changed information field variable may be stored locally or in a network server, which is not specifically limited in this application.
In one embodiment, a preset system identifier is obtained, the information field variable is converted into a character string, and the information field variable is converted into a JSON Object Notation (JSON) character string; encrypting the character string according to the preset system identifier and the timestamp to obtain an encrypted character string; the valid content, the timestamp, and the encrypted string are stored. It should be noted that the JS object profile includes an object format and an array/set format, where the alternative format is the array/set format.
Specifically, a secret key is determined according to a preset system identifier and a timestamp, that is, the preset system identifier is connected with the timestamp, so that the secret key is obtained; and encrypting the character string based on a preset encryption algorithm and the secret key to obtain an encrypted character string. The preset system identification can be adjusted according to actual conditions, and the timestamp is a time point when an information field variable corresponding to a position to be filled of the target page changes.
Illustratively, if the user fills in the effective content at the position to be filled in the target page and records the time for filling in the information as 2018, 1, 12, 15, 21 minutes and 35 seconds, the time stamp is 20180112152135 characters with 14 digits. If the preset system identifier is set to storeBackup, the encrypted secret key is storeBackup 2018011215213.
In one embodiment, the valid content, the timestamp, and the encrypted string are saved to a network server over a communications network. The network may be a 3G (third generation mobile communication technology) communication network, a 4G (fourth generation mobile communication technology) communication network, a 5G (fifth generation mobile communication technology) communication network, or other network transmission modes such as WIFI network and bluetooth transmission.
In one embodiment, when a closing event of a target page is detected, a system error log of the target page is obtained, and whether a preset keyword exists in the system error log is determined; if the system error report log has a preset keyword, determining that the target page is closed abnormally; and if the error log of the system does not have the preset keyword, determining that the target page is not closed abnormally. The system error log records the information of hardware, software and system problems in the system; the preset keyword may be set according to an actual situation, and the application is not specifically limited herein, for example, the preset keyword may be set to be non-responsive. By acquiring the system error log of the target page, whether the target page is abnormally closed is determined, the determining speed of determining whether the target page is abnormally closed is increased, and the user experience is greatly improved.
Illustratively, when closing of a target page is detected, acquiring a system error log of the target page, determining whether a log of page no response exists in the system error log, and if the log of page no response exists in the system error log, determining that the target page is abnormally closed; and if the log of page no response does not exist in the error log of the system, determining that the target page is normally closed.
Step S103, if the target page is abnormally closed, when the abnormally closed target page is displayed again, updating the abnormally closed target page according to the stored effective content, the timestamp and the information field variable.
After the target page is confirmed to be abnormally closed, the target page which is abnormally closed is displayed, the stored effective content, the timestamp and the information field variable are obtained, and the effective content in the position to be filled of the target page is recovered according to the effective content, the timestamp and the information field variable. And acquiring the effective content, the timestamp and the information field variable of the storage according to the position of the information storage when the page is closed abnormally.
In one embodiment, the absolute value of the difference between the current time and the timestamp is calculated; and determining whether the absolute value of the difference is within the preset effective time, and if the absolute value of the difference is within the preset effective time, updating the abnormally closed target page according to the stored effective content, the timestamp and the information field variable. The preset valid time can be set according to actual conditions, and the application is not specifically limited herein.
Illustratively, the acquired timestamp is 2018, 9, 15, 13, 30, min 50 s, and the current time is 2018, 11, 15, 13, 30, min 50 s, and the absolute value of the difference between the timestamp and the current time is calculated to obtain the absolute value of the difference as 61 days, the preset valid time may be set as 30 days, and the absolute value of the difference is not within the preset valid time, so that the stored valid content, timestamp, and information field variable are useless information.
Illustratively, the acquired timestamp is 30 minutes and 50 seconds at 13 hours, 15 days and 13 minutes and 50 seconds at the current time of 2017, 9 months and 15 days, and the absolute value of the difference between the timestamp and the current time is calculated to be 2 minutes, the preset valid time can be set to be 24 hours, and the absolute value of the difference is within the preset valid time, so that the stored valid content, the timestamp and the information field variable are valid storage information.
In one embodiment, when a target page is closed abnormally, a stored timestamp and the encrypted character string are obtained, and the encrypted character string is decrypted according to the preset system identifier and the timestamp to obtain the character string; carrying out format conversion on the character string to obtain an information field variable; and acquiring the effective content corresponding to the information field variable, and filling the effective content into a position to be filled corresponding to the information field variable so as to update the target page.
Specifically, the obtained encrypted character string is decrypted in an AEC decryption manner to obtain the character string. The secret key is determined according to the preset system identifier and the time stamp in the decryption process, namely the preset system identifier is connected with the time stamp, so that the secret key is obtained. And converting the character string in the json format into an information field format according to a format conversion mode to obtain an information field variable. And filling the effective content into the position to be filled corresponding to the information field variable of the target page according to the effective content corresponding to the information field variable, updating the target page again, and completing the recovery of the information of abnormal closing of the target page.
According to the page abnormity recovery method provided by the embodiment, when the information field variable corresponding to the position to be filled of the target page changes, the timestamp when the information field variable changes and the effective content of the position to be filled are obtained, the effective content, the timestamp and the changed information field variable are stored, the page can be recovered after the subsequent page is abnormally closed, and then if the target page is abnormally closed and the abnormally closed target page is displayed, the data in the abnormally closed target page can be recovered according to the stored effective content, the timestamp and the information field variable, so that the storage and recovery of page information are ensured, the safety of user information is also ensured, and the use experience of a user is greatly improved.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating another page exception recovery method according to an embodiment of the present application.
As shown in fig. 2, the page exception recovery method includes steps S201 to S204.
Step S201, when an information field variable corresponding to a position to be filled of a target page changes, a timestamp when the information field variable changes is obtained, and effective content of the position to be filled is obtained.
Specifically, a current information field variable and a historical information field variable corresponding to a position to be filled of a target page are obtained; determining whether the current information field variable is the same as the historical information field variable; and if the current information field variable is different from the historical information field variable, determining that the information field variable corresponding to the position to be filled of the target page is changed, and acquiring the timestamp and the effective content of the position to be filled when the information field variable is changed.
Step S202, storing the effective content, the timestamp and the changed information field variable, and determining whether the target page is closed abnormally.
When a closing event of a target page is detected, acquiring a system error log of the target page, and determining whether the system error log has a preset keyword or not; if the system error report log has a preset keyword, determining that the target page is closed abnormally; and if the error log of the system does not have the preset keyword, determining that the target page is not closed abnormally. The system error log records the information of hardware, software and system problems in the system; the preset keyword may be set according to an actual situation, and the application is not specifically limited herein, for example, the preset keyword may be set to be non-responsive.
Step S203, if the target page is abnormally closed, displaying an authentication popup when the abnormally closed target page is displayed again, and acquiring password information input by a user based on the authentication popup.
And if the target page is determined to be closed abnormally and the target page is displayed, acquiring the timestamp from the local and/or network server and acquiring the current moment. Wherein, the current time is a time point for displaying an abnormally closed target page; the timestamp can be acquired from a local storage, or downloaded from a network server through a network, wherein the network can select a 3G (third generation mobile communication technology) communication network, a 4G (fourth generation mobile communication technology) communication network, a 5G (fifth generation mobile communication technology) communication network, or other network transmission modes such as WIFI network and bluetooth transmission, and the application is not specifically limited herein.
In order to guarantee the safety of the user information, whether the user has the right to acquire the stored effective content and the encrypted character string information is determined. Specifically, the target page displays a user authentication popup, and the user inputs password information to confirm whether the user has the right to acquire the stored valid content and the encrypted character string information. It should be noted that the password information includes, but is not limited to, a digital password, fingerprint feature information, and face feature information.
And step S204, when the password information passes the verification, updating the abnormally closed target page according to the stored effective content, the timestamp and the information field variable.
In an embodiment, the method for verifying the verification password input by the user specifically includes: and judging whether the verification password input by the user is the same as the preset verification password or not, if so, determining that the input verification password passes the verification, and if not, determining that the input verification password does not pass the verification.
When the user identity verification is passed, the user acquires the stored timestamp and the encrypted character string, and decrypts the encrypted character string according to a preset system identifier and the timestamp to obtain the character string; carrying out format conversion on the character string to obtain an information field variable; and acquiring effective content corresponding to the information field variable, and filling the effective content into a position to be filled corresponding to the information field variable so as to update the target page.
Specifically, the obtained encrypted character string is decrypted in an AEC decryption manner to obtain the character string. The secret key is determined according to the preset system identifier and the time stamp in the decryption process, namely the preset system identifier is connected with the time stamp, so that the secret key is obtained. And converting the character string in the json format into an information field format according to a format conversion mode to obtain an information field variable. And filling the effective content into the position to be filled corresponding to the information field variable of the target page according to the effective content corresponding to the information field variable, updating the target page again, and completing the recovery of the information of abnormal closing of the target page.
In one embodiment, after the position information to be filled in the target page is recovered, the page displays whether the information recovery accurately confirms the popup window or not, and acquires an option whether the information recovery accurately confirms or not by the user based on the information recovery, and if the option is 'yes' selected by the user, the page is accurately recovered; if the user selects 'no', the page is recovered inaccurately, and the user selects an inaccurate position to be filled to change the information. It should be noted that the error in the page recovery may be caused by an error in the network or system, so that part of the content may be in error.
In an embodiment, after the target page information is recovered, the valid content, the timestamp and the information field variable stored in the local/network server are deleted at a preset time interval, and the valid content, the timestamp and the information field variable of the position to be filled in the updated target page are stored again. To relieve the storage burden on the local/network server.
According to the page abnormity recovery method provided by the embodiment, when the information field variable corresponding to the position to be filled of the target page is changed, the timestamp when the information field variable is changed and the effective content of the position to be filled are obtained, the effective content, the timestamp and the changed information field variable are stored, if the target page is abnormally closed and the abnormally closed target page is displayed, whether the user has the authority to obtain the effective content is judged, and when the user passes the verification, the data in the abnormally closed target page is recovered according to the stored effective content, the stored timestamp and the stored information field variable, so that the storage and recovery of page information are ensured, the safety of the user information is also ensured, and the use experience of the user is greatly improved.
Referring to fig. 3, fig. 3 is a schematic block diagram of a page exception recovery apparatus according to an embodiment of the present disclosure.
As shown in fig. 3, the page exception recovery apparatus 300 includes: an acquisition module 301, a storage module 302, a judgment module 303 and an update module 304.
The obtaining module 301 is configured to, when an information field variable corresponding to a to-be-filled position of a target page changes, obtain a timestamp when the information field variable changes, and obtain effective content of the to-be-filled position.
In an embodiment, the obtaining module 301 is further configured to obtain a current information field variable and a history information field variable corresponding to a position to be filled of a target page; determining whether the current information field variable is the same as the historical information field variable; and if the current information field variable is different from the historical information field variable, determining that the information field variable corresponding to the position to be filled of the target page is changed.
A storage module 302, configured to store the valid content, the timestamp, and the changed information field variable.
In an embodiment, the storage module 302 is further configured to obtain a preset system identifier, and convert the information field variable into a character string; encrypting the character string according to the preset system identifier and the timestamp to obtain an encrypted character string; storing the valid content, the timestamp, and the encrypted string.
The determining module 303 is configured to determine whether the target page is closed abnormally.
In an embodiment, the determining module 303 is further configured to, when a closing event of the target page is detected, obtain a system error log of the target page, and determine whether the system error log has a preset keyword;
if the system error report log has a preset keyword, determining that the target page is closed abnormally;
and if the system error log does not have the preset keyword, determining that the target page is not closed abnormally.
In an embodiment, the determining module 303 is further configured to, if the target page is abnormally closed, obtain the timestamp and the current time when the abnormally closed target page is displayed again;
determining whether the absolute value of the difference value between the timestamp and the current time is within a preset validity period;
and if the absolute value of the difference value between the timestamp and the current time is within the preset effective period, updating the abnormally closed target page according to the stored effective content, the timestamp and the information field variable.
An updating module 304, configured to update the abnormally closed target page according to the stored valid content, the timestamp, and the information field variable when the abnormally closed target page is displayed again if the target page is abnormally closed.
Referring to fig. 4, fig. 4 is a schematic block diagram of another page exception recovery apparatus according to an embodiment of the present disclosure.
As shown in fig. 4, the page exception recovery apparatus 400 includes: an acquisition module 401, a storage module 402, an identity verification module 403, and an update module 404.
The obtaining module 401 is configured to, when an information field variable corresponding to a to-be-filled position of a target page changes, obtain a timestamp when the information field variable changes, and obtain effective content of the to-be-filled position.
A storage module 402, configured to store the valid content, the timestamp, and the changed information field variable.
The authentication module 403 is configured to display an authentication popup and obtain password information input by a user based on the authentication popup; and when the password information passes the verification, updating the abnormally closed target page according to the stored effective content, the timestamp and the information field variable.
An updating module 404, configured to update the abnormally closed target page according to the stored effective content, the timestamp, and the information field variable when the abnormally closed target page is displayed again if the target page is abnormally closed.
In an embodiment, the updating module 404 is further configured to obtain the stored timestamp and the encrypted character string; decrypting the encrypted character string according to the preset system identifier and the timestamp to obtain a character string; carrying out format conversion on the character string to obtain an information field variable; and acquiring the effective content corresponding to the information field variable, and filling the effective content into a position to be filled corresponding to the information field variable so as to update the target page.
It should be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatus and each module and unit described above may refer to the corresponding processes in the foregoing embodiments of the page exception recovery method, and are not described herein again.
The apparatus provided by the above embodiments may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 5.
Referring to fig. 5, fig. 5 is a schematic block diagram of a computer device according to an embodiment of the present disclosure. The computer device may be a terminal device.
As shown in fig. 5, the computer device includes a processor, a memory, and a network interface connected by a system bus, wherein the memory may include a nonvolatile storage medium and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any one of the page exception recovery methods.
The processor is used for providing calculation and control capability and supporting the operation of the whole computer equipment.
The internal memory provides an environment for the execution of a computer program on a non-volatile storage medium, which when executed by a processor, causes the processor to perform any of the page exception recovery methods.
The network interface is used for network communication, such as sending assigned tasks and the like. Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It should be understood that the Processor may be a Central Processing Unit (CPU), and the Processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor is configured to execute a computer program stored in the memory to implement the steps of:
when an information field variable corresponding to a position to be filled of a target page changes, acquiring a timestamp when the information field variable changes, and acquiring effective content of the position to be filled;
storing the effective content, the timestamp and the changed information field variable, and determining whether the target page is closed abnormally;
and if the target page is abnormally closed, updating the abnormally closed target page according to the stored effective content, the timestamp and the information field variable when the abnormally closed target page is displayed again.
In an embodiment, when the processor obtains the timestamp when the information field variable changes when the information field variable corresponding to the position to be filled of the target page changes, the processor is further configured to implement:
acquiring a current information field variable and a historical information field variable corresponding to a position to be filled of a target page;
determining whether the current information field variable is the same as the historical information field variable;
and if the current information field variable is different from the historical information field variable, determining that the information field variable corresponding to the position to be filled of the target page is changed.
In one embodiment, the processor, when implementing the storing the valid content, the timestamp, and the changed information field variable, is configured to implement:
acquiring a preset system identifier, and converting the information field variable into a character string;
encrypting the character string according to the preset system identifier and the timestamp to obtain an encrypted character string;
storing the valid content, the timestamp, and the encrypted string.
In one embodiment, the processor, in implementing the updating the abnormally closed target page according to the stored valid content, timestamp, and information field variables, is configured to implement:
acquiring the stored time stamp and the encrypted character string;
decrypting the encrypted character string according to the preset system identifier and the timestamp to obtain a character string;
carrying out format conversion on the character string to obtain an information field variable;
and acquiring the effective content corresponding to the information field variable, and filling the effective content into a position to be filled corresponding to the information field variable so as to update the target page.
In one embodiment, the processor, in performing the determining whether the target page is abnormally closed, is configured to perform:
when a closing event of the target page is detected, acquiring a system error log of the target page, and determining whether the system error log has a preset keyword or not;
if the system error report log has a preset keyword, determining that the target page is closed abnormally;
and if the system error log does not have the preset keyword, determining that the target page is not closed abnormally.
In one embodiment, the processor, when implementing the updating the abnormally closed target page according to the stored valid content, timestamp, and information field variables, is further configured to implement:
if the target page is abnormally closed, acquiring the timestamp and the current moment when the abnormally closed target page is displayed again;
determining whether the absolute value of the difference value between the timestamp and the current time is within a preset validity period;
and if the absolute value of the difference value between the timestamp and the current time is within the preset effective period, updating the abnormally closed target page according to the stored effective content, the timestamp and the information field variable.
In one embodiment, the processor, when implementing the updating the abnormally closed target page according to the stored valid content, timestamp, and information field variables, is further configured to implement:
displaying an authentication popup, and acquiring password information input by a user based on the authentication popup;
and when the password information passes the verification, updating the abnormally closed target page according to the stored effective content, the timestamp and the information field variable.
It should be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the page exception recovery described above may refer to the corresponding process in the foregoing page exception recovery method embodiment, and details are not described herein again
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where the computer program includes program instructions, and a method implemented when the program instructions are executed may refer to the embodiments of the page exception recovery method in the present application.
The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments. While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A page exception recovery method is characterized by comprising the following steps:
when an information field variable corresponding to a position to be filled of a target page changes, acquiring a timestamp when the information field variable changes, and acquiring effective content of the position to be filled;
storing the effective content, the timestamp and the changed information field variable, and determining whether the target page is closed abnormally;
and if the target page is abnormally closed, updating the abnormally closed target page according to the stored effective content, the timestamp and the information field variable when the abnormally closed target page is displayed again.
2. The method for recovering from page exception according to claim 1, wherein when an information field variable corresponding to a position to be filled in a target page changes, before obtaining a timestamp when the information field variable changes, the method further comprises:
acquiring a current information field variable and a historical information field variable corresponding to a position to be filled of a target page;
determining whether the current information field variable is the same as the historical information field variable;
and if the current information field variable is different from the historical information field variable, determining that the information field variable corresponding to the position to be filled of the target page is changed.
3. The page exception recovery method of claim 1, wherein said storing said valid content, said timestamp, and said changed information field variable comprises:
acquiring a preset system identifier, and converting the information field variable into a character string;
encrypting the character string according to the preset system identifier and the timestamp to obtain an encrypted character string;
storing the valid content, the timestamp, and the encrypted string.
4. The page exception recovery method of claim 3, wherein said updating said target page abnormally closed in accordance with said stored valid content, timestamp, and information field variables comprises:
acquiring the stored time stamp and the encrypted character string;
decrypting the encrypted character string according to the preset system identifier and the timestamp to obtain a character string;
carrying out format conversion on the character string to obtain an information field variable;
and acquiring the effective content corresponding to the information field variable, and filling the effective content into a position to be filled corresponding to the information field variable so as to update the target page.
5. The page exception recovery method of any one of claims 1 to 4, wherein said determining whether said target page is abnormally closed comprises:
when a closing event of the target page is detected, acquiring a system error log of the target page, and determining whether the system error log has a preset keyword or not;
if the system error report log has a preset keyword, determining that the target page is closed abnormally;
and if the system error log does not have the preset keyword, determining that the target page is not closed abnormally.
6. The page exception recovery method of claim 1, wherein prior to said updating said target page abnormally closed in accordance with said stored valid content, timestamp, and information field variables, further comprising:
if the target page is abnormally closed, acquiring the timestamp and the current moment when the abnormally closed target page is displayed again;
determining whether the absolute value of the difference value between the timestamp and the current time is within a preset validity period;
if the absolute value of the difference value between the timestamp and the current time is within the preset validity period, executing the following steps: and updating the abnormally closed target page according to the stored effective content, the timestamp and the information field variable.
7. The page exception recovery method of claim 1, wherein prior to said updating said target page abnormally closed in accordance with said stored valid content, timestamp, and information field variables, further comprising:
displaying an authentication popup, and acquiring password information input by a user based on the authentication popup;
and when the password information passes the verification, updating the abnormally closed target page according to the stored effective content, the timestamp and the information field variable.
8. A page exception recovery apparatus, comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a timestamp when an information field variable corresponding to a position to be filled of a target page changes and acquiring effective content of the position to be filled;
the storage module is used for storing the effective content, the timestamp and the changed information field variable;
the judging module is used for determining whether the target page is closed abnormally;
and the updating module is used for updating the abnormally closed target page according to the stored effective content, the timestamp and the information field variable when the abnormally closed target page is displayed again if the target page is abnormally closed.
9. A computer device comprising a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the page exception recovery method of any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the steps of the page exception recovery method according to any one of claims 1 to 7.
CN202010220151.3A 2020-03-25 2020-03-25 Page abnormity recovery method, device, equipment and computer readable storage medium Pending CN111552591A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010220151.3A CN111552591A (en) 2020-03-25 2020-03-25 Page abnormity recovery method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010220151.3A CN111552591A (en) 2020-03-25 2020-03-25 Page abnormity recovery method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111552591A true CN111552591A (en) 2020-08-18

Family

ID=72003822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010220151.3A Pending CN111552591A (en) 2020-03-25 2020-03-25 Page abnormity recovery method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111552591A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112749124A (en) * 2020-12-28 2021-05-04 深圳壹账通创配科技有限公司 Page information management method and device, computer equipment and readable storage medium
CN112765615A (en) * 2020-12-07 2021-05-07 北京百度网讯科技有限公司 Data storage method and device and electronic equipment
CN112818205A (en) * 2021-01-27 2021-05-18 游艺星际(北京)科技有限公司 Page processing method and device, electronic equipment, storage medium and product
CN114489917A (en) * 2022-04-06 2022-05-13 荣耀终端有限公司 Processing method for abnormal exit of application program, electronic equipment and readable storage medium
CN117576834A (en) * 2024-01-17 2024-02-20 深圳市吉方工控有限公司 Display abnormality detection method, device and equipment of POS machine and storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112765615A (en) * 2020-12-07 2021-05-07 北京百度网讯科技有限公司 Data storage method and device and electronic equipment
CN112749124A (en) * 2020-12-28 2021-05-04 深圳壹账通创配科技有限公司 Page information management method and device, computer equipment and readable storage medium
CN112818205A (en) * 2021-01-27 2021-05-18 游艺星际(北京)科技有限公司 Page processing method and device, electronic equipment, storage medium and product
CN112818205B (en) * 2021-01-27 2023-10-31 游艺星际(北京)科技有限公司 Page processing method, device, electronic equipment, storage medium and product
CN114489917A (en) * 2022-04-06 2022-05-13 荣耀终端有限公司 Processing method for abnormal exit of application program, electronic equipment and readable storage medium
CN114489917B (en) * 2022-04-06 2022-09-02 荣耀终端有限公司 Processing method for abnormal exit of application program, electronic equipment and readable storage medium
CN117576834A (en) * 2024-01-17 2024-02-20 深圳市吉方工控有限公司 Display abnormality detection method, device and equipment of POS machine and storage medium
CN117576834B (en) * 2024-01-17 2024-03-29 深圳市吉方工控有限公司 Display abnormality detection method, device and equipment of POS machine and storage medium

Similar Documents

Publication Publication Date Title
CN111552591A (en) Page abnormity recovery method, device, equipment and computer readable storage medium
US10671474B2 (en) Monitoring node usage in a distributed system
CN109558748B (en) Data processing method and device, electronic equipment and storage medium
CN104281504B (en) A kind of method and system of the application data backup of storage reduction based on MD5 codes
US20190065152A1 (en) Cryptographically secure random number generator
US8966653B2 (en) Method and apparatus for provisioning a mobile application
CN109284585B (en) Script encryption method, script decryption operation method and related device
CN111193740B (en) Encryption method, device, decryption method, computer device and storage medium
CN110310392B (en) Vehicle unlocking method and device, computer equipment and storage medium
CN114650154B (en) Webpage authority behavior control method and device, computer equipment and storage medium
CN112069046B (en) Data leakage reminding method, device, equipment and computer readable storage medium
US11113423B2 (en) FPGA hardware-based secure computing method and apparatus
CN110768784A (en) Password transmission method, device, computer equipment and storage medium
CN112613067A (en) User behavior data acquisition method and device, computer equipment and storage medium
CN110958239A (en) Method and device for verifying access request, storage medium and electronic device
Zhang et al. Privacy-preserved mobile sensing through hybrid cloud trust framework
Park et al. A methodology for the decryption of encrypted smartphone backup data on android platform: A case study on the latest samsung smartphone backup system
KR20110072111A (en) Method and system for preventing outflow in software source code
CN111818087B (en) Block chain node access method, device, equipment and readable storage medium
CN110598476A (en) Block chain-based work evidence storing method and device and computer readable storage medium
Babun et al. The Truth Shall Set Thee Free: Enabling Practical Forensic Capabilities in Smart Environments.
CN112307503B (en) Signature management method and device and electronic equipment
CN113672957A (en) Method, device and equipment for processing buried point data and storage medium
CN114979109B (en) Behavior track detection method, behavior track detection device, computer equipment and storage medium
CN110431557B (en) Method and apparatus for performing secure backup and restore

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