CN109491896B - WeChat applet form verification method of education system and electronic equipment - Google Patents

WeChat applet form verification method of education system and electronic equipment Download PDF

Info

Publication number
CN109491896B
CN109491896B CN201811259316.7A CN201811259316A CN109491896B CN 109491896 B CN109491896 B CN 109491896B CN 201811259316 A CN201811259316 A CN 201811259316A CN 109491896 B CN109491896 B CN 109491896B
Authority
CN
China
Prior art keywords
verification
rule
verified
option
blu
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.)
Active
Application number
CN201811259316.7A
Other languages
Chinese (zh)
Other versions
CN109491896A (en
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.)
Shenzhen Dianmao Technology Co Ltd
Original Assignee
Shenzhen Dianmao 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 Shenzhen Dianmao Technology Co Ltd filed Critical Shenzhen Dianmao Technology Co Ltd
Priority to CN201811259316.7A priority Critical patent/CN109491896B/en
Publication of CN109491896A publication Critical patent/CN109491896A/en
Application granted granted Critical
Publication of CN109491896B publication Critical patent/CN109491896B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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)
  • Electrically Operated Instructional Devices (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a WeChat applet form checking method and electronic equipment of an education system, wherein the method comprises the following steps: A. the packaging assembly refers to an assembly of the small program, adds a blu event monitoring to the assembly and binds a function to the blu event, and calls the function to check the form when the blu event is triggered; B. when the blu event is triggered, the form is verified by using a corresponding verification rule; C. the invention realizes the form verification of the WeChat small program and imports the template for processing, has wide application range and improves the efficiency.

Description

WeChat applet form verification method of education system and electronic equipment
Technical Field
The invention relates to the field of program application, in particular to a WeChat applet form checking method and electronic equipment of an education system.
Background
At present, the WeChat applet does not provide an automatic form verification scheme, and the user can only carry out unified verification when the user triggers and submits the form to be verified, and the form format can be correctly filled after the user submits the form for multiple times. At present, the WeChat applet does not provide a form automatic verification scheme, and when different forms are written and the same verification rule is adopted, the program development belongs to repeated wheel manufacturing, so that the maintenance cost is increased.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a method for checking a wechat applet form in an educational system and an electronic device, which are used to solve the problem of checking a wechat applet form.
The technical scheme of the invention is as follows:
a WeChat applet form verification method for an educational system, comprising the steps of:
A. the packaging assembly refers to an assembly of the small program, adds a blu event monitoring to the assembly and binds a function to the blu event, and calls the function to check the form when the blu event is triggered;
B. when the blu event is triggered, the form is verified by using a corresponding verification rule;
C. and for the checked forms, the module is derived, and the values are filled into the value set of the forms.
The WeChat applet form verification method of the education system, wherein the step B comprises the following steps:
judging whether the option to be checked is a mandatory item, and skipping checking if the option to be checked is the mandatory item;
when the verification rule of the option to be verified is common verification, verifying according to the common verification rule;
and when the verification rule of the option to be verified is regular verification, verifying through the regular verification rule.
The WeChat applet form verification method of the education system, wherein,
when the verification rule of the option to be verified is common verification, in the step of verifying according to the common verification rule, judging whether the length and the type of the value input in the option to be verified accord with the rule or not, and if so, passing the verification;
when the verification rule of the option to be verified is regular verification, in the step of verifying through the regular verification rule, reading the regular rule, generating a regular expression, and verifying the value of the option to be verified through the regular expression.
The WeChat applet form checking method of the education system comprises the steps of reading prompt contents when checking is failed, judging whether the prompt contents exist or not, displaying the prompt contents when the prompt contents exist, prompting a user to modify the prompt contents, and prompting errors when the prompt contents do not exist.
The WeChat applet form verification method of the educational system, wherein the step S1 is preceded by:
and the verification rule, the prompt information and the export module required in the verification process are stored in advance.
An electronic device, comprising:
comprising a processor adapted to implement instructions, an
A storage device adapted to store a plurality of instructions, the instructions adapted to be loaded and executed by a processor to:
the packaging assembly refers to an assembly of the small program, adds a blu event monitoring to the assembly and binds a function to the blu event, and calls the function to check the form when the blu event is triggered;
when the blu event is triggered, the form is verified by using a corresponding verification rule;
and for the checked forms, the module is derived, and the values are filled into the value set of the forms.
The electronic device, wherein the processor is further configured to load and execute:
judging whether the option to be checked is a mandatory item, and if not, checking;
when the verification rule of the option to be verified is common verification, verifying according to the common verification rule;
and when the verification rule of the option to be verified is regular verification, verifying through the regular verification rule.
The electronic device, wherein the processor is further configured to load and execute:
when the verification rule is common verification, judging whether the length and the type of the value input in the option to be verified conform to the rule or not, and if so, verifying to pass;
and when the verification rule is regular verification, reading the regular rule, generating a regular expression, and verifying the value of the option to be verified through the regular expression.
The electronic device, wherein the processor is further configured to load and execute:
and when the verification is failed, reading the prompt content, judging whether the prompt content exists, displaying the prompt content to prompt a user to modify when the prompt content exists, and prompting an error when the prompt content does not exist.
The electronic device, wherein the processor is further configured to load and execute:
and the verification rule, the prompt information and the export module required in the verification process are stored in advance.
Has the advantages that: the invention discloses a WeChat applet form checking method and electronic equipment of an education system, wherein the method comprises the following steps: A. the packaging assembly refers to an assembly of the small program, adds a blu event monitoring to the assembly and binds a function to the blu event, and calls the function to check the form when the blu event is triggered; B. when the blu event is triggered, the form is verified by using a corresponding verification rule; C. the invention realizes the form verification of the WeChat small program and imports the template for processing, has wide application range and improves the efficiency.
Drawings
The invention will be further described with reference to the following drawings and examples, in which:
fig. 1 is a flowchart illustrating the steps of the method for verifying the wechat applet form of the educational system of the present invention.
Fig. 2 is a schematic structural diagram of the electronic device according to the present invention.
Detailed Description
The invention provides a WeChat applet form verification method of an education system and electronic equipment, and the invention is further described in detail below in order to make the purpose, technical scheme and effect of the invention clearer and clearer. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, a flow chart of steps of a method for checking a wechat applet form of an education system according to the present invention is shown, and the present invention discloses a method for checking a wechat applet form of an education system, wherein the method comprises the steps of:
s1, a packaging assembly refers to an assembly of a small program, adds a blu event monitoring to the assembly, binds a function to the blu event, and calls the function to check a form when the blu event is triggered;
s2, when a blu event is triggered, checking the form by using a corresponding verification rule;
and S3, for the list passing the verification, a module is derived, and the value is filled into the value set of the list.
Further, the WeChat applet form verification method of the educational system, wherein the step S2 includes:
judging whether the option to be checked is a mandatory item, and skipping checking if the option to be checked is the mandatory item;
when the verification rule of the option to be verified is common verification, verifying according to the common verification rule;
and when the verification rule of the option to be verified is regular verification, verifying through the regular verification rule.
Further, the WeChat applet form verification method of the educational system, wherein,
when the verification rule of the option to be verified is common verification, in the step of verifying according to the common verification rule, judging whether the length and the type of the value input in the option to be verified accord with the rule or not, and if so, passing the verification;
when the verification rule of the option to be verified is regular verification, in the step of verifying through the regular verification rule, reading the regular rule, generating a regular expression, and verifying the value of the option to be verified through the regular expression.
Further, the method for verifying the WeChat applet form of the education system includes reading the prompt content when verification fails, judging whether the prompt content exists, displaying the prompt content when the prompt content exists, prompting a user to modify the prompt content, and prompting an error when the prompt content does not exist.
In the preferred embodiment of the invention, all the rules of the form are managed by using one object in the JSON format, and the input monitoring is used for monitoring the input result in real time, so that feedback is given immediately, and the user can correct the filled result at the first time.
Some fixed rules are packaged into modules (for example, mobile phone number format verification), when a new form rule is written, the new form rule can be directly imported into the modules for multiplexing, and if the rule changes, all verification rules can be changed only by changing the rule of the modules.
Further, the method for checking the WeChat applet of the educational system, wherein the step S1 is preceded by:
and the verification rule, the prompt information and the export module required in the verification process are stored in advance.
Further, the present invention also discloses an electronic device 10, as shown in fig. 2, which is a schematic structural diagram of the electronic device, wherein the electronic device includes:
includes a processor 110 adapted to implement instructions, an
A storage device 120 adapted to store a plurality of instructions adapted to be loaded and executed by the processor 110:
the packaging assembly refers to an assembly of the small program, adds a blu event monitoring to the assembly and binds a function to the blu event, and calls the function to check the form when the blu event is triggered;
when the blu event is triggered, checking the form by using a corresponding verification rule;
and for the checked forms, the module is derived, and the values are filled into the value set of the forms.
The processor 110 may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), a single chip, an arm (acorn RISC machine) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. Also, the processor may be any conventional processor, microprocessor, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The storage device 120, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions corresponding to the educational interaction method in the embodiments of the present invention. The processor executes various functional applications of the educational interactive method and data processing by executing the non-volatile software programs, instructions and units stored in the storage device, thereby implementing the above method embodiments.
Further, the electronic device, wherein the processor 110 is further configured to load and execute:
judging whether the option to be checked is a mandatory item, and if not, checking;
when the verification rule of the option to be verified is common verification, verifying according to the common verification rule;
and when the verification rule of the option to be verified is regular verification, verifying through the regular verification rule.
Further, the electronic device, wherein the processor 110 is further configured to load and execute:
when the verification rule is common verification, judging whether the length and the type of the value input in the option to be verified conform to the rule or not, and if so, verifying to pass;
and when the verification rule is regular verification, reading the regular rule, generating a regular expression, and verifying the value of the option to be verified through the regular expression.
Further, the electronic device, wherein the processor 110 is further configured to load and execute:
and when the verification is failed, reading the prompt content, judging whether the prompt content exists, displaying the prompt content to prompt a user to modify when the prompt content exists, and prompting an error when the prompt content does not exist.
Further, the electronic device, wherein the processor 110 is further configured to load and execute:
and the verification rule, the prompt information and the export module required in the verification process are stored in advance.
In summary, the present invention discloses a WeChat applet form verification method and an electronic device of an education system, wherein the method includes the steps of: A. the packaging assembly refers to an assembly of the small program, adds a blu event monitoring to the assembly and binds a function to the blu event, and calls the function to check the form when the blu event is triggered; B. when the blu event is triggered, the form is verified by using a corresponding verification rule; C. the invention realizes the form verification of the WeChat small program and imports the template for processing, has wide application range and improves the efficiency.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (2)

1. A WeChat applet form verification method for an educational system is characterized by comprising the following steps:
A. the packaging assembly refers to an assembly of the small program, adds a blu event monitoring to the assembly and binds a function to the blu event, and calls the function to check the form when the blu event is triggered;
B. when the blu event is triggered, the form is verified by using a corresponding verification rule;
C. for the checked form, a module is derived, and the value is filled into the value set of the form;
some fixed rules are packaged into modules, and when a new form verification rule is programmed, the rules can be directly imported into the modules for multiplexing;
managing all rules of the form by using a JSON format object, and monitoring an input result in real time by using input monitoring;
the step B comprises the following steps:
judging whether the option to be checked is a mandatory item, and if not, skipping checking;
when the verification rule of the option to be verified is common verification, verifying according to the common verification rule;
when the verification rule of the option to be verified is regular verification, verifying through the regular verification rule;
when the verification rule of the option to be verified is common verification, in the step of verifying according to the common verification rule, judging whether the length and the type of the value input in the option to be verified accord with the rule or not, and if so, passing the verification;
when the verification rule of the option to be verified is regular verification, in the step of verifying through the regular verification rule, reading the regular rule, generating a regular expression, and verifying the value of the option to be verified through the regular expression;
when the verification is failed, reading the prompt content, judging whether the prompt content exists, when the prompt content exists, displaying the prompt content to prompt a user to modify, and when the prompt content does not exist, prompting an error;
the step A is preceded by:
and pre-storing a verification rule, prompt information and a derivation module required in the verification process.
2. An electronic device, comprising:
comprising a processor adapted to implement instructions, an
A storage device adapted to store a plurality of instructions, the instructions adapted to be loaded and executed by a processor to:
the packaging assembly refers to an assembly of the small program, adds a blu event monitoring to the assembly and binds a function to the blu event, and calls the function to check the form when the blu event is triggered;
when the blu event is triggered, the form is verified by using a corresponding verification rule;
for the checked form, a module is derived, and the value is filled into the value set of the form;
some fixed rules are packaged into modules, and when new form verification rules are programmed, the fixed rules can be directly imported into the modules for multiplexing;
managing all rules of the form by using an object in a JSON format, and monitoring an input result in real time by using input monitoring;
the processor is further configured to load and execute:
judging whether the option to be checked is a mandatory item, and if not, checking;
when the verification rule of the option to be verified is common verification, verifying according to the common verification rule;
when the verification rule of the option to be verified is regular verification, verifying through the regular verification rule;
when the verification rule is common verification, judging whether the length and the type of the value input in the option to be verified conform to the rule or not, and if so, verifying to pass;
when the verification rule is regular verification, reading the regular rule, generating a regular expression, and verifying the value of the option to be verified through the regular expression;
when the verification is failed, reading the prompt content, judging whether the prompt content exists, when the prompt content exists, displaying the prompt content to prompt a user to modify, and when the prompt content does not exist, prompting an error;
and the verification rule, the prompt information and the export module required in the verification process are stored in advance.
CN201811259316.7A 2018-10-26 2018-10-26 WeChat applet form verification method of education system and electronic equipment Active CN109491896B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811259316.7A CN109491896B (en) 2018-10-26 2018-10-26 WeChat applet form verification method of education system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811259316.7A CN109491896B (en) 2018-10-26 2018-10-26 WeChat applet form verification method of education system and electronic equipment

Publications (2)

Publication Number Publication Date
CN109491896A CN109491896A (en) 2019-03-19
CN109491896B true CN109491896B (en) 2022-06-21

Family

ID=65691642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811259316.7A Active CN109491896B (en) 2018-10-26 2018-10-26 WeChat applet form verification method of education system and electronic equipment

Country Status (1)

Country Link
CN (1) CN109491896B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486551B (en) * 2020-11-26 2022-02-01 四川长虹电器股份有限公司 Method for realizing overall real-time component of small program

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102426549A (en) * 2011-09-08 2012-04-25 新一站保险代理有限公司 Efficient Web form validation method and framework thereof
CN103186467A (en) * 2011-12-31 2013-07-03 北京新媒传信科技有限公司 Method and device for verifying data correctness
CN103440198A (en) * 2013-08-27 2013-12-11 星云融创(北京)信息技术有限公司 Method for calibrating form
CN104899291A (en) * 2015-06-05 2015-09-09 北京京东尚科信息技术有限公司 Method and device for multidimensional analysis of relational database
CN105404620A (en) * 2015-11-20 2016-03-16 华为技术有限公司 Form verification method and apparatus
CN106776819A (en) * 2016-11-25 2017-05-31 济南浪潮高新科技投资发展有限公司 A kind of implementation method of list efficient data linkage
CN206584426U (en) * 2017-01-12 2017-10-24 深圳达实信息技术有限公司 A kind of Yunmen access control system
CN107909526A (en) * 2017-11-03 2018-04-13 惠州市元心软件有限公司 A kind of inspection and quarantine management system based on technology of Internet of things
CN107918733A (en) * 2016-10-10 2018-04-17 卡巴斯基实验室股份制公司 The system and method for detecting the malicious element of webpage
CN108509246A (en) * 2018-04-08 2018-09-07 重庆满惠网络科技有限公司 A kind of self-defined verification method of web form and system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576823A (en) * 2009-06-11 2009-11-11 阿里巴巴集团控股有限公司 Method for verifying form control and device
US9372787B2 (en) * 2013-07-15 2016-06-21 Sap Se System and method for automating testing
US9996637B2 (en) * 2015-07-30 2018-06-12 International Business Machines Corporation Method for verifying hardware/software co-designs
US20170153968A1 (en) * 2015-12-01 2017-06-01 Sap Se Database configuration check
US10848448B2 (en) * 2016-09-21 2020-11-24 King Fahd University Of Petroleum And Minerals Spam filtering in multimodal mobile communication
CN106570054A (en) * 2016-09-23 2017-04-19 浪潮电子信息产业股份有限公司 Method for persisting Web form data
CN107995153B (en) * 2016-10-27 2021-01-05 腾讯科技(北京)有限公司 Form data verification method and form data verification device
US10579807B2 (en) * 2017-02-02 2020-03-03 International Business Machines Corporation Preventing image capture data leaks

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102426549A (en) * 2011-09-08 2012-04-25 新一站保险代理有限公司 Efficient Web form validation method and framework thereof
CN103186467A (en) * 2011-12-31 2013-07-03 北京新媒传信科技有限公司 Method and device for verifying data correctness
CN103440198A (en) * 2013-08-27 2013-12-11 星云融创(北京)信息技术有限公司 Method for calibrating form
CN104899291A (en) * 2015-06-05 2015-09-09 北京京东尚科信息技术有限公司 Method and device for multidimensional analysis of relational database
CN105404620A (en) * 2015-11-20 2016-03-16 华为技术有限公司 Form verification method and apparatus
CN107918733A (en) * 2016-10-10 2018-04-17 卡巴斯基实验室股份制公司 The system and method for detecting the malicious element of webpage
CN106776819A (en) * 2016-11-25 2017-05-31 济南浪潮高新科技投资发展有限公司 A kind of implementation method of list efficient data linkage
CN206584426U (en) * 2017-01-12 2017-10-24 深圳达实信息技术有限公司 A kind of Yunmen access control system
CN107909526A (en) * 2017-11-03 2018-04-13 惠州市元心软件有限公司 A kind of inspection and quarantine management system based on technology of Internet of things
CN108509246A (en) * 2018-04-08 2018-09-07 重庆满惠网络科技有限公司 A kind of self-defined verification method of web form and system

Also Published As

Publication number Publication date
CN109491896A (en) 2019-03-19

Similar Documents

Publication Publication Date Title
CN106990952B (en) Form verification method and system based on Vue
CN109683953A (en) A kind of method and device carrying out configuration file processing based on visualization interface
CN107133174A (en) Test case code automatically generating device and method
CN103440198B (en) Form validation method
CN108282518A (en) A kind of customer terminal webpage generation method and device
US20120159446A1 (en) Verification framework for business objects
CN111506579B (en) Method, program and equipment for generating intelligent contract code
CN106843901B (en) Page rendering and verification method and device
CN114968864B (en) Verification environment construction method, chip verification method and system
CN107995153A (en) Form data verification method and form data verification device
CN105404574B (en) Smart card and mobile terminal consistency test method and device
CN107977260B (en) Task submitting method and device
CN113687858A (en) Configuration file checking method and device, electronic equipment and storage medium
CN109491896B (en) WeChat applet form verification method of education system and electronic equipment
CN108509228B (en) Page loading method, terminal equipment and computer readable storage medium
CN107203373A (en) Acquisition methods, method of testing and the acquisition device of interface control, test device
US10606569B2 (en) Declarative configuration elements
CN110362294A (en) Development task executes method, apparatus, electronic equipment and storage medium
CN102221999B (en) Method and system for packaging flex form component
US20130283238A1 (en) Testing system for an integrated software system
CN110209572A (en) Ui testing method, ui testing system and terminal
CN108563514A (en) Access method, application and the electronic equipment of application configuration service
CN106354966B (en) The method of the conversion of chip id E project file and rapid configuration artificial debugging environment
CN109347797A (en) A kind of third-party application login method and electronic equipment based on educational system
CN109670328B (en) Data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant