CN115328759A - Form verification method and device - Google Patents

Form verification method and device Download PDF

Info

Publication number
CN115328759A
CN115328759A CN202210771923.1A CN202210771923A CN115328759A CN 115328759 A CN115328759 A CN 115328759A CN 202210771923 A CN202210771923 A CN 202210771923A CN 115328759 A CN115328759 A CN 115328759A
Authority
CN
China
Prior art keywords
target
verification
logic
verified
content
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
CN202210771923.1A
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.)
Bank of China Financial Technology Co Ltd
Original Assignee
Bank of China Financial 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 Bank of China Financial Technology Co Ltd filed Critical Bank of China Financial Technology Co Ltd
Priority to CN202210771923.1A priority Critical patent/CN115328759A/en
Publication of CN115328759A publication Critical patent/CN115328759A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The invention provides a method and a device for checking a form, wherein the method comprises the following steps: after the form interface of the target form is loaded, acquiring target verification logic corresponding to the target form from a form verification logic library according to a form label of the target form; and acquiring the content to be verified of the target form, verifying the content to be verified according to the target verification logic, and determining the verification result of the target form. According to the form verification method and device provided by the invention, the target verification logic corresponding to the target form is obtained from the form verification logic library, and the target form is verified, so that the goal of completing the verification of the target form only at the front end is realized. Meanwhile, the logic configuration of the target form is carried out based on the visual configuration interface, and a user only needs to select the target verification logic in the visual configuration interface, so that the verification logic code is separated from the code of the form, the change of the verification logic is quickly responded, and the change operation process is facilitated.

Description

Form verification method and device
Technical Field
The invention relates to the technical field of computers, in particular to a form verification method and device.
Background
Form verification is quite common in web development, input of a user is restrained to a certain degree through the form verification, the error probability can be reduced, and the user experience is improved.
The existing form check only simply checks the format of input data, whether the input data is empty, and the like when the form is submitted. For the verification of some complex business logics or association relations in the form, some verified logic codes can be customized, and the verification is completed in a hard coding mode. When the check logic of form check is changed, the hard-coded form needs to edit the source code and recompile the executable file, which results in higher cost and troublesome process.
Disclosure of Invention
The invention provides a form verification method and a form verification device, which are used for solving the technical problems of high cost and troublesome process caused by the fact that a source code needs to be edited and an executable file needs to be recompiled through a verification logic determined in a hard coding mode when the form verification logic is changed in the prior art.
The invention provides a form verification method, which comprises the following steps:
after the form interface of the target form is loaded, acquiring target verification logic corresponding to the target form from a form verification logic library according to the form label of the target form;
acquiring the content to be verified of the target form, verifying the content to be verified according to the target verification logic, and determining the verification result of the target form;
the target verification logic is obtained by selecting the field to be verified in the target form through a visual configuration interface and configuring the verification logic of the field to be verified.
According to the form verification method provided by the invention, the verification of the content to be verified according to the target verification logic comprises the following steps:
in case the content to be verified comprises verification data of a third party system,
and acquiring verification data of a third-party system in the content to be verified based on a hypertext transfer protocol (HTTP) request interface, and verifying the content to be verified according to the target verification logic.
According to the form verification method provided by the invention, the form verification logic library is obtained by configuring the verification logic of all forms in the project of the target form and associating all forms after the verification logic is configured with the corresponding form labels.
According to the form verification method provided by the invention, the verification of the content to be verified comprises the following steps:
checking a single service logic in the content to be checked and a related service logic in the content to be checked;
the single service logic is the check logic of a single field in the target form;
and the associated service logic is check logic associated with a plurality of fields in the target form.
According to the form verification method provided by the invention, after the verification result of the target form is determined, the method further comprises the following steps:
determining verification prompt information of the target form according to the verification result;
and sending the verification prompt information to a user submitting the request of the target form.
The form verification method provided by the invention further comprises the following steps:
and monitoring all fields in the target form, and triggering the verification process of the target field under the condition that the data of the target field in all the fields is changed.
The invention also provides a form checking device, which comprises:
the verification logic acquisition module is used for acquiring a target verification logic corresponding to a target form from a form verification logic library according to a form label of the target form after the form interface of the target form is loaded;
the form verification module is used for acquiring the content to be verified of the target form, verifying the content to be verified according to the target verification logic and determining the verification result of the target form;
the target verification logic is obtained by selecting the field to be verified in the target form through a visual configuration interface and configuring the verification logic of the field to be verified.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor implements the form verification method according to any one of the above methods when executing the computer program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of verifying a form as described in any of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, implements a method of checking a form as described in any one of the above.
According to the form verification method and device provided by the invention, the target verification logic corresponding to the target form is obtained from the form verification logic library after the target form interface is loaded, and the target form is verified, so that the target form can be verified only at the front end. Meanwhile, the logic configuration of the target form is carried out based on the visual configuration interface, and the user can determine the verification logic of the target form only by selecting the target verification logic in the visual configuration interface, so that the verification logic code is separated from the code of the form, the change of the verification logic can be quickly responded, and the change operation process is facilitated.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is a flow chart of a method for checking a form according to the present invention;
FIG. 2 is a schematic structural diagram of a form verification apparatus provided in the present invention;
fig. 3 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a form verification method provided by the present invention. Referring to fig. 1, the method for checking a form provided by the present invention may include:
step 110, after the form interface of the target form is loaded, according to the form label of the target form, obtaining a target verification logic corresponding to the target form from a form verification logic library;
step 120, acquiring the content to be verified of the target form, verifying the content to be verified according to the target verification logic, and determining a verification result of the target form;
the target verification logic is obtained by selecting the field to be verified in the target form through a visual configuration interface and configuring the verification logic of the field to be verified.
The execution main body of the form verification method provided by the invention can be electronic equipment, a component in the electronic equipment, an integrated circuit or a chip. The electronic device may be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), and the like, and the present invention is not limited in particular.
The technical solution of the present invention is described in detail below by taking a computer as an example to execute the method for checking a form provided by the present invention.
In step 110, after the form interface of the target form is loaded in the front end, the target verification logic corresponding to the target form is obtained from the form verification logic library according to the form label of the target form.
The form is in the front page and is key to data collection. A form has three basic components: form label: contains the URL (Uniform Resource Locator) of CGI (Common Gateway Interface) program for processing form data and the method for submitting data to server. Form field: including text boxes, password boxes, hidden fields, multi-line text boxes, check boxes, radio boxes, drop-down selection boxes, file upload boxes, and the like. Form button: comprises a submit button, a reset button and a general button; the CGI script used to transfer data to the server or cancel the input, and the form button can also be used to control other processing tasks that define the processing script.
And after the form interface of the target form is loaded in the front end, starting the verification process of the target form. First, the form label of the target form is obtained. The form label may be a form ID (Identity Document) of the target form.
And acquiring the target verification logic corresponding to the target form from the form verification logic library according to the form label of the target form. The form verification logic library comprises the verification logics of a plurality of forms, and the form verification logics of corresponding forms can be indexed according to the form tags. Therefore, according to the form label of the target form, the target verification logic of the target form can be obtained from the form verification logic library.
It is understood that the target validation logic of the target form is determined with respect to the contents of the target form. And according to the obtained target verification logic of the target form, the verification of the target form can be realized.
The target checking logic is determined for the checking logic of each field in the target form.
In step 120, the content to be verified in the target form is obtained, the content to be verified in the target form is verified according to the target verification logic obtained in step 110, and a verification result after the verification of the target form is completed is determined.
The content to be verified of the target form is the data to be verified of each field in the target form. And verifying the data of each field in the target form according to the target verification logic, and determining the final verification result of the target form after all the fields are verified.
And after the form interface of the target form is loaded at the front end, starting to check the target form. And verifying the contents to be verified of the target form by reading the target verification logic of the target form, and verifying the target form at the front end.
Optionally, the checking of the content to be checked in the target form includes checking of a single field in the target form and checking of an association relationship between multiple fields in the target form. For example, for fields a1, a2, and a3 in the target form that cannot be empty at the same time and the total cannot be greater than 100, the a1, a2, and a3 fields of the target form are selected while configuring the logic rule "not empty at the same time, sum < =100". And according to the configured logic rule, the verification of the three fields of a1, a2 and a3 in the target form can be completed.
In the related technology, only simple checks are carried out on the format, the null condition and the like of input data when the form is submitted, and the check forms are supported by default. For some complex association relation check and business logic check, some check logic codes can be defined by users, and the check is completed in a hard coding mode, so that certain requirements on the technology are required by writing code hiding, and the cost is high. Especially, when the form check logic needs to be changed, the hard coded data can be modified only by editing the source code and recompiling the executable file, so that the changing process is very troublesome.
The target verification logic is obtained by selecting a field to be verified in the target form through a visual configuration interface and configuring the verification logic of the field to be verified.
And configuring the field to be verified in the target form through a visual configuration interface. When the target verification logic of the target form is configured, the user only needs to select the target verification logic in the visual configuration interface, and the verification logic of the target form can be determined. The check logic code is separated from the self-code of the form, the change of the check logic can be quickly responded, a user does not need to write a large number of logic codes, the cost of the user is low, the check logic can be reused, copied and modified, and the repeated work is reduced.
The visual configuration interface is in a front-end interface mode, the interface comprises checking logic of all fields to be checked, and according to the fields to be checked in the target form, the checking logic corresponding to the fields to be checked in the target form can be configured in the interface in a visual mode.
When the configuration of the checking logic of the fields to be checked in the target form is performed, the ID of each field in the target form may be associated with the corresponding checking logic, so as to determine the checking logic of all the fields to be checked in the target form.
It can be understood that a project generally includes a plurality of forms, and a visual configuration interface mode can realize multiplexing of the verification logic in a plurality of different forms, thereby facilitating configuration of the verification rules of a plurality of forms in a project.
Optionally, when a new check logic is added, the newly added check logic may be added to the check logic in the configuration interface of the visualization. Under the condition that the newly added check logic exists, the newly added check logic can be conveniently added into the corresponding form.
According to the form verification method provided by the embodiment of the invention, the target verification logic corresponding to the target form is obtained from the form verification logic library after the target form interface is loaded, and the target form is verified, so that the goal of completing the verification of the target form only at the front end is realized. Meanwhile, the logic configuration of the target form is carried out based on the visual configuration interface, and a user can determine the verification logic of the target form only by selecting the target verification logic in the visual configuration interface, so that the verification logic code is separated from the code of the form, the change of the verification logic can be quickly responded, and the operation process of the change is facilitated.
In one embodiment, verifying the content to be verified according to the target verification logic includes: and under the condition that the content to be verified comprises verification data of a third-party system, acquiring the verification data of the third-party system in the content to be verified based on a hypertext transfer protocol (HTTP) request interface, and verifying the content to be verified according to the target verification logic.
For the condition that the target form contains the verification data of the third-party system, the verification data of the third-party system needs to be acquired so as to verify the target form. And acquiring verification data of a third-party system through an HTTP (Hyper Text Transfer Protocol) request interface, and completing verification of the content to be verified based on target verification logic according to the acquired verification data.
Wherein, the third party system refers to a system other than the item of the current target form. Through the HTTP request interface, the verification data of the third-party system can be acquired.
Optionally, the verification process for the target form is done at the front end. If the verification process of the target form needs background logic or data, the background logic or data can be acquired through the HTTP request interface, and the current verification of the target form is completed. For the situation that the background check logic cannot be obtained, the data in the form can be sent to the background, the check of the corresponding content in the target form is completed in the background, and the check result is returned.
According to the form verification method provided by the embodiment of the invention, the verification data of the third-party system in the content to be verified is acquired through the HTTP request interface, and the content to be verified is verified according to the target verification logic, so that the verification of the complex condition containing the third-party system data is realized.
In one embodiment, the form verification logic library is obtained by configuring verification logic of all forms in the items of the target form and associating all forms after the verification logic is configured with corresponding form tags.
For the visual configuration interface, the interface comprises checking logic of all fields to be checked. For the project of the target form, a plurality of forms including the target form are multiplexed in a plurality of different forms in a visual configuration interface mode, and the configuration of the check logic of all the forms in the project is realized.
And obtaining a form checking logic set, namely a form checking logic library, after finishing the configuration of the checking logic of all forms in the project. After all the forms configured with the verification logic are associated with the corresponding form labels, the form verification logic corresponding to the form labels can be obtained from the form verification library according to the form labels.
Optionally, the form tag may be the form ID of the target form, among other things. And realizing the index of the checking logic of the form through the ID of the form.
According to the form verification method provided by the embodiment of the invention, the verification logics of all forms in the project of the target form are configured, and all forms after the verification logics are configured are associated with the corresponding form labels to obtain the form verification logic library, so that the acquisition of the corresponding verification logics is facilitated when the forms are verified.
In one embodiment, the verifying the content to be verified includes: checking a single service logic in the content to be checked and an associated service logic in the content to be checked; the single service logic is the check logic of a single field in the target form; the associated service logic is check logic associated with a plurality of fields in the target form.
And for the contents to be verified of the target form, the verification of a single service logic and an associated service logic is included. I.e., checks for all fields in the target form, including checks for a single field and joint checks for multiple fields.
The single business logic is the check logic of a single field in the target form, for example, the check logic cannot be empty for an entry with a form entry ID of a 0. Only the a0 entry needs to be checked for being empty.
The associated business logic is the check logic associated with a plurality of fields in the target form. For example, for the case that three fields of the fields a1, a2, and a3 in the target form cannot be empty at the same time and the running total cannot be greater than 100, the fields a1, a2, and a3 of the target form are selected and the check logic "not empty at the same time and the sum < =100" is checked at the same time.
According to the form verification method provided by the embodiment of the invention, through different verification modes in the target form, the single service logic in the content to be verified and the associated service logic in the content to be verified are verified, so that the verification of multiple verification modes is realized, and the verification flexibility is improved.
In one embodiment, after determining the verification result of the target form, the method further includes: determining verification prompt information of the target form according to the verification result; and sending the verification prompt information to a user submitting the request of the target form.
And determining verification prompt information of the target form according to the verification result. For example, in the case of failing to verify, the verification prompt information may be verification failure reason information; in the case of passing the verification, the verification prompt message may be a prompt message that passes the verification but includes the warning message.
And after the verification prompt information of the target form is acquired, submitting the verification prompt information fed back by the user to the request of the target form, and executing the corresponding next operation according to the verification prompt information. For example, when the verification prompt information is warning information, the warning information is displayed before the target form is submitted, and the user can select whether to submit the data of the target form according to the warning information.
According to the form verification method provided by the embodiment of the invention, the verification prompt information of the target form is determined according to the verification result, and the verification prompt information is sent to the request submitting user of the target form, so that the request submitting user can obtain the corresponding verification prompt information according to the verification result. The request submitting user can conveniently carry out subsequent operation according to the verification prompt information.
In one embodiment, further comprising: and monitoring all fields in the target form, and triggering the verification process of the target field under the condition that the data of the target field in all the fields is changed.
And monitoring all fields in the target form, and monitoring whether data corresponding to all fields in the target form are changed. And for the target form, each field has an ID, the field corresponding to the ID is monitored, and the verification process of the target field is triggered when the change occurs.
And triggering the verification process of the target field under the condition that the data of the target field in all the fields in the target form is changed.
It can be understood that the user inputs the corresponding content of each field according to the field in the target form. After the input is completed, the content of individual fields may be modified, and for the modified target field, a verification process corresponding to the target field is triggered, and the target field is verified again.
The form verification method provided by the embodiment of the invention monitors all fields in the target form, monitors whether the data corresponding to all the fields in the target form changes, and triggers the verification process of the target fields under the condition that the data of the target fields in all the fields change, thereby improving the flexibility of verification.
Fig. 2 is a schematic structural diagram of a form verification apparatus provided in the present invention, and as shown in fig. 2, the apparatus includes:
the verification logic obtaining module 210 is configured to obtain, after the form interface of the target form is loaded, a target verification logic corresponding to the target form from a form verification logic library according to the form label of the target form;
the form verification module 220 is configured to obtain a to-be-verified content of the target form, verify the to-be-verified content according to the target verification logic, and determine a verification result of the target form;
the target verification logic is obtained by selecting the field to be verified in the target form through a visual configuration interface and configuring the verification logic of the field to be verified.
According to the form verification device provided by the embodiment of the invention, the target verification logic corresponding to the target form is obtained from the form verification logic library after the target form interface is loaded, and the target form is verified, so that the goal of completing the verification of the target form only at the front end is realized. Meanwhile, the logic configuration of the target form is carried out based on the visual configuration interface, and the user can determine the verification logic of the target form only by selecting the target verification logic in the visual configuration interface, so that the verification logic code is separated from the code of the form, the change of the verification logic can be quickly responded, and the change operation process is facilitated.
In one embodiment, the form verification module 220 is specifically configured to:
according to the target verification logic, verifying the content to be verified, including:
in case the content to be verified comprises verification data of a third party system,
and acquiring verification data of a third-party system in the content to be verified based on a hypertext transfer protocol (HTTP) request interface, and verifying the content to be verified according to the target verification logic.
In an embodiment, the form verification module 220 is further specifically configured to:
the form verification logic library is obtained by configuring the verification logic of all forms in the items of the target form and associating all forms configured with the verification logic with corresponding form labels.
In an embodiment, the form verification module 220 is further specifically configured to:
the checking of the content to be checked comprises the following steps:
checking a single service logic in the content to be checked and a related service logic in the content to be checked;
the single service logic is the check logic of a single field in the target form;
and the associated service logic is check logic associated with a plurality of fields in the target form.
In one embodiment, the form verification module 220 is further specifically configured to:
after the verification result of the target form is determined, the method further comprises the following steps:
determining verification prompt information of the target form according to the verification result;
and sending the verification prompt information to a user submitting the request of the target form.
In an embodiment, the form verification module 220 is further specifically configured to:
and monitoring all fields in the target form, and triggering a checking process of the target field under the condition that the data of the target field in all the fields is changed.
Fig. 3 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 3: a processor (processor) 310, a communication Interface (communication Interface) 320, a memory (memory) 330 and a communication bus 340, wherein the processor 310, the communication Interface 320 and the memory 330 communicate with each other via the communication bus 340. The processor 310 may call logic instructions in the memory 330 to perform a method of checking a form, the method comprising:
after the form interface of the target form is loaded, acquiring target verification logic corresponding to the target form from a form verification logic library according to the form label of the target form;
acquiring the content to be verified of the target form, verifying the content to be verified according to the target verification logic, and determining the verification result of the target form;
the target verification logic is obtained by selecting the field to be verified in the target form through a visual configuration interface and configuring the verification logic of the field to be verified.
In addition, the logic instructions in the memory 330 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform a method for checking a form provided by the above methods, the method comprising:
after the form interface of the target form is loaded, acquiring target verification logic corresponding to the target form from a form verification logic library according to the form label of the target form;
acquiring the content to be verified of the target form, verifying the content to be verified according to the target verification logic, and determining the verification result of the target form;
the target verification logic is obtained by selecting the field to be verified in the target form through a visual configuration interface and configuring the verification logic of the field to be verified.
In another aspect, the present invention also provides a non-transitory computer readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform the method for verifying the forms provided above, the method including:
after the form interface of the target form is loaded, acquiring target verification logic corresponding to the target form from a form verification logic library according to the form label of the target form;
acquiring the content to be verified of the target form, verifying the content to be verified according to the target verification logic, and determining the verification result of the target form;
the target verification logic is obtained by selecting the field to be verified in the target form through a visual configuration interface and configuring the verification logic of the field to be verified.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, and not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for verifying a form, comprising:
after the form interface of the target form is loaded, acquiring target verification logic corresponding to the target form from a form verification logic library according to the form label of the target form;
acquiring the content to be verified of the target form, verifying the content to be verified according to the target verification logic, and determining the verification result of the target form;
the target verification logic is obtained by selecting the field to be verified in the target form through a visual configuration interface and configuring the verification logic of the field to be verified.
2. The form verification method of claim 1, wherein the verifying the content to be verified according to the target verification logic comprises:
in case the content to be verified comprises verification data of a third party system,
and acquiring verification data of a third-party system in the content to be verified based on a hypertext transfer protocol (HTTP) request interface, and verifying the content to be verified according to the target verification logic.
3. The form verification method of claim 1, wherein the form verification logic library is obtained by configuring verification logic of all forms in the items of the target form and associating all forms configured with the verification logic with corresponding form tags.
4. The form verification method of claim 1, wherein the verifying the content to be verified comprises:
checking a single service logic in the content to be checked and an associated service logic in the content to be checked;
the single service logic is the check logic of a single field in the target form;
and the associated service logic is check logic associated with a plurality of fields in the target form.
5. The method for verifying the form of claim 1, wherein after determining the verification result of the target form, the method further comprises:
determining verification prompt information of the target form according to the verification result;
and sending the verification prompt information to a user submitting the request of the target form.
6. The method of verifying a form of claim 1, further comprising:
and monitoring all fields in the target form, and triggering a checking process of the target field under the condition that the data of the target field in all the fields is changed.
7. A form verification apparatus, comprising:
the verification logic acquisition module is used for acquiring a target verification logic corresponding to a target form from a form verification logic library according to a form label of the target form after the form interface of the target form is loaded;
the form verification module is used for acquiring the content to be verified of the target form, verifying the content to be verified according to the target verification logic and determining the verification result of the target form;
the target verification logic is obtained by selecting the field to be verified in the target form through a visual configuration interface and configuring the verification logic of the field to be verified.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements a method of checking a form according to any of claims 1 to 6 when executing the computer program.
9. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements a method of verifying a form according to any one of claims 1 to 6.
10. A computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements a method of checking a form according to any one of claims 1 to 6.
CN202210771923.1A 2022-06-30 2022-06-30 Form verification method and device Pending CN115328759A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210771923.1A CN115328759A (en) 2022-06-30 2022-06-30 Form verification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210771923.1A CN115328759A (en) 2022-06-30 2022-06-30 Form verification method and device

Publications (1)

Publication Number Publication Date
CN115328759A true CN115328759A (en) 2022-11-11

Family

ID=83916728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210771923.1A Pending CN115328759A (en) 2022-06-30 2022-06-30 Form verification method and device

Country Status (1)

Country Link
CN (1) CN115328759A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115544994A (en) * 2022-12-01 2022-12-30 爱集微咨询(厦门)有限公司 Data pushing method and device, electronic equipment and readable storage medium
CN115620851A (en) * 2022-12-19 2023-01-17 一临云(深圳)科技有限公司 Data verification method and device, electronic equipment and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115544994A (en) * 2022-12-01 2022-12-30 爱集微咨询(厦门)有限公司 Data pushing method and device, electronic equipment and readable storage medium
CN115620851A (en) * 2022-12-19 2023-01-17 一临云(深圳)科技有限公司 Data verification method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN109683953B (en) Method and device for processing configuration file based on visual interface
CN108427731B (en) Page code processing method and device, terminal equipment and medium
CN106815031B (en) Kernel module loading method and device
CN115328759A (en) Form verification method and device
CN110597511B (en) Page automatic generation method, system, terminal equipment and storage medium
CN107729452B (en) Webpage loading method and device, electronic equipment and computer readable storage medium
CN108334346B (en) Method and device for developing service control process
CN114116496A (en) Automatic testing method, device, equipment and medium
CN112463154A (en) Page generation method, device and system and electronic equipment
CN109284331B (en) Certificate making information acquisition method based on service data resources, terminal equipment and medium
CN111367531B (en) Code processing method and device
CN113157315A (en) Method, device, equipment and medium for identifying difference information of different versions of software
CN112637222A (en) Request processing method and device
CN108804889B (en) Website registration method and device
CN113935847A (en) Online process risk processing method, device, server and medium
CN111142735B (en) Software page creating method and device, terminal equipment and storage medium
CN111045983B (en) Nuclear power station electronic file management method, device, terminal equipment and medium
CN113722225A (en) Page testing method and device, computer equipment and storage medium
CN112860722A (en) Data checking method and device, electronic equipment and readable storage medium
CN105893546A (en) One-time asynchronous checking and accurate positioning prompt mode adopted in BS software system
CN116955201A (en) Data development test method, device, equipment and medium
CN116755745A (en) Plug-in updating method, device and equipment of code editor and storage medium
CN114282145A (en) Method and system for generating dynamic form
CN116701488A (en) Data processing method, device, computer equipment and storage medium
CN113761508A (en) Information processing method, information processing device, electronic equipment and storage medium

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