CN110515922A - Field method of calibration, system, computer equipment and computer readable storage medium - Google Patents
Field method of calibration, system, computer equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN110515922A CN110515922A CN201910660399.9A CN201910660399A CN110515922A CN 110515922 A CN110515922 A CN 110515922A CN 201910660399 A CN201910660399 A CN 201910660399A CN 110515922 A CN110515922 A CN 110515922A
- Authority
- CN
- China
- Prior art keywords
- field value
- field
- page
- end server
- pressure jump
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000003860 storage Methods 0.000 title claims abstract description 23
- 238000012795 verification Methods 0.000 claims abstract description 88
- 230000004044 response Effects 0.000 claims abstract description 13
- 230000005540 biological transmission Effects 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 10
- 238000012937 correction Methods 0.000 claims description 4
- 230000006872 improvement Effects 0.000 description 8
- 238000011161 development Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000004075 alteration Effects 0.000 description 5
- 238000005538 encapsulation Methods 0.000 description 5
- 238000012423 maintenance Methods 0.000 description 5
- 238000000926 separation method Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000014759 maintenance of location Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000013524 data verification Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of field methods of calibration, comprising: loads instruction in response to the page of user's triggering, obtains the page coding in the page load instruction;It sends the page to encode to back-end server, and receives the page that the back-end server returns and described and encode verification corresponding with the page coding rule stored in corresponding field name and independent memory space;Show the field name in current page, and receive the user on the current page based on the field name input field value;The field value is verified according to the verification rule.The present invention also provides a kind of field check system, computer equipment and computer readable storage mediums.
Description
Technical field
The present invention relates to technical field of data processing, and in particular to a kind of field method of calibration, system, computer equipment and
Computer readable storage medium.
Background technique
In general, the information that system can input user on webpage verifies.For example there are three field names to distinguish on webpage
For title, age, gender, after user's input Xiao Ming, 43 years old, these male field values, system can be according to verification rule to user
The field value of input is verified.
Verification mode traditional at present is that front end controls, i.e., writes verification rule extremely in front end.But this verification side
There are cost problems for formula: first is that the verification rule change of front end improvement cost, new field or old field is required to do front end
Code transformation, second is that front end moving costs, if there is multiple versions, each version field standard is inconsistent, then front end needs
A variety of verification rules are adapted to, need to develop more set front-end codes.
Therefore it provides a kind of field method of calibration, system, computer equipment and computer readable storage medium, to reduce
The development cost and improvement cost of verification, becoming this field has technical problem to be solved.
Summary of the invention
The purpose of the present invention is to provide a kind of field method of calibration, system, computer equipment and computer-readable storages
Medium can reduce the development cost and improvement cost of verification.
One aspect of the present invention provides a kind of field method of calibration, comprising: loads in response to the page of user's triggering
Instruction obtains the page coding in above-mentioned page load instruction;It sends the above-mentioned page to encode to back-end server, and receives above-mentioned
Back-end server return encoded with the above-mentioned page stored in corresponding field name and independent memory space with the above-mentioned page compile
The corresponding verification rule of code;Show that above-mentioned field name in current page, and receives above-mentioned user and is based on above-mentioned current page
The field value of above-mentioned field name input;Above-mentioned field value is verified according to above-mentioned verification rule.
Optionally, the above method further include: during verifying above-mentioned field value according to above-mentioned verification rule, in response to
Pressure Alarm determines the field value currently not yet verified;Determining from the above-mentioned field value not yet verified will be by above-mentioned
The field value of back-end server verification, as pressure jump field value;Above-mentioned pressure jump field value to above-mentioned rear end is sent to take
Business device, so that above-mentioned back-end server verifies above-mentioned pressure jump field value according to above-mentioned verification rule.
Optionally, the above-mentioned pressure jump field value of above-mentioned transmission is to above-mentioned back-end server, so that above-mentioned back-end server
Above-mentioned pressure jump field value is verified according to above-mentioned verification rule, comprising: determining and above-mentioned pressure jump field value pair
The field name answered;Above-mentioned pressure jump field value and above-mentioned field name corresponding with above-mentioned pressure jump field value are sent to above-mentioned
Back-end server, so that above-mentioned back-end server is according to above-mentioned verification rule and above-mentioned corresponding with above-mentioned pressure jump field value
Field name verifies above-mentioned pressure jump field value.
Optionally, the above-mentioned pressure jump field value of above-mentioned transmission and above-mentioned field corresponding with above-mentioned pressure jump field value
Name is to above-mentioned back-end server, comprising: by above-mentioned pressure jump field value and above-mentioned corresponding with above-mentioned pressure jump field value
Field name is packaged, and obtains encapsulated result;Above-mentioned encapsulated result is sent to above-mentioned back-end server.
Optionally, after above-mentioned transmission above-mentioned encapsulated result to above-mentioned back-end server, above-mentioned back-end server is used for:
Above-mentioned encapsulated result is parsed, the above-mentioned pressure jump field value and above-mentioned and above-mentioned pressure obtained in above-mentioned encapsulated result shifts word
The corresponding field name of segment value;According to above-mentioned verification rule and above-mentioned field name corresponding with above-mentioned pressure jump field value to above-mentioned
Pressure jump field value is verified, and back-checking result.
Optionally, above-mentioned independent memory space includes the spatial cache and/or external data base of above-mentioned back-end server.
To achieve the above object, another aspect of the present invention provides a kind of field check system, comprising: obtains mould
Block, the page for triggering in response to user load instruction, obtain the page coding in above-mentioned page load instruction;First sends
Module is encoded for sending the above-mentioned page to back-end server, and receives compiling with the above-mentioned page for above-mentioned back-end server return
Verification corresponding with the above-mentioned page coding rule stored in the corresponding field name of code and independent memory space;Display module is used
In the above-mentioned field name of displaying in current page, and above-mentioned user is received on above-mentioned current page based on the input of above-mentioned field name
Field value;Correction verification module, for verifying above-mentioned field value according to above-mentioned verification rule.
Optionally, above system further include: the first determining module, for verifying above-mentioned field according to above-mentioned verification rule
During value, in response to Pressure Alarm, the field value currently not yet verified is determined;Second determining module, for from
The field value for determining will to be verified by above-mentioned back-end server in the field value not yet verified is stated, pressure jump field value is obtained;
Second sending module, for sending above-mentioned pressure jump field value to above-mentioned back-end server, so that above-mentioned back-end server root
Above-mentioned pressure jump field value is verified according to above-mentioned verification rule.
Optionally, above-mentioned second sending module comprises determining that unit, corresponding with above-mentioned pressure jump field value for determination
Field name;Transmission unit, for sending above-mentioned pressure jump field value and above-mentioned corresponding with above-mentioned pressure jump field value
Field name is to above-mentioned back-end server, so that above-mentioned back-end server is shifted according to above-mentioned verification rule and above-mentioned and above-mentioned pressure
The corresponding field name of field value verifies above-mentioned pressure jump field value.
Optionally, above-mentioned transmission unit is sending above-mentioned pressure jump field value and above-mentioned and above-mentioned pressure jump field value
It when corresponding field name to above-mentioned back-end server, is also used to: above-mentioned pressure jump field value and above-mentioned and above-mentioned pressure is turned
It moves the corresponding field name of field value to be packaged, obtains encapsulated result;Above-mentioned encapsulated result is sent to above-mentioned back-end server.
Optionally, after above-mentioned transmission unit sends above-mentioned encapsulated result to above-mentioned back-end server, above-mentioned rear end clothes
Business device is used for: parse above-mentioned encapsulated result, obtain above-mentioned pressure jump field value in above-mentioned encapsulated result and it is above-mentioned with it is above-mentioned
The corresponding field name of pressure jump field value;According to above-mentioned verification rule and above-mentioned word corresponding with above-mentioned pressure jump field value
Section name verifies above-mentioned pressure jump field value, and back-checking result.
Optionally, above-mentioned independent memory space includes the spatial cache and/or external data base of above-mentioned back-end server.
To achieve the above object, an additional aspect of the present invention provides a kind of computer equipment, computer equipment tool
Body includes: memory, processor and is stored in the computer program that can be run on above-mentioned memory and on above-mentioned processor,
Above-mentioned processor realizes the step of field method of calibration of above-mentioned introduction when executing above-mentioned computer program.
To achieve the above object, another aspect of the invention provides a kind of computer readable storage medium, deposits thereon
Computer program is contained, above-mentioned computer program realizes the field method of calibration of above-mentioned introduction when being executed by processor the step of.
Field method of calibration provided by the invention is maintained in independent memory space by that will verify rule, will verification with
Front-end code separation is to realize thorough decoupling, either newly-increased rule or alteration ruler, it is only necessary in independent memory space
In be modified, without front-end code is transformed as such as prior art, need not also develop cover front-end codes, reduce
Development cost, improvement cost and moving costs are verified, the convenience of rule maintenance and Rule Extended is improved.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 diagrammatically illustrates the flow chart of field method of calibration according to an embodiment of the present invention;
Fig. 2 diagrammatically illustrates the schematic diagram of field checkschema according to an embodiment of the present invention;
Fig. 3 diagrammatically illustrates the block diagram of field check system according to an embodiment of the present invention;
Fig. 4 diagrammatically illustrates the hard of the computer equipment according to an embodiment of the present invention for being adapted for carrying out field method of calibration
Part architecture diagram.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not
For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work
Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
Field method of calibration provided by the invention is maintained in independent memory space by that will verify rule, will verification with
Front-end code separation is to realize thorough decoupling, either newly-increased rule or alteration ruler, it is only necessary in independent memory space
In be modified, without front-end code is transformed as such as prior art, need not also develop cover front-end codes, reduce
Development cost, improvement cost and moving costs are verified, the convenience of rule maintenance and Rule Extended is improved.
Field value method of calibration provided by the invention is illustrated with reference to the accompanying drawing.
Fig. 1 diagrammatically illustrates the flow chart of field method of calibration according to an embodiment of the present invention.As shown in Figure 1, the word
Section method of calibration may include step S101~step S104, in which:
Step S101 loads instruction in response to the page of user's triggering, obtains the page coding in page load instruction.
It should be noted that the present embodiment can be applied to front end, front end, that is, website front end part, be operate in the end PC,
The webpage (the also known as page) of user's browsing is presented on the browsers such as mobile terminal, and front and rear end server is corresponding.At this
In embodiment, the corresponding page coding of each page.
Step S102, send the page encode to back-end server, and receive back-end server return with the page coding pair
Verification corresponding with the page coding rule stored in the field name and independent memory space answered.
The field name of the present embodiment may include one or more, and each field name for example can be account, password, property
Not, age or the amount of money etc..Field name in back-end server there are many storages, each page encode some corresponding field
Name.
Verification rule is for verifying the field value based on field name input.Such as the entitled account of field, it is based on the field name
The field value of input is pajr146, verification rule are as follows: comprising English and number and character string total length is greater than 8, then clearly
Above-mentioned field value irregularity.Wherein, field value is referred to as attribute.
Verification rule in independent memory space there are many storages, each verification rule are corresponding with page coding.Wherein,
Independent memory space may include spatial cache and/or external data base in back-end server, the caching in back-end server
Space is, for example, Redis cache database cluster, and external data base is, for example, data-base cluster.The present embodiment will be by that will verify rule
It is then maintained in independent memory space, verification is separated to realization thoroughly decoupling with front-end code, either newly-increased rule is still
Alteration ruler, it is only necessary to it is modified in independent memory space, without front-end code is transformed as such as prior art,
Also more set front-end codes need not be developed, verification development cost, improvement cost and moving costs is reduced, improves maintenance and expansion
Convenience.
Optionally, verification rule is first stored in external data base, then synchronizes to the spatial cache of back-end server, In
When verification rule in external data base updates, it can also synchronize or timing updates in the spatial cache of back-end server
Verification rule.In the present embodiment, back-end server can first search school corresponding with page coding from the spatial cache of oneself
Rule is tested, then may be due to network or other originals if not storing verification rule in the spatial cache of back-end server
Because caused by, back-end server can obtain verification rule corresponding with the page of the present embodiment coding from external data base at this time
Then, and the regular connection of verification that will acquire get encode corresponding field name with the page together with return to front end.
Optionally, back-end server is found after lacking verification rule in its spatial cache, can be actively from external data
Verification rule is obtained in library and is added in the spatial cache of oneself, so as to subsequent use.
Step S103, displaying field name receive user on current page based on field name input in current page
Field value.
Wherein, above-mentioned current page is the page of page load instruction instruction load, and the present embodiment can be from back-end services
All field names are obtained in the result that device returns, the arrangement of these field names is shown on current page.Further, Yong Huhui
Corresponding field value is inputted based on these field names, such as field name " account ", the field value of user's input is
"pajr146";For field name " password ", the field value of user's input is " 123456982 ".
Step S104, according to the regular check word segment value of verification.
After user inputs corresponding field value for each field name, front end can according in verification rule with the word
The corresponding rule of section name verifies this field value;Alternatively, being directed to all field name input field values in user, front end is according to whole
A verification rule verifies all field values.
Optionally, verification rule may include: whether comprising English name, whether comprising Chinese, whether meet lattice
Formula requirement etc., wherein whether can meet call format by regular expression authenticator segment value.
Further, field method of calibration can also include: during according to regular check word segment value is verified, in response to
Pressure Alarm determines the field value currently not yet verified;Determining from the field value not yet verified will be by back-end services
The field value of device verification, as pressure jump field value;Pressure jump field value is sent to back-end server, so that back-end services
Device verifies pressure jump field value according to verification rule.
In the present embodiment, during front end is according to regular check word segment value is verified, if front end needs the field verified
Value is excessive, and when the verification pressure for causing front end to be born is excessive, front end can trigger Pressure Alarm, will work as front portion not yet
The field value of verification turns the check results for being verified by back-end server, and directly being returned using back-end server, to reduce front end
Verify pressure.Wherein, the field value that not yet verifies of a part is pressure jump field value, pressure jump field value can be from
It is determined at random in the field value not yet verified, is also possible to take the field value of front portion not yet verified, or after taking
The field value not yet verified of a part, the present embodiment do not limit this, as long as can be realized reduces front end verification pressure i.e.
It can.
Optionally, pressure jump field value is sent to back-end server, so that back-end server is according to verification rule to pressure
Power jump field value is verified, and may include: to determine field name corresponding with pressure jump field value;It sends pressure and shifts word
Segment value and field name corresponding with pressure jump field value to back-end server so that back-end server according to verification rule and with
The corresponding field name of pressure jump field value verifies pressure jump field value.
In the present embodiment, when back-end server verifies pressure jump field value, not only also to be wanted with reference to verification rule
With reference to field name corresponding with pressure jump field value, could determine from verification rule in this way should be according to which rule
Pressure jump field value is verified.
Optionally, pressure jump field value and field name corresponding with pressure jump field value are sent to back-end server,
It may include: to be packaged pressure jump field value and field name corresponding with pressure jump field value, obtain encapsulated result;
Encapsulated result is sent to back-end server.
In the present embodiment, front end is after incoming by pressure jump field value and field name corresponding with pressure jump field value
Before holding server, first the two can be packaged according to default encapsulation format, such as default encapsulation format is json lattice
Formula.Then by the pressure jump field value and the incoming back-end server of field name corresponding with pressure jump field value after encapsulation.
Optionally, after sending encapsulated result to back-end server, back-end server can be used for: parsing encapsulation knot
Fruit obtains the pressure jump field value in encapsulated result and field name corresponding with pressure jump field value;According to verification rule
Pressure jump field value is verified with field name corresponding with pressure jump field value, and back-checking result.
For example, back-end server, which can use fastjson tool, parses encapsulated result by recursive algorithm, by json lattice
The encapsulated result of formula resolves to the map format that back-end server can identify.Back-end server reads front end biography from map format
Then the pressure jump field value come and field name corresponding with pressure jump field value obtain before from independent memory space
The verification rule got, verifies pressure jump field value, and check results are returned to front end.Wherein, back-end services
The mode of device check word segment value is consistent with front end, and details are not described herein.
It should be noted that for the back-end server of the present embodiment, regardless of the field value of front end input is json format
Or extended formatting, in spite of comprising character string, array or key-value pair, rear end can all be handled, and the key of processing is just
It is that recursive algorithm searches for these structures, finds the field value verified.
Field method of calibration provided by the invention is maintained in independent memory space by that will verify rule, will verification with
Front-end code separation is to realize thorough decoupling, either newly-increased rule or alteration ruler, it is only necessary in independent memory space
In be modified, without front-end code is transformed as such as prior art, need not also develop cover front-end codes, reduce
Development cost, improvement cost and moving costs are verified, the convenience of rule maintenance and Rule Extended is improved.
As shown in Fig. 2, Fig. 2 diagrammatically illustrates the schematic diagram of field checkschema according to an embodiment of the present invention.In Fig. 2
In, number 1,2,3,4 and 5 represents and executes step, and for step 1, front end system is passed to page coding;Step 2, back-end services
The page coding that device is passed to according to front end system first obtains corresponding verification rule from Redis cache database cluster;If
Step 3 can be executed without storing corresponding verification rule in Redis cache database cluster to obtain from data-base cluster pair
The verification rule answered, is then returned to front end system for verification rule;Step 5, front end system are verified according to verification rule.It can
Choosing, when front end system pressure is excessive, the field value that can also not yet verify a part encapsulates incoming back-end server (example
DTOA object properties collection, DTOB object properties collection, other DTOB objects in such as Fig. 2), back-end server is according to verification rule
Incoming field value is verified, and back-checking is as a result, to mitigate front end verification pressure.
The field method of calibration provided based on the above embodiment provides a kind of field check system in the present embodiment, specifically
Ground, Fig. 3 diagrammatically illustrate the block diagram of field check system according to an embodiment of the present invention.As shown in figure 3, field verification system
System 300 may include obtaining module 301, the first sending module 302, display module 303 and correction verification module 304, in which:
Module 301 is obtained, the page for triggering in response to user loads instruction, obtains the page in page load instruction
Coding;
First sending module 302, encodes for sending the page to back-end server, and receive back-end server return with
The page encodes verification corresponding with the page coding rule stored in corresponding field name and independent memory space;
Display module 303, for showing that field name in current page, and receives user on current page based on field name
The field value of input;
Correction verification module 304, for according to the regular check word segment value of verification.
Field check system provided by the invention is maintained in independent memory space by that will verify rule, will verification with
Front-end code separation is to realize thorough decoupling, either newly-increased rule or alteration ruler, it is only necessary in independent memory space
In be modified, without front-end code is transformed as such as prior art, need not also develop cover front-end codes, reduce
Development cost, improvement cost and moving costs are verified, the convenience of rule maintenance and Rule Extended is improved.
Optionally, which can also include: the first determining module, for according to the regular check word of verification
During segment value, in response to Pressure Alarm, the field value currently not yet verified is determined;Second determining module, for from
The field value that will be verified by back-end server is determined in the field value not yet verified, obtains pressure jump field value;Second hair
Module is sent, for sending pressure jump field value to back-end server, so that back-end server turns pressure according to verification rule
Field value is moved to be verified.
Optionally, the second sending module comprises determining that unit, for determining field corresponding with pressure jump field value
Name;Transmission unit, for sending pressure jump field value and field name corresponding with pressure jump field value to back-end server,
So that back-end server carries out pressure jump field value according to verification rule and field name corresponding with pressure jump field value
Verification.
Optionally, transmission unit is sending pressure jump field value and field name corresponding with pressure jump field value to rear
When holding server, it is also used to: pressure jump field value and field name corresponding with pressure jump field value is packaged, obtained
Encapsulated result;Encapsulated result is sent to back-end server.
Optionally, after transmission unit sends encapsulated result to back-end server, back-end server is used for: parsing encapsulation
As a result, obtaining the pressure jump field value in encapsulated result and field name corresponding with pressure jump field value;It is advised according to verification
Then pressure jump field value is verified with field name corresponding with pressure jump field value, and back-checking result.
Optionally, independent memory space includes the spatial cache and/or external data base of back-end server.
Fig. 4 diagrammatically illustrates the hard of the computer equipment according to an embodiment of the present invention for being adapted for carrying out field method of calibration
Part architecture diagram.In the present embodiment, computer equipment 400 can be smart phone, tablet computer, the notebook electricity for executing program
Brain, desktop computer, rack-mount server, blade server, tower server or Cabinet-type server (including independent clothes
Server cluster composed by business device or multiple servers) etc..As shown in figure 4, the computer equipment 400 of the present embodiment to
It is few to include but is not limited to: the memory 401, processor 402, network interface 403 of connection can be in communication with each other by system bus.It needs
It is noted that Fig. 4 illustrates only the computer equipment 400 with component 401-403, it should be understood that being not required for
Implement all components shown, the implementation that can be substituted is more or less component.
In the present embodiment, memory 403 includes at least a type of computer readable storage medium, readable storage medium storing program for executing
Including including flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device
(RAM), static random-access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory
(EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..In some embodiments, memory
401 can be the internal storage unit of computer equipment 400, such as the hard disk or memory of the computer equipment 400.At other
In embodiment, memory 401 is also possible to match on the External memory equipment of computer equipment 400, such as the computer equipment 400
Standby plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD)
Card, flash card (Flash Card) etc..Certainly, memory 401 can also both include the internal storage unit of computer equipment 400
It also include its External memory equipment.In the present embodiment, memory 401 is installed on computer equipment 400 commonly used in storage
Operating system and types of applications software, such as the program code of field method of calibration etc..In addition, memory 401 can be also used for
Temporarily store the Various types of data that has exported or will export.
Processor 402 can be in some embodiments central processing unit (Central Processing Unit, CPU),
Controller, microcontroller, microprocessor or other data processing chips.The processor 402 is commonly used in control computer equipment
400 overall operation.Such as execute control relevant to the progress data interaction of computer equipment 400 or communication and processing etc..
Program code in the present embodiment, the step of field method of calibration of the processor 402 for storing in run memory 401.
In the present embodiment, the field method of calibration being stored in memory 401 can also be divided into one or more
A program module, and it is performed by one or more processors (the present embodiment is processor 402), to complete the present invention.
Network interface 403 may include radio network interface or wired network interface, which is commonly used in counting
It calculates and establishes communication linkage between machine equipment 400 and other computer equipments.For example, network interface 403 is by passing through network by based on
Calculate machine equipment 400 be connected with exterior terminal, between computer equipment 400 and exterior terminal establish data transmission channel and lead to
Letter link etc..Network can be intranet (Intranet), internet (Internet), global system for mobile communications
(Global System of Mobile communication, referred to as GSM), wideband code division multiple access (Wideband Code
Division Multiple Access, referred to as WCDMA), 4G network, 5G network, bluetooth (Bluetooth), the nothings such as Wi-Fi
Line or cable network.
The present embodiment also provides a kind of computer readable storage medium, including the storage of flash memory, hard disk, multimedia card, card-type
Device (for example, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only storage
Device (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, magnetic
Disk, CD, server, App are stored thereon with computer program, the computer program is executed by processor using store etc.
The step of Shi Shixian field method of calibration.
Obviously, those skilled in the art should be understood that each module of the above-mentioned embodiment of the present invention or each step can be with
It is realized with general computing device, they can be concentrated on a single computing device, or be distributed in multiple computing devices
On composed network, optionally, they can be realized with the program code that computing device can perform, it is thus possible to by it
Store and be performed by computing device in the storage device, and in some cases, can be held with the sequence for being different from herein
The shown or described step of row, perhaps they are fabricated to each integrated circuit modules or will be multiple in them
Module or step are fabricated to single integrated circuit module to realize.In this way, the embodiment of the present invention be not limited to it is any specific hard
Part and software combine.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of field method of calibration characterized by comprising
Instruction is loaded in response to the page of user's triggering, obtains the page coding in the page load instruction;
It sends the page to encode to back-end server, and receives the corresponding with page coding of the back-end server return
Field name and independent memory space in store verification corresponding with the page coding rule;
Show the field name in current page, and receive the user on the current page based on the field name input
Field value;
The field value is verified according to the verification rule.
2. the method according to claim 1, wherein the method also includes:
During verifying the field value according to the verification rule, in response to Pressure Alarm, determine currently not yet
The field value of verification;
The field value that will be verified by the back-end server is determined from the field value not yet verified, is shifted as pressure
Field value;
The pressure jump field value is sent to the back-end server, so that the back-end server is according to the verification rule
The pressure jump field value is verified.
3. according to the method described in claim 2, it is characterized in that, described send the pressure jump field value to the rear end
Server, so that the back-end server verifies the pressure jump field value according to the verification rule, comprising:
Determine field name corresponding with the pressure jump field value;
It sends the pressure jump field value and the field name corresponding with the pressure jump field value to the rear end takes
Business device, so that the back-end server is according to the verification rule and the field name corresponding with the pressure jump field value
The pressure jump field value is verified.
4. according to the method described in claim 3, it is characterized in that, the transmission pressure jump field value and described and institute
The corresponding field name of pressure jump field value is stated to the back-end server, comprising:
The pressure jump field value and the field name corresponding with the pressure jump field value are packaged, sealed
Fill result;
The encapsulated result is sent to the back-end server.
5. according to the method described in claim 4, it is characterized in that, sending the encapsulated result to the back-end services described
After device, the back-end server is used for: being parsed the encapsulated result, is obtained the pressure transfer word in the encapsulated result
Segment value and the field name corresponding with the pressure jump field value;Turned according to the verification rule and the described and pressure
It moves the corresponding field name of field value to verify the pressure jump field value, and back-checking result.
6. the method according to claim 1, wherein the independent memory space includes the back-end server
Spatial cache and/or external data base.
7. a kind of field check system characterized by comprising
Module is obtained, the page for triggering in response to user loads instruction, and the page obtained in the page load instruction is compiled
Code;
First sending module is encoded for sending the page to back-end server, and receives what the back-end server returned
And the page encodes verification corresponding with the page coding rule stored in corresponding field name and independent memory space;
Display module, for showing that the field name in current page, and receives the user and is based on the current page
The field value of the field name input;
Correction verification module, for verifying the field value according to the verification rule.
8. system according to claim 7, which is characterized in that the system also includes:
First determining module is used for during verifying the field value according to the verification rule, in response to pressure alarm
Signal determines the field value currently not yet verified;
Second determining module, for determining the word that will be verified by the back-end server from the field value not yet verified
Segment value obtains pressure jump field value;
Second sending module, for sending the pressure jump field value to the back-end server, so that the back-end services
Device verifies the pressure jump field value according to the verification rule.
9. a kind of computer equipment, the computer equipment includes: memory, processor and is stored on the memory simultaneously
The computer program that can be run on the processor, which is characterized in that the processor executes real when the computer program
The step of any one of existing claim 1 to 6 the method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of any one of claim 1 to 6 the method is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910660399.9A CN110515922A (en) | 2019-07-22 | 2019-07-22 | Field method of calibration, system, computer equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910660399.9A CN110515922A (en) | 2019-07-22 | 2019-07-22 | Field method of calibration, system, computer equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110515922A true CN110515922A (en) | 2019-11-29 |
Family
ID=68622691
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910660399.9A Pending CN110515922A (en) | 2019-07-22 | 2019-07-22 | Field method of calibration, system, computer equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110515922A (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101021890A (en) * | 2007-03-20 | 2007-08-22 | 华为技术有限公司 | Method, system and server for checking page data |
-
2019
- 2019-07-22 CN CN201910660399.9A patent/CN110515922A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101021890A (en) * | 2007-03-20 | 2007-08-22 | 华为技术有限公司 | Method, system and server for checking page data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104185845B (en) | For the system and method for the binary representation for providing webpage | |
US20030140045A1 (en) | Providing a server-side scripting language and programming tool | |
US20160364373A1 (en) | Method and apparatus for extracting webpage information | |
CN105205080B (en) | Redundant file method for cleaning, device and system | |
CN109145235B (en) | Method and device for analyzing webpage and electronic equipment | |
US8631097B1 (en) | Methods and systems for finding a mobile and non-mobile page pair | |
US10284686B2 (en) | Server, client, system and method for preloading browsed page in browser | |
CN112154420B (en) | Automatic intelligent cloud service testing tool | |
CN108494762A (en) | Web access method, device and computer readable storage medium, terminal | |
CN109558128A (en) | Json data analysis method, device and computer readable storage medium | |
CN111444455A (en) | Browser compatible method, system, computer device and storage medium | |
CN113536185B (en) | Application page loading method, storage medium and related equipment | |
CN110147476A (en) | Data crawling method, terminal device and computer readable storage medium based on Scrapy | |
CN105095367A (en) | Method and device for acquiring client data | |
CN108885544B (en) | Front-end page internationalized processing method, application server and computer-readable storage medium | |
CN104978325B (en) | A kind of web page processing method, device and user terminal | |
CN111538659A (en) | Interface testing method and system for service scene, electronic device and storage medium | |
CN113360300B (en) | Interface call link generation method, device, equipment and readable storage medium | |
US20020174099A1 (en) | Minimal identification | |
CN112363814A (en) | Task scheduling method and device, computer equipment and storage medium | |
CN110727576B (en) | Web page testing method, device, equipment and storage medium | |
CN112765215A (en) | Data query method and device | |
CN104778232A (en) | Searching result optimizing method and device based on long query | |
CN110515922A (en) | Field method of calibration, system, computer equipment and computer readable storage medium | |
US10802714B2 (en) | Optimizing access to universal integrated circuit card (UICC) files in a user equipment (UE) |
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 |