CN107203714A - The collocation method and device of data check file - Google Patents
The collocation method and device of data check file Download PDFInfo
- Publication number
- CN107203714A CN107203714A CN201610159287.1A CN201610159287A CN107203714A CN 107203714 A CN107203714 A CN 107203714A CN 201610159287 A CN201610159287 A CN 201610159287A CN 107203714 A CN107203714 A CN 107203714A
- Authority
- CN
- China
- Prior art keywords
- data check
- redaction
- file
- mode information
- verification
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/45—Structures or tools for the administration of authentication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2133—Verifying human interaction, e.g., Captcha
Abstract
This application discloses the collocation method of data check file and device.One embodiment of methods described includes:Obtain the data check mode information that legacy version has been loaded with data check configuration file and the verification file of redaction, the data check configuration file;The verification file of the redaction is parsed, to draw the data check mode information of redaction;The data check mode information of the redaction is loaded in the data check configuration file, to replace the data check mode information of the legacy version and update the data check configuration file.The embodiment realizes the dynamic configuration and dynamic load of data check mode information, is the renewal that data check mode information can be achieved without reset routine, improves the stability of system.
Description
Technical field
The application is related to field of computer technology, and in particular to data processing field, more particularly to
The collocation method and device of data check file.
Background technology
Data check, be in order to ensure the integrality, correctness and security of data to input number
It is to system and one kind weight of secure user data in Internet technology according to the technology verified
The means wanted.Existing data verification framework is all based on the configuration of data check file mostly,
When the program for needing to verify input data starts, initialization data verification mode information.
Because data check mode information integration is in data check file, when the data check in program
Mode information needs during change to verify reset routine after file, it is necessary to reset Configuration Data, newly
Data check mode information can just come into force.In this mode, data check mode information is more
The poor real changed, may be impacted, the height for being unfavorable for system can to the running quality of system
The property used.
The content of the invention
In view of this, it is desired to be able to provide that a kind of real-time is good, data school without reset routine
The collocation method of file is tested, data check mode is believed further, it is desirable to which one kind can be provided
The collocation method for the data check file separated from data check file is ceased, with verification
Can be with dynamic load data check logic during data.In order to solve said one or multiple problems,
This application provides the collocation method of data check file and device.
On the one hand, this application provides a kind of collocation method of data check file, including:Obtain
Take in data check configuration file and the verification file of redaction, the data check configuration file
It has been loaded with the data check mode information of legacy version;The verification file of the redaction is parsed,
To draw the data check mode information of redaction;And in the data check configuration file
The data check mode information of the redaction is loaded, to replace the data check of the legacy version
Mode information simultaneously updates the data check configuration file.
In some optional implementations, the data check configuration file includes data check
The calling interface of mode information, it is described to load the new edition in the data check configuration file
This data check mode information, including:Detect whether there is the data check of the redaction
Mode information;Data check mode information in response to detecting the presence of the redaction, passes through
The calling interface of the data check mode information calls the data check mode of the redaction to believe
Breath.
In some optional implementations, the verification file of the parsing redaction, with
The verification mode of redaction is drawn, including:To matching somebody with somebody confidence in the verification file of the redaction
Breath is identified;Extract configuration information corresponding with the verification mode of the redaction.
It is described to be loaded in the data check configuration file in some optional implementations
The data check mode information of the redaction, including:Judge the data check of the redaction
Whether script keyword is included in mode information;If so, being adjusted using configured good script engine
With the data check mode information of the redaction;Wherein, the script engine is based on the pin
This keyword and configure.
In some optional implementations, methods described also includes:Based on user to data school
The renewal configuration operation of proved recipe formula information, generates the verification file of the redaction.
Second aspect, this application provides a kind of configuration device of data check file, including:
Acquiring unit, the verification file for obtaining data check configuration file and redaction, the number
According to the data check mode information that legacy version has been loaded with verification configuration file;Resolution unit,
Verification file for parsing the redaction, to draw the data check mode information of redaction;
And loading unit, the number for loading the redaction in the data check configuration file
According to verification mode information, to replace the data check mode information of the legacy version and update described
Data check configuration file.
In some optional implementations, the data check configuration file includes data check
The calling interface of mode information, the loading unit includes:Detection module, for detecting whether
There is the data check mode information of the redaction;Calling module, in response to detecting
There is the data check mode information of the redaction, pass through the data check mode information
Calling interface calls the data check mode information of the redaction.
In some optional implementations, the loading unit is further used for as follows
Load the data check mode information of the redaction:Judge the data check text of the redaction
Whether script keyword is included in part;If so, being called using configured good script engine described
The data check mode information of redaction;Wherein, the script engine is based on script key
Word and configure.
In some optional implementations, described device also includes:Generation unit, for base
The renewal of data verification mode information is configured in user and operated, the verification of the redaction is generated
File.
The collocation method and device for the data check file that the application is provided, by obtaining data school
Configuration file and the verification file of redaction are tested, then the verification file of parsing redaction, with
Go out the data check mode information of redaction, finally load new edition in data check configuration file
This data check mode information, so as to replace the data check mode information of legacy version and update
Data check configuration file, realizes the dynamic configuration and dynamic load of data check mode information,
It is the renewal that data check mode information can be achieved without reset routine, so as to ensure new data
Verification mode information comes into force in real time, improves the running quality of system.
Brief description of the drawings
Non-limiting example is described in detail with reference to what the following drawings was made by reading, this Shen
Other features, objects and advantages please will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein.
Fig. 2 is the stream of one embodiment of the collocation method of the data check file according to the application
Cheng Tu.
Fig. 3 is a scene of the collocation method that can apply the data check file of the application
Effect diagram;
Fig. 4 is another embodiment of the collocation method of the data check file according to the application
Flow chart;
Fig. 5 is the flow chart implemented of embodiment illustrated in fig. 4;
Fig. 6 is the knot of one embodiment of the configuration device of the data check file according to the application
Structure schematic diagram;
Fig. 7 is adapted for for realizing the terminal device of the embodiment of the present application or the computer of server
The structural representation of system.
Embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is appreciated that
, specific embodiment described herein is used only for explaining related invention, rather than to the hair
Bright restriction.It also should be noted that, illustrate only for the ease of description, in accompanying drawing with
About the related part of invention.
It should be noted that in the case where not conflicting, embodiment and embodiment in the application
In feature can be mutually combined.Describe this in detail below with reference to the accompanying drawings and in conjunction with the embodiments
Application.
Fig. 1 is refer to, exemplary system architecture therein is can apply to it illustrates the application
Figure.As shown in figure 1, system architecture 100 can include terminal device 101,102,103,
Network 104 and server 105.Network 104 is used in the and of terminal device 101,102,103
The medium of communication link is provided between server 105.Network 104 can include various connection classes
Type, such as wired, wireless communication link or fiber optic cables etc..
User 110 can pass through network 104 and service with using terminal equipment 101,102,103
Device 105 is interacted, to receive or send message etc..Can be with terminal device 101,102,103
Various network service applications are installed, such as web browser applications, shopping online class application,
Searching class application, JICQ, mailbox client, social platform software, online sound/
Video playback application etc..In the application of the application, user 110 using equipment 101,102,
Application on 103 sends network service request to server 105, and is received from server 105
The related data for the network service asked.
Terminal device 101,102,103 can be with display screen and support user to operate
Various electronic equipments, including but not limited to smart mobile phone, tablet personal computer, E-book reader,
(Moving Picture Experts Group Audio Layer III, dynamic image is special for MP3 player
Family's compression standard audio aspect 3), MP4 (Moving Picture Experts Group Audio
Layer IV, dynamic image expert's compression standard audio aspect 4) player, portable meter on knee
Calculation machine and desktop computer etc..
Server 105 can be to provide the server of various services, for example to terminal device 101,
102nd, 103 network requests sent provide the background data server that data are supported.Back-end data
Server can be parsed to the network request received and the security of network request is carried out
Checking (for example verifies whether the login name and password of user match), afterwards feeds back result
To terminal device.
It should be noted that the collocation method for the data check file that the embodiment of the present application is provided
It can be performed by terminal device 101,102,103 or server 105, correspondingly, data school
The configuration device for testing file is generally positioned at terminal device 101,102,103 or server 105
In.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only signal
Property.According to needs are realized, can have any number of terminal device, network and server.
Fig. 2 is refer to, it illustrates the collocation method of the data check file according to the application
The flow chart of one embodiment.As shown in Fig. 2 the collocation method of the data check file
Flow 200 comprises the following steps:
Step 201, data check configuration file and the verification file of redaction are obtained.
In the present embodiment, the electronic equipment of the collocation method operation of data check file thereon
Existing data check configuration file and the verification file of redaction in internal memory can be obtained.Wherein,
The data check mode information of legacy version has been loaded with data check configuration file.Specifically,
Data check configuration file can include the configuration information of data check, such as data check rule
Information, storage address of the relevant parameter of data check etc..Wherein, data check Rule Information
The data check mode information of legacy version can be included.
It can be the script file or JSON for including data check mode information to verify file
(JavaScript Object Notation, JavaScript object representation) file, in reality
In scene, data check logic can be included in verification file, such as is adjusted when comprising verification data
Function, parameter, data operation commands etc..
In the present embodiment, it is modified if necessary to the data check mode information to system,
Modify, can be only configured comprising new check logic without whole data check configuration file
Redaction verification file, configuration complete after, the verification file of redaction can be stored in
, can also in the memory of the electronic equipment of the collocation method operation of data check file thereon
It is stored on cloud server.When configuration data verifies file, described electronic equipment can be with
The verification file of the redaction is read or asked to cloud server from memory.
When user starts or into when applying, can send data to application, the backstage of application can
To be verified to the data that user sends.The mode of verification can be according to application demand or field
Scape is modified.Data check mode information generates the verification file of redaction after being modified.One
Individual exemplary scene is:When user does shopping the client application of class into one, Ke Yixiang
The server of the application submits logon data, such as user name, password, identifying code.It should answer
The data verified to the logon data that user submits can be preserved in the internal memory of server
Verify configuration file.Contained in data check configuration file data check rule (for example for
Realize the script of checking algorithm).The server of the client application of above-mentioned shopping class can be according to number
The logon data submitted according to verification configuration file to user is verified, and true according to check results
Whether determine can be to user's returned data.As the background maintenance people of the client application of the shopping class
When member have changed data check algorithm, the redaction for including new data check algorithm can be generated
Verification file, the server can based on redaction verification file in data check mode
Information is verified to the data that log in that user submits.
Step 202, the verification file of redaction is parsed, to draw the data check side of redaction
Formula information.
In the present embodiment, above-mentioned electronic equipment can be to the verification file of the redaction got
Be identified, so that it is determined that redaction the corresponding input data of verification file.For example, working as
When input data includes more than two, if the data check mode information only to one of which is entered
Change is gone, then the verification file of redaction only includes the new check logic of the item data.
When configuration data verifies file, above-mentioned electronic equipment can be identified pair from new check logic
The data answered, so that the verification mode only to the item data in data check file is updated,
To the verification modes of other data without modification.
The verification file of redaction can include redaction data check mode information and with it is new
The related configuration information of the data check mode information of version.The number of redaction can for example be included
According to verification mode information enter to join type, go out to join type, the internal logic of the function called,
Storage address of relevant parameter etc..In the present embodiment, above-mentioned electronic equipment can be from redaction
Data check mode information in parse the data check mode information of redaction.Further,
Configuration information in the verification file of redaction can be identified, extracted and redaction
The corresponding configuration information of verification mode, can identify the school of redaction according to configuration information afterwards
Proved recipe formula.Specifically, specific identifier that can be in each configuration information is identified, example
It is into joining class that " int " character recognition that such as can be in a configuration information, which goes out the configuration information,
Type goes out to join type.
Step 203, the data check mode for redaction being loaded in data check configuration file is believed
Breath, to replace the data check mode information of legacy version and update the data verification configuration file.
After the data check mode information of redaction is parsed, it can be configured in data check
The data check mode information of redaction is loaded in file, so as to update the data verification configuration file.
, can be according to the data check after renewal after the data check mode information of loading redaction
Configuration file is verified to input data.Specifically, when calling verification mode, Ke Yitong
Crossing data check configuration file calls the data check mode information of redaction to carry out input data
Verification.
In some optional implementations of the present embodiment, the data school obtained in step 201
The calling interface of data check mode information can be included by testing configuration file, can pass through such as lower section
The data check mode information of this new edition of formula loading:Detect whether the data check that there is redaction
Mode information, and in response to detecting the presence of the data check mode information of redaction, by upper
The calling interface for stating data check mode information calls the data check mode information of redaction.On
Stating electronic equipment can be determined whether there is by detecting whether to have the verification file of redaction
The data check mode information of redaction.It can for example detect whether there is redaction verification file
Keyword, if detecting keyword, it may be determined that there is the data check mode of redaction
Information.When detecting the presence of the data check mode information of redaction, data school can be passed through
The calling interface for the data check mode information tested in configuration file calls the data check of redaction
Mode information.
In some optional implementations of this implementation, the configuration side of above-mentioned data check file
The flow 200 of method can also include:The renewal of data verification mode information is configured based on user
Operation, generates the verification file of redaction.When the verification rule of application or system changes,
User can be in the electronic equipment that the background server of application or application run thereon to new edition
This data check mode information is updated configuration, updates the data verification rule, above-mentioned electronics
Equipment can generate new check logic in response to the renewal operation of user, and based on new verification
Logic generates the verification file of redaction.The renewal of data check rule can include parameter area
Renewal and method of calibration renewal.User can change related to data to be verified on backstage
The span of parameter, can also change the algorithm used during verification or the function name called,
So as to update the data verification rule.
In the present embodiment, the verification file comprising data check logic can match somebody with somebody from data check
File is put to separate, then, can be only to verification when needing change data check mode information
File is modified, and generates the verification file of redaction, at this moment, data check configuration file can
To load the verification file of redaction automatically, it is achieved thereby that the dynamic of data check mode information
Update.Overcome needs to change whole data check file when changing verification mode in the prior art
The problem of system operation Quality Down that starting system of laying equal stress on is caused, provided for the high availability of system
Support.
With further reference to Fig. 3, it illustrates can matching somebody with somebody using the data check file of the application
Put the effect diagram of a scene of method.As shown in figure 3, in data check mode information
Before renewal, system is configured to 6-18 to the length of password, when user user1 have input 4
Password when, system prompt " Password Length be 6-18 ", user user1 can not Successful login.
At this moment, if being configured to 4-18 in backstage Modify password length, and new verification text is generated
Part, then when another user user2 is logged in, if also have input 4 passwords, system can add
New verification file is carried, according to new verification configuration determination user user2 by data check,
The prompt message related to data check rule will not be ejected in login interface.In the process,
System need not be restarted between user user1 and user user2 register or application is restarted, newly
Data check rule come into force in real time on backstage, improve the friendly of system.
With continued reference to Fig. 4, it illustrates the collocation method of the data check file according to the application
Another embodiment flow chart.As shown in figure 4, the configuration of described data check file
Method flow 400, comprises the following steps:
Step 401, data check configuration file and the verification file of redaction are obtained.
In the present embodiment, the electronic equipment of the collocation method operation of data check file thereon
Existing data check configuration file and the verification file of redaction in internal memory can be obtained, also may be used
To send request to other electronic equipments, other electronic equipments are received afterwards in response to the request
The data check configuration file of transmission and the verification file of redaction, such as user are starting terminal
On a certain application program when, terminal device can send file acquisition to the server of the application
Request, the server of the application can find corresponding after file acquisition request is received
Data check configuration file and the verification file cocurrent of the good redaction of user configuring are delivered to terminal and set
It is standby.Wherein, the data check mode information of legacy version has been loaded with data check configuration file.
Specifically, data check configuration file can include the configuration information of data check, such as data
Verify Rule Information, storage address of the relevant parameter of data check etc..Wherein, data check
Rule Information can include the data check mode information of legacy version.
In actual scene, data check logic can be included in verification file, such as comprising school
Test the function called during data, parameter, data operation commands etc..
When user starts or into when applying, can send data to application, the backstage of application can
To be verified to the data that user sends.The mode of verification can be according to application demand or field
Scape is modified.Data check mode information generates the verification file of redaction after being modified.Newly
The verification file of version can be saved in the server of the application, can also be released to this
In the common platform of application, to inform that the user data verification mode information for entering the application occurs
Update.
Step 402, the verification file of the redaction is parsed, to draw the data school of redaction
Proved recipe formula information.
The verification file of redaction can include redaction data check mode information and with it is new
The related configuration information of the data check mode information of version.The number of redaction can for example be included
According to verification mode information enter to join type, go out to join type, the internal logic of the function called,
Storage address of relevant parameter etc..In the present embodiment, above-mentioned electronic equipment can be to getting
The verification file of redaction be identified, to parse the data check mode information of redaction.
It is identified, extracts it is possible to further the configuration information in the verification file to redaction
Configuration information corresponding with the verification mode of redaction, can be identified according to configuration information afterwards
The verification mode of redaction.Specifically, specific identifier that can be in each configuration information enters
Row identification, " int " character recognition that for example can be in a configuration information goes out this with confidence
Cease is into joining type or go out to join type.
Step 403, judge whether crucial comprising script in the data check mode information of redaction
Word.
The data check mode information of redaction can include the data check logic after updating.
In the present embodiment, if the data check logic after updating is realized by the script based on Java,
Script keyword can be then included in data check mode information, for example "<script>”、“var”
Deng.If above-mentioned electronic equipment detects script keyword, it may be determined that the verification of redaction
File is script file.In actual applications, the pin for including multiple script keywords can be set up
This key word library, if it is crucial to there is script in detecting the data check mode information of redaction
Keyword in character library, it may be determined that the verification file of redaction is script file.Further,
If not including above-mentioned script keyword in data check mode information, redaction can be determined
Verification file be not script file.
Step 404, if so, calling the data school of redaction using configured good script engine
Proved recipe formula information.
If determined in step 403 crucial comprising script in the data check mode information of redaction
Word, can call the data check mode information of redaction based on configured good script engine.
Such as data check configuration file after analytics engine parsing renewal that can be based on JavaScript,
In the process, JavaScript analytics engines can call redaction automatically by calling interface
Data check mode information, the data check configuration file after operation renewal.Specifically,
JavaScript analytics engines can be service data verification configuration file needed for framework there is provided can
For the code of data check Profile Up.
Above-mentioned script engine can be in advance based on script keyword and configure.Different script keywords
The different script engine of correspondence.Alternatively, it can preserve and be closed comprising script in above-mentioned electronic equipment
The script engine dictionary of key word and script engine corresponding relation, is calling the data check of redaction
During mode information, it can be searched according to keyword in script engine dictionary to corresponding script engine,
The data check mode information of redaction is called by the script engine found.
In some optional implementations of the present embodiment, if the judged result of step 403
It is no, i.e., does not include script keyword in the data check mode information of redaction, it may be determined that
The verification file of redaction is not script file, at this moment can the analytical framework based on built-in exploitation
Load the data check mode of redaction.
It is described before step 404 in some optional implementations of the present embodiment
The collocation method flow 400 of data check file can also include:If so, based on the script
Keyword generates corresponding script engine, so that the data check configuration file is drawn using script
Hold up the data check mode information for calling redaction.Further, before step 404, side
Method flow 400 can also include, if it is not, based on built-in analytical framework generation parsing template,
So that the data check configuration file calls the data check of redaction based on the parsing template
Mode information.
With further reference to Fig. 5, it illustrates the flow chart implemented of embodiment illustrated in fig. 4.
As shown in figure 5, when configuration data verifies file, being first loaded into verification file, verifying file
The verification mode file of high in the clouds or local redaction can be stored in, wherein containing new edition
This check logic.Alternatively, when being loaded into verification file, verification file can be solved
Analysis, extracts check logic therein.Simultaneously, it can be determined that whether there is pin in verification file
This keyword, if it is, corresponding script engine can be generated, to be adjusted in data check
Verified with script engine;If not, can be based on built-in analytical framework generation parsing mould
Plate, to be verified in data check based on parsing template, the configuration of final updating data check
File.In actual applications, when it is determined that there is script keyword in verification file, Ke Yizhi
It is connected in data check configuration file and parses the check logic in verification file using script engine,
When it is determined that script keyword is not present in verification file, parsing template loading verification can be called
Check logic in file, so, when inputting new data next time, new data verification
Mode can just come into force.Without reset routine new verification mode can be made to come into force so as to realize,
Improve the stability of system.
Compared with embodiment illustrated in fig. 2, embodiment illustrated in fig. 4 highlights the number of loading redaction
The step of according to verification mode information, the step of further having refined method, for the school of redaction
Test the configuration side that file provides quick, real-time data check file for the scene of script file
Method.
With further reference to Fig. 6, it illustrates the configuration of the data check file according to the application dress
The structural representation of the one embodiment put.As shown in fig. 6, the configuration dress of data check file
Putting 600 includes:Acquiring unit 601, resolution unit 602 and loading unit 603.Wherein,
Acquiring unit 601 is used for rear-guard and obtains data check configuration file and the verification file of redaction,
The data check mode information of legacy version has been loaded with the data check configuration file;Parsing
Unit 602 is used for the verification file for parsing redaction, to draw the data check mode of redaction
Information;Loading unit 603 is used for the data school that redaction is loaded in data check configuration file
Proved recipe formula information, to replace the data check mode information of legacy version and update the data verification configuration
File.
In the present embodiment, acquiring unit 601 can match somebody with somebody from high in the clouds or the local data check that obtains
Put file and the verification file of redaction.Wherein, data check configuration file can include data
The configuration information of verification, such as data check Rule Information, the relevant parameter of data check are deposited
Store up address etc..Wherein, data check Rule Information can include the data check mode of legacy version
Information.It can be the script file or JSON for including data check mode information to verify file
(JavaScript Object Notation, JavaScript object representation) file, in reality
In scene, data check logic can be included in verification file, such as is adjusted when comprising verification data
Function, parameter, data operation commands etc..
The verification file for the redaction that got can be identified for resolution unit 602, so that
The corresponding input data of verification file of the redaction of determination.For example, when input data includes two
During the item above, if the data check mode information only to one of which is changed, newly
The verification file of version only includes the new check logic of the item data.Text is verified in configuration data
During part, resolution unit 602 can identify corresponding data from new check logic, so that
Verification mode only to the item data in data check file is updated, to other data
Verification mode is without modification.
In some optional implementations of the present embodiment, resolution unit 602 can be from new edition
The data check mode information of redaction is parsed in this data check mode information.Further
Ground, resolution unit 602 can include identification module and extraction module, and identification module can be to new
Configuration information in the verification file of version is identified, and extraction module can be extracted and new edition
This corresponding configuration information of verification mode, can identify redaction according to configuration information afterwards
Verification mode.Specifically, specific identifier that can be in each configuration information is identified,
It is into ginseng that " int " character recognition that for example can be in a configuration information, which goes out the configuration information,
Type goes out to join type.
After resolution unit 602 parses the data check mode information of redaction, loading is single
Member 603 can load the data check mode information of redaction in data check configuration file,
So as to update the data verification configuration file.After the data check mode information of loading redaction,
Input data can be verified according to the data check configuration file after renewal.Specifically,
When calling verification mode information, the number of redaction can be called by data check configuration file
Input data is verified according to verification mode information.
In some optional implementations of the present embodiment, the data that acquiring unit 601 is obtained
Verification configuration file can include the calling interface of data check mode information, loading unit 603
The data check mode information of this new edition can be loaded in the following way:Detect whether exist newly
The data check mode information of version, and in response to detecting the presence of the data check side of redaction
Formula information, the data school of redaction is called by the calling interface of above-mentioned data check mode information
Proved recipe formula information.Further, loading unit 603 can be loaded further in the following way
The data check mode information of redaction:Whether included in the data check file for judging redaction
Script keyword;If so, calling the data check of redaction using configured good script engine
Mode information.Wherein, script engine is based on script keyword and configured.
In some optional implementations of this implementation, it is single that device 600 can also include generation
First (not shown).Generation unit can be used for the renewal to data verification mode information based on user
Configuration operation, generates the verification file of redaction.After the verification file of generation redaction,
Village week 600 can configure to data check file, need not restart in configuration process system or
Program, when detecting input data to be verified, is entered using the data check file after renewal
Row verification.
It will be understood by those skilled in the art that the configuration device 600 of above-mentioned data check file is also
Including some other known features, such as processor, memory, in order to unnecessarily obscure
Embodiment of the disclosure, these known structures are not shown in figure 6.
The configuration device 600 for the data check file that the above embodiments of the present application are provided, by inciting somebody to action
Verification file is separated from data check configuration file, when verification rule is changed,
Only verification file can be modified, issue the verification file of redaction, then device 600 can
To obtain the verification file of redaction automatically and parse., can be automatic when carrying out data check
The data check mode information in the verification file of redaction is called to be verified, without restarting journey
Sequence or the new verification mode information of system can come into force.The dynamic for realizing data check file is matched somebody with somebody
Put, improve the stability of system operation.
Below with reference to Fig. 7, it illustrates suitable for for realizing the terminal device of the embodiment of the present application
Or the structural representation of the computer system 700 of server.
As shown in fig. 7, computer system 700 includes CPU (CPU) 701, its
Can according to the program being stored in read-only storage (ROM) 702 or from storage part 708
The program that is loaded into random access storage device (RAM) 703 and perform various appropriate actions
And processing.In RAM 703, the system that is also stored with 700 operates required various program sums
According to.CPU 701, ROM 702 and RAM 703 are connected with each other by bus 704.Input
/ output (I/O) interface 705 is also connected to bus 704.
I/O interfaces 705 are connected to lower component:Importation 706 including keyboard, mouse etc.;
Including cathode-ray tube (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.
Output par, c 707;Storage part 708 including hard disk etc.;And including such as LAN card,
The communications portion 709 of the NIC of modem etc..Communications portion 709 is via such as
The network of internet performs communication process.Driver 710 is also according to needing to be connected to I/O interfaces
705.Detachable media 711, such as disk, CD, magneto-optic disk, semiconductor memory etc.,
Be arranged on as needed on driver 710, in order to the computer program that reads from it according to
Need to be mounted into storage part 708.
Especially, in accordance with an embodiment of the present disclosure, the process described above with reference to flow chart can be with
It is implemented as computer software programs.For example, embodiment of the disclosure includes a kind of computer journey
Sequence product, it includes being tangibly embodied in the computer program on machine readable media, the meter
Calculation machine program bag, which contains, is used for the program code of the method shown in execution flow chart.Implement such
In example, the computer program can be downloaded and installed by communications portion 709 from network,
And/or be mounted from detachable media 711.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application,
Architectural framework in the cards, function and the operation of method and computer program product.This point
On, each square frame in flow chart or block diagram can represent a module, program segment or code
A part, the part of the module, program segment or code is used for comprising one or more
The executable instruction of logic function as defined in realizing.It should also be noted that being used as replacement at some
In realization, the function of being marked in square frame can also be with different from the order marked in accompanying drawing hair
It is raw.For example, two square frames succeedingly represented can essentially be performed substantially in parallel, they
Sometimes it can also perform in the opposite order, this is depending on involved function.It is also noted that
It is, each square frame in block diagram and/or flow chart and the square frame in block diagram and/or flow chart
Combination, can be realized with the special hardware based system of defined function or operation is performed,
Or can be realized with the combination of specialized hardware and computer instruction.
Being described in unit involved in the embodiment of the present application can be real by way of software
It is existing, it can also be realized by way of hardware.Described unit can also be arranged on processing
In device, for example, can be described as:A kind of processor include acquiring unit, resolution unit and
Loading unit.Wherein, the title of these units is not constituted to the unit sheet under certain conditions
The restriction of body, for example, acquiring unit is also described as " obtaining data check configuration file
With the unit of the verification file of redaction ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media,
The nonvolatile computer storage media can be described in above-described embodiment included in device
Nonvolatile computer storage media;Can also be individualism, without non-in supplying terminal
Volatile computer storage medium.Above-mentioned nonvolatile computer storage media be stored with one or
The multiple programs of person, when one or more of programs are performed by an equipment so that described
Equipment:Data check configuration file and the verification file of redaction are obtained, the data check is matched somebody with somebody
Put the data check mode information that legacy version has been loaded with file;Parse the school of the redaction
File is tested, to draw the data check mode information of redaction;Text is configured in the data check
The data check mode information of the redaction is loaded in part, to replace the data of the legacy version
Verification mode information simultaneously updates the data check configuration file.
Above description is only the preferred embodiment of the application and saying to institute's application technology principle
It is bright.It will be appreciated by those skilled in the art that invention scope involved in the application, is not limited
In the technical scheme of the particular combination of above-mentioned technical characteristic, do not departed from while should cover yet
In the case of the inventive concept, it is combined by above-mentioned technical characteristic or its equivalent feature
Formed by other technical schemes.Such as features described above and (but not limited to) disclosed herein
Technical characteristic with similar functions carries out technical scheme formed by replacement mutually.
Claims (10)
1. a kind of collocation method of data check file, it is characterised in that including:
Obtain data check configuration file and the verification file of redaction, the data check configuration
The data check mode information of legacy version has been loaded with file;
The verification file of the redaction is parsed, to draw the data check mode information of redaction;
And
The data check mode that the redaction is loaded in the data check configuration file is believed
Breath, is configured with replacing the data check mode information of the legacy version and updating the data check
File.
2. according to the method described in claim 1, it is characterised in that the data check configuration
File includes the calling interface of data check mode information,
The data check mode that the redaction is loaded in the data check configuration file
Information, including:
Detect whether the data check mode information that there is the redaction;
Data check mode information in response to detecting the presence of the redaction, passes through the number
The data check mode information of the redaction is called according to the calling interface of verification mode information.
3. according to the method described in claim 1, it is characterised in that the parsing new edition
This verification file, to draw the verification mode of redaction, including:
Configuration information in the verification file of the redaction is identified;
Extract configuration information corresponding with the verification mode of the redaction.
4. according to the method described in claim 1, it is characterised in that described in the data school
Test in configuration file and load the data check mode information of the redaction, including:
Judge whether include script keyword in the data check mode information of the redaction;
If so, calling the data check mode of the redaction using configured good script engine
Information;
Wherein, the script engine is based on the script keyword and configured.
5. the method according to claim any one of 1-4, it is characterised in that methods described
Also include:
The renewal of data verification mode information is configured based on user and operated, the redaction is generated
Verification file.
6. a kind of configuration device of data check file, it is characterised in that including:
Acquiring unit, the verification file for obtaining data check configuration file and redaction, institute
State the data check mode information that legacy version has been loaded with data check configuration file;
Resolution unit, the verification file for parsing the redaction, to draw the number of redaction
According to verification mode information;And
Loading unit, the number for loading the redaction in the data check configuration file
According to verification mode information, to replace the data check mode information of the legacy version and update described
Data check configuration file.
7. device according to claim 6, it is characterised in that the data check configuration
File includes the calling interface of data check mode information,
The loading unit includes:
Detection module, for detecting whether there is the data check mode information of the redaction;
Calling module, for believing in response to the data check mode for detecting the presence of the redaction
Breath, the data school of the redaction is called by the calling interface of the data check mode information
Proved recipe formula information.
8. device according to claim 6, it is characterised in that the resolution unit includes:
Identification module, the configuration information in the verification file of the redaction is identified;
Extraction module, extracts configuration information corresponding with the verification mode of the redaction.
9. device according to claim 6, it is characterised in that the loading unit enters one
Walk the data check mode information for loading the redaction as follows:
Judge whether include script keyword in the data check file of the redaction;
If so, calling the data check mode of the redaction using configured good script engine
Information;
Wherein, the script engine is based on the script keyword and configured.
10. the device according to claim any one of 6-9, it is characterised in that the dress
Putting also includes:
Generation unit, is operated for being configured based on user to the renewal of data verification mode information,
Generate the verification file of the redaction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610159287.1A CN107203714B (en) | 2016-03-18 | 2016-03-18 | Configuration method and device of data verification file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610159287.1A CN107203714B (en) | 2016-03-18 | 2016-03-18 | Configuration method and device of data verification file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107203714A true CN107203714A (en) | 2017-09-26 |
CN107203714B CN107203714B (en) | 2020-09-01 |
Family
ID=59904469
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610159287.1A Active CN107203714B (en) | 2016-03-18 | 2016-03-18 | Configuration method and device of data verification file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107203714B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107861832A (en) * | 2017-09-27 | 2018-03-30 | 深信服科技股份有限公司 | Data verification method, device and readable storage medium storing program for executing |
CN113259320A (en) * | 2021-04-12 | 2021-08-13 | 顶象科技有限公司 | Verification mode dynamic installation method, system, electronic device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101021890A (en) * | 2007-03-20 | 2007-08-22 | 华为技术有限公司 | Method, system and server for checking page data |
CN104104701A (en) * | 2013-04-08 | 2014-10-15 | 腾讯科技(深圳)有限公司 | Online service configuration updating method and system |
CN104199666A (en) * | 2014-09-09 | 2014-12-10 | 北京京东尚科信息技术有限公司 | Dynamic configuration method and device for application program |
CN106598633A (en) * | 2015-10-19 | 2017-04-26 | 北京国双科技有限公司 | Configuration file update method, client and server |
-
2016
- 2016-03-18 CN CN201610159287.1A patent/CN107203714B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101021890A (en) * | 2007-03-20 | 2007-08-22 | 华为技术有限公司 | Method, system and server for checking page data |
CN104104701A (en) * | 2013-04-08 | 2014-10-15 | 腾讯科技(深圳)有限公司 | Online service configuration updating method and system |
CN104199666A (en) * | 2014-09-09 | 2014-12-10 | 北京京东尚科信息技术有限公司 | Dynamic configuration method and device for application program |
CN106598633A (en) * | 2015-10-19 | 2017-04-26 | 北京国双科技有限公司 | Configuration file update method, client and server |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107861832A (en) * | 2017-09-27 | 2018-03-30 | 深信服科技股份有限公司 | Data verification method, device and readable storage medium storing program for executing |
CN107861832B (en) * | 2017-09-27 | 2020-11-13 | 深信服科技股份有限公司 | Data verification method and device and readable storage medium |
CN113259320A (en) * | 2021-04-12 | 2021-08-13 | 顶象科技有限公司 | Verification mode dynamic installation method, system, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107203714B (en) | 2020-09-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110602052B (en) | Micro-service processing method and server | |
US9979721B2 (en) | Method, server, client and system for verifying verification codes | |
US10276168B2 (en) | Voiceprint verification method and device | |
US9218813B2 (en) | Voice and/or facial recognition based service provision | |
US9923930B2 (en) | Selectively enabling and disabling biometric authentication based on mobile device state information | |
US8839379B2 (en) | Using an image to provide credentials for service access | |
CN109218390B (en) | User screening method and device | |
CN107277153A (en) | Method, device and server for providing voice service | |
US20220050893A1 (en) | Sentence based automated turing test for detecting scripted computing attacks | |
CN105101122A (en) | Verification code inputting method and device | |
US20170277703A1 (en) | Method for Displaying Webpage and Server | |
CN110930186A (en) | System, method, device, equipment and storage medium for task display | |
US11068892B2 (en) | System and method for secure personal information retrieval | |
CN112463106A (en) | Voice interaction method, device and equipment based on intelligent screen and storage medium | |
CN110636038A (en) | Account number analysis method, account number analysis device, security gateway and system | |
GB2581634A (en) | Providing reporting and analysis for campaign-driven messages and websites | |
US9818307B2 (en) | Communication device interface for a semantic-based creativity assessment | |
CN110046571B (en) | Method and device for identifying age | |
CN108809896A (en) | A kind of information calibration method, device and electronic equipment | |
CN107203714A (en) | The collocation method and device of data check file | |
CN112968797B (en) | Application configuration method, system and storage medium of cloud service software | |
JP7029557B1 (en) | Judgment device, judgment method and judgment program | |
CN103327047B (en) | The system and method for service is provided | |
CN110706221A (en) | Verification method, verification device, storage medium and device for customizing pictures | |
US10276169B2 (en) | Speaker recognition optimization |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |