Data verification method, device, electronic device and computer readable storage medium

By generating verification logic scripts based on business type configuration conditions in the data verification tool, the problem of logical redundancy in traditional data verification methods is solved, the configurability of data verification logic is realized, and the data verification is improved Efficiency and accuracy.

CN112667244BActive Publication Date: 2024-12-17PING AN SECURITIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011642729.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-30
Publication Date
2024-12-17
Estimated Expiration
2040-12-30

AI Technical Summary

Technical Problem

Traditional data verification methods cannot realize the configurability of data verification logic, resulting in users needing to manually develop logic, resulting in redundancy during server recognition, affecting data verification efficiency.

Method used

By obtaining the configuration conditions based on business type in the data verification tool, a verification logic script is generated to realize the configurability of the data verification logic, reduce redundancy, and improve data verification efficiency.

Benefits of technology

It realizes the configurability of data verification logic, improves the flexibility and efficiency of data verification, reduces the workload of developers, and improves the accuracy and reliability of data verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112667244B_ABST
    Figure CN112667244B_ABST
Patent Text Reader

Abstract

The present invention relates to big data technology, and discloses a data verification method, including: obtaining data verification conditions configured based on business types in a data verification tool, the data verification conditions including: a verification object, verification logic corresponding to the verification object, and a verification method; generating a verification logic script according to the verification logic of the verification object; obtaining data to be verified, and executing data verification of the data to be verified in response to the verification logic script and the verification method to obtain a data verification result. The present invention also relates to blockchain technology, and the data to be verified can be stored in a blockchain node. The present invention can realize the configurability of data verification logic and improve the efficiency of data verification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of big data technology, and in particular to a data verification method, device, electronic device and computer-readable storage medium. Background Art

[0002] In the process of information application system development, data verification is an indispensable process in application system development. Data verification can ensure that correct data is obtained in the correct way, thereby improving the security of the system.

[0003] However, the traditional data verification method has the following disadvantages: it is impossible to realize the configurability of data verification logic, and users are required to manually develop data verification logic, which leads to redundancy when the server recognizes the data verification logic, affecting the efficiency of data verification. Summary of the invention

[0004] The present invention provides a data verification method, device, electronic device and computer-readable storage medium, the main purpose of which is to realize the configurability of data verification logic to improve the efficiency of data verification.

[0005] To achieve the above object, the present invention provides a data verification method, comprising:

[0006] Obtaining data verification conditions configured based on business types in a data verification tool, wherein the data verification conditions include: a verification object, verification logic corresponding to the verification object, and a verification method;

[0007] Generate a verification logic script according to the verification logic of the verification object;

[0008] The data to be verified is obtained, and in response to the verification logic script and the verification method, data verification of the data to be verified is performed to obtain a data verification result.

[0009] Optionally, generating a verification logic script according to the data verification logic of the verification object includes:

[0010] If the verification logic is identified as a common attribute, based on the common attribute, the common attribute verification logic of the verification object is obtained from the verification logic that has been encapsulated in the data verification tool, the common attribute verification logic is converted into a corresponding first request message, and the corresponding verification logic script is generated after parsing the first request message.

[0011] Optionally, generating a verification logic script according to the data verification logic of the verification object includes:

[0012] If the verification logic is identified as a non-common attribute, searching a preset storage list in the data verification tool for a target character that matches the verification object;

[0013] If a target character matching the inspection object is found, obtain the non-common attribute verification logic matching the target character from the verification logic encapsulated in the data verification tool, convert the non-common attribute verification logic into a corresponding second request message, and parse the second request message to generate a corresponding verification logic script.

[0014] Optionally, generating a verification logic script according to the data verification logic of the verification object includes:

[0015] If the target character matching the verification object is not found, searching for a character with similar semantics to the verification object in a preset storage list in the data verification tool, and displaying the verification logic of the character with similar semantics on the user interface;

[0016] receiving a modification of the verification logic of the semantically similar characters by a user on a user interface, and obtaining a modified verification logic;

[0017] The modified verification logic is converted into a corresponding third request message, and the corresponding verification logic script is generated after parsing the third request message.

[0018] Optionally, in response to the target verification logic script and the data verification method, performing data verification of the data to be verified to obtain a data verification result includes:

[0019] Identifying an object to be verified in the data to be verified;

[0020] Calculate the similarity between the object to be verified and the verification object in the verification logic script, and select the verification logic script corresponding to the verification object whose similarity is greater than a preset similarity;

[0021] The object to be verified is verified according to the verification logic script corresponding to the selected verification object and the data verification method to obtain a data verification result.

[0022] Optionally, the calculating the similarity between the object to be verified and the verification object in the verification logic script includes:

[0023] The similarity between the object to be verified and the verification object in the verification logic script is calculated using the following method:

[0024]

[0025] Wherein, x represents the object to be verified, y represents the verification object in the verification logic script, and xi Represents the i-th vector value of the object to be verified, y i The i-th vector value of the verification object in the verification logic script.

[0026] Optionally, after obtaining the data verification result, the method further includes: performing visualization processing on the data verification result to generate a visualization interface, wherein the visualization interface includes one or more of the following combinations:

[0027] Obtain the verification results to indicate the object to be verified that has problems, and display the cause of the problem and the recommended method of correction on the user interface;

[0028] According to the verification result, the error types with the highest number of error digits are counted and displayed to the user.

[0029] In order to solve the above problem, the present invention further provides a data verification device, the device comprising:

[0030] An acquisition module is used to acquire data verification conditions configured based on business types in a data verification tool, wherein the data verification conditions include: a verification object, a verification logic and a verification method corresponding to the verification object;

[0031] A generation module, used to generate a verification logic script according to the verification logic of the verification object;

[0032] The execution module is used to obtain the data to be verified, and in response to the verification logic script and the verification method, perform data verification of the data to be verified to obtain a data verification result.

[0033] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0034] a memory storing at least one instruction; and

[0035] The processor executes the instructions stored in the memory to implement the data verification method described above.

[0036] In order to solve the above problems, the present invention also provides a computer-readable storage medium, including a data storage area and a program storage area, the data storage area stores the created data, and the program storage area stores a computer program, wherein the computer program implements the above-mentioned data verification method when executed by a processor.

[0037] The embodiment of the present invention first obtains data verification conditions configured based on business types in a data verification tool, and the data verification conditions include: a verification object, verification logic and a verification method corresponding to the verification object. The corresponding data verification can be configured according to different business types without the need for users to repeatedly configure internal verification logic, thereby reducing redundancy and providing convenience for developers and improving the reliability of subsequent data verification. Secondly, the embodiment of the present invention generates a corresponding verification logic script based on the verification logic of the verification object. By generating different verification logic scripts, the data verification logic can be made configurable, thereby improving the flexibility of subsequent data verification and thus improving the efficiency of subsequent data verification. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A schematic diagram of a flow chart of a data verification method provided by an embodiment of the present invention;

[0039] Figure 2 In the first embodiment of the present invention Figure 1 A schematic diagram of the flow of step S3 of the data verification method provided;

[0040] Figure 3 A schematic diagram of a flow chart of a visual interface combination method provided in a second embodiment of the present invention;

[0041] Figure 4 A schematic diagram of a module of a data verification device provided by an embodiment of the present invention;

[0042] Figure 5 A schematic diagram of the internal structure of an electronic device for implementing a data verification method provided by an embodiment of the present invention;

[0043] The realization of the purpose, functional features and advantages of the present invention will be further explained by integrating embodiments with reference to the accompanying drawings. DETAILED DESCRIPTION

[0044] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0045] The execution subject of the data verification method provided in the embodiment of the present application includes but is not limited to at least one of the electronic devices such as the server and the terminal that can be configured to execute the method provided in the embodiment of the present application. In other words, the data verification method can be executed by software or hardware installed in the terminal device or the server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.

[0046] The present invention provides a method for data verification. Figure 1 , which is a flow chart of a data verification method provided by an embodiment of the present invention.

[0047] In this embodiment, the data verification method includes:

[0048] S1. Obtain data verification conditions configured based on business types in a data verification tool, wherein the data verification conditions include: a verification object, a verification logic corresponding to the verification object, and a verification method.

[0049] In a preferred embodiment of the present invention, the data verification tool is essentially an independent project software, which is compiled in Java language. Among them, the embodiment of the present invention introduces the data verification tool into each application of the client and / or server in the form of a jar package to perform data verification on the client and / or server. The data verification tool provides a user interface, which includes a variety of business scenarios, and can configure corresponding data verification according to different business types, so that users do not need to repeatedly configure the internal verification logic, reduce redundancy, and thus provide convenience for developers.

[0050] In an optional embodiment, the data verification tool includes: an md5 data verification tool. Optionally, the md5 data verification tool may be: sendto md5.

[0051] Furthermore, since different business scenarios include different business types, the present invention obtains data verification conditions configured in the data verification tool based on the business type to determine the verification object of subsequent data verification and improve the accuracy and reliability of subsequent data verification. The data verification conditions include: verification object, verification logic corresponding to the verification object, and verification method.

[0052] For example, if the business type is order verification, the inspection objects of the order verification may include: order number, order format, and order type, etc. Inspection of the order number, order format, and order type can greatly improve the accuracy and reliability of the order verification.

[0053] In an optional embodiment, the verification logic includes: whether the data value is required, whether the letters filled in the data must be uppercase and lowercase, and whether the character length of the data filled in cannot exceed a preset threshold, etc.

[0054] In an optional embodiment, the verification method includes: method 1, immediately stop the verification of the remaining configuration items of the subsequent data when an error occurs; method 2, do not stop when an error occurs, until all configuration items of the data are verified, summarize all data configuration items with errors and return.

[0055] S2. Generate a verification logic script according to the verification logic of the verification object.

[0056] In at least one embodiment of the present invention, the verification logic script refers to an application program that performs logic verification. Preferably, the verification logic script is compiled using a scripting language, wherein the scripting language may be a JavaScript scripting language.

[0057] In detail, generating a verification logic script according to the verification logic of the data object includes:

[0058] Obtaining a request parameter object of the verification logic, and identifying properties of the verification logic according to the request parameter object;

[0059] If the verification logic is identified as a common attribute, the common attribute verification logic of the verification object is obtained from the verification logic that has been encapsulated in the data verification tool according to the common attribute, the common attribute verification logic is converted into a corresponding first request message by using the session method, and the first request message is parsed by the JavaScript scripting language to generate a corresponding verification logic script;

[0060] If the verification logic is identified as a non-common attribute, searching a preset storage list in the data verification tool for a target character that matches the verification object;

[0061] If a target character matching the inspection object is found, a non-common attribute inspection logic matching the target character is obtained from the inspection logic packaged in the data inspection tool, the non-common attribute inspection logic is converted into a corresponding second request message by using a session method, and the corresponding inspection logic script is generated after the second request message is parsed by the JavaScript scripting language;

[0062] If the target character matching the inspection object is not found, the semantically similar character to the inspection object is searched in the preset storage list in the data verification tool, and the verification logic of the semantically similar character is displayed on the user interface, and the user's modification of the verification logic of the semantically similar character on the user interface is received to obtain the modified verification logic, and the modified verification logic is converted into a corresponding third request message using the session method, and the corresponding verification logic script is generated after the third request message is parsed by the JavaScript scripting language. In this embodiment, if the corresponding data verification logic cannot be found, it can be automatically recommended to the user based on the stored historical verification logic, and the user can directly modify the recommended verification logic, which improves the convenience and reliability of data verification.

[0063] In an optional embodiment, the attributes include: field, id, primary key, etc.

[0064] The embodiment of the present invention generates corresponding verification logic scripts through different attributes of the verification logic, thereby realizing the configurability of data verification logic, improving the flexibility of subsequent data verification, and thus improving the efficiency of subsequent data verification.

[0065] S3. Obtain the data to be verified, and in response to the verification logic script and the verification method, perform data verification on the data to be verified to obtain a data verification result.

[0066] In at least one embodiment of the present invention, the data to be verified is generated according to the actual business scenario. For example, for the business scenario of the order page, the data to be verified includes: order information verification and user identity verification. The order information verification includes: order type verification, order format verification, and order date verification, etc.; the user identity verification includes: user account verification, user password verification, and user contact verification, etc. It should be emphasized that in order to further ensure the privacy and security of the data to be verified, the data to be verified can also be stored in a node of a blockchain.

[0067] Specifically, Figure 2 As shown, in response to the verification logic script and the verification method, performing data verification of the data to be verified to obtain a data verification result includes:

[0068] S30, identifying the object to be verified in the data to be verified;

[0069] In an optional embodiment, a SQL statement is used to identify the object to be verified in the data to be verified.

[0070] S31, calculating the similarity between the object to be verified and the verification object in the verification logic script, and selecting the verification logic script corresponding to the verification object whose similarity is greater than a preset similarity;

[0071] In an optional embodiment, the similarity between the object to be verified and the verification object in the verification logic script is calculated using the following method:

[0072]

[0073] Wherein, x represents the object to be verified, y represents the verification object in the standard verification logic script, and x i Represents the i-th vector value of the object to be verified, y i The i-th vector value of the verification object in the verification logic script.

[0074] Optionally, the preset similarity is 0.75.

[0075] S32: Verify the object to be verified according to the verification logic script corresponding to the selected verification object and the data verification method to obtain a data verification result.

[0076] It should be noted that the verification method can be selected from the above-mentioned method 1 and / or method 2 according to the needs of the user, and is not limited here.

[0077] Furthermore, in another embodiment of the present invention, after obtaining the data verification result, the method may further include: visualizing the data verification result to generate a visualization interface.

[0078] In an optional embodiment, the visualization interface is displayed in the form of tables, charts, etc.

[0079] In detail, Figure 3 As shown, the visual interface includes one or more of the following combinations:

[0080] S330, obtaining the verification result indicating the object to be verified that has a problem, and displaying the cause of the problem and the recommended method of correction on the user interface;

[0081] S331. Count the error types with the highest number of error digits according to the verification result, and display the error types to the user.

[0082] Based on the visual interface, the verification logic of the current data can be reflected to the server-side developers, so that the server-side developers can more intuitively find out what errors there are in the data passed to the server, instead of just one error message. This enriches the feedback of the error information and is conducive to the developers who call the server-side interface to improve their own logic and modify the data.

[0083] In an optional embodiment, the visualization interface is generated by a server-side template engine (Ejs template).

[0084] To summarize, the embodiment of the present invention first obtains data verification conditions configured based on business types in a data verification tool, wherein the data verification conditions include: a verification object, verification logic and a verification method corresponding to the verification object. The corresponding data verification can be configured according to different business types without the need for users to repeatedly configure the internal verification logic, thereby reducing redundancy and providing convenience for developers and improving the reliability of subsequent data verification. Secondly, the embodiment of the present invention generates a corresponding verification logic script based on the verification logic of the verification object. By generating different verification logic scripts, the data verification logic can be made configurable, thereby improving the flexibility of subsequent data verification and thus improving the efficiency of subsequent data verification.

[0085] like Figure 4The figure shows a functional module diagram of the data verification device of the present invention.

[0086] The data verification device 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the data verification device may include an acquisition module 101, a generation module 102, and an execution module 103. The module described in the present invention may also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, and is stored in the memory of the electronic device.

[0087] In this embodiment, the functions of each module / unit are as follows:

[0088] The acquisition module 101 is used to acquire data verification conditions configured based on business types in a data verification tool, and the data verification conditions include: a verification object, a verification logic corresponding to the verification object, and a verification method.

[0089] In a preferred embodiment of the present invention, the data verification tool is essentially an independent project software, which is compiled in Java language. Among them, the embodiment of the present invention introduces the data verification tool into each application of the client and / or server in the form of a jar package to perform data verification on the client and / or server. The data verification tool provides a user interface, which includes a variety of business scenarios, and can configure corresponding data verification according to different business types, so that users do not need to repeatedly configure the internal verification logic, reduce redundancy, and thus provide convenience for developers.

[0090] In an optional embodiment, the data verification tool includes: an md5 data verification tool. Optionally, the md5 data verification tool may be: sendto md5.

[0091] Furthermore, since different business scenarios include different business types, the present invention obtains data verification conditions configured in the data verification tool based on the business type to determine the verification object of subsequent data verification and improve the accuracy and reliability of subsequent data verification. The data verification conditions include: verification object, verification logic corresponding to the verification object, and verification method.

[0092] For example, if the business type is order verification, the inspection objects of the order verification may include: order number, order format, and order type, etc. Inspection of the order number, order format, and order type can greatly improve the accuracy and reliability of the order verification.

[0093] In an optional embodiment, the verification logic includes: whether the data value is required, whether the letters filled in the data must be uppercase and lowercase, and whether the character length of the data filled in cannot exceed a preset threshold, etc.

[0094] In an optional embodiment, the verification method includes: method 1, immediately stop the verification of the remaining configuration items of the subsequent data when an error occurs; method 2, do not stop when an error occurs, until all configuration items of the data are verified, summarize all data configuration items with errors and return.

[0095] The generating module 102 is used to generate a verification logic script according to the verification logic of the verification object.

[0096] In at least one embodiment of the present invention, the verification logic script refers to an application program that performs logic verification. Preferably, the verification logic script is compiled using a scripting language, wherein the scripting language may be a JavaScript scripting language.

[0097] In detail, generating a verification logic script according to the verification logic of the data object includes:

[0098] Obtaining a request parameter object of the verification logic, and identifying properties of the verification logic according to the request parameter object;

[0099] If the verification logic is identified as a common attribute, the common attribute verification logic of the verification object is obtained from the verification logic that has been encapsulated in the data verification tool according to the common attribute, the common attribute verification logic is converted into a corresponding first request message by using the session method, and the first request message is parsed by the JavaScript scripting language to generate a corresponding verification logic script;

[0100] If the verification logic is identified as a non-common attribute, searching a preset storage list in the data verification tool for a target character that matches the verification object;

[0101] If a target character matching the inspection object is found, a non-common attribute inspection logic matching the target character is obtained from the inspection logic packaged in the data inspection tool, the non-common attribute inspection logic is converted into a corresponding second request message by using a session method, and the corresponding inspection logic script is generated after the second request message is parsed by the JavaScript scripting language;

[0102] If the target character matching the inspection object is not found, the semantically similar character to the inspection object is searched in the preset storage list in the data verification tool, and the verification logic of the semantically similar character is displayed on the user interface, and the user's modification of the verification logic of the semantically similar character on the user interface is received to obtain the modified verification logic, and the modified verification logic is converted into a corresponding third request message using the session method, and the corresponding verification logic script is generated after the third request message is parsed by the JavaScript scripting language. In this embodiment, if the corresponding data verification logic cannot be found, it can be automatically recommended to the user based on the stored historical verification logic, and the user can directly modify the recommended verification logic, which improves the convenience and reliability of data verification.

[0103] In an optional embodiment, the attributes include: field, id, primary key, etc.

[0104] The embodiment of the present invention generates corresponding verification logic scripts through different attributes of the verification logic, thereby realizing the configurability of data verification logic, improving the flexibility of subsequent data verification, and thus improving the efficiency of subsequent data verification.

[0105] The execution module 103 is used to obtain the data to be verified, and in response to the verification logic script and the verification method, perform data verification on the data to be verified to obtain a data verification result.

[0106] In at least one embodiment of the present invention, the data to be verified is generated according to the actual business scenario. For example, for the business scenario of the order page, the data to be verified includes: order information verification and user identity verification. The order information verification includes: order type verification, order format verification, and order date verification, etc.; the user identity verification includes: user account verification, user password verification, and user contact verification, etc. It should be emphasized that in order to further ensure the privacy and security of the data to be verified, the data to be verified can also be stored in a node of a blockchain.

[0107] Specifically, Figure 2 As shown, in response to the verification logic script and the verification method, performing data verification of the data to be verified to obtain a data verification result includes:

[0108] S30, identifying the object to be verified in the data to be verified;

[0109] In an optional embodiment, a SQL statement is used to identify the object to be verified in the data to be verified.

[0110] S31, calculating the similarity between the object to be verified and the verification object in the verification logic script, and selecting the verification logic script corresponding to the verification object whose similarity is greater than a preset similarity;

[0111] In an optional embodiment, the similarity between the object to be verified and the verification object in the verification logic script is calculated using the following method:

[0112]

[0113] Wherein, x represents the object to be verified, y represents the verification object in the standard verification logic script, and x i Represents the i-th vector value of the object to be verified, y i The i-th vector value of the verification object in the verification logic script.

[0114] Optionally, the preset similarity is 0.75.

[0115] S32: Verify the object to be verified according to the verification logic script corresponding to the selected verification object and the data verification method to obtain a data verification result.

[0116] It should be noted that the verification method can be selected from the above-mentioned method 1 and / or method 2 according to the needs of the user, and is not limited here.

[0117] Furthermore, in another embodiment of the present invention, after obtaining the data verification result, the method may further include: visualizing the data verification result to generate a visualization interface.

[0118] In an optional embodiment, the visualization interface is displayed in the form of tables, charts, etc.

[0119] In detail, Figure 3 As shown, the visual interface includes one or more of the following combinations:

[0120] S330, obtaining the verification result indicating the object to be verified that has a problem, and displaying the cause of the problem and the recommended method of correction on the user interface;

[0121] S331. Count the error types with the highest number of error digits according to the verification result, and display the error types to the user.

[0122] Based on the visual interface, the verification logic of the current data can be reflected to the server-side developers, so that the server-side developers can more intuitively find out what errors there are in the data passed to the server, instead of just one error message. This enriches the feedback of the error information and is conducive to the developers who call the server-side interface to improve their own logic and modify the data.

[0123] In an optional embodiment, the visualization interface is generated by a server-side template engine (Ejs template).

[0124] To summarize, the embodiment of the present invention first obtains data verification conditions configured based on business types in a data verification tool, wherein the data verification conditions include: a verification object, verification logic and a verification method corresponding to the verification object. The corresponding data verification can be configured according to different business types without the need for users to repeatedly configure the internal verification logic, thereby reducing redundancy and providing convenience for developers and improving the reliability of subsequent data verification. Secondly, the embodiment of the present invention generates a corresponding verification logic script based on the verification logic of the verification object. By generating different verification logic scripts, the data verification logic can be made configurable, thereby improving the flexibility of subsequent data verification and thus improving the efficiency of subsequent data verification.

[0125] like Figure 5 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing the data verification method of the present invention.

[0126] The electronic device 1 may include a processor 10 , a memory 11 , and a bus, and may also include a computer program stored in the memory 11 and executable on the processor 10 , such as a data verification program 12 .

[0127] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. The memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, such as a mobile hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 may not only be used to store application software and various types of data installed in the electronic device 1, such as the code of a data verification program, etc., but may also be used to temporarily store data that has been output or is to be output.

[0128] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules (such as data verification programs, etc.) stored in the memory 11, and calls data stored in the memory 11, so as to execute various functions of the electronic device 1 and process data.

[0129] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0130] Figure 5 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 5 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0131] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0132] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.

[0133] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.

[0134] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0135] The data verification program 12 stored in the memory 11 in the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:

[0136] Obtaining data verification conditions configured based on business types in a data verification tool, wherein the data verification conditions include: a verification object, verification logic corresponding to the verification object, and a verification method;

[0137] Generate a verification logic script according to the verification logic of the verification object;

[0138] The data to be verified is obtained, and in response to the verification logic script and the verification method, data verification of the data to be verified is performed to obtain a data verification result.

[0139] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0140] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).

[0141] Furthermore, the computer-usable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.

[0142] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0143] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0144] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0145] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0146] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0147] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0148] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The second and other words are used to indicate names, but not to indicate any particular order.

[0149] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A data verification method, It is characterized in that The method comprises: Obtaining data verification conditions configured based on business types in a data verification tool, wherein the data verification conditions include: a verification object, verification logic corresponding to the verification object, and a verification method; Generate a verification logic script according to the verification logic of the verification object; Acquire the data to be verified, and perform data verification of the data to be verified in response to the verification logic script and the verification method to obtain a data verification result; The step of generating a verification logic script according to the verification logic of the verification object includes: When the verification logic is identified as a common attribute, according to the common attribute, the common attribute verification logic of the verification object is obtained from the verification logic that has been packaged in the data verification tool, the common attribute verification logic is converted into a corresponding first request message, and the first request message is parsed to generate a corresponding verification logic script; When the verification logic is identified as a non-common attribute, searching a preset storage list in the data verification tool for a target character that matches the verification object; If a target character matching the verification object is found, a non-common attribute verification logic matching the target character is obtained from the verification logic packaged in the data verification tool, the non-common attribute verification logic is converted into a corresponding second request message, and the corresponding verification logic script is generated after the second request message is parsed; If the target character matching the verification object is not found, a character with semantics similar to the verification object is searched in a preset storage list in the data verification tool, and the verification logic of the semantically similar characters is displayed on the user interface. The user's modification of the verification logic of the semantically similar characters on the user interface is received, and the modified verification logic is obtained. The modified verification logic is converted into a corresponding third request message, and the corresponding verification logic script is generated after parsing the third request message.

2. The data verification method according to claim 1, It is characterized in that The step of performing data verification of the data to be verified in response to the target verification logic script and the data verification method to obtain a data verification result includes: Identifying an object to be verified in the data to be verified; Calculate the similarity between the object to be verified and the verification object in the verification logic script, and select the verification logic script corresponding to the verification object whose similarity is greater than a preset similarity; The object to be verified is verified according to the verification logic script corresponding to the selected verification object and the data verification method to obtain a data verification result.

3. The data verification method according to claim 2, It is characterized in that The calculating the similarity between the object to be verified and the verification object in the verification logic script includes: The similarity between the object to be verified and the verification object in the verification logic script is calculated using the following method: in, represents the object to be verified, represents the verification object in the verification logic script, Represents the i-th vector value of the object to be verified, The i-th vector value of the verification object in the verification logic script.

4. The data verification method according to claim 1, It is characterized in that After obtaining the data verification result, the method further includes: performing visualization processing on the data verification result to generate a visualization interface, wherein the visualization interface includes one or more of the following combinations: Obtain the verification results to indicate the object to be verified that has problems, and display the cause of the problem and the recommended method of correction on the user interface; According to the verification result, the error types with the highest number of error digits are counted and displayed to the user.

5. A data verification device, used to implement the data verification method according to any one of claims 1 to 4, It is characterized in that The device comprises: An acquisition module is used to acquire data verification conditions configured based on business types in a data verification tool, wherein the data verification conditions include: a verification object, a verification logic and a verification method corresponding to the verification object; A generation module, used to generate a verification logic script according to the verification logic of the verification object; The execution module is used to obtain the data to be verified, and in response to the verification logic script and the verification method, perform data verification of the data to be verified to obtain a data verification result.

6. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data verification method according to any one of claims 1 to 4.

7. The present invention also provides a computer-readable storage medium, comprising a data storage area and a program storage area, wherein the data storage area stores the created data, and the program storage area stores a computer program. in, When the computer program is executed by a processor, the data verification method according to any one of claims 1 to 4 is implemented.