CN110020381A - Method of calibration, device, equipment and computer storage medium based on configuration file - Google Patents

Method of calibration, device, equipment and computer storage medium based on configuration file Download PDF

Info

Publication number
CN110020381A
CN110020381A CN201810155017.2A CN201810155017A CN110020381A CN 110020381 A CN110020381 A CN 110020381A CN 201810155017 A CN201810155017 A CN 201810155017A CN 110020381 A CN110020381 A CN 110020381A
Authority
CN
China
Prior art keywords
information
verified
configuration file
verification
verification rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810155017.2A
Other languages
Chinese (zh)
Inventor
李小军
邓勇航
叶嘉骏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201810155017.2A priority Critical patent/CN110020381A/en
Publication of CN110020381A publication Critical patent/CN110020381A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The invention discloses a kind of methods of calibration based on configuration file, comprising the following steps: server receives the verification request that user terminal is sent, and obtains the information to be verified for including in the verification request;According to the default verification rule base of information inquiry to be verified, to obtain the corresponding verification rule of information to be verified;The verification rule is generated into configuration file, and executes the configuration file, to verify the information to be verified;The check results that information checking to be verified generates are obtained, and the check results are sent to user terminal.The invention also discloses a kind of calibration equipment based on configuration file, equipment and computer storage mediums.Server forms the configuration file for verifying information to be verified according to the type or verification scene, configuration of information to be verified in the present invention, improves the efficiency of verification and the flexibility of verification, reduces the complexity of the corresponding code of verification rule, reduce development cost.

Description

Method of calibration, device, equipment and computer storage medium based on configuration file
Technical field
The present invention relates to data information verify field, more particularly to the method for calibration based on configuration file, device, equipment and Computer storage medium.
Background technique
With the development of communication technology, different network electric business, application software or operation system are the industry that user provides Service type is more and more.In the business of many types, user must input corresponding on the display page that server provides Data, server can just execute corresponding business processing.
For example, server can provide a user a Webpage, and user is in network when user logs on to a website Page corresponding position inputs relevant information, and server executes correspondence in Webpage corresponding position input relevant information according to user Operation is surveyed, but in actual operation in operating process, the case where there are user information input errors, thus server needs The information of user's input is verified, for information checking method primarily now there are two types of implementation: one is services The information that user inputs is sent to contact staff by device, carries out information checking by contact staff;Another kind is to set in the server Verification rule corresponding with information is electronically entered is set, is verified for the information of user's input, the school that both methods is all deposited It is lower to test efficiency, while writing corresponding verification rule, although saving human cost, verification rule for check information Creation be also more troublesome.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of method of calibration based on configuration file, device, equipment and computers Storage medium, it is intended to improve the efficiency of verification and the flexibility of verification, reduce the complexity of the corresponding code of verification rule, reduction is opened Send out cost.
To achieve the above object, the present invention provides a kind of method of calibration based on configuration file, described to be based on configuration file Method of calibration the following steps are included:
The verification request that user terminal is sent is received, the information to be verified for including in the verification request is obtained;
According to the default verification rule base of information inquiry to be verified, to obtain the corresponding verification rule of information to be verified;
The verification rule is generated into configuration file, and executes the configuration file, to verify the information to be verified;
The check results that information checking to be verified generates are obtained, and the check results are sent to user terminal.
Optionally, described according to the default verification rule base of information inquiry to be verified, it is corresponding to obtain information to be verified Verification rule step, comprising:
The information to be verified is classified by information type and/or verification scene, according to the classification of information to be verified, It inquires preset verification rule base and obtains the corresponding verification rule of information to be verified;
The verification rule is arranged by the sequence and logical relation of information to be verified, to generate information pair to be verified The configuration file answered.
Optionally, described that verification rule is generated into configuration file, and execute the configuration file, with verify it is described to Before the step of check information, comprising:
The affiliated document to be verified for obtaining the information to be verified, judges whether the format of the document to be verified meets Configuration file executes format;
If the format of the document to be verified does not meet configuration file and executes format, the document to be verified is subjected to lattice Formula conversion, so that the configuration file that meets of the document to be verified executes format.
Optionally, described that verification rule is generated into configuration file, and execute the configuration file, with verify it is described to The step of check information includes:
The location information and verification rule input are preset and execute template by the location information for determining the information to be verified Middle generation configuration file;
Examine the input format of information to be verified whether correct according to the format check rule in configuration file;
If the input format of the information to be verified is correct, the form verification of the information to be verified passes through and determines school Testing result is to pass through.
Optionally, described that verification rule is generated into configuration file, and execute the configuration file, with verify it is described to The step of check information includes:
The location information for determining the information to be verified establishes being associated between the location information and verification rule System, and incidence relation is inputted into default execute in template and generates configuration file;
According to the logic verify rule in configuration file, to there are the information to be verified of logical relation to carry out logical operation, It is whether correct to verify the logical relation between the information to be verified;
If the logical relation between the information to be verified is correct, the essence verification of the information to be verified passes through and sentences Determining check results is to pass through.
Optionally, the check results for obtaining information checking to be verified and generating, and the check results are sent After the step of to user terminal, comprising:
The feedback information that sends based on the check results of user terminal is received, and obtains include in the feedback information new Information to be verified;
Mark the new information to be verified, to verify the new information to be verified based on configuration file, with carry out to The secondary verification of check information.
Optionally, the check results for obtaining information checking to be verified and generating, and the check results are sent After the step of to user terminal, further includes:
The check results are obtained and record, to count the percent of pass of the corresponding verification rule of each check results;
The percent of pass of the verification rule is compared with threshold value;
If the percent of pass of the verification rule is lower than threshold value, updated in default verification rule base based on the check results Verification rule, to optimize the verification rule in default verification rule base.
In addition, to achieve the above object, it is described to be based on matching the present invention also provides a kind of calibration equipment based on configuration file The calibration equipment for setting file includes:
Receive obtain module, for receive user terminal transmission verification request, obtain it is described verification request in include to Check information;
Inquiry obtains module, for presetting verification rule base according to the information inquiry to be verified, to obtain letter to be verified Cease corresponding verification rule;
Correction verification module is configured, for the verification rule to be generated configuration file, and the configuration file is executed, with verification The information to be verified;
Sending module, the check results generated for obtaining information checking to be verified are obtained, and the verification is tied Fruit is sent to user terminal.
In addition, to achieve the above object, the present invention also provides a kind of calibration equipments based on configuration file;
The calibration equipment based on configuration file includes: memory, processor and is stored on the memory and can The checking routine based on configuration file run on the processor, in which:
It is described to realize as above-mentioned based on configuration file when being executed based on the checking routine of configuration file by the processor Method of calibration the step of.
In addition, to achieve the above object, the present invention also provides a kind of computer storage mediums;
The checking routine based on configuration file, the school based on configuration file are stored in the computer storage medium It tests and realizes when program is executed by processor such as the step of the above-mentioned method of calibration based on configuration file.
A kind of method of calibration based on configuration file, device, equipment and the computer storage that the embodiment of the present invention proposes are situated between Matter.It receives the verification that user terminal is sent by server in the present invention to request, server, which obtains in the verification request, includes Information to be verified;According to the default verification rule base of information inquiry to be verified, to obtain the corresponding verification of information to be verified Rule;The verification rule is generated into configuration file, and executes the configuration file, to verify the information to be verified;It obtains The check results that information checking to be verified generates, and the check results are sent to user terminal.It realizes based on verification Information generates corresponding verification configuration file, improves the efficiency of verification and the flexibility of verification, regular by pre-defined verification, When detecting verification request, corresponding information to be tested is obtained, and configure the corresponding configuration file of information to be verified and carry out letter Breath verification realizes that complex scene verifies iteratively faster, reduces the complexity of the corresponding code of verification rule, reduces development cost, keep away Exempt from the verification that present verification all can only be fixed to object, cannot flexibly adapt to the dynamic check under various environment.
Detailed description of the invention
Fig. 1 is the apparatus structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is that the present invention is based on the flow diagrams of the method for calibration first embodiment of configuration file;
The refinement flow diagram that Fig. 3 is the step S30 of the method for calibration based on configuration file in Fig. 2;
Fig. 4 is another refinement flow diagram of the step S30 of the method for calibration based on configuration file in Fig. 2;
Fig. 5 is that the present invention is based on the flow diagrams of the method for calibration second embodiment of configuration file;
Fig. 6 is that the present invention is based on the functional block diagrams of one embodiment of calibration equipment of configuration file.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Information to be verified includes: information to be verified etc. in information to be verified and electronic document in webpage in the prior art, no The method of calibration that same information to be verified uses is different, for example, detecting use in webpage for the information to be verified in webpage When the information of family input is completed, webpage executes corresponding verification rule and is verified, such method of calibration in webpage development, Need to be written verification rule in code, each web page requires write-in code information, and web document code is more;For electricity Information to be verified in subdocument, it is regular using pre-set verification when verification, that is, each electronic document will write corresponding school Test rule;The heavy workload of developer, code not enough optimize.
Whole verification rules is pre-set in the embodiment of the present invention, and verification rule is subjected to classification and generates verification rule Then library obtains the information to be verified for including in the verification request in the verification request for receiving user terminal transmission;According to it is described to The default verification rule base of check information inquiry, to obtain the corresponding verification rule of information to be verified;The verification rule is generated Configuration file, and the configuration file is executed, to verify the information to be verified;Obtain what information checking to be verified generated Check results, and the check results are sent to user terminal.Developer does not need to write verification rule at information to be verified Then, the workload of developer is smaller, and code more optimizes, and server can need the acquisition of information verified will be pre- according to user If verifying the verification rule in rule base generates configuration file, and is automatically verified based on configuration file, to realize The efficiency of verification and the flexibility of verification are improved, the complexity of the corresponding code of verification rule is reduced, reduces the purpose of development cost.
As shown in Figure 1, Fig. 1 is the server architecture schematic diagram for the hardware running environment that the embodiment of the present invention is related to. Server of the embodiment of the present invention, such as the AR/VR equipment with network savvy, intelligent sound box, autonomous driving vehicle, PC, smart phone, The equipment having a display function such as tablet computer, E-book reader, portable computer.
As shown in Figure 1, the server may include: processor 1001, such as CPU, network interface 1004, user interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between these components. User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include that the wired of standard connects Mouth, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor 1001 storage device.
Optionally, server can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, sound Frequency circuit, WiFi module;Input unit, than display screen, touch screen;Network interface can be blue in blanking wireless interface in addition to WiFi Tooth, probe, 3G/4G/5G internet base station equipment etc..Wherein, sensor such as optical sensor, motion sensor and other biographies Sensor.It, can be with it will be understood by those skilled in the art that server architecture shown in Fig. 1 does not constitute the restriction to server Including perhaps combining certain components or different component layouts than illustrating more or fewer components.
As shown in Figure 1, the computer software product, which is stored in a storage medium, (storage medium: is called computer storage Medium, computer media, readable medium, readable storage medium storing program for executing, computer readable storage medium are directly medium etc., such as ROM/RAM, magnetic disk, CD) in, including some instructions are used so that server (it can be mobile phone, computer, server, Air conditioner or the network equipment etc.) method described in each embodiment of the present invention is executed, as a kind of computer storage medium It may include operating system, network communication module, Subscriber Interface Module SIM and the verification based on configuration file in memory 1005 Application program.
In server shown in Fig. 1, network interface 1004 be mainly used for connect background data base, with background data base into Row data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data communication with client;And it handles Device 1001 can be used for calling the verification Application program based on configuration file stored in memory 1005, and execute based on configuration The step of method of calibration of file.
The present invention is based in the first embodiment of the method for calibration of configuration file, the present invention is specifically included:
The verification request that user terminal is sent is received, the information to be verified for including in the verification request is obtained;
According to the default verification rule base of information inquiry to be verified, to obtain the corresponding verification rule of information to be verified;
The verification rule is generated into configuration file, and executes the configuration file, to verify the information to be verified;
The check results that information checking to be verified generates are obtained, and the check results are sent to user terminal.
It is executed on the basis of the present embodiment is in default verification rule base, wherein default verification rule base refers to pre- The verification rule of the various information first defined saves the verification rule base formed, presets in verification rule base and advises the verification of definition Then classify according to different classifications, so that server can carry out the classification of verification rule based on the classification of check information, The classification standard of verification rule can be arranged according to concrete scene, such as:
Mode one: being classified based on verification scene by rule is verified, and forms verification rule base, specifically: verification is advised Then it is divided into: A class and optional input B class must be inputted;After determining the regular classification of verification, corresponding verification in the category is obtained Rule, and check logic relationship is set in verification rule, so that server, which is rapidly searched, obtains corresponding verification rule, it is raw At verification configuration file.
Such as: the verification configuration of some attribute is as follows in the configuration file of some object verification:
Attribute B=required | |;V_DECODE (attribute A, identity card, identityCard, organization mechanism code card, OrganizationCode, Tax Registration Certificate, taxRegister, business license, encodeValue::ZZJGLX00, Lteqlen::20) (interpretation of rules illustrates: 1. attribute A, attribute B indicate the attribute of the object under a certain scene. 2.Required (must record), V_DECODE (indicate the decode method in oracle, indicate that if..elseif..else judgement is patrolled Volume), identityCard (verification of identity card rule), organizationCode (organization mechanism code card rule verify), (verification rule indicates that business license must by taxRegister (verification of Tax Registration Certificate rule), encodeValue::ZZJGLX00 Must be specified range value, ZZJGLX00 is a basic data name set), (length is necessarily less than to be equal to lteqlen::20 20) rule verification class is belonged to.3. attribute B verification dependent on attribute A value 4. " | |;" every rule separator;":: " front is rule name, behind be rule enter ginseng).
Mode two: different verification rule classifications is pre-defined according to the type of information to be verified, and verification rule is pressed Classify according to the regular classification of definition, forms verification rule base.Such as: rule point will be verified according to the classification of check information Are as follows: data class verification rule, text class verification rule, address class verification rule yet further divide group, data class verification For rule, data class verification rule is divided small classification according to the digit of data: 4 data, 6 data (compile by postal service Code), 8 data, 11 data (phone number) etc.;So that server, which is rapidly searched, obtains corresponding verification rule, it is raw At verification configuration file.
It is described based on configuration file the present invention is based in the first embodiment of the method for calibration of configuration file referring to Fig. 2 Method of calibration includes:
Step S10 receives the verification request that user terminal is sent, obtains the information to be verified for including in the verification request.
Server receives the verification request that user terminal is sent, for example, user's information in the corresponding operation system of client When input is completed, user clicks the submission key of input information, therewith triggering verification request, receives user's triggering in server Information checking request when, server obtain user verify request in information to be verified.User is inputted in the present embodiment Information as information to be verified.
Wherein, before step S20 generates the corresponding configuration file of information to be verified, further includes:
Step a obtains the affiliated document to be verified of the information to be verified, judges that the format of the document to be verified is The no configuration file that meets executes format;
Step b, if the format of the document to be verified does not meet configuration file and executes format, by the document to be verified It formats, so that the configuration file that meets of the document to be verified executes format.
Such as: CSV formatted file meet configuration file execute format, server by present in CSV formatted file to school It tests information to be verified, and executes step S20, according to the default verification rule base of information inquiry to be verified, to obtain to school The corresponding verification rule of information is tested, if not the document to be verified of extended formatting can be converted to CSV format by CSV formatted file File, then step S20 is executed, it is corresponding to obtain information to be verified according to the default verification rule base of information inquiry to be verified Verification rule.
It handles, that is, is obtained to school for the information to be tested for not supporting configuration file to be verified in the present embodiment Verification document belonging to information is tested, and judges whether the format of document to be verified meets configuration file and execute format, needs to illustrate Be judge the format of document to be verified whether meet configuration file execute format, carry out according to the actual situation, in this reality It applies in example by taking the document of CSV formatted file as an example, if not CSV formatted file, then format, so that the range of verification It is wider.
Step S20, according to the default verification rule base of information inquiry to be verified, to obtain the corresponding school of information to be verified Test rule.
Server inquires default verification rule base according to information to be verified, and server obtains in preset verification rule base to school The corresponding verification rule of information is tested, specifically, the information to be verified that server will acquire presses info class according to information to be verified Type and/or verification scene are classified, and according to the classification of information to be verified, are inquired preset verification rule base and obtained to be verified The corresponding verification rule of information;For example, including in information to be verified: required information and information can be filled out, it can be with for information can be filled out Without verification, and for the available corresponding verification rule of data information, text information for including in required information, and will The verification rule is arranged by the sequence and logical relation of information to be verified, to generate the corresponding configuration text of information to be verified Part;For another example: the information to be verified of user's input is phone number, ID card No., drivers license number, server acquisition cell-phone number Code, the coding rule of ID card No., drivers license number, and it is corresponding according to the default verification rule base acquisition of coding rule inquiry Verification rule, to generate the corresponding configuration file of information to be verified.
Server treats checking information and classifies in the present embodiment, and according to the classification of information to be verified, inquiry is pre- If verifying rule base, it is more quick, accurate that such mode can make the inquiry of verification rule obtain, meanwhile, server obtains Document to be verified belonging to information to be verified is taken, and judges whether to be executed by configuration file according to the format of document to be verified Verification keeps document to be tested, if the format of document to be verified is not inconsistent if document to be verified meets configuration file and executes format It closes configuration file and executes format, then format the document to be verified, so that the meeting for document to be verified matches It sets file and executes format, the file to be verified finally realized for different-format is verified, and the configurable of verification is increased Property.
The verification rule is generated configuration file, and executes the configuration file by step S30, described to school to verify Test information.
Server will verify rule and generate configuration file, and execute configuration file automatically, with using configuration file verification to Check information, wherein information to be tested is verified using configuration file to obtain check results, for example, information to be verified is mobile phone Number, the phone number that configuration file inputs user, whether the digit for verifying phone number is 11, and phone number is No is spacing.
Step S40 obtains the check results that information checking to be verified generates, and the check results is sent to use Family end.
Server obtains configuration file and verifies the check results of information to be verified arrived, and check results are sent to correspondence User terminal, that is, if verification passes through, server sends the prompt information upchecked to user terminal, and by the operation of next step Information is shown in client, so that user terminal carries out the operation of next step, if verification is not over server, which is sent, examines failure Prompt information prompted to user terminal, and by the information of verification failure, such as: it is aobvious in information corresponding position to be verified Show: please accurately filling in ID card No., so that user terminal rewrites the information to be verified of verification failure.
In the step S40 of the present embodiment, later further include:
Step A obtains and records the check results, to count the percent of pass of the corresponding verification rule of each check results;
The percent of pass of the verification rule is compared by step B with threshold value;
Step C updates default verification rule based on the check results if the percent of pass of the verification rule is lower than threshold value The then verification rule in library, to optimize the verification rule in default verification rule base.
Specifically, server obtains and records check results, to count the percent of pass of the corresponding verification rule of each check results; It is recorded that is, server is based on each check results, and counts the corresponding percent of pass of verification rule, by the logical of verification rule Rate is crossed to be compared with threshold value;If the percent of pass of the verification rule is lower than threshold value, updated based on the check results default The verification rule in rule base is verified, to optimize the verification rule in default verification rule base, for example, being directed to the school of home address It tests, the carry out duplication check of multiple users, then adjusts the verification rule of home address.
Verification configuration file is generated by treating check information configuration in the present embodiment, and carries out school using configuration file The verification of information to be tested is tested, and obtains the check results that information checking to be verified generates, and the check results are sent out It send to user terminal.It realizes and corresponding verification configuration file is generated based on check information, improve the efficiency of verification and the spirit of verification Activity, when detecting verification request, obtains corresponding information to be tested, and configure to school by pre-defined verification rule It tests the corresponding configuration file of information and carries out information checking, realize that complex scene verifies iteratively faster, reduce verification rule corresponding generation The complexity of code reduces development cost, avoids the verification that verification now all can only be fixed to object, cannot flexibly adapt to each Dynamic check under kind environment.
Further, the basis in the present embodiment in first embodiment of the invention proposes that the present embodiment is the first implementation The refinement of step S30, the method for calibration based on configuration file include: in example
Referring to Fig. 3, the verification that check information is treated in the present embodiment includes form verification:
Step S31 determines the location information of the information to be verified, and the location information and verification rule input is default It executes in template and generates configuration file;
Server determines the location information of information to be verified, for example, information to be verified is in application document that user fills in Information content it is unlimited, server needs to determine which row of the information to be transacted in application document or which column, clothes first The default template that executes of the location information of information to be verified verification rule input corresponding with information to be verified (is preset and is executed by business device Template: refer to that software to be loaded setting and the text of required environment for user in user's operation or user when using software The set of part) in the inspection rule that generates execute corresponding configuration file.
Whether step S32 examines the input format of information to be verified correct according to the format check rule in configuration file.
Server will verify the configuration file for being used to verify of rule configuration generation, and server is according to the lattice in configuration file Whether formula verification rule examines the input format of information to be verified correct, includes treating check information for information checking to be verified Form verified, that is, when verification rule in configuration file executes, firstly, server is according to the position in configuration file Acquisition of information information to be verified, and according to the type of information to be verified, executes the format check rule in configuration file, determine to Whether check information meets input format requirement, for example, whether the information to be verified of input is value in specified range, it is to be verified Whether information meets message length rule, and whether information to be verified meets naming rule.
Step S33, if the input format of the information to be verified is correct, the form verification of the information to be verified passes through And determine that check results are to pass through.
Server treats the verification of check information according to the verification rule of format check in configuration file, obtains letter to be verified The input format of breath is correct, then the form verification of information to be verified passes through.
Referring to Fig. 4, the verification that check information is treated in the present embodiment includes essence verification:
Step S34 determines the location information of the information to be verified, establishes between the location information and verification rule Incidence relation, and incidence relation is inputted into default execute in template and generates configuration file;
Server determines the location information of information to be verified, for example, information to be verified is in application document that user fills in Information content it is unlimited, server needs to determine which row of the information to be transacted in application document or which column, clothes first Device be engaged in for the incidence relation between the location information of information to be verified and corresponding verification rule, and incidence relation is inputted and is preset It is (default to execute template: to refer to that software is the user institute of being loaded in user's operation or user when using software to execute template Need the setting of environment and the set of file) in generate configuration file.
Step S35 patrols the information to be verified there are logical relation according to the logic verify rule in configuration file Operation is collected, it is whether correct to verify the logical relation between the information to be verified.
Server will verify rule and generate configuration file, according to the logic verify rule in configuration file, to there are logics The information to be verified of relationship carries out logical process, that is, and server obtains information to be verified according to the location information in configuration file, According to the incidence relation and logic verify rule in configuration file, whether the logical relation verified between information to be verified is correct, For example, including the ID card No. of user according to the information to be verified that the location information in configuration file obtains user's input, using Family age, subscriber household address, address name, user's drivers license number etc. treat check information progress form verification and pass through Afterwards, server executes the logic verify rule in configuration file, verifies to the essence of the information to be tested of user's input, user's Whether age and the date of birth in user identity card number are identical, and whether the age in the drivers license number of user meets driving The relevant regulations etc. of card.
Step S36, if the logical relation between the information to be verified is correct, the essence verification of the information to be verified By and determine check results be pass through.
Treated after check information carries out substantive verification in server, the logical relation between information to be verified is correct, then to The essence verification of check information passes through, it should be added that: whether carried out for information to be verified during verification real Matter verifying, can be arranged as the case may be, and the essence that information to be verified can be set for the more harsh information of audit is tested Card, and the verification for statistical information can only carry out form verification.
It is combined it should be added that form can be verified in the present embodiment with essence verification, in form school It tests on the basis of and carries out substantive verification, can also individually carry out form verification or individually carry out substantive verification.
Form verification is carried out for information to be verified in the present embodiment, prevents user hand accidentally caused form problem, with The preliminary check for realizing information to be verified, when the verification of user's form passes through, logic verify can be according to different letters to be verified Correlation between breath carries out the verification of information, so that verification carries out substantive verification for information to be verified according to strictly, it can To realize the stringent verification of information without manual examination and verification, reduce the waste of human resources.
Further, referring to Fig. 5, the present invention is based in the 3rd embodiment of the method for calibration of configuration file, in primary school Test not by when, the secondary verification of information to be verified can also be carried out, the method for calibration based on configuration file includes:
Step S50 receives the feedback information that user terminal is sent based on the check results, and obtains in the feedback information The new information to be verified for including.
Server receives the feedback information that user terminal is sent based on check results, that is, complete in server by utilizing configuration file At information to be verified primary verification when, if verification sends prompt information to user terminal by server, if verify not over, Then unsanctioned information to be verified is formed feedback information and is sent to user terminal by server, and the user of user terminal is according to check results In record unverified information, input new information to be verified again, and using new information to be verified as feedback letter Breath is sent to server, and triggers new verification request for corresponding in server, uses so that server requests to receive according to verification The feedback information that family end group is sent in check results, and the new information to be verified for including in feedback information is obtained, to carry out two Secondary verification.
Step S60 marks the new information to be verified, to verify the new information to be verified based on configuration file, To carry out the secondary verification of information to be verified.
Server will not verify the information to be verified passed through according to check results after the completion of primary verification in configuration file It is marked, server obtains new information to be verified, and the to be verified letter new using the verification rule verification in configuration file Breath, to carry out the secondary verification of information to be verified;Or new information to be verified can also be obtained and based on new letter to be verified Breath triggering verification request, and the verification request for receiving user terminal and sending in first embodiment is executed, obtain the verification request In include information to be verified;It is corresponding to obtain information to be verified according to the default verification rule base of information inquiry to be verified Verification rule;The verification rule is generated into configuration file, and executes the configuration file, to verify the letter to be verified Breath;Obtain the check results that information checking to be verified generates, and the step of check results are sent to user terminal.
Being illustrated for the secondary verification of check information, server label two in configuration file are treated in the present embodiment The verification rule that secondary verification needs, it is corresponding in secondary verification to execute the verification rule marked in configuration file, improve configuration The execution efficiency of file, so that the verification of the information to be tested based on configuration file is more efficient.
In addition, the embodiment of the present invention also proposes a kind of calibration equipment based on configuration file, described to be based on matching in conjunction with Fig. 6 The calibration equipment for setting file includes:
It receives and obtains module 10, for receiving the verification request of user terminal transmission, include in the acquisition verification request Information to be verified;
Inquiry obtains module 20, to be verified to obtain for presetting verification rule base according to the information inquiry to be verified The corresponding verification rule of information;
Correction verification module 30 is configured, for the verification rule to be generated configuration file, and the configuration file is executed, with school Test the information to be verified;
Obtain sending module 40, the check results generated for obtaining information checking to be verified, and by the verification As a result it is sent to user terminal.
Wherein, the step of each Implement of Function Module of the calibration equipment based on configuration file can refer to that the present invention is based on match Each embodiment of the method for calibration of file is set, details are not described herein again.
In addition, the embodiment of the present invention also proposes a kind of computer storage medium.
The checking routine based on configuration file, the school based on configuration file are stored in the computer storage medium It tests and realizes that the verification based on configuration file operates as follows when program is executed by processor:
The verification request that user terminal is sent is received, the information to be verified for including in the verification request is obtained;
According to the default verification rule base of information inquiry to be verified, to obtain the corresponding verification rule of information to be verified;
The verification rule is generated into configuration file, and executes the configuration file, to verify the information to be verified;
The check results that information checking to be verified generates are obtained, and the check results are sent to user terminal.
Wherein, the step of computer storage medium is realized can refer to each of the method for calibration the present invention is based on configuration file Embodiment, details are not described herein again.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body/operation/object is distinguished with another entity/operation/object, without necessarily requiring or implying these entity/operations/ There are any actual relationship or orders between object;The terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or the system that include a series of elements not only include that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of system.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in process, method, article or the system for including the element.
For device embodiment, since it is substantially similar to the method embodiment, related so describing fairly simple Place illustrates referring to the part of embodiment of the method.The apparatus embodiments described above are merely exemplary, wherein making It may or may not be physically separated for the unit of separate part description.In can selecting according to the actual needs Some or all of the modules realize the purpose of the present invention program.Those of ordinary skill in the art are not making the creative labor In the case where, it can it understands and implements.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of method of calibration based on configuration file, which is characterized in that the method for calibration based on configuration file include with Lower step:
The verification request that user terminal is sent is received, the information to be verified for including in the verification request is obtained;
According to the default verification rule base of information inquiry to be verified, to obtain the corresponding verification rule of information to be verified;
The verification rule is generated into configuration file, and executes the configuration file, to verify the information to be verified;
The check results that information checking to be verified generates are obtained, and the check results are sent to user terminal.
2. as described in claim 1 based on the method for calibration of configuration file, which is characterized in that described according to the letter to be verified The default verification rule base of breath inquiry, to obtain the step of the corresponding verification rule of information to be verified, comprising:
The information to be verified is classified by information type and/or verification scene, according to the classification of information to be verified, inquiry Preset verification rule base simultaneously obtains the corresponding verification rule of information to be verified;
The verification rule is arranged by the sequence and logical relation of information to be verified, it is corresponding to generate information to be verified Configuration file.
3. as described in claim 1 based on the method for calibration of configuration file, which is characterized in that described that the verification rule is raw At configuration file, and execute the configuration file, the step of to verify the information to be verified before, comprising:
The affiliated document to be verified for obtaining the information to be verified, judges whether the format of the document to be verified meets configuration File executes format;
If the format of the document to be verified does not meet configuration file and executes format, the document to be verified is subjected to format and is turned It changes, so that the configuration file that meets of the document to be verified executes format.
4. as described in claim 1 based on the method for calibration of configuration file, which is characterized in that described that the verification rule is raw At configuration file, and the configuration file is executed, to verify the information to be verified the step of includes:
The location information is preset life in execution template with rule input is verified by the location information for determining the information to be verified At configuration file;
Examine the input format of information to be verified whether correct according to the format check rule in configuration file;
If the input format of the information to be verified is correct, the form verification of the information to be verified passes through and determines verification knot Fruit is to pass through.
5. the method for calibration based on configuration file as described in Claims 1-4 any one, which is characterized in that described by institute It states verification rule and generates configuration file, and execute the configuration file, to verify the information to be verified the step of includes:
The location information for determining the information to be verified establishes the incidence relation between the location information and verification rule, and Incidence relation is inputted into default execute in template and generates configuration file;
According to the logic verify rule in configuration file, to there are the information to be verified of logical relation to carry out logical operation, with school Whether the logical relation tested between the information to be verified is correct;
If the logical relation between the information to be verified is correct, the essence verification of the information to be verified passes through and determines school Testing result is to pass through.
6. as described in claim 1 based on the method for calibration of configuration file, which is characterized in that described to obtain information school to be verified The check results for generating and obtaining are tested, and after the step of check results are sent to user terminal, comprising:
Receive the feedback information that sends based on the check results of user terminal, and obtain include in the feedback information newly to Check information;
The new information to be verified is marked, it is to be verified to carry out to verify the new information to be verified based on configuration file The secondary verification of information.
7. as described in claim 1 based on the method for calibration of configuration file, which is characterized in that described to obtain information school to be verified The check results for generating and obtaining are tested, and after the step of check results are sent to user terminal, further includes:
The check results are obtained and record, to count the percent of pass of the corresponding verification rule of each check results;
The percent of pass of the verification rule is compared with threshold value;
If the percent of pass of the verification rule is lower than threshold value, the school in default verification rule base is updated based on the check results Rule is tested, to optimize the verification rule in default verification rule base.
8. a kind of calibration equipment based on configuration file, which is characterized in that the calibration equipment based on configuration file includes:
It receives and obtains module, for receiving the verification request of user terminal transmission, include in the acquisition verification request is to be verified Information;
Inquiry obtains module, for presetting verification rule base according to the information inquiry to be verified, to obtain information pair to be verified The verification rule answered;
Correction verification module is configured, for the verification rule to be generated configuration file, and the configuration file is executed, described in verification Information to be verified;
Sending module, the check results generated for obtaining information checking to be verified are obtained, and the check results are sent out It send to user terminal.
9. a kind of calibration equipment based on configuration file, which is characterized in that the calibration equipment based on configuration file includes: to deposit Reservoir, processor and the verification journey based on configuration file that is stored on the memory and can run on the processor Sequence, in which:
It is described to realize such as any one of claims 1 to 7 institute when being executed based on the checking routine of configuration file by the processor The step of method of calibration based on configuration file stated.
10. a kind of computer storage medium, which is characterized in that be stored in the computer storage medium based on configuration file Checking routine is realized when the checking routine based on configuration file is executed by processor such as any one of claims 1 to 7 institute The step of method of calibration based on configuration file stated.
CN201810155017.2A 2018-02-23 2018-02-23 Method of calibration, device, equipment and computer storage medium based on configuration file Pending CN110020381A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810155017.2A CN110020381A (en) 2018-02-23 2018-02-23 Method of calibration, device, equipment and computer storage medium based on configuration file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810155017.2A CN110020381A (en) 2018-02-23 2018-02-23 Method of calibration, device, equipment and computer storage medium based on configuration file

Publications (1)

Publication Number Publication Date
CN110020381A true CN110020381A (en) 2019-07-16

Family

ID=67188238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810155017.2A Pending CN110020381A (en) 2018-02-23 2018-02-23 Method of calibration, device, equipment and computer storage medium based on configuration file

Country Status (1)

Country Link
CN (1) CN110020381A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110472038A (en) * 2019-08-22 2019-11-19 恩亿科(北京)数据科技有限公司 A kind of appraisal procedure of data safety, assessment device and readable storage medium storing program for executing
CN110516258A (en) * 2019-08-30 2019-11-29 北京明略软件系统有限公司 Data verification method and device, storage medium, electronic device
CN110515937A (en) * 2019-09-02 2019-11-29 中国农业银行股份有限公司 A kind of data verification method and device
CN110569234A (en) * 2019-07-30 2019-12-13 深圳市华傲数据技术有限公司 Data checking method and device, electronic equipment and computer readable storage medium
CN110704426A (en) * 2019-09-06 2020-01-17 中国平安财产保险股份有限公司 Data verification method, electronic device and computer readable storage medium
CN110781182A (en) * 2019-09-10 2020-02-11 中国平安财产保险股份有限公司 Automatic coding method and device for check logic and computer equipment
CN111080459A (en) * 2019-11-21 2020-04-28 泰康保险集团股份有限公司 Configuration method and device of configuration file and readable storage medium
CN111104390A (en) * 2019-11-08 2020-05-05 珠海金山网络游戏科技有限公司 Method and system for merging and checking multiple CSV files
CN111159982A (en) * 2019-12-24 2020-05-15 中信银行股份有限公司 Document editing method and device, electronic equipment and computer readable storage medium
CN111178030A (en) * 2019-12-15 2020-05-19 天津幸福生命科技有限公司 Information processing method and device, computer readable storage medium and electronic equipment
CN111427566A (en) * 2020-03-18 2020-07-17 北京达佳互联信息技术有限公司 Data processing method and device suitable for analog interface platform and server
CN111589154A (en) * 2020-05-20 2020-08-28 苏州沁游网络科技有限公司 Resource normalization detection and optimization method, device, equipment and storage medium
CN112632332A (en) * 2021-01-04 2021-04-09 恩亿科(北京)数据科技有限公司 Configurable verification method, system, equipment and storage medium for XML file
CN116150142A (en) * 2023-04-14 2023-05-23 成都数联云算科技有限公司 Method, device, medium, equipment and product for field verification and rule obtaining thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021890A (en) * 2007-03-20 2007-08-22 华为技术有限公司 Method, system and server for checking page data
CN102023869A (en) * 2010-12-30 2011-04-20 深圳联友科技有限公司 Control input value checking method and system
CN102103639A (en) * 2011-01-26 2011-06-22 北京京东世纪贸易有限公司 Data verification method and device
CN105204872A (en) * 2015-11-10 2015-12-30 中国建设银行股份有限公司 Imputing page generating method and device
KR101664701B1 (en) * 2015-06-12 2016-10-11 한국전력공사 Apparatus and method for verifying validity of cim-xml file
CN106301819A (en) * 2015-05-13 2017-01-04 腾讯科技(深圳)有限公司 Parameter verification method and check system
CN106372953A (en) * 2015-07-22 2017-02-01 腾讯科技(北京)有限公司 Multimedia information management method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021890A (en) * 2007-03-20 2007-08-22 华为技术有限公司 Method, system and server for checking page data
CN102023869A (en) * 2010-12-30 2011-04-20 深圳联友科技有限公司 Control input value checking method and system
CN102103639A (en) * 2011-01-26 2011-06-22 北京京东世纪贸易有限公司 Data verification method and device
CN106301819A (en) * 2015-05-13 2017-01-04 腾讯科技(深圳)有限公司 Parameter verification method and check system
KR101664701B1 (en) * 2015-06-12 2016-10-11 한국전력공사 Apparatus and method for verifying validity of cim-xml file
CN106372953A (en) * 2015-07-22 2017-02-01 腾讯科技(北京)有限公司 Multimedia information management method and system
CN105204872A (en) * 2015-11-10 2015-12-30 中国建设银行股份有限公司 Imputing page generating method and device

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569234A (en) * 2019-07-30 2019-12-13 深圳市华傲数据技术有限公司 Data checking method and device, electronic equipment and computer readable storage medium
CN110472038A (en) * 2019-08-22 2019-11-19 恩亿科(北京)数据科技有限公司 A kind of appraisal procedure of data safety, assessment device and readable storage medium storing program for executing
CN110516258A (en) * 2019-08-30 2019-11-29 北京明略软件系统有限公司 Data verification method and device, storage medium, electronic device
CN110516258B (en) * 2019-08-30 2022-12-06 北京明略软件系统有限公司 Data verification method and device, storage medium and electronic device
CN110515937A (en) * 2019-09-02 2019-11-29 中国农业银行股份有限公司 A kind of data verification method and device
CN110704426A (en) * 2019-09-06 2020-01-17 中国平安财产保险股份有限公司 Data verification method, electronic device and computer readable storage medium
CN110704426B (en) * 2019-09-06 2023-09-22 中国平安财产保险股份有限公司 Data verification method, electronic device and computer readable storage medium
CN110781182A (en) * 2019-09-10 2020-02-11 中国平安财产保险股份有限公司 Automatic coding method and device for check logic and computer equipment
CN111104390A (en) * 2019-11-08 2020-05-05 珠海金山网络游戏科技有限公司 Method and system for merging and checking multiple CSV files
CN111080459A (en) * 2019-11-21 2020-04-28 泰康保险集团股份有限公司 Configuration method and device of configuration file and readable storage medium
CN111080459B (en) * 2019-11-21 2023-08-25 泰康保险集团股份有限公司 Configuration file configuration method and device and readable storage medium
CN111178030A (en) * 2019-12-15 2020-05-19 天津幸福生命科技有限公司 Information processing method and device, computer readable storage medium and electronic equipment
CN111178030B (en) * 2019-12-15 2023-10-13 北京懿医云科技有限公司 Information processing method, information processing device, computer readable storage medium and electronic equipment
CN111159982A (en) * 2019-12-24 2020-05-15 中信银行股份有限公司 Document editing method and device, electronic equipment and computer readable storage medium
CN111427566A (en) * 2020-03-18 2020-07-17 北京达佳互联信息技术有限公司 Data processing method and device suitable for analog interface platform and server
CN111589154B (en) * 2020-05-20 2021-05-07 苏州沁游网络科技有限公司 Resource normalization detection and optimization method, device, equipment and storage medium
CN111589154A (en) * 2020-05-20 2020-08-28 苏州沁游网络科技有限公司 Resource normalization detection and optimization method, device, equipment and storage medium
CN112632332A (en) * 2021-01-04 2021-04-09 恩亿科(北京)数据科技有限公司 Configurable verification method, system, equipment and storage medium for XML file
CN116150142A (en) * 2023-04-14 2023-05-23 成都数联云算科技有限公司 Method, device, medium, equipment and product for field verification and rule obtaining thereof
CN116150142B (en) * 2023-04-14 2023-06-27 成都数联云算科技有限公司 Method, device, medium, equipment and product for field verification and rule obtaining thereof

Similar Documents

Publication Publication Date Title
CN110020381A (en) Method of calibration, device, equipment and computer storage medium based on configuration file
CN108710569A (en) Test cases generation method, data creation method, device, equipment and medium
US10884826B2 (en) System and method for establishing common request processing
CN107016132B (en) Online question bank quality improving method and system and terminal equipment
CN111815169B (en) Service approval parameter configuration method and device
CN108876213B (en) Block chain-based product management method, device, medium and electronic equipment
CN109634996A (en) Customer information table generating method, device, equipment and computer readable storage medium
CN110727580A (en) Response data generation method, full-flow interface data processing method and related equipment
CN109726108B (en) Front-end code testing method, device, system and medium based on analog data
CN109741118A (en) Invoice issuing method, apparatus, equipment and computer readable storage medium
CN102724276B (en) A kind of information-pushing method based on Android system and system
CN102571403A (en) Realization method and device for general data quality control adapter
CN110990053A (en) Method for creating and using machine learning scheme template and device
CN112148582B (en) Policy testing method and device, computer readable medium and electronic equipment
CN106682949A (en) Service recommending method and service information receiving method, device and system
CN108960587A (en) Evaluation method, device and the readable storage medium storing program for executing of purchase of property consulting services quality
CN109726018A (en) Method for processing business, device, equipment and computer readable storage medium
CN107943697A (en) Problem distribution method, device, system, server and computer-readable storage medium
CN110659870A (en) Business audit test method, device, equipment and storage medium
CN108170600A (en) The coverage rate statistical method of front-end code test, apparatus and system
CN109582906A (en) Determination method, apparatus, equipment and the storage medium of data reliability
CN111865726B (en) Service message testing method, device, computer system and storage medium
CN106411579A (en) Run-time error information processing method, terminal and system
CN113190562A (en) Report generation method and device and electronic equipment
CN110532186A (en) Method, apparatus, electronic equipment and the storage medium tested using identifying code

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: 20190716

RJ01 Rejection of invention patent application after publication