CN109101812A - A kind of parameter verification method, apparatus, computing device and storage medium - Google Patents

A kind of parameter verification method, apparatus, computing device and storage medium Download PDF

Info

Publication number
CN109101812A
CN109101812A CN201810989832.9A CN201810989832A CN109101812A CN 109101812 A CN109101812 A CN 109101812A CN 201810989832 A CN201810989832 A CN 201810989832A CN 109101812 A CN109101812 A CN 109101812A
Authority
CN
China
Prior art keywords
parameter
rule
verification
server
file
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
CN201810989832.9A
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.)
NSFOCUS Information Technology Co Ltd
Beijing NSFocus Information Security Technology Co Ltd
Original Assignee
NSFOCUS Information Technology Co Ltd
Beijing NSFocus Information Security 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 NSFOCUS Information Technology Co Ltd, Beijing NSFocus Information Security Technology Co Ltd filed Critical NSFOCUS Information Technology Co Ltd
Priority to CN201810989832.9A priority Critical patent/CN109101812A/en
Publication of CN109101812A publication Critical patent/CN109101812A/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/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication

Abstract

This application discloses a kind of parameter verification method, apparatus, computing device and storage mediums, are related to technical field of information processing.In this method, in the rule file shared from client and server-side, the corresponding verification rule of parameter identification is searched.Parameter is verified according to the verification rule found.When determining that submission parameter is changed, the corresponding rule file of page iden-tity is updated, updated rule file is previously according to made of the page editing after change.The application ensure that the verifying consistency of client and server-side, when page configuration is changed, without changing the logic judgment code of client and server-side, it is only necessary to change a rule file, be conducive to the exploitation and maintenance of parameter verification rule.

Description

A kind of parameter verification method, apparatus, computing device and storage medium
Technical field
This application involves technical field of information processing more particularly to parameter verification method, apparatus, computing device and storage to be situated between Matter.
Background technique
Web program is a kind of application program that can be accessed by browser, with the development of Web, Internet application journey Sequence is more and more wider.Internet program has been not limited to the displaying of static page, and the interaction that user participates in is more and more, submission Data also become increasingly complex.
The parameter needs that user is submitted by web interface are all verified at the end Web and server end, for Verification Part needs to write complicated logic judgment code to verify to the parameter of submission.For example, the end Web passes through in script file Static code parameter that user is submitted verify, after being verified, parameter is submitted to server by the end Web, then by Server verifies parameter according to dynamic code.
Since the parameter for needing to submit in web interface can change often, and these submit the change of parameter to require to modify Corresponding logic judgment code realizes the verifying to parameter, and the modification of code includes browser end and web server end, institute It is low with maintenance efficiency with the Verification method exploitation of the prior art.
Summary of the invention
The embodiment of the present application provides a kind of parameter verification method, apparatus, computing device and storage medium.
In a first aspect, the embodiment of the present application provides a kind of parameter verification method, this method comprises:
Obtain the parameter identification for the parameter that user inputs in the page;
In the rule file shared from client and server-side, search the corresponding verification rule of the parameter identification;
The parameter is verified according to the verification rule found.
Further, the above method further include:
Obtain the page iden-tity of the page;
In the rule file shared from client and server-side, rule file corresponding with the page iden-tity is obtained;
In the rule file shared from client and server-side, the corresponding verification rule of the parameter identification is searched, specifically Include:
From rule file corresponding with the page iden-tity, search the corresponding verification rule of the parameter identification.
Further, from the shared rule file of client and server-side, the corresponding verification of the lookup parameter identification Rule, comprising:
Obtain the parameter identification for the parameter that user inputs in the page;
Successively the parameter identification in the shared rule file of the parameter identification and client and server-side is carried out Matching obtains the corresponding verification rule of matched parameter identification.
Further, the parameter is verified according to the verification rule found, comprising:
The field value for indicating whether subparameter is read from verification rule, and according to parameter value in verification rule Proof rule verifies the legitimacy of the parameter;
If the field value indicates subparameter, and the parameter is legal, then obtains the parameter identification of the subparameter of the parameter; And the corresponding verification rule of parameter identification that the subparameter is obtained from verification rule verifies the subparameter.
Further, the above method further include:
When determining that the submission parameter is changed, the corresponding rule file of the page iden-tity is updated, it is updated Rule file is previously according to made of the page editing after change.
Further, the above method further includes;
The rule file is structured document;
Client is that the rule file is obtained from server by the url for obtaining rule file;
Server is to obtain the rule file under specified path by storage rule file.The embodiment of the present application is also A kind of parameter calibrator is provided, which includes:
First identifier obtains module, for obtaining the parameter identification for the parameter that user inputs in the page;
First searching module, for from the shared rule file of client and server-side, the lookup parameter identification pair The verification rule answered;
Correction verification module, for being verified according to the verification rule found to the parameter.
Further, above-mentioned apparatus further include:
Second identifier obtains module, for obtaining the page iden-tity of the page;
Module is obtained, for obtaining corresponding with the page iden-tity from the shared rule file of client and server-side Rule file;
First searching module, specifically includes:
First searching unit, for from rule file corresponding with the page iden-tity, the lookup parameter identification pair The verification rule answered.
Another embodiment of the application additionally provides a kind of computing device, including at least one processor;And with it is described extremely The memory of few processor communication connection;Wherein, the memory, which is stored with, to be executed by least one described processor Instruction, described instruction is executed by least one described processor, so that at least one described processor is able to carry out the application Any parameter verification method that embodiment provides.
Another embodiment of the application additionally provides a kind of computer storage medium, wherein the computer storage medium is deposited Computer executable instructions are contained, the computer executable instructions are for making computer execute any in the embodiment of the present application Parameter verification method.
Parameter verification method, apparatus, computing device and storage medium provided by the embodiments of the present application, due to client kimonos A rule file is shared at business end, ensure that the consistency of both ends verifying, when page setup needs to change, does not need modification visitor The logic judgment code at family end and server-side, it is only necessary to change a rule file, be conducive to the exploitation and maintenance of code.
Other features and advantage will illustrate in the following description, also, partly become from specification It obtains it is clear that being understood and implementing the application.The purpose of the application and other advantages can be by written explanations Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is the schematic diagram of the application scenarios of parameter verification method in the embodiment of the present application;
Fig. 2 is the flow diagram of parameter verification method in the embodiment of the present application;
Fig. 3 is the schematic diagram of another application scene in the embodiment of the present application;
Fig. 4 is the schematic diagram of the rule file of the application scenarios in the embodiment of the present application;
Fig. 5 is the structural schematic diagram of parameter calibrator in the embodiment of the present application;
Fig. 6 is the structural schematic diagram according to the computing device of the application embodiment.
Specific embodiment
A kind of side of parameter verification is provided for the ease of verifying to the parameter that user submits, in the embodiment of the present application Method.In order to better understand technical solution provided by the present application, the basic principle of the program is done briefly describe here:
Parameter identification and client and server-side, are successively total to by the parameter identification for obtaining the parameter that user inputs in the page The parameter identification in rule file enjoyed is matched, and the corresponding verification rule of matched parameter identification is obtained.From parameter identification The field value for indicating whether subparameter is read in corresponding verification rule, and according to the verifying of parameter value in verification rule The legitimacy of the rule verification parameter.If the field value indicates subparameter, and the parameter is legal, then obtains the son of the parameter The parameter identification of parameter;And the corresponding verification rule of parameter identification that the subparameter is obtained from verification rule is to the subparameter It is verified.
When determining that submission parameter is changed, the corresponding rule file of page iden-tity, updated rule file are updated For previously according to made of the page editing after change.Rule of correspondence file, and client and service are obtained according to parameter identification It holds and shares a rule file, ensure that the consistency of both ends verifying.When submitting parameter to need to change, a rule need to be only modified Then file is conducive to the exploitation and maintenance of parameter verification rule.
As shown in Figure 1, it is the schematic diagram of a scenario for completing parameter verification by scheme provided by the embodiments of the present application.It should It include terminal device 11, the server 12 of user 10 in scene.
User 10 can be by submitting parameter to server 12 in terminal device 11.Wherein, terminal device 11 is being submitted Before parameter, first according to the shared rule file of terminal device and server-side to the parameter verification of submission.Wherein, rule file can To be stored in web server end, can also individually store.After server 12 receives the parameter of submission, according to shared rule Then file again verifies parameter.Terminal device 11 is identical with method of the server 12 to parameter verification, below with service Device 12 is illustrated the process of verification for verifying.
Server 12 obtains the parameter identification of parameter that user inputs in the page, successively by parameter identification and client and Parameter identification in the shared rule file of server-side is matched, and the corresponding verification rule of matched parameter identification is obtained.
Server 12 reads the field value for indicating whether subparameter from verification rule, and according in verification rule The proof rule of parameter value verifies the legitimacy of the parameter;
If the field value indicates subparameter, and the parameter is legal, then the parameter of the subparameter getparms of server 12 Mark;And the corresponding verification rule of parameter identification that the subparameter is obtained from verification rule, the parameter that verification user 10 submits It is whether legal.
Wherein, terminal device 11 and PC machine 12 can be communicatively coupled by communication network, the network can for local area network, Wide area network etc., naturally it is also possible to be connected by line.Terminal device 11 can be mobile phone, tablet computer, laptop, personal meter Calculation machine etc..
In addition it is also necessary to illustrate, the parameter verification method provided in the embodiment of the present application is applicable not only to background skill Browser and server described in art applies also for the scene that any required two sides carry out parameter verification.Such as also it is suitble to move The parameter submitted in application in dynamic terminal, the application e.g. online shopping application, game application etc..To sum up, being suitble to appoint The scene what interface submits parameter to be verified by terminal and server-side.
Parameter verification method provided by the embodiments of the present application is described further below with reference to referring to attached drawing, such as Fig. 2, is The flow diagram of parameter verification method, comprising the following steps:
Step 201: obtaining the parameter identification for the parameter that user inputs in the page.
Step 202: in the rule file shared from client and server-side, searching the corresponding verification rule of parameter identification.
Step 203: parameter being verified according to the verification rule found.
In the present embodiment, since client and server-side share rule file, it ensure that client and server end is verified Consistency, when changing page configuration item, it is regular only to change a set of verification, without changing browser and server two sides Logic judgment code, so the development and maintenance cost of code can be saved.
Further, the rule file of the different pages can be one, i.e., multiple corresponding rule files of the page.When So, for the ease of the exploitation of rule file and maintenance, the corresponding rule file of a page in the embodiment of the present application.It is based on This, in the embodiment of the present application, can also first obtain the page iden-tity of the page;Rule text then shared from client and server-side In part, rule file corresponding with page iden-tity is obtained.In this way, the rule file shared from client and server-side above-mentioned In, search parameter identification corresponding verification rule, can be performed are as follows: from rule file corresponding with page iden-tity, lookup parameter Identify corresponding verification rule.
In the present embodiment, the corresponding verification rule of parameter identification is searched from the corresponding rule file of page iden-tity, due to The corresponding rule file of one page, then the information in rule file is only the information needed in the page, a page In verification rule information content less than the information content for verifying rule in multiple pages, search parameter identification pair so as to improve The efficiency for the verification rule answered.
Further, verifying searching for rule can be associated with specific reference to the mode of writing of rule file.The application is real It applies in example and is illustrated with following two example to verification rule is searched, when it is implemented, can also be specific according to actual needs Setting, is not specifically limited here:
In the rule file shared from client and server-side, search the corresponding verification rule of parameter identification, comprising: obtain The parameter identification for the parameter that user inputs in the page, the rule file for successively sharing parameter identification and client and server-side In parameter identification matched, obtain matched parameter identification corresponding verification rule.
For example, the parameter that user inputs in the page is " student ", and " student " has a unique parameter identification, rule Verification rule corresponding to each parameter identification is also unique in file.According to the parameter identification and rule file of " student " In parameter identification one by one match, obtain " student " parameter identification corresponding to verification rule.
In the present embodiment, the parameter identification of each parameter is unique, and each parameter identification in rule file Corresponding verification rule is also unique, it is possible to accurately verification rule getparms.
Further, the parameter is verified according to the verification rule found, comprising:
The field value for indicating whether subparameter is read from verification rule, and according to parameter value in verification rule Proof rule verifies the legitimacy of the parameter;
If the field value indicates subparameter, and the parameter is legal, then the parameter identification of subparameter getparms;And The corresponding verification rule of parameter identification that the subparameter is obtained from verification rule verifies the subparameter.
In the present embodiment, when the parameter of user's input has subparameter, and the parameter inputted is legal, sub- ginseng getparms Several parameter identifications;And the corresponding verification of parameter identification that the subparameter is obtained from verification rule it is regular to the subparameter into Row verification.It i.e. when the parameter of input has subparameter, is verified according to corresponding verification rule, without by the prior art Logic judgment code carry out parameter verification, so, the embodiment of the present application is also not present that logical code is excessively complicated, is difficult to develop With the problem of maintenance etc..
Fig. 3 is the schematic diagram of the application scenarios of the present embodiment.Parameter is occupation type in the present embodiment, such as " student ", Its subparameter submitted is " student's type ", such as " university student ", and the subparameter of " student's type " is " graduated school ", such as " Tsinghua University, Peking University, the Renmin University of China ".It reads from verification rule for indicating that " occupation type " has sub- ginseng first Several field values determines that it has subparameter, and includes " student's type " in subparameter.According to the parameter identification of " student's type ", Whether legal verify the subparameter " student's type " submitted.It reads from " student's type " corresponding verification rule for indicating it There is the field value of subparameter, determine that it has subparameter, and includes " graduated school " in subparameter.According to the parameter of " graduated school " Whether mark, the subparameter " graduated school " for verifying submission are legal.
To be described further here in conjunction with Fig. 4 convenient for further understanding.It assumes initially that under role (occupation type) and includes One subparameter is student, includes under subparameter graduate school, graduate school under parameter student There is no subparameter there was only parameter value.
When verification, the parameter identification of role is got, role can be found from rule file according to the parameter identification Verification rule, that is, be illustrated in figure 4 the verification rule of role and its subparameter.
The verification rule of this father's parameter of role is as shown in a in Fig. 4, according to the verification of role rule, first from role Reading expression in corresponding verification rule, it has the field value " has_sub " of subparameter: " yes " sentence, determine that role has Subparameter, and by the content of the sub_param_map field under role it is found that including student in the subparameter of role.Root The legal subparameter for being role according to the student that user known to the sub_param_map submits.In addition, by verification rule Role be str type, determine that student that user submits is to complete verification to role after character type, then user mentioned The student of friendship is verified.
When verifying to student, determine its verification rule such as the b institute in Fig. 4 according to the parameter identification of student Show.According to the has_sub " that student verification rule is lower: " yes " confirms that student also has subparameter.Then " learned according to acquisition The parameter identification of the subparameter " graduated school " of life ".Reading from " graduated school " corresponding verification rule indicates s.m.p ginseng Several field values " has_sub ": " no " sentence.Corresponding verification rule, verification are obtained according to the parameter identification of " graduated school " Whether " graduated school " be legal.For example, it is assumed that the value of " graduated school " that user submits is " graduate_school_ University " (universities and colleges of graduating from university), it is regular (as shown in the c in Fig. 4) according to its corresponding verification, there is no subparameter. Then its parameter value is verified.Whether the value is verified in " graduate_ if the parameter value that user submits is " Tsinghua University " In the range of parameter values of school_university ", if so, verification passes through.
It is identical for the d and e verification principle in Fig. 4, it is only that specific value is different, which is not described herein again.It needs to illustrate It is in Fig. 4, param_type characterizes the type of verification condition, and the type includes between options, regular expression and digital block Deng.Wherein, options is used to characterize the value range of relevant parameter, for whether verifying the value of relevant parameter preset optional In value list.When it is implemented, being not limited to the parameter type in Fig. 4, parameter type can also be list (list type) and int (integer).
In the present embodiment, when the parameter of user's input has subparameter, and the parameter inputted is legal, sub- ginseng getparms Several parameter identifications;And the corresponding verification of parameter identification that the subparameter is obtained from verification rule it is regular to the subparameter into Row verification.I.e. when the parameter of input has subparameter, is verified according to corresponding verification rule, avoid and lead in the prior art It crosses logical code and judges whether there is subparameter, and the problem that logical code is excessively complicated.
Further, when determining that submission parameter is changed, the corresponding rule file of page iden-tity is updated, it is updated Rule file is previously according to made of the page editing after change.It avoids when submitting parameter to change, changes client The logic judgment code at end and server end only need to change the corresponding rule file of page iden-tity, be conducive to parameter verification Rule exploitation and maintenance.
Further, rule file is structured document;Client is by the url for obtaining rule file from service Rule file is obtained in device;Server is acquisition rule file under the specified path by storage rule file.
When it is implemented, shared rule file is deposited in above web server in the form of json file, for preceding End, when the page loads for the first time, as static file, such as: css, js file download to client, front end verification are read The rule of json file.Front end is read by the path url of json, and rear end is read by the Actual path of json file.
By the above method, rule file uses structured document, and structured document is succinct, calls simple.And pass through The shared mode of rule file ensure that the consistency of client and server-side verifying.
Based on identical inventive concept, the embodiment of the present application also provides a kind of device of parameter verification, structural schematic diagram As shown in figure 5, the device includes:
First identifier obtains module 1001, for obtaining the parameter identification for the parameter that user inputs in the page;
First searching module 1002, for from the shared rule file of client and server-side, the lookup parameter mark Know corresponding verification rule;
Correction verification module 1003, for being verified according to the verification rule found to the parameter.
Further, the device further include:
Second identifier obtains module, for obtaining the page iden-tity of the page;
Module is obtained, for obtaining corresponding with the page iden-tity from the shared rule file of client and server-side Rule file;
First searching module 1002, specifically includes:
First searching unit, for from rule file corresponding with the page iden-tity, the lookup parameter identification pair The verification rule answered.
Further, the first searching module 1002, further includes:
First acquisition unit, for obtaining the parameter identification for the parameter that user inputs in the page;
Matching unit, successively by the parameter in the shared rule file of the parameter identification and client and server-side Mark is matched, and the corresponding verification rule of matched parameter identification is obtained.
Further, correction verification module 1003 in the device, comprising:
Verification unit, for reading the field value for indicating whether subparameter from verification rule, and according to verification The proof rule of parameter value verifies the legitimacy of the parameter in rule;
Subparameter verification unit then obtains the parameter if indicating subparameter for the field value, and the parameter is legal Subparameter parameter identification;And the corresponding verification rule of parameter identification that the subparameter is obtained from verification rule is to the son Parameter is verified.
Further, the device further include:
Update module, for updating the corresponding rule of the page iden-tity when determining that the submission parameter is changed File, updated rule file are previously according to made of the page editing after change.
Further, rule file is structured document;
Client is that rule file is obtained from server by the url for obtaining rule file;
Server is acquisition rule file under the specified path by storage rule file.
After the method and apparatus for describing the parameter verification of the application illustrative embodiments, next, introducing root According to the computing device of the another exemplary embodiment of the application.
Person of ordinary skill in the field it is understood that the various aspects of the application can be implemented as system, method or Program product.Therefore, the various aspects of the application can be with specific implementation is as follows, it may be assumed that complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here Referred to as circuit, " module " or " system ".
In some possible embodiments, at least one processing can be included at least according to the computing device of the application Device and at least one processor.Wherein, memory is stored with program code, when program code is executed by processor, so that Processor executes the step in the parameter verification method according to the various illustrative embodiments of the application of this specification foregoing description Suddenly.For example, processor can execute step 201-203 as shown in Figure 2.
The computing device 130 of this embodiment according to the application is described referring to Fig. 6.The calculating that Fig. 6 is shown Device 130 is only an example, should not function to the embodiment of the present application and use scope bring any restrictions.
As shown in fig. 6, computing device 130 is showed in the form of general-purpose calculating appts.The component of computing device 130 can wrap Include but be not limited to: at least one above-mentioned processor 131, above-mentioned at least one processor 132, the different system components of connection (including Memory 132 and processor 131) bus 133.
Bus 133 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, processor or the local bus using any bus structures in a variety of bus structures.
Memory 132 may include the readable medium of form of volatile memory, such as random access memory (RAM) 1321 and/or cache memory 1322, it can further include read-only memory (ROM) 1323.
Memory 132 can also include program/utility 1325 with one group of (at least one) program module 1324, Such program module 1324 includes but is not limited to: operating system, one or more application program, other program modules and It may include the realization of network environment in program data, each of these examples or certain combination.
Computing device 130 can also be communicated with one or more external equipments 134 (such as keyboard, sensing equipment etc.), also Can be enabled a user to one or more equipment interacted with computing device 130 communication, and/or with make the computing device The 130 any equipment (such as router, modem etc.) that can be communicated with one or more of the other computing device are led to Letter.This communication can be carried out by input/output (I/O) interface 135.Also, computing device 130 can also be suitable by network Orchestration 136 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as because of spy Net) communication.As shown, network adapter 136 is communicated by bus 133 with other modules for computing device 130.It should Understand, although not shown in the drawings, other hardware and/or software module can be used in conjunction with computing device 130, including but unlimited In: microcode, device driver, redundant processor, external disk drive array, RAID system, tape drive and data Backup storage system etc..
In some possible embodiments, the various aspects of the method for parameter verification provided by the present application can also be realized For a kind of form of program product comprising program code, when program product is run on a computing device, program code is used In the parameter verification side according to the various illustrative embodiments of the application for making computer equipment execute this specification foregoing description Step in method, for example, computer equipment can execute step 201-203 as shown in Figure 2.
Program product can be using any combination of one or more readable mediums.Readable medium can be readable signal Jie Matter or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, infrared The system of line or semiconductor, device or device, or any above combination.The more specific example of readable storage medium storing program for executing is (non- The list of exhaustion) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), Read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, the read-only storage of portable compact disc Device (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The program product for parameter verification of presently filed embodiment can use the read-only storage of portable compact disc Device (CD-ROM) and including program code, and can run on the computing device.However, the program product of the application is not limited to This, in this document, readable storage medium storing program for executing can be any tangible medium for including or store program, which can be commanded Execution system, device or device use or in connection.
Readable signal medium may include in a base band or as the data-signal that carrier wave a part is propagated, wherein carrying Readable program code.The data-signal of this propagation can take various forms, including --- but being not limited to --- electromagnetism letter Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be other than readable storage medium storing program for executing it is any can Read medium, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or Program in connection.
The program code for including on readable medium can transmit with any suitable medium, including --- but being not limited to --- Wirelessly, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with any combination of one or more programming languages come write for execute the application operation program Code, programming language include object oriented program language-Java, C++ etc., further include conventional process Formula programming language-such as " C " language or similar programming language.Program code can be calculated fully in user It executes on device, partly execute on a user device, executing, as an independent software package partially in user's computing device Upper part executes on remote computing device or executes on remote computing device or server completely.It is being related to remotely counting In the situation for calculating device, remote computing device can pass through the network of any kind --- including local area network (LAN) or wide area network (WAN)-it is connected to user's computing device, or, it may be connected to external computing device (such as provided using Internet service Quotient is connected by internet).
It should be noted that although being referred to several unit or sub-units of device in the above detailed description, this stroke It point is only exemplary not enforceable.In fact, according to presently filed embodiment, it is above-described two or more The feature and function of unit can embody in a unit.Conversely, the feature and function of an above-described unit can It is to be embodied by multiple units with further division.
In addition, although describing the operation of the application method in the accompanying drawings with particular order, this do not require that or Hint must execute these operations in this particular order, or have to carry out shown in whole operation be just able to achieve it is desired As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or by one Step is decomposed into execution of multiple steps.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is process of the reference according to method, apparatus (system) and computer program product of the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment of the application has been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the application range.
Obviously, those skilled in the art can carry out various modification and variations without departing from the essence of the application to the application Mind and range.In this way, if these modifications and variations of the application belong to the range of the claim of this application and its equivalent technologies Within, then the application is also intended to include these modifications and variations.

Claims (10)

1. a kind of parameter verification method, which is characterized in that the described method includes:
Obtain the parameter identification for the parameter that user inputs in the page;
In the rule file shared from client and server-side, search the corresponding verification rule of the parameter identification;
The parameter is verified according to the verification rule found.
2. the method according to claim 1, wherein the method also includes:
Obtain the page iden-tity of the page;
In the rule file shared from client and server-side, rule file corresponding with the page iden-tity is obtained;
In the rule file shared from client and server-side, the corresponding verification rule of the parameter identification is searched, is specifically included:
From rule file corresponding with the page iden-tity, search the corresponding verification rule of the parameter identification.
3. the method according to claim 1, wherein from the shared rule file of client and server-side, looking into Look for the corresponding verification rule of the parameter identification, comprising:
Obtain the parameter identification for the parameter that user inputs in the page;
Successively the parameter identification in the parameter identification rule file shared with client and server-side is matched, Obtain the corresponding verification rule of matched parameter identification.
4. according to the method described in claim 3, it is characterized in that, carrying out school to the parameter according to the verification rule found It tests, comprising:
The field value for indicating whether subparameter is read from verification rule, and according to the verifying of parameter value in verification rule The legitimacy of the rule verification parameter;
If the field value indicates subparameter, and the parameter is legal, then obtains the parameter identification of the subparameter of the parameter;And The corresponding verification rule of parameter identification that the subparameter is obtained from verification rule verifies the subparameter.
5. according to the method described in claim 2, it is characterized in that, the method also includes:
When determining that the submission parameter is changed, the corresponding rule file of the page iden-tity, updated rule are updated File is previously according to made of the page editing after change.
6. according to method described in right 1, which is characterized in that the rule file is structured document;
Client is that the rule file is obtained from server by the url for obtaining rule file;
Server is to obtain the rule file under specified path by storage rule file.
7. a kind of device of parameter verification, which is characterized in that described device includes:
First identifier obtains module, for obtaining the parameter identification for the parameter that user inputs in the page;
First searching module, for from the shared rule file of client and server-side, to search the parameter identification corresponding Verification rule;
Correction verification module, for being verified according to the verification rule found to the parameter.
8. device according to claim 7, which is characterized in that described device further include:
Second identifier obtains module, for obtaining the page iden-tity of the page;
Module is obtained, for obtaining rule corresponding with the page iden-tity from the shared rule file of client and server-side Then file;
First searching module, specifically includes:
First searching unit, for from rule file corresponding with the page iden-tity, to search the parameter identification corresponding Verification rule.
9. a kind of computer-readable medium, is stored with computer executable instructions, which is characterized in that the computer is executable to be referred to It enables for executing method as claimed in any one of claims 1-5.
10. a kind of computing device characterized by comprising
At least one processor;And the memory being connect at least one described processor communication;Wherein, the memory is deposited The instruction that can be executed by least one described processor is contained, described instruction is executed by least one described processor, so that institute It states at least one processor and is able to carry out method as described in any claim in claim 1 to 5.
CN201810989832.9A 2018-08-28 2018-08-28 A kind of parameter verification method, apparatus, computing device and storage medium Pending CN109101812A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810989832.9A CN109101812A (en) 2018-08-28 2018-08-28 A kind of parameter verification method, apparatus, computing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810989832.9A CN109101812A (en) 2018-08-28 2018-08-28 A kind of parameter verification method, apparatus, computing device and storage medium

Publications (1)

Publication Number Publication Date
CN109101812A true CN109101812A (en) 2018-12-28

Family

ID=64851694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810989832.9A Pending CN109101812A (en) 2018-08-28 2018-08-28 A kind of parameter verification method, apparatus, computing device and storage medium

Country Status (1)

Country Link
CN (1) CN109101812A (en)

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188038A (en) * 2019-05-13 2019-08-30 青岛海尔科技有限公司 A kind of parameter verification method and device, verification framework
CN110321505A (en) * 2019-06-25 2019-10-11 阿里巴巴集团控股有限公司 Data consistency verification method and device
CN110347691A (en) * 2019-05-29 2019-10-18 平安科技(深圳)有限公司 Type of credential method of calibration, device, computer equipment and storage medium
CN110390069A (en) * 2019-07-31 2019-10-29 中国工商银行股份有限公司 The method, apparatus of data check calculates equipment and medium
CN110389765A (en) * 2019-07-24 2019-10-29 深圳市盟天科技有限公司 A kind of parameter verification method and parameter verification system
CN110502442A (en) * 2019-08-15 2019-11-26 平安普惠企业管理有限公司 Dynamic parameter method of calibration, device, equipment and storage medium
CN110659019A (en) * 2019-09-26 2020-01-07 北京金山云网络技术有限公司 Parameter checking method and device and server
CN111258998A (en) * 2020-01-16 2020-06-09 北京字节跳动网络技术有限公司 Data verification method, device, medium and electronic equipment
CN111258832A (en) * 2020-01-22 2020-06-09 泰康保险集团股份有限公司 Interface parameter checking method, device, equipment and medium
CN111290742A (en) * 2020-03-04 2020-06-16 五八有限公司 Parameter verification method and device, electronic equipment and readable storage medium
CN111367898A (en) * 2020-02-20 2020-07-03 北京金山云网络技术有限公司 Data processing method, device, system, electronic equipment and storage medium
CN111681101A (en) * 2020-06-04 2020-09-18 中国建设银行股份有限公司 Access detection method, device, equipment and storage medium for object
CN111680068A (en) * 2020-06-02 2020-09-18 深圳乐信软件技术有限公司 Verification method, device, equipment and storage medium
CN111752847A (en) * 2020-06-30 2020-10-09 贝壳技术有限公司 Interface comparison method, micro server, computer readable storage medium and electronic device
CN112000330A (en) * 2020-07-15 2020-11-27 北京百度网讯科技有限公司 Configuration method, device and equipment of modeling parameters and computer storage medium
CN112102058A (en) * 2020-09-27 2020-12-18 中国建设银行股份有限公司 Management system parameter configuration method and device
CN112148540A (en) * 2020-08-27 2020-12-29 云账户技术(天津)有限公司 Interface parameter checking method and device, electronic equipment and readable storage medium
CN112269706A (en) * 2020-11-16 2021-01-26 北京百度网讯科技有限公司 Interface parameter checking method and device, electronic equipment and computer readable medium
CN112308590A (en) * 2019-08-01 2021-02-02 腾讯科技(深圳)有限公司 Parameter processing method and device, computing equipment and storage medium
CN112364048A (en) * 2020-11-10 2021-02-12 中国建设银行股份有限公司 Data processing method and device, electronic equipment and computer storage medium
CN112395541A (en) * 2020-12-29 2021-02-23 畅捷通信息技术股份有限公司 Data content verification method, device and system, storage medium and computing equipment
CN112764828A (en) * 2021-01-06 2021-05-07 重庆百瓶科技有限公司 Business logic management method and device, computer equipment and medium
CN113076214A (en) * 2021-04-01 2021-07-06 山东英信计算机技术有限公司 Method, device and equipment for verifying and correcting namelist file and readable medium
CN113489650A (en) * 2021-06-30 2021-10-08 中国平安人寿保险股份有限公司 Routing method, device and equipment of client and storage medium
CN113535776A (en) * 2021-05-28 2021-10-22 国网辽宁省电力有限公司 Parameter validity checking method and system applied to monitoring device
CN115145587A (en) * 2022-07-22 2022-10-04 中国农业银行股份有限公司 Product parameter checking method and device, electronic equipment and storage medium
CN115208762A (en) * 2022-06-21 2022-10-18 北京字跳网络技术有限公司 Configuration updating method, device, configuration server and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060294194A1 (en) * 2005-06-23 2006-12-28 Marc Graveline Access control list checking
CN104360937A (en) * 2014-10-21 2015-02-18 福建富士通信息软件有限公司 Intelligent parameter checking device
CN105426164A (en) * 2014-09-04 2016-03-23 北大方正集团有限公司 Data checking method, browser and server
CN108132880A (en) * 2017-12-21 2018-06-08 武汉斑马快跑科技有限公司 A kind of parameter verification method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060294194A1 (en) * 2005-06-23 2006-12-28 Marc Graveline Access control list checking
CN105426164A (en) * 2014-09-04 2016-03-23 北大方正集团有限公司 Data checking method, browser and server
CN104360937A (en) * 2014-10-21 2015-02-18 福建富士通信息软件有限公司 Intelligent parameter checking device
CN108132880A (en) * 2017-12-21 2018-06-08 武汉斑马快跑科技有限公司 A kind of parameter verification method and device

Cited By (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188038B (en) * 2019-05-13 2023-07-21 青岛海尔科技有限公司 Parameter verification method and device and verification framework
CN110188038A (en) * 2019-05-13 2019-08-30 青岛海尔科技有限公司 A kind of parameter verification method and device, verification framework
CN110347691A (en) * 2019-05-29 2019-10-18 平安科技(深圳)有限公司 Type of credential method of calibration, device, computer equipment and storage medium
CN110347691B (en) * 2019-05-29 2023-10-31 平安科技(深圳)有限公司 Certificate type verification method, certificate type verification device, computer equipment and storage medium
CN110321505B (en) * 2019-06-25 2023-08-08 创新先进技术有限公司 Data consistency verification method and device
CN110321505A (en) * 2019-06-25 2019-10-11 阿里巴巴集团控股有限公司 Data consistency verification method and device
CN110389765A (en) * 2019-07-24 2019-10-29 深圳市盟天科技有限公司 A kind of parameter verification method and parameter verification system
CN110390069A (en) * 2019-07-31 2019-10-29 中国工商银行股份有限公司 The method, apparatus of data check calculates equipment and medium
CN112308590B (en) * 2019-08-01 2023-07-04 腾讯科技(深圳)有限公司 Parameter processing method and device, computing equipment and storage medium
CN112308590A (en) * 2019-08-01 2021-02-02 腾讯科技(深圳)有限公司 Parameter processing method and device, computing equipment and storage medium
CN110502442A (en) * 2019-08-15 2019-11-26 平安普惠企业管理有限公司 Dynamic parameter method of calibration, device, equipment and storage medium
CN110659019B (en) * 2019-09-26 2023-07-25 北京金山云网络技术有限公司 Parameter verification method, device and server
CN110659019A (en) * 2019-09-26 2020-01-07 北京金山云网络技术有限公司 Parameter checking method and device and server
CN111258998A (en) * 2020-01-16 2020-06-09 北京字节跳动网络技术有限公司 Data verification method, device, medium and electronic equipment
CN111258832A (en) * 2020-01-22 2020-06-09 泰康保险集团股份有限公司 Interface parameter checking method, device, equipment and medium
CN111258832B (en) * 2020-01-22 2023-06-20 泰康保险集团股份有限公司 Interface parameter verification method, device, equipment and medium
CN111367898A (en) * 2020-02-20 2020-07-03 北京金山云网络技术有限公司 Data processing method, device, system, electronic equipment and storage medium
CN111367898B (en) * 2020-02-20 2023-09-22 北京金山云网络技术有限公司 Data processing method, device, system, electronic equipment and storage medium
CN111290742A (en) * 2020-03-04 2020-06-16 五八有限公司 Parameter verification method and device, electronic equipment and readable storage medium
CN111680068A (en) * 2020-06-02 2020-09-18 深圳乐信软件技术有限公司 Verification method, device, equipment and storage medium
CN111680068B (en) * 2020-06-02 2023-09-26 深圳乐信软件技术有限公司 Verification method, device, equipment and storage medium
CN111681101A (en) * 2020-06-04 2020-09-18 中国建设银行股份有限公司 Access detection method, device, equipment and storage medium for object
CN111752847A (en) * 2020-06-30 2020-10-09 贝壳技术有限公司 Interface comparison method, micro server, computer readable storage medium and electronic device
CN112000330B (en) * 2020-07-15 2023-12-22 北京百度网讯科技有限公司 Configuration method, device, equipment and computer storage medium of modeling parameters
CN112000330A (en) * 2020-07-15 2020-11-27 北京百度网讯科技有限公司 Configuration method, device and equipment of modeling parameters and computer storage medium
CN112148540A (en) * 2020-08-27 2020-12-29 云账户技术(天津)有限公司 Interface parameter checking method and device, electronic equipment and readable storage medium
CN112148540B (en) * 2020-08-27 2023-03-24 云账户技术(天津)有限公司 Interface parameter checking method and device, electronic equipment and readable storage medium
CN112102058A (en) * 2020-09-27 2020-12-18 中国建设银行股份有限公司 Management system parameter configuration method and device
CN112364048A (en) * 2020-11-10 2021-02-12 中国建设银行股份有限公司 Data processing method and device, electronic equipment and computer storage medium
CN112269706B (en) * 2020-11-16 2024-04-05 北京百度网讯科技有限公司 Interface parameter verification method, device, electronic equipment and computer readable medium
CN112269706A (en) * 2020-11-16 2021-01-26 北京百度网讯科技有限公司 Interface parameter checking method and device, electronic equipment and computer readable medium
CN112395541A (en) * 2020-12-29 2021-02-23 畅捷通信息技术股份有限公司 Data content verification method, device and system, storage medium and computing equipment
CN112764828B (en) * 2021-01-06 2023-05-16 重庆百瓶科技有限公司 Business logic management method and device, computer equipment and medium
CN112764828A (en) * 2021-01-06 2021-05-07 重庆百瓶科技有限公司 Business logic management method and device, computer equipment and medium
CN113076214A (en) * 2021-04-01 2021-07-06 山东英信计算机技术有限公司 Method, device and equipment for verifying and correcting namelist file and readable medium
CN113535776A (en) * 2021-05-28 2021-10-22 国网辽宁省电力有限公司 Parameter validity checking method and system applied to monitoring device
CN113489650B (en) * 2021-06-30 2022-10-21 中国平安人寿保险股份有限公司 Routing method, device and equipment of client and storage medium
CN113489650A (en) * 2021-06-30 2021-10-08 中国平安人寿保险股份有限公司 Routing method, device and equipment of client and storage medium
CN115208762A (en) * 2022-06-21 2022-10-18 北京字跳网络技术有限公司 Configuration updating method, device, configuration server and computer readable storage medium
CN115208762B (en) * 2022-06-21 2024-05-07 北京字跳网络技术有限公司 Configuration updating method, device, configuration server and computer readable storage medium
CN115145587A (en) * 2022-07-22 2022-10-04 中国农业银行股份有限公司 Product parameter checking method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109101812A (en) A kind of parameter verification method, apparatus, computing device and storage medium
CN107766940B (en) Method and apparatus for generating a model
EP3563243B1 (en) Determining application test results using screenshot metadata
KR102308002B1 (en) Method and apparatus for generating information
CN104375818A (en) System and method for achieving general data form inputting through configuration files
CN111562965B (en) Page data verification method and device based on decision tree
CN109558525A (en) A kind of generation method of test data set, device, equipment and storage medium
CN105378662A (en) Bundle package generation
CN110489087A (en) A kind of method, apparatus, medium and electronic equipment generating fractal structure
CN109445827A (en) A kind of method and device of game renewal, electronic equipment, storage medium
CN109002385A (en) Method for testing pressure and device for data flow system
CN110399933B (en) Data annotation correction method and device, computer readable medium and electronic equipment
CN104375814A (en) Generation method and device of an interface document
CN113792155A (en) Text verification method and device based on knowledge graph, electronic equipment and medium
CN109446081A (en) For the test method of HTML5 webpage, system, equipment and medium
CN113032275A (en) Method and device for testing field, electronic equipment and storage medium
CN110022327B (en) Short message authentication test method and device
CN109951859A (en) Wireless network connection recommended method, device, electronic equipment and readable medium
CN112256572B (en) Random test case generation method and device, electronic equipment and storage medium
CN114741294A (en) Page debugging method, device, equipment and storage medium
CN107729499A (en) Information processing method, medium, system and electronic equipment
CN107704299A (en) The page display method and device of application APP, equipment, storage medium
US10977698B2 (en) Transforming content management in product marketing
CN113642295B (en) Page typesetting method, device and computer program product
CN110327626A (en) Virtual server creation 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: 20181228

RJ01 Rejection of invention patent application after publication