CN111027977A - Data verification method and device and electronic equipment - Google Patents
Data verification method and device and electronic equipment Download PDFInfo
- Publication number
- CN111027977A CN111027977A CN201911159630.2A CN201911159630A CN111027977A CN 111027977 A CN111027977 A CN 111027977A CN 201911159630 A CN201911159630 A CN 201911159630A CN 111027977 A CN111027977 A CN 111027977A
- Authority
- CN
- China
- Prior art keywords
- data
- verification
- function
- data loading
- loading
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000013524 data verification Methods 0.000 title claims abstract description 19
- 230000006870 function Effects 0.000 claims abstract description 237
- 238000012795 verification Methods 0.000 claims abstract description 213
- 238000004590 computer program Methods 0.000 claims description 15
- 230000004044 response Effects 0.000 claims description 12
- 238000007781 pre-processing Methods 0.000 claims description 8
- 238000010200 validation analysis Methods 0.000 claims 3
- 230000003068 static effect Effects 0.000 abstract description 8
- 238000010586 diagram Methods 0.000 description 12
- 238000012545 processing Methods 0.000 description 7
- 238000013502 data validation Methods 0.000 description 6
- 238000011161 development Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000007493 shaping process Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Computer Security & Cryptography (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Storage Device Security (AREA)
Abstract
The embodiment of the invention discloses a data verification method, a data verification device and electronic equipment, which are used for solving the problems of low verification efficiency, frequent updating of static codes, time consumption and labor consumption in the prior art. According to the embodiment of the invention, corresponding verified data and/or data for verification are obtained according to each data loading function in at least one data loading function and are loaded into a memory; and comparing the verified data and/or the data for verification according to each verification function in the at least one verification function to obtain a comparison result. By the method, the corresponding at least one data loading function and at least one verification function are configured in advance for each service scene, data verification is carried out without frequently updating the static codes, consumption of human resources is reduced, time consumption is reduced, the at least one data loading function and the at least one verification function can be processed in parallel, and verification efficiency is improved.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a data verification method and device and electronic equipment.
Background
With the continuous development and the gradual complexity of transaction system services, more and more service scenes are involved, specifically, the service scenes comprise request quotation sending, request quotation replying, request quotation transaction confirmation, request quotation canceling and the like, and transaction basic data needs to be verified in each service scene, so that more and more verification rules are provided, the involved verification items are increased, and strict control on data such as bonds, market parameters, users, organizations, authorities and the like can be realized through the verification of the transaction basic data so as to ensure the correctness, the safety and the integrity of transactions.
In the prior art, each service scene needs to verify a plurality of different types of verification items, and aiming at the situation that the requirements of a newly added service scene or an existing service scene are changed, the verification logic is added by adjusting a code each time, so that the efficiency is low, the development cost is increased, the expansion of the service is not facilitated, and the requirement of quickly responding to the service cannot be met.
In summary, how to improve the verification efficiency and reduce the frequent updates to the static codes is a problem to be solved at present.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data verification method, an apparatus, and an electronic device, which are used to solve the problems in the prior art that the verification efficiency is low, the static code needs to be frequently updated, and time and labor are consumed.
In a first aspect, an embodiment of the present invention provides a data verification method, where the method includes: acquiring corresponding verified data and/or data for verification according to each data loading function in at least one data loading function, wherein the at least one data loading function is configured in advance according to a service scene, and the at least one data loading function is configured in series or in parallel; loading the verified data and/or the data for verification into a memory or loading the data for verification into the memory after preprocessing; and comparing the verified data and/or the data for verification corresponding to each verification function in at least one verification function to obtain a comparison result.
Preferably, the method further comprises: acquiring a service scene identifier; and configuring the at least one data loading function and the at least one verification function corresponding to the service scene identification according to the service scene identification.
Preferably, the obtaining, according to each of the at least one data loading function, corresponding verified data and/or data for verification specifically includes: responding to the at least one data loading function as a data loading function which is not in incidence relation and is in parallel configuration, and parallelly acquiring corresponding data according to each data loading function in the at least one data loading function; and responding to the at least one data loading function as a serially configured data loading function with an incidence relation, and serially acquiring corresponding data according to each data loading function in the at least one data loading function.
Preferably, the comparing the verified data and/or the data for verification according to each verification function of the at least one verification function to obtain a comparison result specifically includes: in response to that the at least one verification function is a verification function without an association relationship, performing parallel comparison according to the verified data and/or data for verification corresponding to each verification function in the at least one verification function, and determining a parallel comparison result; and in response to that the at least one verification function is a verification function with an incidence relation, performing serial comparison according to the verified data and/or data for verification corresponding to each verification function in the at least one verification function, and determining a serial comparison result.
Preferably, the configuring, according to the service scenario identifier, the at least one data loading function and the at least one verification function corresponding to the service scenario identifier specifically includes: acquiring the at least one data loading function and the at least one verification function in a verification function library according to a service scene; and configuring the obtained corresponding at least one data loading function and the obtained at least one verification function as the data loading function and the verification function corresponding to the service scene identification.
Preferably, the verification function includes a general alignment function and a non-general verification function.
Preferably, the data loading function is a pre-function of the verification function.
In a second aspect, an embodiment of the present invention provides an apparatus for data verification, where the apparatus includes: an obtaining unit, configured to obtain corresponding verified data and/or data used for verification according to each data loading function in at least one data loading function, where the at least one data loading function is preconfigured according to a service scenario, and the at least one data loading function is configured in series or in parallel; the storage unit is used for loading the verified data and/or the data for verification into a memory or loading the data into the memory after preprocessing; and the comparison unit is used for comparing the verified data and/or the data for verification according to each verification function in at least one verification function to obtain a comparison result.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium on which computer program instructions are stored, which when executed by a processor implement the method according to the first aspect or any one of the possibilities of the first aspect.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, the memory being configured to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to the first aspect or any one of the possibilities of the first aspect.
The embodiment of the invention obtains corresponding verified data and/or data for verification according to each data loading function in at least one data loading function, wherein the at least one data loading function is configured in advance according to a service scene, and the at least one data loading function is configured in series or in parallel; loading the verified data and/or the data for verification into a memory or loading the data for verification into the memory after preprocessing; and comparing the verified data and/or the data for verification according to each verification function in at least one verification function to obtain a comparison result. By the method, the corresponding at least one data loading function and at least one verification function are configured in advance for each service scene, data verification is carried out without frequently updating the static codes, consumption of human resources is reduced, time consumption is reduced, the at least one data loading function and the at least one verification function can be processed in parallel, and verification efficiency is improved.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent from the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
FIG. 1 is a flow chart of a method of data validation according to an embodiment of the present invention;
FIG. 2 is a flow diagram of another method of data validation according to an embodiment of the present invention;
FIG. 3 is a flow chart of yet another method of data validation according to an embodiment of the present invention;
FIG. 4 is a flow chart of yet another method of data validation according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an apparatus for data verification according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an alternative data verification apparatus according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an electronic device of an embodiment of the invention.
Detailed Description
The present disclosure is described below based on examples, but the present disclosure is not limited to only these examples. In the following detailed description of the present disclosure, certain specific details are set forth. It will be apparent to those skilled in the art that the present disclosure may be practiced without these specific details. Well-known methods, procedures, components and circuits have not been described in detail so as not to obscure the present disclosure.
Further, those of ordinary skill in the art will appreciate that the drawings provided herein are for illustrative purposes and are not necessarily drawn to scale.
Unless the context clearly requires otherwise, throughout this specification, the words "comprise", "comprising", and the like are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, what is meant is "including, but not limited to".
In the description of the present disclosure, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present disclosure, "a plurality" means two or more unless otherwise specified.
In the prior art, for each service scenario, a plurality of different types of verification items need to be verified, specifically, static coding is performed according to fixed verification logic, and verification is performed one by one according to the fixed verification logic, for example, assuming that a certain scenario needs to verify 10 verification items, which are respectively verification item 1, verification item 2, verification item 3, verification item 4, verification item 5, verification item 6, verification item 7, verification item 8, verification item 9, and verification item 10, static coding is written according to the sequence from verification item 1 to verification item 10, namely, verification of verification item 2 can be performed only after verification of verification item 1 is completed, verification of verification item 3 can be performed only after verification of verification item 3 is completed, and so on, since verification must be performed in sequence, the verification efficiency is low, and each verification item does not abstract underlying general comparison logic, the coupling degree is too high in the internal realization; when the verification logic needs to be changed, the code needs to be adjusted, so that the development cost is increased, recompilation and deployment are needed after the modification is completed, the period is long, and time and labor are consumed. Therefore, how to improve the verification efficiency, reduce frequent updates to the static code, improve the expandability and the development efficiency of the verification function, reduce the development cost, and improve the response speed to the service change is a problem to be solved at present.
FIG. 1 is a flow chart of a method of data validation according to an embodiment of the present invention. As shown in fig. 1, the method specifically comprises the following steps:
step S100, obtaining corresponding verified data and/or data for verification according to each data loading function in at least one data loading function, where the at least one data loading function is configured in advance according to a service scenario, and the at least one data loading function is configured in series or in parallel.
Specifically, in response to that the at least one data loading function is a data loading function which is configured in parallel and does not have an association relationship, obtaining corresponding data in parallel according to each data loading function in the at least one data loading function; and/or, in response to the at least one data loading function being a serially configured data loading function having an association relationship, serially acquiring corresponding data according to each of the at least one data loading function.
In the embodiment of the present invention, the data loading function is equivalent to a series of Application Program Interfaces (APIs) exposed to an Application end of a transaction system, and is configured to obtain transaction basic data required for transaction verification, for example, the data loading function may be a data loading function corresponding to an indicative offer entry service scenario, where different data loading functions are used to load different data, and specifically, the data loading functions in the indicative offer entry service scenario are respectively used to "load token data", or "load transaction period data", or "load non-public oriented debt financing tool (PPN) relationship data". Since there is no dependency between the three data loading functions that implement the above-described "load bond data of dead account", "load transaction period data", and "load PPN relationship data", it can be executed concurrently.
Optionally, in the embodiment of the present invention, a data loading function for "loading operation type information of a transaction period" is further required in the indicative offer entry service scenario, and since there is a dependency relationship between data loaded by the data loading function for implementing "loading transaction period data" and data required to be loaded by the data loading function for implementing "loading operation type information of a transaction period", the data loading function for implementing "loading transaction period data" needs to be executed first, and then the data loading function for implementing "loading operation type information of a transaction period" needs to be executed, so that serial execution is required.
In the embodiment of the present invention, the data loading function may obtain data from a database or may obtain data from a message, which is not limited in the embodiment of the present invention.
Step S101, loading the verified data and/or the data for verification into a memory or loading the data into the memory after preprocessing.
Step S102, comparing the verified data and/or the data for verification according to each verification function in at least one verification function, and obtaining a comparison result.
Specifically, in response to that the at least one verification function is a verification function without an association relationship, performing parallel comparison according to the verified data corresponding to each verification function in the at least one verification function, and determining a parallel comparison result; and/or in response to that the at least one verification function is a serial verification function with an incidence relation, performing serial comparison according to the verified data corresponding to each of the at least two verification functions, and determining a serial comparison result.
Optionally, in the parallel comparison or serial comparison process, if one function comparison fails, the comparison result and the corresponding error code information are directly returned.
In the embodiment of the invention, the data are divided into verified data and/or data for verification, the verified data are compared through a verification function, the verification function comprises a general comparison function and a non-general verification function, the data for verification are fixed values in a configuration file or stored preset values, a plurality of verification functions are supposed to be included in an indicative offer entry service scene and are respectively used for realizing 'bond stop plate verification', or 'operation type rule verification', or 'PPN relation verification', and the verification functions for realizing 'bond stop plate verification', 'operation type rule verification', and 'PPN relation verification' have no dependency relationship and can be executed concurrently; if any verification function fails to verify, the function verification error code is returned, and if all verification passes, the request is continuously transmitted to the next service processing module of the application terminal for further processing. Optionally, the general alignment function may implement the following types of alignments, including: numerical comparison, specifically including shaping, long integer, or floating point data comparison; comparing dates; comparing the numerical value precision; and comparing numerical value ranges.
In the embodiment of the present invention, the comparison result may be a return value, and is used to feed back the error code and the error information to the client.
The following describes the data verification method specifically by using a specific embodiment, for example, in an indicative offer entry service scenario, the following verification rules are implemented, specifically: 1) the operation types supported in the transaction period can be traded; 2) when quotation is sent, only non-stop bonds can be selected; 3) when the oriented bond is sent, only the transaction account within the range of the PPN oriented bond investor can be selected for transaction; therefore, it is necessary to implement bond stop verification, operation type rule verification, and "PPN relationship verification" as specifically shown in fig. 2:
the configuration-based transaction verification method confirms that a service scene is an indicative quotation entry service scene according to a scene Identification (ID), then parallelly calls a loading transaction period data function, a loading transaction period data function and a PPN relation data function according to a calling sequence, and because the loading transaction period operation type information data function depends on the data obtained by the loading transaction period data function, the two data loading functions have a dependency relationship and need serial calling, then parallelly calls verification functions of the loading transaction period data function, the loading transaction type rule verification function and the PPN relation verification function, and finally returns a verification result.
In this embodiment of the present invention, before step S100, the method for data verification further includes the following steps, and specifically, fig. 3 is a flowchart of a method for data verification according to another embodiment of the present invention, specifically, the following steps are included:
and step S103, acquiring a service scene identifier.
Specifically, the service scenario Identifier (ID) is used to identify a service scenario, for example, the ID of the indicative offer entry is 123, and the ID may also be other numbers or character strings, and the embodiment of the present invention does not limit the ID.
Step S104, configuring the at least one data loading function and the at least one verification function corresponding to the service scene identification according to the service scene identification.
Specifically, the at least one data loading function and the at least one verification function are obtained in a verification function library according to a service scene; and configuring the obtained corresponding at least one data loading function and the obtained at least one verification function as the data loading function and the verification function corresponding to the service scene identification.
In the embodiment of the invention, the data loading function is a pre-function of the verification function, so that the function of putting part of data depended by the verification function into a memory in advance for standby is realized. Assuming that a corresponding data loading function and a verification function need to be configured in advance according to a service scenario identifier in a service scenario of indicative offer entry, specifically, at least one data loading function may be configured for the service scenario, for example, "load card-holding bond data", "load transaction period data", and "load PPN relationship data", and at least one verification function may also be configured for the service scenario, for example, "bond card-holding verification", "operation type rule verification", and "PPN relationship verification".
In the embodiment of the present invention, the data verification method is specifically described below by using a specific embodiment, which is specifically shown in fig. 4:
aiming at service scenes of request quotation sending, request reply, indicative quotation sending and the like of a quotation driving transaction core (QDM), when messages transmitted from a client side, such as the request quotation sending, the request reply, the indicative quotation sending and the like, pass through a QDM preprocessing verification control module, the module can complete verification before transaction, and the verification comprises a plurality of verification items, and the method comprises the following steps: whether transaction time interval verification, operable type verification of transaction time intervals, total clearing prohibited time verification, net clearing prohibited time verification, bond stop verification, the qualification verification of the net clearing business of the own transaction account and whether the own is verified in the range of directed investors exist in operation or not, firstly, data loading functions corresponding to the verification items need to be configured in advance, corresponding verification functions are obtained in a configuration-based transaction verification method and comprise a universal comparison function and a non-universal comparison function, and the universal comparison function comprises necessary filling area verification, numerical value comparison, character string comparison, date comparison, precision verification and range verification; the non-universal comparison function comprises the steps of calculating the trading day of the trading control field according to the trading control field parameter configuration of the trading day, calculating the number of requested quotation reply mechanisms, verifying the future trading by command entrustment and the like, and then configuring the verification functions, wherein the universal comparison function can be reused; after the corresponding data loading function and the comparison function are configured for different verification items, data required for verification are obtained from messages transmitted from a database or a client through the data loading function and stored in the memory, and the verification data prepared in the memory are compared according to the set comparison function.
Fig. 5 is a schematic diagram of a data verification apparatus according to an embodiment of the present invention. As shown in fig. 5, the apparatus of the present embodiment includes an acquisition unit 51, a storage unit 52, and a comparison unit 53.
The acquiring unit 51 is configured to acquire corresponding verified data and/or data used for verification according to each data loading function in at least one data loading function, where the at least one data loading function is preconfigured according to a service scenario, and the at least one data loading function is configured in series or in parallel; the storage unit 52 is configured to load the verified data and/or the data for verification into a memory or load the data into the memory after preprocessing; a comparing unit 53, configured to compare the verified data and/or the data for verification according to each verification function in at least one verification function, so as to obtain a comparison result. Further, the device also comprises a receiving unit, which is used for receiving the service message containing any service scene related data information; and the configuration unit is used for configuring the corresponding at least one data loading function and the at least one verification function according to the service scene identification.
Further, the obtaining unit 51 is specifically configured to: responding to the at least one data loading function as a data loading function without incidence relation, and parallelly acquiring corresponding data according to each data loading function in the at least one data loading function; and/or, in response to the at least one data loading function being a data loading function having an association relationship, serially acquiring corresponding data according to each of the at least one data loading function.
Further, the comparing unit 52 is specifically configured to: in response to that the at least one verification function is a verification function without an incidence relation, performing parallel comparison according to the verified data corresponding to each verification function in the at least one verification function, and determining a parallel comparison result; and/or, in response to the at least one verification function being a verification function with an association relationship, performing serial comparison according to the verified data corresponding to each verification function in the at least one verification function, and determining a serial comparison result; in the process of parallel comparison or serial comparison, if one function comparison fails, the comparison result and the corresponding error code information are directly returned.
Further, the configuration unit is specifically configured to: selecting or implementing the at least one data loading function meeting the requirement and selecting the at least one verification function in a verification function library provided in the configuration-based transaction verification method according to the service scene identification; and configuring the obtained corresponding at least one data loading function and the obtained at least one verification function as the data loading function and the verification function corresponding to the service scene.
Further, the verification function includes a general comparison function and a non-general verification function.
Further, the data loading function is a pre-function of the verification function.
In the embodiment of the present invention, fig. 6 is a transaction system, which includes two parts, namely a client and a server, where the client supports interaction with a user and converts a user operation into a corresponding request; the server side comprises a verification method based on configuration, the internal interface of the verification method is reasonable in split granularity, and flexible configuration can be carried out when a service scene is newly added or an existing service scene is adjusted.
Fig. 7 is a schematic diagram of an electronic device of an embodiment of the invention. The electronic device shown in fig. 7 is a data validation apparatus, which comprises a general-purpose computer hardware structure, which includes at least a processor 71 and a memory 72. The processor 71 and the memory 72 are connected by a bus 73. The memory 72 is adapted to store instructions or programs executable by the processor 71. The processor 71 may be a stand-alone microprocessor or a collection of one or more microprocessors. Thus, the processor 71 implements the processing of data and the control of other devices by executing instructions stored by the memory 72 to perform the method flows of embodiments of the present invention as described above. The bus 73 connects the above-described components together, and also connects the above-described components to a display controller 74 and a display device and an input/output (I/O) device 75. Input/output (I/O) devices 75 may be a mouse, keyboard, modem, network interface, touch input device, motion sensing input device, printer, and other devices known in the art. Typically, the input/output devices 75 are connected to the system through input/output (I/O) controllers 76.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or computer program product. Accordingly, various aspects of embodiments of the invention may take the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a "circuit," module "or" system. Furthermore, various aspects of embodiments of the invention may take the form of: a computer program product embodied in one or more computer readable media having computer readable program code embodied thereon.
Any combination of one or more computer-readable media may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of embodiments of the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to: electromagnetic, optical, or any suitable combination thereof. The computer readable signal medium may be any of the following computer readable media: is not a computer readable storage medium and may communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of embodiments of the present invention may be written in any combination of one or more programming languages, including: object oriented programming languages such as Java, Smalltalk, C + +, and the like; and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package; executing in part on a user computer and in part on a remote computer; or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention described above describe various aspects of embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A method of data verification, the method comprising:
acquiring corresponding verified data and/or data for verification according to each data loading function in at least one data loading function, wherein the at least one data loading function is configured in advance according to a service scene, and the at least one data loading function is configured in series or in parallel;
loading the verified data and/or the data for verification into a memory or loading the data for verification into the memory after preprocessing;
and comparing the verified data and/or the data for verification according to each verification function in at least one verification function to obtain a comparison result.
2. The method of claim 1, further comprising: acquiring a service scene identifier;
and configuring the at least one data loading function and the at least one verification function corresponding to the service scene identification according to the service scene identification.
3. The method according to claim 1, wherein the obtaining corresponding verified data and/or data for verification according to each of the at least one data loading function specifically comprises:
responding to the at least one data loading function as a data loading function which is not in incidence relation and is in parallel configuration, and parallelly acquiring corresponding data according to each data loading function in the at least one data loading function;
and responding to the at least one data loading function as a serially configured data loading function with an incidence relation, and serially acquiring corresponding data according to each data loading function in the at least one data loading function.
4. The method according to claim 1, wherein the comparing the verified data and/or the data for verification according to each of the at least one verification function to obtain the comparison result specifically comprises:
in response to that the at least one verification function is a verification function without an association relationship, performing parallel comparison according to the verified data and/or data for verification corresponding to each verification function in the at least one verification function, and determining a comparison result;
and in response to that the at least one verification function is a verification function with an incidence relation, performing serial comparison according to the verified data and/or data for verification corresponding to each verification function in the at least one verification function, and determining a comparison result.
5. The method according to claim 2, wherein the configuring, according to the service scenario identifier, the at least one data loading function and the at least one verification function corresponding to the service scenario identifier specifically includes:
acquiring the at least one data loading function and the at least one verification function in a verification function library according to a service scene;
and configuring the obtained corresponding at least one data loading function and the obtained at least one verification function as the data loading function and the verification function corresponding to the service scene identification.
6. The method of claim 1, wherein the validation function comprises a generic alignment function and a non-generic validation function.
7. The method of claim 1, wherein the data loading function is a pre-function of the validation function.
8. An apparatus for data verification, the apparatus comprising:
an obtaining unit, configured to obtain corresponding verified data and/or data used for verification according to each data loading function in at least one data loading function, where the at least one data loading function is preconfigured according to a service scenario, and the at least one data loading function is configured in series or in parallel;
the storage unit is used for loading the verified data and/or the data for verification into a memory or loading the data into the memory after preprocessing;
and the comparison unit is used for comparing the verified data and/or the data for verification according to each verification function in at least one verification function to obtain a comparison result.
9. An electronic device comprising a memory and a processor, wherein the memory is configured to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method of any of claims 1-7.
10. A computer-readable storage medium on which computer program instructions are stored, which computer program instructions, when executed by a processor, implement the method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911159630.2A CN111027977A (en) | 2019-11-22 | 2019-11-22 | Data verification method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911159630.2A CN111027977A (en) | 2019-11-22 | 2019-11-22 | Data verification method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111027977A true CN111027977A (en) | 2020-04-17 |
Family
ID=70203315
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911159630.2A Pending CN111027977A (en) | 2019-11-22 | 2019-11-22 | Data verification method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111027977A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112036890A (en) * | 2020-09-01 | 2020-12-04 | 中国银行股份有限公司 | Client identity authentication method and device |
CN112631916A (en) * | 2020-12-24 | 2021-04-09 | 摩拜(北京)信息技术有限公司 | Data verification method and device and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461863A (en) * | 2014-10-29 | 2015-03-25 | 中国建设银行股份有限公司 | Service system testing method, device and system |
US20180240121A1 (en) * | 2015-08-10 | 2018-08-23 | Id Global Solutions Corporation | A method and system for transaction authorization basd on a parallel autonomous channel multi-user and multi-factor authentication |
CN108479061A (en) * | 2018-03-29 | 2018-09-04 | 腾讯科技(深圳)有限公司 | Operation data method of calibration, device, storage medium and the server of application |
CN109558134A (en) * | 2017-09-27 | 2019-04-02 | 北京京东尚科信息技术有限公司 | The method and apparatus of business datum verification |
CN110390524A (en) * | 2019-07-31 | 2019-10-29 | 中国工商银行股份有限公司 | Work data processing method, device, electronic equipment and storage medium in block chain |
-
2019
- 2019-11-22 CN CN201911159630.2A patent/CN111027977A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461863A (en) * | 2014-10-29 | 2015-03-25 | 中国建设银行股份有限公司 | Service system testing method, device and system |
US20180240121A1 (en) * | 2015-08-10 | 2018-08-23 | Id Global Solutions Corporation | A method and system for transaction authorization basd on a parallel autonomous channel multi-user and multi-factor authentication |
CN109558134A (en) * | 2017-09-27 | 2019-04-02 | 北京京东尚科信息技术有限公司 | The method and apparatus of business datum verification |
CN108479061A (en) * | 2018-03-29 | 2018-09-04 | 腾讯科技(深圳)有限公司 | Operation data method of calibration, device, storage medium and the server of application |
CN110390524A (en) * | 2019-07-31 | 2019-10-29 | 中国工商银行股份有限公司 | Work data processing method, device, electronic equipment and storage medium in block chain |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112036890A (en) * | 2020-09-01 | 2020-12-04 | 中国银行股份有限公司 | Client identity authentication method and device |
CN112036890B (en) * | 2020-09-01 | 2024-04-16 | 中国银行股份有限公司 | Customer identity authentication method and device |
CN112631916A (en) * | 2020-12-24 | 2021-04-09 | 摩拜(北京)信息技术有限公司 | Data verification method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20020046146A1 (en) | Apparatus, methods and articles of manufacture for constructing and executing computerized transaction processes and programs | |
CN106529229B (en) | The treating method and apparatus of permissions data | |
CN111027977A (en) | Data verification method and device and electronic equipment | |
CN110730097A (en) | Internet technology architecture construction method and device, electronic equipment and medium | |
CN111367531B (en) | Code processing method and device | |
US10528965B2 (en) | Bundling application programming interfaces | |
CN112860662A (en) | Data blood relationship establishing method and device, computer equipment and storage medium | |
CN115860451A (en) | Flow operation method and device, electronic equipment and storage medium | |
US20210026616A1 (en) | Automated bucket policy management arrangements | |
CN109741009A (en) | A kind of expense reimbursement management method and device | |
CN117808514B (en) | Intelligent decision-based source searching realization method, device, equipment and storage medium | |
CN109254791A (en) | Develop management method, computer readable storage medium and the terminal device of data | |
CN110674491B (en) | Method and device for real-time evidence obtaining of android application and electronic equipment | |
CN107924536B (en) | Method for updating electronic requests, computer and non-transitory computer-readable storage medium | |
KR102529138B1 (en) | Library-based project management method, device and system by process | |
EP3285179A1 (en) | Data transfer method and device | |
US10762461B2 (en) | Automatic comparison of enterprise profile analytics | |
CN110263551A (en) | A kind of test method and device | |
CN116308826A (en) | Insurance product online method, apparatus, equipment and storage medium | |
CN114170006A (en) | Information data acquisition method, device, equipment and medium based on state machine | |
CN111506784B (en) | Asset creditor matching method, device, computer equipment and storage medium | |
CN101303751B (en) | Alternating processing method, system, and computer program product | |
CN111124478A (en) | Version management method and device | |
CN115239348B (en) | Digital currency system for processing joint association request | |
CN111951076B (en) | Order payment method and device, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200417 |
|
RJ01 | Rejection of invention patent application after publication |