Unlock instant, AI-driven research and patent intelligence for your innovation.

A parameter verification method and device

A verification method and parameter technology, applied in the fields of electrical digital data processing, instruments, error detection/correction, etc., can solve the problems of repeated verification codes and low development efficiency.

Active Publication Date: 2020-07-07
武汉斑马快跑科技有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to overcome the problems of repetitive and redundant verification codes and low development efficiency in the above-mentioned prior art, or at least partially solve the above problems, the present invention provides a parameter verification method and device

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A parameter verification method and device
  • A parameter verification method and device
  • A parameter verification method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0045] In one embodiment of the present invention, a parameter verification method is provided, figure 1 It is a schematic diagram of the overall process flow of the parameter verification method provided by the embodiment of the present invention, the method includes: S1, according to the name of the parameter to be verified in the http request sent by the client, obtain the corresponding parameter from the first field predefined in the target json file The verification rule corresponding to the second field with the same name as the parameter to be verified, the second field and the verification rule are associated and stored in the target json file; S2, according to the...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a parameter verification method and device. The method includes the steps that S1, according to the name of a to-be-verified parameter in an http request sent by a client, a verification rule corresponding to a second field with the same name as the to-be-checked parameter is acquired from a first field predefined in a target json file, wherein the second field and the verification rule are associatively stored in the target json file; S2, according to the verification rule corresponding to the second field, the parameter is verified. In the method, by configuring the verification rule in the json file, the to-be-verified parameter received from the http request of the client is directly verified in various aspects according to the verification rule in the json file,it is not needed to repeatedly write verification logical codes for verification of the same parameter, and thus the development efficiency is improved; besides, when the verification demand changes,it is only needed to modify verification rules defined in the json file, and thus maintenance is convenient.

Description

technical field [0001] The invention belongs to the field of software development, and more specifically relates to a parameter verification method and device. Background technique [0002] When the user inputs information on the client and clicks the submit button, the client will send an http request to the server, and the server will verify the parameters after receiving the http request. [0003] The http request includes the input information and a parameter name corresponding to the input information. The input information is the value of the corresponding parameter. The server's verification of the parameters refers to judging whether the value of the parameter input by the user meets the requirements, such as non-null character verification, number verification, phone verification, coordinate verification, and regularity verification. If the value of the parameter meets the requirements, enter other pages or save the value of the parameter input by the user. If th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688
Inventor 李佳
Owner 武汉斑马快跑科技有限公司