CN109190396A - A kind of data automatic verification method, device and equipment - Google Patents

A kind of data automatic verification method, device and equipment Download PDF

Info

Publication number
CN109190396A
CN109190396A CN201810981730.2A CN201810981730A CN109190396A CN 109190396 A CN109190396 A CN 109190396A CN 201810981730 A CN201810981730 A CN 201810981730A CN 109190396 A CN109190396 A CN 109190396A
Authority
CN
China
Prior art keywords
default
mark
parameter
data
parameter name
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
CN201810981730.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.)
Hangzhou Dbappsecurity Technology Co Ltd
Original Assignee
Hangzhou Dbappsecurity Technology Co 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 Hangzhou Dbappsecurity Technology Co Ltd filed Critical Hangzhou Dbappsecurity Technology Co Ltd
Priority to CN201810981730.2A priority Critical patent/CN109190396A/en
Publication of CN109190396A publication Critical patent/CN109190396A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of data automatic verification method, device and equipment, comprising: obtains the operation requests comprising parameter name and corresponding parametric values;Whether include with parameter name corresponding mark, obtain corresponding testing result if detecting in default markup information;Wherein, presetting markup information is to the information obtained after arbitrary parameter name addition mark;Using testing result, judge whether parameter value is verified;If it is, whether certificate parameter value belongs to default valid data range, to judge whether the operation requests are legal.Namely, whether the present invention is verified using the default automatic parameter values for detection of markup information, further whether belong to valid data range using the automatic certificate parameter value of default valid data range, it can guarantee the safety of data by the above process, and realize automatic verifying, it solves the problems, such as that each verify data of the prior art is both needed to connection database and verifies manually to data, improves the efficiency of data verification.

Description

A kind of data automatic verification method, device and equipment
Technical field
The present invention relates to field of computer technology, in particular to a kind of data automatic verification method, device and equipment.
Background technique
Recently, web platform technology is more and more mature, along with the universal and interactive enhancing of website, also breeds and plants out The numerous security threats of class.Statistics display, web application loophole have become the maximum security risk in internet, and since user is defeated Security risk caused by entering occupies very high ratio, this not only threatens user information safety, also gives server, operating system, Even entire local area network brings danger, and therefore, carrying out verification to the data that user submits is essential safety precaution behave.
But in actual development, the data that user submits seldom or almost without verify just directly are used, such as: behaviour Make the data of unauthorized, the behaviors such as leakage privacy information, data are tampered, malicious operation, therefore it is hidden to cause very big safety Suffer from.Even if there is verifying, conventional operation is retrieved, is verified by the way that data are passed to database manually, and this mode is tested every time Card requires connection database, and inefficiency is cumbersome.It can be seen that how to guarantee the safety of data, and improve data The efficiency of verifying is current problem to be solved.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of data automatic verification method, device, equipment, medium, it can Guarantee the safety of data, and improves the efficiency of data verification.Its concrete scheme is as follows:
In a first aspect, the invention discloses a kind of data automatic verification methods, comprising:
Obtain operation requests;Wherein, the operation requests are the operation requests comprising parameter name and corresponding parametric values;
Whether include with the parameter name corresponding mark, obtain corresponding testing result if detecting in default markup information; Wherein, the default markup information is to the information obtained after arbitrary parameter name addition mark;
Using the testing result, judge whether the parameter value is verified;
If it is, verifying whether the parameter value belongs to default valid data range, to be according to verification result determination It is no to allow to respond the operation requests.
Optionally, whether described detect in default markup information includes mark corresponding with the parameter name, comprising:
Obtain the first default mark table;Wherein, the described first default mark table is directly to the column comprising whole parameter names The table obtained after the arbitrary parameter name addition mark for needing to be labeled in table;
Search the described first default mark table, with detect in the described first default mark table whether include and the parameter name Corresponding mark.
Optionally, whether described detect in default markup information includes mark corresponding with the parameter name, comprising:
Obtain the second default mark table;Wherein, the described second default mark table be after to arbitrary parameter name addition mark, The table generated using the parameter name and corresponding mark of addition mark;
Search the described second default mark table, with detect in the described second default mark table whether include and the parameter name Corresponding mark.
Optionally, before the acquisition operation requests, further includes:
It obtains list and shows request;
Request, which responds, to be shown to the list, to be shown to the list comprising whole parameter names;
Interface acquisition is screened for the screening instruction of arbitrary parameter name in the list by parameter preset name;
Corresponding parameter name is filtered out from the list according to screening instruction, and then the parameter name filtered out is added It marks, to obtain the default markup information.
Optionally, further includes:
The more new command for being directed to the default markup information by presetting the acquisition of more new interface;
The default markup information is updated according to the more new command.
Optionally, whether described detect in default markup information includes mark corresponding with the parameter name, is obtained corresponding Testing result judge whether the parameter value is verified using the testing result, comprising:
Whether detect in default markup information includes mark corresponding with the parameter name;
If it is, determining that the parameter value is verified.
Optionally, whether the verifying parameter value belongs to default valid data range, comprising:
Default valid data range accordingly is obtained using the parameter name;
Judge whether the parameter value belongs to the default valid data range;
If it is, determining that the parameter value belongs to valid data;
If it is not, then determining that the parameter value belongs to invalid data.
Optionally, after whether the verifying parameter value belongs to default valid data range, further includes:
If the parameter value belongs to valid data, it is verified, allows to respond the operation requests;
If the parameter value belongs to invalid data, verify and do not pass through, forbids responding the operation requests, and Return to prompt information.
Second aspect, the invention also discloses a kind of data to verify device automatically, comprising:
Request module, for obtaining operation requests;Wherein, the operation requests are to include parameter name and relevant parameter The operation requests of value;
Detection module is marked, in default markup information whether includes mark corresponding with the parameter name for detecting, obtains To corresponding testing result;Wherein, the default markup information is to the information obtained after arbitrary parameter name addition mark;
Judgment module judges whether the parameter value is verified for utilizing the testing result;
Data Verification module, for being verified when the parameter value, then verify the parameter value whether belong to it is pre- If valid data range, to determine whether to respond the operation requests according to verification result.
The third aspect, the invention also discloses a kind of data to verify equipment automatically, comprising:
Memory, for storing computer program;
Processor, the step of aforementioned disclosed data automatic verification method is realized when for executing the computer program.
As it can be seen that the present invention obtains the operation requests comprising parameter name and corresponding parametric values first, default markup information is detected In whether include mark corresponding with the parameter name, obtain corresponding testing result, wherein the default markup information be pair The information obtained after arbitrary parameter name addition mark, further utilizes the testing result, judges whether the parameter value needs It is verified;If it is, verify whether the parameter value belongs to default valid data range, to judge that the operation requests are It is no legal.That is, the present invention after getting operation requests, can be detected in operation requests automatically using default markup information Parameter value whether verified, if it is, further verifying parameter current automatically using default valid data range Whether value belongs to valid data range, to judge whether current operation request is legal, can guarantee data by the above process Safety may be implemented to verify verification automatically, solve due to presetting markup information and legal data area before The problem of each verify data is both needed to connection database and verifies manually to data in the prior art, improves data verification Efficiency.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of data automatic verification method flow chart provided by the present invention;
Fig. 2 is a kind of flow chart of specific data automatic verification method provided by the present invention;
Fig. 3 is a kind of flow chart of specific data automatic verification method provided by the present invention;
Fig. 4 is a kind of flow chart of specific data automatic verification method provided by the present invention;
Fig. 5 is a kind of flow chart of specific data automatic verification method provided by the present invention;
Fig. 6 is a kind of specific implementation process schematic diagram for initializing caching warehouse provided by the embodiment of the present invention;
Fig. 7 is a kind of specific implementation process schematic diagram that data are verified automatically provided by the embodiment of the present invention;
Fig. 8 is that a kind of data provided by the present invention verify apparatus structure schematic diagram automatically;
Fig. 9 is the hardware structural diagram that a kind of specific data provided by the present invention verify equipment automatically.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In the prior art, conventional data verification operation is to be retrieved, verified by the way that data are passed to database manually, This mode is verified every time requires connection database, and inefficiency is cumbersome.For this purpose, the present invention passes through preset mark Information and preset valid data range realize the automatic verifying to data, greatly improve data verification efficiency.
Shown in Figure 1, the embodiment of the invention discloses a kind of data automatic verification methods, comprising:
Step S101: operation requests are obtained;Wherein, the operation requests are the operation comprising parameter name and corresponding parametric values Request;
It should be noted that needing to initialize automatic access control device, and detection is in application server initial start-up No there are caching warehouses, and caching warehouse, then initialize default caching warehouse into memory if it does not exist;Buffering chamber if it exists The configuration file of caching warehouse is then read, and caching warehouse is initialized according to configuration information in library.
The operation requests obtained in the present embodiment, can be that user checks data, the operation that is deleted or modified is asked It asks.It is understood that the operation requests should include the corresponding parameter name of the object to be operated and corresponding parameter value.
Step S102: whether include with the parameter name corresponding mark, obtain corresponding if detecting in default markup information Testing result;Wherein, the default markup information is to the information obtained after arbitrary parameter name addition mark;
Specifically, default markup information can be stored in the form of table.It include parameter name and phase when getting When answering the operation requests of parameter value, the parameter name in operation requests is parsed using automatic access control device, is further existed Search whether to include mark corresponding with the parameter name in the table generated using default markup information.
Step S103: the testing result is utilized, judges whether the parameter value is verified;
In the present embodiment, being added to mark, then characterization needs to verify the corresponding parameter value of presently described parameter name, That is, determining that the parameter value is verified if including mark corresponding with the parameter name in default markup information; If not including mark corresponding with the parameter name in default markup information, determine that the parameter value does not need to be verified. It is of course also possible to whether be needed by way of to the parameter name addition mark for not needing to carry out certificate parameter value come differentiation parameter value Verify, include mark corresponding with the parameter name in even default markup information, then determine the parameter value do not need into Row verifying;If not including mark corresponding with the parameter name in default markup information, determine that the parameter value needs to carry out Verifying, it is not limited here.
Step S104: if it is, verifying whether the parameter value belongs to default valid data range, to tie according to verifying Fruit determines whether to respond the operation requests.
It is understood that being obtained described in caching warehouse if judging result is that the parameter value is verified The corresponding default valid data range of parameter name, further verifies whether the parameter value belongs to default valid data model automatically It encloses, if the parameter value belongs to default valid data range, shows that current operation request is legal, be verified, and allow pair The operation requests are responded;If the parameter value is not belonging to default valid data range, show that current operation request is non- Method, verifying do not pass through, forbid responding the operation requests, and return to friendly prompt information, remind user to have input non- The data of method.
As it can be seen that the present invention obtains the operation requests comprising parameter name and corresponding parametric values first, default markup information is detected In whether include mark corresponding with the parameter name, obtain corresponding testing result, wherein the default markup information be pair The information obtained after arbitrary parameter name addition mark, further utilizes the testing result, judges whether the parameter value needs It is verified;If it is, verify whether the parameter value belongs to default valid data range, to judge that the operation requests are It is no legal.That is, the present invention after getting operation requests, can be detected in operation requests automatically using default markup information Parameter value whether verified, if it is, further verifying parameter current automatically using default valid data range Whether value belongs to valid data range, to judge whether current operation request is legal, can guarantee data by the above process Safety may be implemented to verify verification automatically, solve due to presetting markup information and legal data area before The problem of each verify data is both needed to connection database and verifies manually to data in the prior art, improves data verification Efficiency.
Data automatic verification method provided by the present invention is carried out below by another specific embodiment further detailed Thin to illustrate, referring to shown in Fig. 2, which includes:
Step S201: operation requests are obtained;Wherein, the operation requests are the operation comprising parameter name and corresponding parametric values Request;
Step S202: the first default mark table is obtained;Wherein, the described first default mark table is directly to including whole ginsengs The table obtained after the arbitrary parameter name addition mark for needing to be labeled in several lists;Search the described first default mark Whether table in the described first default mark table includes mark corresponding with the parameter name to detect;
Specifically, the first default mark table is obtained;The described first default mark table is searched, thus the default mark of detection first It whether include mark corresponding with the parameter name in table.It should be noted that the generating process of the described first default mark table In, it needs first to obtain the list comprising whole parameter names, further the arbitrary parameter name for needing to be labeled in list is added Mark, to obtain the first default mark table;In addition, the first default mark table can only include whole parameter names, and to it Middle arbitrary parameter name addition mark;It is also possible to parameter name and its corresponding parameter value comprising whole, and right on this basis Wherein arbitrary parameter name addition mark, this does not influence realization of the invention, herein without limiting.
Step S203: the testing result is utilized, judges whether the parameter value is verified;
Step S204: if it is, verifying whether the parameter value belongs to default valid data range, to tie according to verifying Fruit determines whether to respond the operation requests.
Data automatic verification method provided by the present invention is carried out below by another specific embodiment further detailed Thin to illustrate, referring to shown in Fig. 3, which includes:
Step S301: operation requests are obtained;Wherein, the operation requests are the operation comprising parameter name and corresponding parametric values Request;
Step S302: the second default mark table is obtained;Wherein, the described second default mark table is to add to arbitrary parameter name After marking, the parameter name of addition mark and the table of corresponding mark generation are utilized;The described second default mark table is searched, It in the described second default mark table whether include mark corresponding with the parameter name to detect;
In the present embodiment, being added to mark, then characterization needs to verify the corresponding parameter value of presently described parameter name, Described second default mark table is the table generated using the parameter name and corresponding mark of addition mark, pre- compared to first Bidding note table, the second default mark table no longer include the parameter name for being not added with mark, i.e., the second default mark table is only Include the corresponding parameter name of parameter value for needing to verify.
It is understood that during the default mark table of generation second, compared to the first default mark table to the ginseng Except several addition marks, it is also necessary to the parameter name for adding mark and its mark in addition be generated an individual table, expended Regular hour and space, but constantly obtained during subsequent authentication and account for the default mark table of memory lesser second simultaneously It is searched, can have faster retrieval rate, therefore the time cost that generating process expends more can be ignored.
Step S303: the testing result is utilized, judges whether the parameter value is verified;
Step S304: if it is, verifying whether the parameter value belongs to default valid data range, to tie according to verifying Fruit determines whether to respond the operation requests.
Data automatic verification method provided by the present invention is carried out below by another specific embodiment further detailed Thin to illustrate, referring to shown in Fig. 4, which includes:
Step S401: it obtains list and shows request;
In the present embodiment, obtains list and show the operation requests that request can be initiated for administrator or developer.This reality It applies in example, in application server initial start-up, initializes automatic access control device, and detect whether there are caching warehouse, Caching warehouse if it does not exist then initializes default caching warehouse into memory;Caching warehouse if it exists then reads caching warehouse Configuration file, and caching warehouse is initialized according to configuration information.
Step S402: request, which responds, to be shown to the list, to be shown to the list comprising whole parameter names;
Specifically, request, which responds, to be shown to the list, shows the list comprising whole parameter names.It is specifically as follows List comprising whole parameter names and its corresponding parameter value, it is preferred that can be the list only comprising whole parameter names.
Step S403: interface acquisition is screened by parameter preset name and is referred to for the screening of arbitrary parameter name in the list It enables;
It is understood that administrator or developer are to described complete after getting the list comprising whole parameter names Portion's parameter name is screened according to certain degree of secrecy, is selected the corresponding parameter name of the parameter value verified and is carried out Mark.For example, the higher arbitrary parameter name of degree of secrecy can be labeled, show that it is verified.
In the present embodiment, interface is screened by parameter preset name and gets the corresponding screening instruction of arbitrary parameter name.Specifically Ground, it can be wire communication interface or wireless communication interface that parameter preset name, which screens interface,.For example, specifically can be USB communication Interface or blue tooth interface.
Step S404: corresponding parameter name is filtered out from the list according to screening instruction, then to filtering out Parameter name add mark, to obtain the default markup information;
Specifically, it after getting the screening instruction, is filtered out from the list comprising whole parameter names corresponding Parameter name, to the parameter name addition mark filtered out, to demonstrate the need for verifying the corresponding parameter value of the parameter name.
Further, the more new command to the default markup information, and root can also be obtained by default more new interface The default markup information is updated according to more new command, such as: default more new interface is got in default markup information The deletion of a certain mark instructs, then is instructed according to the deletion and delete the mark;Or, default more new interface gets addition newly The addition of mark instructs, then the new mark is added to default markup information according to addition instruction.Furthermore it is also possible to by pre- If the setting instruction that interface obtains default valid data range corresponding to parameter name is arranged, and described pre- according to setting instruction setting If valid data range.
Step S405: operation requests are obtained;Wherein, the operation requests are the operation comprising parameter name and corresponding parametric values Request;
Step S406: whether include with the parameter name corresponding mark, obtain corresponding if detecting in default markup information Testing result;Wherein, the default markup information is to the information obtained after arbitrary parameter name addition mark;
Step S407: the testing result is utilized, judges whether the parameter value is verified;
Step S408: if it is, verifying whether the parameter value belongs to default valid data range, to tie according to verifying Fruit determines whether to respond the operation requests.
Data automatic verification method provided by the present invention is carried out below by another specific embodiment further detailed Thin to illustrate, referring to Figure 5, which includes:
Step S501: it obtains list and shows request;
In the present embodiment, before obtaining list displaying request, in system initial start-up, as shown in fig. 6, starting application clothes Business device, initializes automatic access control device, and detect whether that there are caching warehouses, caching warehouse, then initialize if it does not exist Caching warehouse is defaulted into memory, such as: custom-configure the storage of the single machines list services cache such as Map, Cache, List;If it exists Caching warehouse then reads the configuration file of caching warehouse, and initializes caching warehouse according to configuration information, such as: initialization Redis, the caching storage of Encache, Cacheonix, JBoss cache, Voldemort distributed;Further according to configuration File generated Warehouse object.
It should be noted that application program is the default mark of parameter name calibration in initialization controller method, it is specific which A little parameter names need default mark, can be according to specific service conditions from the point of view of, can be one or more.For example, answering When being started with program, initialization controller method editDB (mark id, mark name, address), wherein editDB is control Device method, id, name and address are parameter names, and id and name identify default mark.
In the present embodiment, using the distributed caching warehouse of configuration, guarantee under framework the availability of application service and reliable Property, can ensure verify data notice of change to application server real-time and consistency.
Step S502: request, which responds, to be shown to list, shows corresponding list;
In the present embodiment, shows that list is shown and request corresponding list, obtain Warehouse object, at this time administrator or exploit person Default valid data range is arranged to warehouse using set (key, value) method in member, which is set in a manner of key-value pair It sets, key value is equivalent to a label, need to be unique in data warehouse.Specifically, developer can be customized according to business demand Different-format, different type etc. can also be replaced, be updated, removing existing data, ensure that the high flexibility and data of operation Uniqueness.
Step S503: operation requests are obtained;Wherein, the operation requests are the operation comprising parameter name and corresponding parametric values Request;
It is understood that Client-initiated operation requests need to include parameter name and corresponding parametric values.For example, when user grasps When requesting access to editDB, need to upload tri- parameter names of id, name and address and its corresponding parameter value.
Step S504: judging whether the parameter name is added to default mark in automatic controller, thus described in judgement Whether the corresponding parameter value of parameter name needs to verify;
Specifically, in automatic access control device, the operation requests are parsed, check that the parameter name in operation requests is corresponding Automatic access control device in parameter name whether be added to default mark before, if it is, determine current parameter value need It is verified.For example, user uploads tri- parameter names of id, name and address and its corresponding parameter value, analytic parameter Name gets id the and name parameter name in automatic access control device and added default mark, then shows id and name couples The parameter value answered is verified.
Step S505: if it is, obtaining Warehouse object, whether certificate parameter value belongs to default valid data range;
In the present embodiment, the data verified for needs obtain Warehouse object in automatic access control device, utilize get (key) method obtains the corresponding value value of key namely default valid data range, the parameter value that user is uploaded and default conjunction Method data area is compared, and whether certificate parameter value belongs within the scope of default valid data, to further determine whether to allow The operation requests are responded.
Specifically, if parameter value belongs within the scope of default valid data, determine that the parameter value belongs to valid data;If Parameter value is not belonging within the scope of default valid data, then determines that the parameter value belongs to invalid data.
Step S506: if the parameter value belongs to valid data, being verified, and allows to carry out the operation requests Response;If the parameter value belongs to invalid data, verify and do not pass through, forbids responding the operation requests, and return Return prompt information.
It is understood that prompt information can be set manually or default, specific information and format in advance It can be defined with independent and flexible.
Specifically, each process of above-described embodiment can refer to the specific reality that Fig. 7 data of the embodiment of the present invention are verified automatically It applies shown in process schematic.
Detailed explanation is carried out below by specific steps of the example way to above-described embodiment, such as: manager Zhang San There are 10 subordinaties, the id of 10 subordinaties is (1,2,3,4,5,6,7,8,9,10), and manager Li Si has 5 subordinaties, the id of 5 subordinaties Corresponding (11,12,13,14,15), each manager can only operate the subordinate of oneself, therefore, pass through set (' Zhang San EditDB ', ' { ' id ': [1,2,3,4,5,6,7,8,9,10] } ') method can be set manager Zhang San operating right, pass through Set (' Li Si editDB ', ' { ' id ': [11,12,13,14,15] } ') operating right for handling Li Si can be set.
For handling Zhang San, if manager Zhang San will modify the information of subordinate, the access url for modifying request is http: // Www.baidu.com/editDB? the BeiJing ZhongGuanCun id=11&name=king Wu &address=.
When the operation requests for getting manager Zhang San, url is parsed using automatic access control device, obtains id=11, and it is first In beginningization controller method editDB (mark id, mark name, address), parameter name id and name identify pre- bidding Note, then it represents that verified.
Further the corresponding parameter value of parameter name id is verified, is acquired by get (Zhang San editDB) method { ' id ', [1,2,3,4,5,6,7,8,9,10] }, and currently handle the corresponding parameter value of id parameter name in the operation requests of Zhang San It is 11, not within the scope of default valid data, therefore, it is determined that the parameter value belongs to invalid data, forbids to the operation requests It is responded, and returns to prompt information.
In the present embodiment, due to defining data area in caching warehouse, specified user can only correspond to it Legal range in data operated, developer no longer needs to do the data checked, modify, deleted additional data power Check logic code development is limited, program meeting automatic benchmarking knows and data are verified, and improves development efficiency.
It verifies device automatically to data disclosed by the embodiments of the present invention below to be introduced, data described below are tested automatically Card device can correspond to each other reference with above-described data automatic verification method.
Fig. 8 is the structural block diagram that data disclosed by the embodiments of the present invention verify device automatically, and referring to Fig. 8, data are tested automatically Card device may include:
Request module 100, for obtaining operation requests;Wherein, the operation requests is comprising parameter names and accordingly The operation requests of parameter value;
Detection module 200 is marked, in default markup information whether includes mark corresponding with the parameter name for detecting, Obtain corresponding testing result;Wherein, the default markup information is to the information obtained after arbitrary parameter name addition mark;
Judgment module 300 judges whether the parameter value is verified for utilizing the testing result;
Data Verification module 400 then verifies whether the parameter value belongs to for being verified when the parameter value Default valid data range, to determine whether to respond the operation requests according to verification result.
The data of the present embodiment verify device automatically for realizing data automatic verification method above-mentioned, therefore about data The more specifical course of work of modules in automatic verifying device can refer to corresponding contents disclosed in previous embodiment, This is repeated no more.
Further, the embodiment of the invention also discloses a kind of data to verify equipment, including processor 11 and storage automatically Device 12, wherein the processor 11 performs the steps of when executing the computer program saved in the memory 12
Obtain operation requests;Wherein, the operation requests are the operation requests comprising parameter name and corresponding parametric values;Detection Whether include mark corresponding with the parameter name in default markup information, obtains corresponding testing result;Wherein, described default Markup information is to the information obtained after arbitrary parameter name addition mark;Using the testing result, judge that the parameter value is It is no to be verified;If it is, verifying whether the parameter value belongs to default valid data range, according to verification result It determines whether to respond the operation requests.
In the present embodiment, the processor 11 can be specifically real when executing the computer program saved in the memory 12 Existing following steps: the first default mark table is obtained;Wherein, the described first default mark table is directly to including whole parameter names The table obtained after the arbitrary parameter name addition mark for needing to be labeled in list;The described first default mark table is searched, with inspection Whether survey in the described first default mark table includes mark corresponding with the parameter name.
In the present embodiment, the processor 11 can be specifically real when executing the computer program saved in the memory 12 Existing following steps: the second default mark table is obtained;Wherein, the described second default mark table is to add mark to arbitrary parameter name Afterwards, the table generated using the parameter name of addition mark and corresponding mark;The described second default mark table is searched, with detection It whether include mark corresponding with the parameter name in the second default mark table.
In the present embodiment, the processor 11 can be specifically real when executing the computer program saved in the memory 12 Existing following steps: it obtains list and shows request;Request, which responds, to be shown to the list, to the column comprising whole parameter names Table is shown;Interface acquisition is screened for the screening instruction of arbitrary parameter name in the list by parameter preset name;According to The screening instruction filters out corresponding parameter name from the list, then to the parameter name addition mark filtered out, to obtain To the default markup information.
In the present embodiment, the processor 11 can be specifically real when executing the computer program saved in the memory 12 Existing following steps: the more new command for being directed to the default markup information by presetting the acquisition of more new interface;Referred to according to the update Order is updated the default markup information.
In the present embodiment, the processor 11 can be specifically real when executing the computer program saved in the memory 12 Whether existing following steps: detecting in default markup information includes mark corresponding with the parameter name;If it is, described in determining Parameter value is verified.
In the present embodiment, the processor 11 can be specifically real when executing the computer program saved in the memory 12 Existing following steps: default valid data range accordingly is obtained using the parameter name;Judge whether the parameter value belongs to institute State default valid data range;If it is, determining that the parameter value belongs to valid data;If it is not, then determining the parameter Value belongs to invalid data.
In the present embodiment, the processor 11 can be specifically real when executing the computer program saved in the memory 12 Existing following steps: it if the parameter value belongs to valid data, is verified, allows to respond the operation requests; If the parameter value belongs to invalid data, verify and do not pass through, forbids responding the operation requests, and return to prompt Information.
Further, shown in Figure 9, the data in the present embodiment verify equipment automatically, can also include:
Input interface 13, for obtaining the computer program of extraneous importing, and the computer program that will acquire save to In the memory 12, it can be also used for the various instructions and parameter that obtain extraneous terminal device transmission, and be transmitted to processor In 11, so that processor 11 is handled accordingly using above-mentioned various instructions and parametric evolving.In the present embodiment, the input interface 13, which can specifically include but be not limited to USB interface, serial line interface, speech input interface, fingerprint input interface, hard disk, reads interface Deng.
Output interface 14, the various data for generating processor 11 are exported to coupled terminal device, so as to The various data of the generation of processor 11 can be got in other terminal devices being connected with output interface 14.In the present embodiment, The output interface 14 can specifically include but be not limited to USB interface, serial line interface etc..
In some embodiments, data verify equipment automatically to include communication unit 15, be used for and external server Between establish telecommunication connection, obtain the data that extraneous terminal is sent, be then forwarded to processor 11 and carry out processing analysis, separately Outside, the various results obtained after processing can also be sent to preset various data receivers by communication unit 15 by processor 11 End.In the present embodiment, the communication technology used by above-mentioned communication unit 15 can be cable communicating technology or wireless communication technique, Such as universal serial bus (USB), adopting wireless fidelity technology (WiFi), Bluetooth Communication Technology, the low-power consumption bluetooth communication technology (BLE) Deng.In addition, communication unit 15 can specifically be grasped according to wideband code division multiple access (W-CDMA), long term evolution (LTE) and similar standard The cellular radio transceiver of work.
In some embodiments, it can also include display unit 16 that data verify equipment automatically, for sending out processor 11 The data brought are shown.
Further, the invention also discloses a kind of computer readable storage mediums, for storing computer program, In, the computer program realizes aforementioned disclosed data automatic verification method when being executed by processor.Tool about this method Body step can no longer be repeated herein with reference to corresponding contents disclosed in previous embodiment.
The present invention can detect the ginseng in operation requests using default markup information after getting operation requests automatically Whether numerical value is verified, if it is, further verifying current parameter value automatically using default valid data range is It is no to belong to valid data range, to judge whether current operation request is legal, it can guarantee the peace of data by the above process Quan Xing may be implemented to verify verification automatically, solve existing due to presetting markup information and legal data area before The problem of each verify data is both needed to connection database and verifies manually to data in technology, improves the effect of data verification Rate.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other The difference of embodiment, same or similar part may refer to each other between each embodiment.For being filled disclosed in embodiment For setting, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part Explanation.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
Detailed Jie has been carried out to data automatic verification method, device, equipment and storage medium provided by the present invention above It continues, used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only It is to be used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to this hair Bright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage Solution is limitation of the present invention.

Claims (10)

1. a kind of data automatic verification method characterized by comprising
Obtain operation requests;Wherein, the operation requests are the operation requests comprising parameter name and corresponding parametric values;
Whether include with the parameter name corresponding mark, obtain corresponding testing result if detecting in default markup information;Wherein, The default markup information is to the information obtained after arbitrary parameter name addition mark;
Using the testing result, judge whether the parameter value is verified;
If it is, verifying whether the parameter value belongs to default valid data range, to determine whether to permit according to verification result Perhaps the operation requests are responded.
2. data automatic verification method according to claim 1, which is characterized in that be in the default markup information of detection No includes mark corresponding with the parameter name, comprising:
Obtain the first default mark table;Wherein, the described first default mark table is directly in the list comprising whole parameter names The table obtained after the arbitrary parameter name addition mark for needing to be labeled;
The described first default mark table is searched, in the described first default mark table whether includes corresponding with the parameter name to detect Mark.
3. data automatic verification method according to claim 1, which is characterized in that be in the default markup information of detection No includes mark corresponding with the parameter name, comprising:
Obtain the second default mark table;Wherein, the described second default mark table is to utilize after to arbitrary parameter name addition mark The table that the parameter name and corresponding mark for adding mark generate;
The described second default mark table is searched, in the described second default mark table whether includes corresponding with the parameter name to detect Mark.
4. data automatic verification method according to claim 1, which is characterized in that before the acquisition operation requests, Further include:
It obtains list and shows request;
Request, which responds, to be shown to the list, to be shown to the list comprising whole parameter names;
Interface acquisition is screened for the screening instruction of arbitrary parameter name in the list by parameter preset name;
Corresponding parameter name is filtered out from the list according to screening instruction, then to the parameter name addition mark filtered out Note, to obtain the default markup information.
5. data automatic verification method according to claim 4, which is characterized in that further include:
The more new command for being directed to the default markup information by presetting the acquisition of more new interface;
The default markup information is updated according to the more new command.
6. data automatic verification method according to any one of claims 1 to 5, which is characterized in that the pre- bidding of detection Whether include with the parameter name corresponding mark, obtain corresponding testing result, using the testing result, sentence if infusing in information Whether the parameter value that breaks is verified, comprising:
Whether detect in default markup information includes mark corresponding with the parameter name;
If it is, determining that the parameter value is verified.
7. data automatic verification method according to claim 6, which is characterized in that whether the verifying parameter value belongs to In default valid data range, comprising:
Default valid data range accordingly is obtained using the parameter name;
Judge whether the parameter value belongs to the default valid data range;
If it is, determining that the parameter value belongs to valid data;
If it is not, then determining that the parameter value belongs to invalid data.
8. data automatic verification method according to claim 7, which is characterized in that whether verify the parameter value described Belong to after default valid data range, further includes:
If the parameter value belongs to valid data, it is verified, allows to respond the operation requests;
If the parameter value belongs to invalid data, verify and do not pass through, forbids responding the operation requests, and return Prompt information.
9. a kind of data verify device automatically characterized by comprising
Request module, for obtaining operation requests;Wherein, the operation requests are comprising parameter name and corresponding parametric values Operation requests;
Detection module is marked, in default markup information whether includes mark corresponding with the parameter name for detecting, obtains phase The testing result answered;Wherein, the default markup information is to the information obtained after arbitrary parameter name addition mark;
Judgment module judges whether the parameter value is verified for utilizing the testing result;
Data Verification module then verifies whether the parameter value belongs to default conjunction for being verified when the parameter value Method data area, to determine whether to respond the operation requests according to verification result.
10. a kind of data verify equipment automatically characterized by comprising
Memory, for storing computer program;
Processor realizes the automatic authentication of the data as described in any one of claim 1 to 8 when for executing the computer program The step of method.
CN201810981730.2A 2018-08-27 2018-08-27 A kind of data automatic verification method, device and equipment Pending CN109190396A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810981730.2A CN109190396A (en) 2018-08-27 2018-08-27 A kind of data automatic verification method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810981730.2A CN109190396A (en) 2018-08-27 2018-08-27 A kind of data automatic verification method, device and equipment

Publications (1)

Publication Number Publication Date
CN109190396A true CN109190396A (en) 2019-01-11

Family

ID=64916268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810981730.2A Pending CN109190396A (en) 2018-08-27 2018-08-27 A kind of data automatic verification method, device and equipment

Country Status (1)

Country Link
CN (1) CN109190396A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110797101A (en) * 2019-10-28 2020-02-14 腾讯医疗健康(深圳)有限公司 Medical data processing method, device, readable storage medium and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753605A (en) * 2008-12-02 2010-06-23 北大方正集团有限公司 Data validation method and server
CN102103639A (en) * 2011-01-26 2011-06-22 北京京东世纪贸易有限公司 Data verification method and device
CN105930258A (en) * 2015-11-13 2016-09-07 中国银联股份有限公司 Parameter filtering method and apparatus
CN107315958A (en) * 2016-04-26 2017-11-03 北京京东尚科信息技术有限公司 The legality identification method and device of data object
CN107395623A (en) * 2017-08-18 2017-11-24 广州视源电子科技股份有限公司 Interface access data verification method and device, computer-readable storage medium and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753605A (en) * 2008-12-02 2010-06-23 北大方正集团有限公司 Data validation method and server
CN102103639A (en) * 2011-01-26 2011-06-22 北京京东世纪贸易有限公司 Data verification method and device
CN105930258A (en) * 2015-11-13 2016-09-07 中国银联股份有限公司 Parameter filtering method and apparatus
CN107315958A (en) * 2016-04-26 2017-11-03 北京京东尚科信息技术有限公司 The legality identification method and device of data object
CN107395623A (en) * 2017-08-18 2017-11-24 广州视源电子科技股份有限公司 Interface access data verification method and device, computer-readable storage medium and equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110797101A (en) * 2019-10-28 2020-02-14 腾讯医疗健康(深圳)有限公司 Medical data processing method, device, readable storage medium and computer equipment
CN110797101B (en) * 2019-10-28 2023-11-03 腾讯医疗健康(深圳)有限公司 Medical data processing method, medical data processing device, readable storage medium and computer equipment

Similar Documents

Publication Publication Date Title
CN104519050B (en) Login method and login system
CN106911687B (en) Page construction control method and device
CN107077671B (en) Payment apparatus and method using security module
US20160210632A1 (en) Secured payment method and relevant device and system
CN109039987A (en) A kind of user account login method, device, electronic equipment and storage medium
CN105207996A (en) Account merging method and apparatus
CN103607385A (en) Method and apparatus for security detection based on browser
KR100697174B1 (en) Local and remote access to radio parametric and regulatory data and methods therefor
CN107015996A (en) A kind of resource access method, apparatus and system
CN109446819A (en) It goes beyond one's commission leak detection method and device
TW201528745A (en) System and method for facilitating communication between a web application and a local peripheral device through a native service
CN105577879B (en) A kind of book management method and mobile terminal
CN110287691A (en) Application program login method, device, equipment and storage medium
CN108038779A (en) Video face label identity checking method, device, equipment and readable storage medium storing program for executing
CN108123961A (en) Information processing method, apparatus and system
CN106656455A (en) Website access method and device
US10757214B2 (en) Crowd sourced online application cache management
CN103905514A (en) Server, terminal device and network data access right management method
CN104580237A (en) Method for logging into website, server used in method for logging into website, client terminal used in method for logging into website and peripheral used in method for logging into website
CN109190396A (en) A kind of data automatic verification method, device and equipment
CN110618990A (en) List report setting method, system and list report acquisition method
CN111046314A (en) Report form viewing method and device, electronic equipment and storage medium
KR102354058B1 (en) Method for monitoring server, apparatus and system for executing the method
CN107357861B (en) Method and device for presenting data based on visual control
CN111930736B (en) Data verification method and device

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

RJ01 Rejection of invention patent application after publication