Data verification method and device, electronic equipment and storage medium
By detecting the abnormal verification operation node in the historical verification information, generating emergency verification information and determining the target verification operation node, the problem of data verification stagnation caused by system abnormalities is solved, and the continuity and security of the data verification process are achieved.
Patent Information
- Application Number
- CN202311616101.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-28
- Publication Date
- 2025-05-30
AI Technical Summary
During the electronic data processing process, system abnormalities cause the data to be reviewed to be stuck in the verification process, causing the data verification to stagnate and affect the subsequent data processing process.
Through historical verification information, abnormal verification operation nodes are detected, emergency verification information is generated, target verification operation nodes are determined, and data to be processed can be processed to ensure the continuity of the data verification process.
It avoids the pending data being stuck due to local system exceptions, ensures data security and improves data verification efficiency.
Smart Images

Figure CN120066842A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of information security, and in particular, to a data verification method, apparatus, electronic device, and storage medium. Background Art
[0002] Electronic technology has brought a lot of convenience to people's lives. For example, data storage is more convenient and faster, and the upper limit of data storage capacity is much larger than that of traditional paper documents. However, at the same time, compared with data stored in paper form, data stored in electronic form has more information security risks.
[0003] In the process of processing some very sensitive electronic data, complex review processes are often required to ensure data security. If the system responsible for executing the review process malfunctions and a small number of system functions cannot work properly, a large amount of data to be reviewed may get stuck in one of the less important verification links in the review process. It takes some time for the system operation and maintenance to be completed. During this period, data verification directly stalls, delaying the subsequent data processing process. Summary of the Invention
[0004] Embodiments of this application provide a data verification method, apparatus, electronic device, and storage medium to balance data security and data verification efficiency.
[0005] In a first aspect, embodiments of this application provide a data verification method, including:
[0006] If it is determined based on historical verification information that there is an abnormal verification operation node, then generate emergency verification information according to the abnormal verification operation node;
[0007] When receiving a data verification request, determine the target verification operation node corresponding to the data to be processed in the data verification request according to the emergency verification information and the first verification information carried in the data verification request;
[0008] Verify the data to be processed through the target verification operation node to obtain a verification result.
[0009] In a second aspect, embodiments of this application provide a data verification apparatus, including:
[0010] A generation unit, configured to generate emergency verification information according to the abnormal verification operation node if it is determined based on historical verification information that there is an abnormal verification operation node;
[0011] A determination unit, configured to determine the target verification operation node corresponding to the data to be processed in the data verification request according to the emergency verification information and the first verification information carried in the data verification request when receiving the data verification request;
[0012] A verification unit, configured to verify the data to be processed through the target verification operation node to obtain a verification result.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, including: a processor; and a memory configured to store computer-executable instructions, where the computer-executable instructions, when executed, cause the processor to execute the data verification method as described in the first aspect.
[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium for storing computer-executable instructions, where the computer-executable instructions, when executed by a processor, implement the data verification method as described in the first aspect.
[0015] It can be seen that in the embodiment of the present application, first, if it is determined based on historical verification information that there is an abnormal verification operation node, emergency verification information is generated according to the abnormal verification operation node; then, when a data verification request is received, according to the emergency verification information and the first verification information carried in the data verification request, the target verification operation node corresponding to the data to be processed in the data verification request is determined; finally, the data to be processed is verified through the target verification operation node to obtain a verification result. In this way, during the data verification process of the data to be processed, multiple verification operation nodes may be involved. However, considering that in the operation process of the system, local failures are difficult to completely avoid, the historical verification information can quickly find that the data processing efficiency of the verification operation node is too slow, and then find that the verification operation node is abnormal. When an abnormal verification operation node is detected, the generation of emergency verification information can be triggered. The emergency verification information can reflect which verification operation nodes can be used to normally verify data and which verification operation nodes cannot work properly. When a data verification request carrying the first verification information is received, the first verification information can reflect which verification operation nodes the data to be processed should originally pass through for data verification processing. Furthermore, by using the emergency verification information and the first verification information, it can be determined whether the abnormal verification operation node affects the data verification request, and it can also determine temporary emergency measures and the target verification operation node responsible for processing the data verification request after adopting the emergency measures when the abnormal verification dimension affects the data verification request. Then, the data to be processed is verified through the target verification operation node, which can not only prevent the data to be processed from being stuck due to local abnormalities in the system during the review process, but also ensure data security, taking into account both data security and data verification efficiency. Description of the Drawings
[0016] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some embodiments recorded in this specification. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings;
[0017] Figure 1 Schematic diagram of an implementation environment of a data verification method provided by an embodiment of the present application;
[0018] Figure 2 Processing flow chart of a data verification method provided by an embodiment of the present application;
[0019] Figure 3 Schematic diagram of system interaction of a data verification method provided by an embodiment of the present application;
[0020] Figure 4 Schematic diagram of a data verification device provided by an embodiment of the present application;
[0021] Figure 5 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0022] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of this specification, rather than all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0023] An embodiment of a data verification method provided in this specification:
[0024] In the processing of some highly sensitive data, due to security considerations, a complex review process is often required. However, during the operation of the system that executes this review process, the occurrence of local failures is inevitable. Local failures may cause some functions of the system to be unable to be used normally. Moreover, since the review process is complex and may involve multiple functions of the system, a large amount of data to be reviewed may be stuck in less important links of the review process.
[0025] Considering that a part of highly sensitive data has time-sensitive processing results and it takes some time to wait for system operation and maintenance, during which data verification is almost stagnant, delaying subsequent data processing. Forcing to skip the unfinished review process during the waiting for system operation and maintenance is not a reasonable solution, which will pose a great threat to data security.
[0026] Therefore, to solve the above problems, the embodiments of the present application provide a data verification method.
[0027] The data verification method provided by one or more embodiments of this specification can be applied to the implementation environment of the data verification method, such as Figure 1 shown, this implementation environment at least includes a server 101 for data verification.
[0028] Among them, the server 101 can be a single server, or a server cluster composed of several servers, or one or more cloud servers in a cloud computing platform, and is used for data verification.
[0029] In this implementation environment, during the data verification process, first, if an abnormal verification operation node is determined based on historical verification information, emergency verification information is generated according to the abnormal verification operation node. Then, when a data verification request is received, the target verification operation node corresponding to the data to be processed in the data verification request is determined based on the emergency verification information and the first verification information carried in the data verification request. Finally, the data to be processed is verified through the target verification operation node to obtain a verification result. In this way, during the data verification process of the data to be processed, multiple verification operation nodes may be involved. However, considering that in the operation process of the system, local failures are difficult to completely avoid, the data processing efficiency of the verification operation node can be quickly found through historical verification information, and then it can be found that the verification operation node is abnormal. When an abnormal verification operation node is detected, the generation of emergency verification information can be triggered. The emergency verification information can reflect which verification operation nodes can be used for normal data verification and which verification operation nodes cannot work properly. When a data verification request carrying the first verification information is received, the first verification information can reflect which verification operation nodes the data to be processed should originally pass through for data verification processing. Furthermore, by using the emergency verification information and the first verification information, it can be determined whether the abnormal verification operation node affects the data verification request, and a temporary emergency measure can also be determined when the abnormal verification dimension affects the data verification request, as well as the target verification operation node responsible for processing the data verification request after adopting the emergency measure. Then, the data to be processed is verified through the target verification operation node, which can not only prevent the data to be processed from being stuck due to local anomalies in the system during the review process, but also ensure data security, taking into account both data security and data verification efficiency.
[0030] Figure 2 It is a processing flowchart of a data verification method provided by an embodiment of the present application. Refer to Figure 2 , the data verification method provided in this embodiment specifically includes steps S202 to S206.
[0031] Step S202, if an abnormal verification operation node is determined based on historical verification information, emergency verification information is generated according to the abnormal verification operation node.
[0032] The number of verification operation nodes can be multiple. Each verification operation node can be pre-configured with a corresponding data verification method, and each verification operation node can be used to perform data verification processing on the received data through the corresponding data verification method.
[0033] Exemplarily, the verification operation nodes include, but are not limited to: role verification operation nodes, permission verification operation nodes, data format verification operation nodes, data length verification operation nodes, and so on. Among them, the role verification operation node can be used to verify the role assigned to the originator of the data verification request in the system, the permission verification operation node can be used to verify the permission information of the originator of the data verification request in the system, and so on.
[0034] The historical verification information can be data generated by the system executing the data verification method during the process of processing historical data verification requests. In the "system" in Figure 2 one or more of the embodiments described above, it all refers to the system that executes the data verification method, which will not be elaborated below.
[0035] The historical data verification request can be a data verification request that has been processed by the system at the first time point when executing step S202. The historical data verification request can also be a data verification request that was received by the system before the first time point and is being processed.
[0036] The data verification request can be used to request the system to perform data verification processing on the data according to a pre-configured process.
[0037] Specifically in implementation, for each verification operation node, a corresponding preset time threshold can be pre-configured. For any verification operation node in the system, the verification processing time of this verification operation node for a single data can be read from the historical verification information. Furthermore, when it is detected that the verification processing time of this verification operation node for a single data exceeds the preset time threshold, abnormal detection processing can be performed on this verification operation node to determine whether this verification operation node has an abnormality.
[0038] For example, based on the historical verification information, it is determined that the average time for verification operation node 1 to process a single data is 0.2 seconds. Then, the preset time threshold is set to 0.5 seconds. The time length for verification operation node 1 to process a single data is read from the historical verification information. When it is detected that the time length for verification operation node 1 to process a single data exceeds 0.5 seconds, abnormal detection processing is performed on this verification operation node 1 to determine whether this verification operation node has an abnormality.
[0039] Considering that system abnormalities may cause function damage and verification operations cannot be completed, or it may just be that the verification operations are sluggish, and data verification requests that could originally be completed in a short time need to take several times or even dozens of times longer to process. The abnormal verification operation node can be a verification operation node that cannot perform verification processing, or a verification operation node whose time length for processing a single data exceeds the non-abnormal time threshold.
[0040] The non-abnormal time threshold can be greater than the aforementioned preset time threshold.
[0041] For example, based on historical verification information, it is determined that the average time for verification operation node 1 to process a single piece of data is 0.2 seconds. Then, the non-abnormal time threshold is set to 2 seconds. The time length for verification operation node 1 to process a single piece of data is read from the historical verification information. When it is detected that the time length for verification operation node 1 to process a single piece of data exceeds 2 seconds, it is determined that verification operation node 1 is an abnormal verification operation node.
[0042] In addition, it is also possible to determine whether each verification operation node is abnormal by detecting various pre-specified service metrics.
[0043] There is a pre-configured corresponding relationship between the service metrics and the verification operation nodes. This corresponding relationship can be one of a one-to-one corresponding relationship, a one-to-many corresponding relationship, a many-to-one corresponding relationship, and a many-to-many corresponding relationship.
[0044] For example, when it is detected that the value of service metric 1 is greater than the first preset parameter threshold, it can be determined that verification operation node 1 is abnormal; when it is detected that the value of service metric 2 is less than or equal to the second preset parameter threshold, it can be determined that verification operation node 2 and verification operation node 3 are abnormal, and so on.
[0045] The emergency verification information can describe which verification operation nodes the system can use to verify and process data in an emergency state.
[0046] The emergency state refers to the temporary state of the system after the system detects an abnormal verification operation node and before the operation and maintenance of the system ends.
[0047] In specific implementation, according to the abnormal verification operation node, generating emergency verification information can be to respectively compare the node identifier of the abnormal verification operation node with multiple pre-configured node identifier sets to obtain a comparison result. Each node identifier set corresponds to a preset risk level; based on the comparison result, determine the target risk level corresponding to the abnormal verification operation node among multiple preset risk levels. Then, generate emergency verification information according to the risk control information corresponding to the target risk level.
[0048] Each verification operation node can have a uniquely corresponding node identifier. Each node identifier set can include one or more node identifiers.
[0049] Each node identification set corresponds to a preset risk level. When the node identification of a verification operation node with an abnormal comparison result belongs to a certain node identification set, the preset risk level corresponding to the node identification set can reflect the magnitude of the potential data security risk brought by skipping the data verification process of the abnormal verification operation node in the audit process.
[0050] Each preset risk level may have corresponding risk control information. The risk control information can describe the risk control method used to reduce the data security risk when an abnormality occurs in the verification operation node.
[0051] In a specific implementation manner, emergency verification information is generated based on the abnormal verification operation node, including: determining the default importance level of the abnormal verification operation node; determining the default emergency operation mode of the abnormal verification operation node according to the default importance level and the preset level; updating the initial verification information according to the default emergency operation mode to obtain the emergency verification information; the initial verification information includes the node identification of the verification operation node participating in the verification and the operation mode of the verification operation node.
[0052] Each verification operation node can be pre-configured with a corresponding default importance level, and the default importance level can be generated in the following way: performing data statistics based on historical verification information to obtain a statistical result, calculating the predicted probability that the lack of the data verification result of the verification operation node threatens data security according to the statistical result, and determining the default importance level of the verification operation node based on the predicted probability and the preset probability threshold.
[0053] Determining the default emergency operation mode of the abnormal verification operation node according to the default importance level and the preset level can be that, when the default importance level is lower than the preset level, determining the default emergency operation mode of the abnormal verification operation node as the first emergency mode representing skipping the node; when the default importance level is higher than or equal to the preset level, determining the default emergency operation mode of the abnormal verification operation node as the second emergency mode representing switching to a standby node.
[0054] The serial numbers such as "first" and "second" in this specification are only for facilitating the distinction of different features and have no actual meaning, and will not be elaborated below.
[0055] The first emergency mode and the second emergency mode can be two different pre-configured emergency operation and maintenance modes.
[0056] During the process of the system processing a data verification request, the data verification task corresponding to the data verification request can be split into multiple subtasks, and each data verification node is responsible for processing one subtask. When the first emergency method is adopted by an abnormal verification operation node, the subtask that should be executed by the abnormal verification operation node can be skipped during the process of processing the data verification request. When the second emergency method is adopted by an abnormal verification operation node, the abnormal verification operation node can be replaced by a pre-configured emergency verification operation node during the process of processing the data verification request. Furthermore, the emergency verification operation node executes the subtask that should have been processed by the abnormal verification operation node. The emergency verification operation node is the aforementioned standby node. The verification method adopted by the emergency verification operation node when processing the subtask can be a similar verification method or a different verification method from the verification method adopted by the abnormal verification operation node when processing the subtask.
[0057] The initial verification information includes the node identifier of the verification operation node participating in the verification and the working mode of the verification operation node.
[0058] The verification operation nodes participating in the verification included in the initial verification information refer to all the verification operation nodes participating in the verification in the system, that is, the verification operation nodes put into use in the normal working state of the system.
[0059] For example, the system includes 3 verification operation nodes, and the node identifiers of the 3 verification operation nodes include: 001, 002, and 003.
[0060] The initial verification information includes: 001 - normal; 002 - normal; 003 - normal. Among them, "001 - normal" includes the node identifier "001" of verification operation node 1 and the working mode "normal" of verification operation node 1; "002 - normal" includes the node identifier "002" of verification operation node 2 and the working mode "normal" of verification operation node 2; "003 - normal" includes the node identifier "003" of verification operation node 3 and the working mode "normal" of verification operation node 3.
[0061] When the default emergency working mode of the abnormal verification operation node is the first emergency method representing skipping the node, according to the default emergency working mode, the initial verification information is updated to obtain the emergency verification information, which can be to update the working mode of the abnormal verification operation node in the initial verification information. For example, it is changed from "normal" to "skip node".
[0062] When the default emergency working mode of the abnormal verification operation node is the first emergency mode representing skipping the node, the initial verification information is updated according to the default emergency working mode to obtain emergency verification information, or the node identifier and working mode of the abnormal verification operation node can be deleted from the initial verification information.
[0063] When the default emergency working mode of the abnormal verification operation node is the second emergency mode representing switching to a standby node, the initial verification information is updated according to the default emergency working mode to obtain emergency verification information, which can be to update the working mode of the abnormal verification operation node in the initial verification information. For example, it is changed from "normal" to "switch to standby node".
[0064] Step S204, when a data verification request is received, determine the target verification operation node corresponding to the data to be processed in the data verification request according to the emergency verification information and the first verification information carried in the data verification request.
[0065] The data verification request can be used to request data verification processing for the data to be processed to obtain a data verification result.
[0066] The first verification information can be information describing the review process corresponding to the data to be processed.
[0067] The first verification information can include a review process identifier, which is used to identify the uniquely corresponding review process among multiple pre-configured review processes. The first verification information can also include a verification node identifier, which is used to describe the verification operation node included in the review process corresponding to the data to be processed.
[0068] The system can configure different review processes for different types of data. The verification operation nodes included in each review process can be the same, different, or part of the verification operation nodes can be the same and another part can be different. In each review process, the data processing execution order and data processing execution logic corresponding to multiple verification operation nodes can be different.
[0069] For example, in the review process corresponding to the first type of data, data verification processing is first performed through verification operation node 1, then through verification operation node 2, and finally through verification operation node 3.
[0070] In the review process corresponding to the second type of data, data verification processing is synchronously performed through verification operation node 2 and verification operation node 4, and data verification processing is performed through verification operation node 5 when both data verifications pass.
[0071] In the review process corresponding to the third type of data, first, data verification processing is performed through the verification operation node 1. Then, data verification processing is synchronously performed through the verification operation node 2 and the verification operation node 6. When either of the two data verifications passes, data verification processing is performed through the verification operation node 7.
[0072] Based on the emergency verification information and the first verification information, it can be determined whether the abnormal verification operation node is part of the review process corresponding to the data to be processed; if the abnormal verification operation node is not part of the review process corresponding to the data to be processed, then the verification operation nodes included in the review process are determined as the target verification operation nodes for the data to be processed; if the abnormal verification operation node is part of the review process corresponding to the data to be processed, then based on the review process corresponding to the data to be processed and the abnormal verification operation node, the target verification operation nodes for the data to be processed are determined.
[0073] The number of target verification operation nodes can be one or multiple.
[0074] In a specific implementation manner, determining the target verification operation nodes for the data to be processed in the data verification request according to the emergency verification information and the first verification information carried in the data verification request includes: obtaining the first set of verification operation nodes for the data to be processed from the first verification information; obtaining the set of candidate verification operation nodes from the emergency verification information; performing an intersection operation on the first set of verification operation nodes and the set of candidate verification operation nodes to obtain the target verification operation nodes.
[0075] Obtaining the first set of verification operation nodes for the data to be processed from the first verification information may be to determine the review process corresponding to the data to be processed according to the review process identifier carried in the first verification information; based on the verification operation nodes included in the review process, determine the first set of verification operation nodes for the data to be processed.
[0076] In some embodiments, the emergency verification information may describe which verification operation nodes the system can use to perform data verification processing in an emergency state. Obtaining the set of candidate verification operation nodes from the emergency verification information may be to generate the set of candidate verification operation nodes according to the verification operation nodes available in the system in the emergency state.
[0077] The set of candidate verification operation nodes may include verification operation nodes for performing data verification processing.
[0078] The first set of verification operation nodes may include one or more elements, the set of candidate verification operation nodes may include one or more elements, and performing an intersection operation on the first set of verification operation nodes and the set of candidate verification operation nodes may obtain the common elements of the first set of verification operation nodes and the set of candidate verification operation nodes, and determine the element as the target verification operation node.
[0079] Considering that the review process corresponding to the data to be processed may or may not be related to the abnormal verification operation nodes, by taking the intersection of the first set of verification operation nodes and the set of candidate verification operation nodes, the target verification operation nodes that actually perform data verification processing during the system's processing of data verification requests can be quickly determined.
[0080] For example: The first set of verification operation nodes includes Node 1, Node 2, and Node 3. Among them, Node 1 is abnormal, Node 2 is abnormal, and Node 3 is normal. The set of candidate verification operation nodes includes the backup node of Node 1, Node 3, Node 4, and Node 5.
[0081] Taking the intersection of the first set of verification operation nodes and the set of candidate verification operation nodes can obtain: the backup node of Node 1 and Node 3. The backup node of Node 1 and Node 3 are determined as the target verification operation nodes.
[0082] In addition, considering the verification operation nodes available in the system in the emergency state, which may include normal verification operation nodes and may also include backup nodes used to replace abnormal verification operation nodes, the abnormal verification operation nodes and the backup nodes used to replace abnormal verification operation nodes can be bound by the same node identifier.
[0083] The sender of the data verification request may store the first correspondence between the node identifier and the verification operation node. The emergency verification information may include the second correspondence between the node identifier and the verification operation node. In the first correspondence and the second correspondence, the same node identifier may correspond to the same verification operation node, and the same node identifier may also correspond to different verification operation nodes.
[0084] For example, the first correspondence includes the correspondence between node identifier 001 and verification operation node 1, and the second correspondence includes the correspondence between node identifier 001 and the backup node of verification operation node 1.
[0085] The elements included in the first set of verification operation nodes are all node identifiers obtained from the first verification information, and the elements included in the set of candidate verification operation nodes are all node identifiers obtained from the emergency verification information. Furthermore, according to the first set of verification operation nodes and the set of candidate verification operation nodes, an intersection processing is performed to obtain the target node identifier, the second correspondence is obtained from the emergency verification information, and a query processing is performed according to the target node identifier and the second correspondence to obtain the target verification operation node.
[0086] For example, the first set of verification operation nodes obtained from the first verification information includes three node identifiers: 001, 002, and 003, and the set of candidate verification operation nodes obtained from the emergency verification information includes four node identifiers: 001, 003, 004, and 005. The second correspondence obtained from the emergency verification information includes: the correspondence between node identifier 001 and the standby node of verification operation node 1, the correspondence between node identifier 003 and verification operation node 3, the correspondence between node identifier 004 and verification operation node 4, and the correspondence between node identifier 005 and verification operation node 5. By performing an intersection operation on the first set of verification operation nodes and the set of candidate verification operation nodes, the target node identifiers: 001 and 003 are obtained. Query processing is performed based on the target node identifiers and the second correspondence to obtain the target verification operation nodes: the standby node of verification operation node 1 and verification operation node 3.
[0087] In a specific implementation manner, the emergency verification information includes the node identifiers of abnormal verification operation nodes; obtaining the set of candidate verification operation nodes from the emergency verification information includes: obtaining the data feature information of the data to be processed from the first verification information; the data feature information includes the data type and / or the data source; according to the data feature information and the node identifiers of the abnormal verification operation nodes, determining the target verification reference information of the abnormal verification operation nodes with respect to the data to be processed; according to the target verification reference information and the corresponding relationship between the preset verification reference information and the node importance level, determining the target importance level of the abnormal verification operation nodes with respect to the data to be processed; according to the target importance level and the preset level, determining the target emergency working mode of the abnormal verification operation nodes with respect to the data to be processed; and determining the set of candidate verification operation nodes according to the target emergency working mode.
[0088] In some embodiments, when the system receives different data verification requests, the target emergency working mode of the abnormal verification operation nodes may not only be determined by the abnormal verification operation nodes, but also be affected by the data source and data type of the data to be processed. Furthermore, in the case of receiving different data verification requests, the target emergency working mode of the same abnormal verification operation node may be different. That is, after obtaining the emergency verification information by executing step S202, the target emergency working mode of the abnormal verification operation nodes is uncertain, and it is necessary to determine the target emergency working mode of the abnormal verification operation nodes during the execution of step S206.
[0089] The first verification information may include the data type of the data to be processed and / or the data source of the data to be processed.
[0090] Exemplarily, the data type can be binary digits, can be Chinese, can be special symbols, and so on. The data source can be a preset database, can be a preset website, can be an electronic library, and so on.
[0091] Based on the data feature information and the node identifier of the abnormal verification operation node, determine the target verification reference information of the abnormal verification operation node regarding the data to be processed. It can be to perform combined processing on the data feature information and the node identifier of the abnormal verification operation node to obtain the target verification reference information.
[0092] The target verification reference information can be the data obtained by combining the data feature information with the node identifier of the abnormal verification operation node. The target verification reference information can be used to determine the target importance level of the abnormal verification operation node regarding the data to be processed by combining data from two different sources, namely the first verification information and the emergency verification information.
[0093] The target verification reference information can be obtained by concatenating the node identifier of the abnormal verification operation node with the data type, or can be obtained by combining the node identifier of the abnormal verification operation node with the data source, or can also be obtained by combining the node identifier of the abnormal verification operation node, the data type, and the data source.
[0094] For example, verification reference information 1 includes node identifier 001 and data type 1; verification reference information 2 includes node identifier 002 and data source 1, verification reference information 3 includes node identifier 003, data source 1, and data type 2, and so on.
[0095] Based on the target verification reference information and the preset correspondence between the verification reference information and the node importance level, determine the target importance level of the abnormal verification operation node regarding the data to be processed. It can be to perform query processing based on the target verification reference information in the preset correspondence between the verification reference information and the node importance level to obtain the node importance level corresponding to the target verification reference information, and determine this node importance level as the target importance level of the abnormal verification operation node regarding the data to be processed.
[0096] For example, the target verification reference information is verification reference information 2. The preset correspondence between the verification reference information and the node importance level includes:
[0097] (1) Verification reference information 1 corresponds to node importance level 1;
[0098] (2) Verification reference information 2 corresponds to node importance level 2;
[0099] (3) Verification reference information 3 corresponds to node importance level 2, and so on.
[0100] Query and process according to the verification reference information 2 in the preset correspondence between the verification reference information and the node importance level to obtain the node importance level 2, and determine the target importance level of the abnormal verification operation node for the data to be processed as this node importance level 2.
[0101] Determine the target emergency working mode of the abnormal verification operation node for the data to be processed according to the target importance level and the preset level. It can be that when the target importance level is lower than the preset level, determine the target emergency working mode of the abnormal verification operation node as the first emergency mode representing skipping the node; when the target importance level is higher than or equal to the preset level, determine the target emergency working mode of the abnormal verification operation node as the second emergency mode representing switching to the standby node.
[0102] Determine the candidate verification operation node set according to the target emergency working mode. It can be to obtain the pre-configured initial verification operation node set, and this initial verification operation node set includes the node identifiers of the verification operation nodes participating in the verification; when the target emergency working mode of the abnormal verification operation node is the first emergency mode representing skipping the node, delete the node identifier of this abnormal verification operation node from the initial verification operation node set; when the target emergency working mode of the abnormal verification operation node is the second emergency mode representing switching to the standby node, retain the node identifier of this abnormal verification operation node, and update the second correspondence between the node identifier in the emergency verification information and the verification operation node, so that the node identifier of this abnormal verification operation node corresponds to the standby node of this abnormal verification operation node.
[0103] In a specific implementation manner, obtaining the candidate verification operation node set from the emergency verification information includes: determining the non-abnormal verification operation nodes, the abnormal verification operation nodes, and the default emergency working mode of the abnormal verification operation nodes according to the emergency verification information; when the default emergency working mode represents skipping the node, generating the candidate verification operation node set based on the non-abnormal verification operation nodes; when the default emergency working mode represents switching to the standby node, generating the candidate verification operation node set based on the standby verification operation nodes of the abnormal verification operation nodes and the non-abnormal verification operation nodes.
[0104] The emergency verification information can include the node identifiers of multiple verification operation nodes in the system and the working mode of each verification operation node.
[0105] Determine the non-abnormal verification operation nodes according to the emergency verification information. It can be to determine the verification operation nodes with the working mode of "normal" as the non-abnormal verification operation nodes.
[0106] Based on the emergency verification information, determine the abnormal verification operation node and the default emergency working mode of the abnormal verification operation node. It is possible to determine the verification operation node with the working mode of "skipping the node" or "switching to the standby node" as the abnormal verification operation node. Furthermore, read the working mode of the abnormal verification operation node from the emergency verification information to obtain the default emergency working mode of the abnormal verification operation node.
[0107] When the default emergency working mode of the abnormal verification operation node indicates skipping the node, generate a candidate verification operation node set based on the non-abnormal verification operation nodes. It is possible to skip the abnormal verification operation node and add the non-abnormal verification operation nodes to the candidate verification operation node set.
[0108] When the default emergency working mode of the abnormal verification operation node indicates switching to the standby node, generate a candidate verification operation node set based on the standby verification operation node of the abnormal verification operation node and the non-abnormal verification operation nodes. It is possible to determine the standby node of the abnormal verification operation node, add the standby node of the second verification operation node to the subsequent verification operation node set, and add the non-abnormal verification operation nodes to the candidate verification operation node set.
[0109] For example, the non-abnormal verification operation nodes include Node 1, Node 3, Node 4, and Node 5, and the abnormal verification operation node includes Node 2. If the default emergency working mode of Node 2 indicates skipping the node, the candidate verification operation node set includes: Node 1, Node 3, Node 4, and Node 5; if the default emergency working mode of Node 2 indicates switching to the standby node, the candidate verification operation node set includes Node 1, the standby node of Node 2, Node 3, Node 4, and Node 5.
[0110] Another example, the non-abnormal first verification operation nodes include Node 1, Node 4, and Node 5, and the abnormal verification operation nodes include Node 2 and Node 3. The default emergency working mode of Node 2 indicates skipping the node, and the default emergency working mode of Node 3 indicates switching to the standby node, then the candidate verification operation node set includes Node 1, the standby node of Node 3, Node 4, and Node 5.
[0111] By generating a set of candidate verification operation nodes using different emergency working methods, when the importance of an abnormal verification operation node is relatively low, the system can directly skip the subtasks corresponding to the abnormal verification operation node when processing a data verification request, avoiding the review process getting stuck in unimportant links. Moreover, skipping the subtasks corresponding to the abnormal verification operation node has little impact on data security, improving the data verification efficiency. Also, when the importance of the abnormal verification operation node is relatively high, a backup node can be used to replace the abnormal verification operation node for data verification processing, protecting data security and also avoiding the review process from getting stuck, improving the data verification efficiency.
[0112] Step S206: Verify the data to be processed through the target verification operation node to obtain a verification result.
[0113] When the number of target verification operation nodes is multiple, the data processing execution order and data processing execution logic corresponding to the multiple target verification operation nodes can be determined by the review process corresponding to the data to be processed.
[0114] The target verification operation node may be less than or equal to the number of verification operation nodes included in the review process.
[0115] For example, the review process of the data to be processed includes Node 1, Node 2, and Node 3, and the execution order is as follows: First, perform data verification processing through Node 1, then perform data verification processing through Node 2, and finally perform data verification processing through Node 3.
[0116] The target verification operation node includes Node 1 and the backup node of Node 3, and the execution order is as follows: First, perform data verification processing through Node 1, and then perform data verification processing through the backup node of Node 3.
[0117] In a specific implementation manner, the data verification request carries a target role identifier; the target verification operation node includes a permission verification operation node; verifying the data to be processed through the target verification operation node to obtain a verification result includes: through the target verification operation node, determining the target permission group of the target role identifier according to the corresponding relationship between the role identifier and the preset permission group and the target role identifier; according to the target permission group, determining whether the sender of the data verification request has the data processing permission of the preset type; if the sender has the data processing permission, generating a first verification result; the first verification represents that the sender is allowed to perform the data processing operation of the preset type.
[0118] The target role identifier carried by the data verification request can represent the permission role assigned to the user in the system.
[0119] Exemplarily, the permission role can be an administrator, a team leader, an ordinary member, etc.
[0120] During specific implementation, the corresponding relationship between the role identifier and the preset permission group can be pre-configured.
[0121] For example, role identifier 1 corresponds to permission group 1, role identifier 2 corresponds to permission group 1, role identifier 3 corresponds to permission group 2, and so on.
[0122] Based on the corresponding relationship between the role identifier and the preset permission group and the target role identifier, determining the target permission group of the target role identifier can be to query and process according to the target role identifier in the corresponding relationship between the role identifier and the preset permission group to obtain the target permission group of the target role identifier.
[0123] Based on the target permission group, it can be determined whether the issuer of the data verification request has the data processing permission of the preset type; if the issuer has the data processing permission, a first verification result is generated; the first verification represents that the issuer is allowed to perform the data processing operation of the preset type; if the issuer does not have the data processing permission, a second verification result is generated, and the second verification result is used to trigger the generation of an alarm message, and the alarm message is used to alarm that a user without permission is attempting to perform a data processing operation.
[0124] In a specific implementation manner, after the to-be-processed data is verified by the target verification operation node to obtain the verification result, the data verification method further includes: determining the format conversion method of the to-be-processed data according to the verification result; performing format conversion processing on the to-be-processed data according to the format conversion method.
[0125] In the case where the verification result indicates that the data verification is passed, it can be determined that the format conversion method of the to-be-processed data is the first conversion method; in the case where the verification result indicates that the data verification fails, the format conversion method of the to-be-processed data can be determined based on the verification operation node that fails.
[0126] The format conversion method includes but is not limited to: bold font, yellow highlighting, font conversion, simplified and traditional Chinese character conversion, and so on. The first conversion method can be a pre-specified format conversion method adopted in the case of passing the verification.
[0127] Based on the verification operation node that fails to determine the format conversion method of the to-be-processed data, the sub-data corresponding to the verification operation node that fails to pass the verification in the to-be-processed data can be highlighted, so as to intuitively prompt the user of the local data that may have problems in the to-be-processed data.
[0128] In a data publishing scenario, a management system may send a data verification request to a publishing system that executes the data verification method provided in this embodiment, and receive response data of the data verification request. When the response data includes an identifier indicating verification passed, the data to be processed is stored in a specified storage area to complete data publishing.
[0129] The verification result can be divided into verification passed and verification failed.
[0130] In the case of verification failed, through format conversion, the partial data that causes the verification to fail can be highlighted in the data to be processed, which is beneficial for users to correct the data to be processed in a timely manner and for subsequent data analysis.
[0131] In the case of verification passed, through format conversion, the data to be processed after format conversion can meet the storage format requirements in the data publishing scenario. In addition, performing format conversion processing on the data to be processed that has passed verification is, on the one hand, considering that in the data publishing scenario, the data to be processed with the same essential content may have different format requirements during the data verification process and the data storage process. On the other hand, the management system for executing the data verification request and data storage is separated from the publishing system for executing data verification. The data to be processed after format conversion can be used as a proof that the verification has passed. Before storing the data to be processed, the management system can verify whether the data to be processed meets the storage format requirements to avoid mistakenly storing the data to be processed with verification failed in the specified storage area, resulting in abnormal data publishing.
[0132] In a specific implementation manner, the data verification method further includes: determining the start time and end time corresponding to the emergency verification information; determining a preset time range based on the start time and end time. If the data verification request is received within the preset time range, the request record identifier of the data verification request is associated and stored with the emergency verification information.
[0133] The start time corresponding to the emergency verification information can be the time point when an abnormal verification operation node is detected, or the time point when the emergency verification information is obtained after step S202 is executed.
[0134] The end time of the emergency verification information can be the time point when the system operation and maintenance ends and the abnormal verification operation node returns to normal.
[0135] The request record identifier is used to uniquely identify the corresponding data verification request.
[0136] If the data verification request is received within the preset time range, it indicates that the system processes the data verification request through the data verification method provided in this embodiment in an emergency state.
[0137] Emergency verification information can be associated and stored with one or more request record identifiers. Associating and storing the request record identifier of a data verification request with the emergency verification information is, on the one hand, for the convenience of accountability. For example, the management system sends multiple data review requests to the publishing system. Among them, the publishing system processes Request 1, Request 2, and Request 3 in an emergency state. If an abnormal problem occurs in Request 1 later, the corresponding emergency verification information can be found according to the request record identifier of Request 1, and then data analysis can be carried out in combination with the emergency verification information to determine which node is responsible for the subsequent abnormal problem. On the other hand, considering the data verification scenario, it may be necessary to continuously optimize the emergency method by using historical data. By associating and storing the request record identifier with the emergency verification information, the data of multiple data verification requests in the same abnormal situation can be collected. Using this data for data analysis can find the loopholes and problems existing in the current emergency method during specific implementation.
[0138] In the embodiment as Figure 2 shown, in the embodiment of the present application, first, if it is determined based on historical verification information that there is an abnormal verification operation node, then emergency verification information is generated according to the abnormal verification operation node. Then, when a data verification request is received, the target verification operation node corresponding to the data to be processed in the data verification request is determined according to the emergency verification information and the first verification information carried by the data verification request. Finally, the data to be processed is verified through the target verification operation node to obtain a verification result. In this way, during the data verification process of the data to be processed, multiple verification operation nodes may be involved. However, considering that in the operation process of the system, local failures are difficult to completely avoid. Through historical verification information, it can be quickly found that the data processing efficiency of the verification operation node is too slow, and then it can be found that there is an abnormality in the verification operation node. When an abnormal verification operation node is detected, the generation of emergency verification information can be triggered. The emergency verification information can reflect which verification operation nodes can be used for normal data verification and which verification operation nodes cannot work properly. When a data verification request carrying the first verification information is received, the first verification information can reflect which verification operation nodes the data to be processed should originally pass through for data verification processing. Furthermore, by using the emergency verification information and the first verification information, it can be determined whether the abnormal verification operation node affects the data verification request, and it can also determine the temporary emergency means when the abnormal verification dimension affects the data verification request and determine the target verification operation node responsible for processing the data verification request after adopting the emergency means. Then, the data to be processed is verified through the target verification operation node, which can not only prevent the data to be processed from being stuck due to local abnormalities in the system during the review process, but also ensure data security, taking into account both data security and data verification efficiency.
[0139] Figure 3Schematic diagram of system interaction for a data verification method provided by an embodiment of this application.
[0140] As Figure 3 shown, the management system 302 sends a data verification request to the publishing system 306, and the data verification request carries first verification information.
[0141] The publishing system 306 includes multiple verification operation nodes. For example, a role verification operation node, a permission verification operation node, an audit verification operation node, and so on. The role verification operation node can be used to verify the role assigned to the originator of the data verification request in the system; the permission verification operation node can be used to verify the permission information of the originator of the data verification request in the system; the audit verification operation node can be used to perform audit verification processing on the data to be processed carried by the data verification request through a preset audit method, etc.
[0142] When the publishing system 306 detects that at least one verification operation node is abnormal, it can switch from the normal working mode to the direct publishing mode. The direct publishing mode is a mode started by the publishing system in an emergency state.
[0143] When the publishing system 306 switches to the direct publishing mode, the publishing system 306 generates emergency verification information according to the abnormal verification operation node; the publishing system 306 receives the data verification request sent by the management system 302; the data verification request carries the first verification information of the data to be processed; the publishing system 306 determines the target verification operation node of the data to be processed according to the emergency verification information and the first verification information; the publishing system 306 performs verification processing on the data to be processed through the target verification operation node to obtain a verification result.
[0144] After the publishing system 306 obtains the verification result, it returns the verification result to the management system 302.
[0145] When the management system 302 receives the verification result and the verification result indicates that the verification is passed, it stores the data to be processed in the database 304 to complete data publishing.
[0146] Since the technical concepts are the same, the description in this embodiment is relatively simple. For the relevant parts, please refer to the corresponding description of the method embodiment provided above.
[0147] In the above embodiment, a data verification method is provided. Correspondingly, based on the same technical concept, an embodiment of this application also provides a data verification device, which will be described below with reference to the accompanying drawings.
[0148] Figure 4 Schematic diagram of a data verification device provided by an embodiment of this application.
[0149] This embodiment provides a data verification device 400, including:
[0150] A generating unit 402, configured to generate emergency verification information according to the abnormal verification operation node if it is determined based on historical verification information that there is an abnormal verification operation node;
[0151] A determining unit 404, configured to determine a target verification operation node corresponding to the data to be processed in the data verification request according to the emergency verification information and the first verification information carried in the data verification request when receiving the data verification request;
[0152] A verification unit 406, configured to perform verification processing on the data to be processed through the target verification operation node to obtain a verification result.
[0153] Optionally, when the determining unit 404 determines the target verification operation node corresponding to the data to be processed in the data verification request according to the emergency verification information and the first verification information carried in the data verification request, the following steps are performed:
[0154] Obtain a first set of verification operation nodes of the data to be processed from the first verification information;
[0155] Obtain a set of candidate verification operation nodes from the emergency verification information;
[0156] Perform an intersection operation on the first set of verification operation nodes and the set of candidate verification operation nodes to obtain the target verification operation node.
[0157] Optionally, the emergency verification information includes the node identifier of the abnormal verification operation node; when the determining unit 404 obtains the set of candidate verification operation nodes from the emergency verification information, the following steps are performed:
[0158] Obtain the data feature information of the data to be processed from the first verification information; the data feature information includes data type and / or data source;
[0159] Determine the target verification reference information of the abnormal verification operation node with respect to the data to be processed according to the data feature information and the node identifier of the abnormal verification operation node;
[0160] Determine the target importance level of the abnormal verification operation node with respect to the data to be processed according to the target verification reference information and the corresponding relationship between the preset verification reference information and the node importance level;
[0161] Determine the target emergency working mode of the abnormal verification operation node for the data to be processed according to the target importance level and the preset level;
[0162] Determine a set of candidate verification operation nodes according to the target emergency working mode.
[0163] Optionally, when generating emergency verification information according to the abnormal verification operation node, the generating unit 402 performs the following steps:
[0164] Determine the default importance level of the abnormal verification operation node;
[0165] Determine the default emergency working mode of the abnormal verification operation node according to the default importance level and the preset level;
[0166] Update the initial verification information according to the default emergency working mode to obtain the emergency verification information; the initial verification information includes the node identifier of the verification operation node participating in the verification and the working mode of the verification operation node.
[0167] Optionally, when the determining unit 404 obtains a set of candidate verification operation nodes from the emergency verification information, it performs the following steps:
[0168] Determine the non-abnormal verification operation nodes, the abnormal verification operation nodes, and the default emergency working mode of the abnormal verification operation nodes according to the emergency verification information;
[0169] When the default emergency working mode indicates skipping a node, generate the set of candidate verification operation nodes based on the non-abnormal verification operation nodes;
[0170] When the default emergency working mode indicates switching to a standby node, generate the set of candidate verification operation nodes based on the standby verification operation nodes of the abnormal verification operation nodes and the non-abnormal verification operation nodes.
[0171] Optionally, the determining unit 404 is further configured to:
[0172] Determine the start time and end time corresponding to the emergency verification information;
[0173] The data verification device 400 further includes:
[0174] A storage unit, configured to determine a preset time range based on the start time and the end time, and if the data verification request is received within the preset time range, associate and store the request record identifier of the data verification request with the emergency verification information.
[0175] Optionally, the data verification request carries a target role identifier; the target verification operation node includes an authority verification operation node; when the verification unit 406 performs verification processing on the data to be processed through the target verification operation node to obtain a verification result, the following steps are executed:
[0176] Through the target verification operation node, determine the target authority group of the target role identifier according to the corresponding relationship between the role identifier and the preset authority group and the target role identifier;
[0177] According to the target authority group, determine whether the issuer of the data verification request has the data processing authority of a preset type;
[0178] If the issuer has the data processing authority, generate a first verification result; the first verification indicates that the issuer is allowed to perform data processing operations of a preset type.
[0179] Optionally, the determination unit 404 is further configured to:
[0180] Determine the format conversion method of the data to be processed according to the verification result;
[0181] The data verification device 400 further includes:
[0182] A conversion unit, configured to perform format conversion processing on the data to be processed according to the format conversion method.
[0183] The data verification device provided by the embodiments of the present application includes: a generation unit, configured to generate emergency verification information according to an abnormal verification operation node if it is determined based on historical verification information that there is an abnormal verification operation node; a determination unit, configured to determine a target verification operation node corresponding to the data to be processed in the data verification request according to the emergency verification information and the first verification information carried in the data verification request when receiving the data verification request; and a verification unit, configured to perform verification processing on the data to be processed through the target verification operation node to obtain a verification result. In this way, during the data verification process of the data to be processed, multiple verification operation nodes may be involved. However, considering that local failures are difficult to completely avoid during the operation of the system, the data processing efficiency of the verification operation node can be quickly found to be too slow through historical verification information, and then it can be found that there is an abnormality in the verification operation node. When an abnormal verification operation node is detected, the generation of emergency verification information can be triggered. The emergency verification information can reflect which verification operation nodes can be used to normally perform data verification and which verification operation nodes cannot work properly. When receiving a data verification request carrying the first verification information, the first verification information can reflect which verification operation nodes the data to be processed should originally pass through for data verification processing. Furthermore, by using the emergency verification information and the first verification information, it can be determined whether the abnormal verification operation node affects the data verification request, and it can also determine a temporary emergency measure and the target verification operation node responsible for processing the data verification request after adopting the emergency measure when the abnormal verification dimension affects the data verification request. Then, by performing verification processing on the data to be processed through the target verification operation node, it can not only prevent the data to be processed from being stuck due to local abnormalities in the system during the review process, but also ensure data security, taking into account both data security and data verification efficiency.
[0184] Corresponding to the above-described data verification method, based on the same technical concept, the embodiments of the present application further provide an electronic device, which is used to execute the above-provided data verification method. Figure 5 It is a schematic structural diagram of an electronic device provided by the embodiments of the present application.
[0185] As Figure 5As shown, electronic devices can vary significantly due to different configurations or performances. They can include one or more processors 501 and a memory 502. One or more application programs or data can be stored in the memory 502. Among them, the memory 502 can be for short-term storage or persistent storage. The application programs stored in the memory 502 can include one or more modules (not shown in the figure). Each module can include a series of computer-executable instructions in the electronic device. Further, the processor 501 can be configured to communicate with the memory 502 and execute a series of computer-executable instructions in the memory 502 on the electronic device. The electronic device can also include one or more power supplies 503, one or more wired or wireless network interfaces 504, one or more input / output interfaces 505, one or more keyboards 506, etc.
[0186] In a specific embodiment, the electronic device includes a memory and one or more programs. One or more of the programs are stored in the memory, and one or more of the programs can include one or more modules. Each module can include a series of computer-executable instructions in the electronic device and is configured to be executed by one or more processors. The one or more programs include the following computer-executable instructions for:
[0187] If it is determined based on historical verification information that there is an abnormal verification operation node, then emergency verification information is generated according to the abnormal verification operation node;
[0188] In the case of receiving a data verification request, according to the emergency verification information and the first verification information carried in the data verification request, determine the target verification operation node corresponding to the data to be processed in the data verification request;
[0189] Verify the data to be processed through the target verification operation node to obtain a verification result.
[0190] An embodiment of a computer-readable storage medium provided in this specification is as follows:
[0191] Corresponding to the above-described data verification method, based on the same technical concept, an embodiment of the present application also provides a computer-readable storage medium.
[0192] The computer-readable storage medium provided in this embodiment is used to store computer-executable instructions. When the computer-executable instructions are executed by a processor, the following process can be implemented:
[0193] If it is determined based on historical verification information that there is an abnormal verification operation node, then emergency verification information is generated according to the abnormal verification operation node;
[0194] In the case of receiving a data verification request, determine a target verification operation node corresponding to the data to be processed in the data verification request according to the emergency verification information and the first verification information carried in the data verification request;
[0195] Perform verification processing on the data to be processed through the target verification operation node to obtain a verification result.
[0196] It should be noted that the embodiments of the computer-readable storage medium in this specification and the embodiments of the data verification method in this specification are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the corresponding method described above, and the repeated parts will not be elaborated.
[0197] In the embodiments of the present application, first, if it is determined based on historical verification information that there is at least one abnormal verification operation node, emergency verification information is generated according to the abnormal verification operation node; second, a data verification request is received; the data verification request carries the first verification information of the data to be processed; then, according to the emergency verification information and the first verification information, a target verification operation node corresponding to the data to be processed is determined; finally, the data to be processed is verified through the target verification operation node to obtain a verification result. In this way, during the data verification process of the data to be processed, multiple verification operation nodes may be involved. However, considering that in the operation process of the system, local failures are difficult to completely avoid, the data processing efficiency of the verification operation node can be quickly found through historical verification information, and then it can be found that the verification operation node is abnormal. In the case of detecting at least one abnormal verification operation node, the abnormal verification operation node can trigger the generation of emergency verification information. The emergency verification information can reflect which verification operation nodes can be used to normally perform data verification and which verification operation nodes cannot work properly. In the case of receiving a data verification request carrying the first verification information, the first verification information can reflect which verification operation nodes the data to be processed should originally pass through for data verification processing. Furthermore, by using the emergency verification information and the first verification information, it can be determined whether the abnormal verification operation node affects the data verification request, and it can also determine temporary emergency measures and the target verification operation node responsible for processing the data verification request after adopting the emergency measures in the case where the abnormal verification dimension affects the data verification request. Then, the data to be processed is verified through the target verification operation node, which can not only prevent the data to be processed from being stuck due to local system anomalies during the review process, but also ensure data security, taking into account both data security and data verification efficiency.
[0198] The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the acts or steps recited in the claims can be performed in a different order than in the embodiments and still achieve the desired result. Additionally, the processes depicted in the figures do not necessarily require the particular order or sequential order shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0199] Those skilled in the art will appreciate that the embodiments of this application can be provided as a method, system, or computer program product. Accordingly, the embodiments of this application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, this specification can take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0200] This specification is described with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to the embodiments of this specification. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable devices to produce a machine, such that the instructions executed by the processor of the computer or other programmable devices produce means for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0201] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable devices to operate in a particular manner, such that the instructions stored in the computer-readable memory produce a manufacture including instruction means that implement the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0202] These computer program instructions can also be loaded onto a computer or other programmable device, such that a series of operation steps are performed on the computer or other programmable device to produce a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0203] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0204] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0205] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0206] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0207] Embodiments of the present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0208] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, reference can be made to the corresponding descriptions in the method embodiment.
[0209] The above are only the embodiments of this document and are not intended to limit this document. For those skilled in the art, various changes and modifications can be made to this document. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of this document shall be included within the scope of the claims of this document.
Claims
1. Data verification method, characterized in that, comprising: If it is determined based on historical verification information that there is an abnormal verification operation node, then according to the abnormal verification operation node, emergency verification information is generated; When receiving a data verification request, according to the emergency verification information and the first verification information carried in the data verification request, determine the target verification operation node corresponding to the data to be processed in the data verification request; Verify and process the data to be processed through the target verification operation node to obtain a verification result.
2. The method according to claim 1, characterized in that, The step of determining the target verification operation node corresponding to the data to be processed in the data verification request according to the emergency verification information and the first verification information carried in the data verification request includes: Obtain the first set of verification operation nodes of the data to be processed from the first verification information; Obtain a set of candidate verification operation nodes from the emergency verification information; Perform an intersection operation on the first set of verification operation nodes and the set of candidate verification operation nodes to obtain the target verification operation node.
3. The method according to claim 2, characterized in that, The emergency verification information includes the node identifier of the abnormal verification operation node; the step of obtaining a set of candidate verification operation nodes from the emergency verification information includes: Obtain the data feature information of the data to be processed from the first verification information; the data feature information includes data type and / or data source; According to the data feature information and the node identifier of the abnormal verification operation node, determine the target verification reference information of the abnormal verification operation node with respect to the data to be processed; According to the target verification reference information and the corresponding relationship between the verification reference information and the node importance level preset, determine the target importance level of the abnormal verification operation node with respect to the data to be processed; According to the target importance level and the preset level, determine the target emergency working mode of the abnormal verification operation node with respect to the data to be processed; According to the target emergency working mode, determine a set of candidate verification operation nodes.
4. The method according to claim 1, characterized in that, The step of generating emergency verification information according to the abnormal verification operation node includes: Determine the default importance level of the abnormal verification operation node; According to the default importance level and the preset level, determine the default emergency working mode of the abnormal verification operation node; According to the default emergency working mode, update and process the initial verification information to obtain the emergency verification information; the initial verification information includes the node identifiers of the verification operation nodes participating in the verification and the working modes of the verification operation nodes.
5. The method according to claim 2, characterized in that, The step of obtaining a set of candidate verification operation nodes from the emergency verification information includes: According to the emergency verification information, determine the non-abnormal verification operation nodes, the abnormal verification operation nodes, and the default emergency working mode of the abnormal verification operation nodes; When the default emergency working mode represents skipping nodes, a set of candidate verification operation nodes is generated based on the non-abnormal verification operation nodes. When the default emergency working mode represents switching to standby nodes, a set of candidate verification operation nodes is generated based on the standby verification operation nodes of the abnormal verification operation nodes and the non-abnormal verification operation nodes.
6. The method according to claim 1, wherein, the method further includes: determining a start time and an end time corresponding to the emergency verification information; determining a preset time range based on the start time and the end time, and if the data verification request is received within the preset time range, associatively storing the request record identifier of the data verification request with the emergency verification information.
7. The method according to claim 1, wherein, the data verification request carries a target role identifier; the target verification operation node includes a permission verification operation node; the step of performing verification processing on the data to be processed through the target verification operation node to obtain a verification result includes: through the target verification operation node, determining a target permission group of the target role identifier according to the corresponding relationship between the role identifier and the preset permission group and the target role identifier; determining whether the sender of the data verification request has the data processing permission of a preset type according to the target permission group; if the sender has the data processing permission, generating a first verification result; the first verification indicates that the sender is allowed to perform a data processing operation of a preset type.
8. The method according to claim 1, wherein, after performing verification processing on the data to be processed through the target verification operation node to obtain a verification result, it further includes: determining a format conversion method for the data to be processed according to the verification result; performing format conversion processing on the data to be processed according to the format conversion method.
9. A data verification device, wherein, it includes: a generation unit, configured to generate emergency verification information according to the abnormal verification operation nodes if it is determined based on historical verification information that there are abnormal verification operation nodes; a determination unit, configured to determine a target verification operation node corresponding to the data to be processed in the data verification request according to the emergency verification information and the first verification information carried by the data verification request when receiving the data verification request; a verification unit, configured to perform verification processing on the data to be processed through the target verification operation node to obtain a verification result.
10. An electronic device, wherein, the device includes: a processor; and a memory configured to store computer-executable instructions, and the computer-executable instructions, when executed, cause the processor to execute the data verification method according to any one of claims 1-8.
11. A computer-readable storage medium, wherein, the computer-readable storage medium is used to store computer-executable instructions, and the computer-executable instructions, when executed by a processor, implement the data verification method according to any one of claims 1-8.