Interface element verification method, device, storage medium and program product

By preconfiguring the verification method in an interface framework that does not support forms and storing it in a preset container, the business data verification problem collected by interface components is solved, efficient business data verification is achieved, development efficiency is improved and code redundancy is reduced .

CN114138790BActive Publication Date: 2025-02-11CHINA CONSTRUCTION BANK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111461389.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-02
Publication Date
2025-02-11
Estimated Expiration
2041-12-02

AI Technical Summary

Technical Problem

Under the interface framework that does not support forms, it is difficult to effectively verify the business data collected by interface components.

Method used

Verification of business data is achieved by preconfiguring the verification method and storing it in a preset container, and the corresponding input components are taken out from the container when verification is required and their verification method is performed.

Benefits of technology

Under the interface framework that does not support forms, effective verification of business data is achieved, development efficiency is improved and code redundancy is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114138790B_ABST
    Figure CN114138790B_ABST
Patent Text Reader

Abstract

The present application provides a verification method, device, storage medium and program product for interface elements, which relates to the field of intelligent services. The method receives business information input by a user from at least one input component in the interface; takes out an input component to be verified from at least one input component in a first preset container, and obtains a pre-configured verification method from the input component to be verified; and executes the verification method on the input component to be verified to verify the business information input by it. In an interface framework that does not support forms, the present application pre-configures corresponding verification methods for each input component and loads them into a first preset container. When it is necessary to verify the business information input by one or some input components, the input component can be taken out from the first preset container and its pre-configured verification method can be executed to realize the verification of the business data. In addition, it is only necessary to pre-configure the verification method for the input component, which effectively improves the development efficiency and reduces code redundancy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent services, and in particular to a method, device, storage medium and program product for verifying interface elements. Background Art

[0002] As a channel directly facing customers, the emergence of smart ATMs has greatly reduced the waiting time for customers to handle business at the counter, and also reduced the pressure on tellers to handle business. In the process of interaction with customers, the accurate and effective interface verification and prompts of smart ATMs will greatly shorten the time for customers to handle business and improve customer satisfaction.

[0003] At present, some smart ATMs can allow users to input business information through forms, and verify the business information through the form information verification method. However, the interface framework of some smart ATMs does not support form operations, and business information can only be collected through interface components, which is not convenient for verifying business information. Summary of the invention

[0004] The present application provides an interface element verification method, device, storage medium and program product, which are used to solve the problem of verifying business data collected by interface components in an interface framework that does not support forms.

[0005] In a first aspect, the present application provides a method for verifying an interface element, comprising:

[0006] Receiving business information input by a user through at least one input component in the interface;

[0007] Taking out the input component to be verified from the at least one input component from a first preset container, and acquiring a pre-configured verification method from the input component to be verified; wherein the first preset container stores a plurality of components in the interface;

[0008] The verification method is executed on the input component to be verified to verify the business information input by the input component to be verified.

[0009] Optionally, taking out the input component to be verified from the at least one input component from the first preset container includes:

[0010] According to the preset index information of the input component to be verified, the input component to be verified is taken out from the first preset container.

[0011] Optionally, taking out the input component to be verified from the first preset container according to preset index information of the input component to be verified includes:

[0012] Acquire preset index information of a plurality of input components to be verified from at least one second preset container, wherein each of the second preset containers stores preset index information of a plurality of input components to be verified that are verified in the same batch;

[0013] According to the preset index information of the multiple input components to be verified in the same batch, the multiple input components to be verified corresponding to the preset index information are taken out from the first preset container.

[0014] Optionally, taking out the input component to be verified from the first preset container according to preset index information of the input component to be verified includes:

[0015] Traversing all input components in the first preset container to determine at least one input component to be verified;

[0016] The preset index information of the input component to be verified is obtained, and the input component to be verified is taken out from the first preset container according to the preset index information of the input component to be verified.

[0017] Optionally, the verifying the business information input by the input component to be verified includes:

[0018] Perform at least one of the following verifications on the business information input by the input component to be verified:

[0019] Legality verification, data type verification, and verification according to business rules.

[0020] Optionally, after receiving the business information input by the user through at least one input component in the interface, the method further includes:

[0021] Taking out a target component of a target method to be executed from the first preset container, and acquiring the pre-configured target method from the target component;

[0022] The target method is executed on the target component, wherein the target method includes at least one of the following: a setting method, a getting method, a method for setting the target component as read-only, and a method for setting the target component as editable.

[0023] Optionally, before receiving the business information input by the user through at least one input component in the interface, the method further includes:

[0024] Creating the first preset container and configuring properties of the first preset container;

[0025] Configure the corresponding verification method for each input component in the interface;

[0026] Each input component is stored in the first preset container.

[0027] Optionally, before acquiring preset index information of a plurality of input components to be verified from at least one second preset container, the method further includes:

[0028] Determine multiple input components to be verified in the same batch;

[0029] The preset index information of multiple input components to be verified in the same batch is stored in one of the second preset containers.

[0030] In a second aspect, the present application provides an interface element verification device, including:

[0031] An input module, used to receive business information input by a user through at least one input component in the interface;

[0032] An acquisition module, used to take out an input component to be verified from the at least one input component from a first preset container, and acquire a pre-configured verification method from the input component to be verified; wherein the first preset container stores a plurality of components in the interface;

[0033] An execution module is used to execute the verification method on the input component to be verified, so as to verify the business information input by the input component to be verified.

[0034] Optionally, when taking out the input component to be verified from the first preset container, the acquisition module is used to:

[0035] According to the preset index information of the input component to be verified, the input component to be verified is taken out from the first preset container.

[0036] Optionally, when the acquisition module takes out the input component to be verified from the first preset container according to the preset index information of the input component to be verified, it is used to:

[0037] Acquire preset index information of a plurality of input components to be verified from at least one second preset container, wherein each of the second preset containers stores preset index information of a plurality of input components to be verified that are verified in the same batch;

[0038] According to the preset index information of the multiple input components to be verified in the same batch, the multiple input components to be verified corresponding to the preset index information are taken out from the first preset container.

[0039] Optionally, when the acquisition module takes out the input component to be verified from the first preset container according to the preset index information of the input component to be verified, it is used to:

[0040] Traversing all input components in the first preset container to determine at least one input component to be verified;

[0041] The preset index information of the input component to be verified is obtained, and the input component to be verified is taken out from the first preset container according to the preset index information of the input component to be verified.

[0042] Optionally, when verifying the business information input by the input component to be verified, the execution module is used to:

[0043] Perform at least one of the following verifications on the business information input by the input component to be verified:

[0044] Legality verification, data type verification, and verification according to business rules.

[0045] Optionally, the acquisition module is further used to take out the target component of the target method to be executed from the first preset container, and acquire the pre-configured target method from the target component;

[0046] The execution module is further used to execute the target method on the target component, wherein the target method includes at least one of the following: a setting method, a value obtaining method, a method for setting the target component as read-only, and a method for setting the target component as editable.

[0047] Optionally, the device further includes: a configuration module, configured to create the first preset container and configure properties of the first preset container before receiving business information input by a user through at least one input component in the interface;

[0048] Configure the corresponding verification method for each input component in the interface;

[0049] Each input component is stored in the first preset container.

[0050] Optionally, before obtaining preset index information of a plurality of input components to be verified from at least one second preset container, the configuration module is further configured to:

[0051] Determine multiple input components to be verified in the same batch;

[0052] The preset index information of multiple input components to be verified in the same batch is stored in one of the second preset containers.

[0053] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions;

[0054] The processor executes the computer-executable instructions stored in the memory to implement the method according to the first aspect.

[0055] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.

[0056] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor.

[0057] The verification method, device, storage medium and program product of the interface elements provided by the present application receive the business information input by the user from at least one input component in the interface; take out the input component to be verified from the first preset container, and obtain the pre-configured verification method from the input component to be verified; wherein the first preset container stores multiple components in the interface; execute the verification method on the input component to be verified to verify the business information input by the input component to be verified. In the interface framework that does not support forms, the present application pre-configures the corresponding verification method for each input component and loads it into the first preset container. When it is necessary to verify the business information input by one or some input components, the input component can be taken out from the first preset container and its pre-configured verification method can be executed to realize the verification of the business data. Moreover, it is only necessary to pre-configure the verification method for the input component, which effectively improves the development efficiency and reduces the code redundancy. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0059] Figure 1 A schematic diagram of an application scenario of a method for verifying interface elements provided in an embodiment of the present application;

[0060] Figure 2 A flow chart of a method for verifying interface elements provided in one embodiment of the present application;

[0061] Figure 3 A flow chart of a method for verifying interface elements provided by another embodiment of the present application;

[0062] Figure 4 A flow chart of a method for verifying interface elements provided by another embodiment of the present application;

[0063] Figure 5 A flow chart of a method for verifying interface elements provided by another embodiment of the present application;

[0064] Figure 6 A flow chart of a method for verifying interface elements provided by another embodiment of the present application;

[0065] Figure 7 A structural diagram of a verification device for interface elements provided in one embodiment of the present application;

[0066] Figure 8 A structural diagram of an electronic device provided in accordance with an embodiment of the present application.

[0067] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0068] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0069] As a channel directly facing customers, the emergence of smart ATMs has greatly reduced the waiting time for customers to handle business at the counter, and also reduced the pressure on tellers to handle business. In the process of interaction with customers, the accurate and effective interface verification and prompts of smart ATMs will greatly shorten the time for customers to handle business and improve customer satisfaction. For example, in the ETC (Electronic Toll Collection) project, smart ATMs can greatly reduce the time for customers to handle business and reduce the pressure on tellers.

[0070] At present, some smart ATMs can allow users to input business information through forms, and verify the business information through the form information verification method. However, the interface framework of some smart ATMs does not support form operations, and business information can only be collected through interface components, which is not convenient for verifying business information.

[0071] In order to solve the above technical problems, a method for processing user feedback information is provided in an embodiment of the present application. In an interface framework that does not support forms, a corresponding verification method is pre-configured for each input component and loaded into a preset container. When it is necessary to verify the business information input by one or some input components, the input component can be taken out from the preset container and its pre-configured verification method can be executed to realize the verification of the business data.

[0072] Specifically, business information input by a user through at least one input component in an interface is received; an input component to be verified from the at least one input component is taken out from a first preset container, and a pre-configured verification method is obtained from the input component to be verified; wherein the first preset container stores multiple components in the interface; the verification method is executed on the input component to be verified to verify the business information input by the input component to be verified.

[0073] The interface element verification method provided in the embodiment of the present application is applicable to Figure 1 The electronic device shown is a smart ATM 10, wherein the smart ATM 10 includes an interface 11 for user operation and a processing device 12, wherein the interface 11 can receive business information input by the user from at least one input component in the interface, and input the business information into the processing device 12, and the processing device 12 can take out an input component to be verified from at least one input component in a first preset container, and obtain a pre-configured verification method from the input component to be verified; wherein the first preset container stores multiple components in the interface; the verification method is executed on the input component to be verified to verify the business information input by the input component to be verified.

[0074] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0075] Figure 2 This is a flow chart of the verification method of the interface elements provided in the embodiment of the present application. This embodiment provides a verification method of the interface elements, the execution subject of which is an electronic device such as a smart teller machine, and the specific steps of the verification method of the interface elements are as follows:

[0076] S201: Receive business information input by a user through at least one input component in an interface.

[0077] In this embodiment, when a user conducts business at a smart ATM, the user can input business information through the input components on the smart ATM interface, where the input components include but are not limited to text input boxes, drop-down selection boxes, single / check boxes, etc. The business information may include but is not limited to personal information such as name, gender, birthday, ID number, or other business information entered by the user.

[0078] S202: Take out an input component to be verified from the at least one input component from a first preset container, and obtain a preconfigured verification method from the input component to be verified; wherein the first preset container stores a plurality of components in the interface.

[0079] In this embodiment, before receiving the business information input by the user through at least one input component in the interface, it is necessary to pre-create a container, which is a carrier for storing components. After the verification scheme of each input component in the page is pre-configured, the input component can be added to the container. Figure 3 As shown, the specific process is as follows:

[0080] S301: Create the first preset container and configure the properties of the first preset container;

[0081] S302, configuring the corresponding verification method for each input component in the interface;

[0082] S303: storing each input component in the first preset container.

[0083] In this embodiment, firstly, a first preset container is created and its properties are configured. Specifically, this can be achieved through the following object definition code description: var object = {}; that is, the input components are stored and retrieved in the form of objects. In the code, the name of the first preset container, the rules for storing and retrieving components, the purpose description and other properties can be configured. In addition, the components can also be stored and retrieved in the form of arrays, which will not be described in detail here.

[0084] In addition, each input component can be configured. The input component can be defined by the fields of business transaction elements. In addition, the corresponding verification method of the input component needs to be configured to verify the business information input by the input component, including but not limited to at least one of the following: legality verification, data type verification, and verification according to business rules. In addition, the conditions for verification failure can be configured and the reasons for failure can be returned concurrently. Of course, other methods can also be configured, such as setting methods, getting methods, methods for setting components to read-only, methods for setting components to editable, and other commonly used public methods. Optionally, a certain input component can be used as a public component, and all interfaces can be reused.

[0085] After completing the configuration of the first preset container and the input components, the input components may be added to the first preset container. Optionally, the index of each input component may be configured to retrieve the input components from the first preset container.

[0086] Based on the above embodiment, after the user completes the input of business information through one or some input components, the smart ATM needs to verify one or some business information input by at least one input component used by the user, and use the corresponding input component as the input component to be verified, and take out the input component to be verified from the first preset container. Furthermore, a pre-configured verification method can be obtained from the input component to be verified.

[0087] S203: Execute the verification method on the input component to be verified to verify the business information input by the input component to be verified.

[0088] In this embodiment, after obtaining a pre-configured verification method from the input component to be verified, the verification method can be executed on the input component to be verified, thereby verifying the business information input by the input component to be verified, including but not limited to at least one of the following: legality verification, data type verification, and verification according to business rules. The specific verification process will not be repeated here.

[0089] The verification method of the interface elements provided in this embodiment receives the business information input by the user from at least one input component in the interface; takes out the input component to be verified from the first preset container, and obtains the pre-configured verification method from the input component to be verified; wherein the first preset container stores multiple components in the interface; and executes the verification method on the input component to be verified to verify the business information input by the input component to be verified. In this embodiment, in an interface framework that does not support forms, the corresponding verification method is pre-configured for each input component and loaded into the first preset container. When it is necessary to verify the business information input by one or some input components, the input component can be taken out from the first preset container and its pre-configured verification method can be executed to realize the verification of the business data. Moreover, it is only necessary to pre-configure the verification method for the input component, which effectively improves the development efficiency and reduces the code redundancy.

[0090] Based on any of the above embodiments, the step of taking out the input component to be verified from the first preset container in S201 may specifically include:

[0091] According to the preset index information of the input component to be verified, the input component to be verified is taken out from the first preset container.

[0092] In this embodiment, considering that there may be many input components in the interface and they are stored in the first preset container, in order to facilitate the rapid retrieval of the input components to be verified from the first preset container, in this embodiment, when each input component is stored in the first preset container in S303, preset index information of each input component can be configured, and then the input components to be verified can be quickly retrieved according to the preset index information, thereby improving verification efficiency.

[0093] On the basis of the above embodiment, in order to further improve the verification efficiency, batch verification can be performed in this embodiment, that is, multiple input components to be verified can be verified at the same time.

[0094] In an alternative embodiment, Figure 4 As shown, taking out the input component to be verified from the first preset container according to the preset index information of the input component to be verified includes:

[0095] S401, obtaining preset index information of multiple input components to be verified from at least one second preset container, wherein each of the second preset containers stores preset index information of multiple input components to be verified in the same batch;

[0096] S402: According to preset index information of multiple input components to be verified in the same batch, take out multiple input components to be verified corresponding to the preset index information from the first preset container.

[0097] In this embodiment, when storing each input component in the first preset container, multiple input components to be verified in the same batch can be determined, and then the preset index information of the multiple input components to be verified in the same batch can be stored in a second preset container. For example, if input component 1, input component 2, and input component 3 need to be verified simultaneously as a batch, the preset index information of input component 1, input component 2, and input component 3 is stored in the second preset container A; if input component 4, input component 5, and input component 6 need to be verified simultaneously as a batch, the preset index information of input component 4, input component 5, and input component 6 is stored in the second preset container B, and so on.

[0098] On this basis, when taking out the input components to be verified from the first preset container, the preset index information of multiple input components to be verified in the same batch can be obtained from the second preset container in turn, and then according to these preset index information, the corresponding multiple input components to be verified are taken out from a preset container, and after executing the verification method of multiple input components to be verified in a batch, the preset index information of multiple input components to be verified in the same batch is obtained from the next second preset container, and so on.

[0099] In another alternative embodiment, if Figure 5 As shown, taking out the input component to be verified from the first preset container according to the preset index information of the input component to be verified may include:

[0100] S501, traversing all input components in the first preset container, and determining at least one input component to be verified;

[0101] S502: Obtain preset index information of the input component to be verified, and take out the input component to be verified from the first preset container according to the preset index information of the input component to be verified.

[0102] In this embodiment, all input components to be verified can be determined by traversing all input components in the first preset container, and based on the preset index information of the input components to be verified, all input components to be verified can be taken out at one time, and then the verification methods of these input components to be verified can be executed in batches, thereby improving the verification efficiency.

[0103] Based on any of the above embodiments, the verification method of the above interface elements can also be extended to execute other methods on the input components or other components in the interface, that is, after S301, in addition to configuring corresponding verification methods for each input component in the interface, target methods can also be configured for each input component and / or other components in the interface and added to the first preset container, where the target method includes but is not limited to at least one of the following: a value setting method, a value getting method, a method for setting a component to be read-only, and a method for setting a component to be editable.

[0104] Further, such as Figure 6 As shown, after receiving the business information input by the user through at least one input component in the interface in S201, the following may also be included:

[0105] S601, taking out a target component of a target method to be executed from the first preset container, and acquiring the pre-configured target method from the target component;

[0106] S602. Execute the target method on the target component, wherein the target method includes at least one of the following: a value setting method, a value getting method, a method for setting the target component as read-only, and a method for setting the target component as editable.

[0107] In this embodiment, if it is necessary to execute a target method on one or some target components, the target component can be taken out from the first preset container, the pre-configured target method can be obtained from the target component, and the target method can be executed on the target component. The process of taking out the target component from the first preset container is the same as the above embodiment, that is, the target component can also be taken out from the first preset container through the preset index information of the target component. Similarly, batch processing can also be performed as S401-S402 or S501-S502, which will not be repeated here.

[0108] Figure 7 The structure diagram of the interface element verification device provided in the embodiment of the present application. The interface element verification device provided in the embodiment can execute the processing flow provided in the interface element verification method embodiment, such as Figure 7 As shown, the interface element verification device 700 includes an input module 701 , an acquisition module 702 , and an execution module 703 .

[0109] An input module 701 is used to receive business information input by a user through at least one input component in the interface;

[0110] The acquisition module 702 is used to take out the input component to be verified from the at least one input component from the first preset container, and obtain a pre-configured verification method from the input component to be verified; wherein the first preset container stores multiple components in the interface;

[0111] The execution module 703 is used to execute the verification method on the input component to be verified, so as to verify the business information input by the input component to be verified.

[0112] In one or more embodiments of the present application, when taking out the input component to be verified from the first preset container, the acquisition module 702 is used to:

[0113] According to the preset index information of the input component to be verified, the input component to be verified is taken out from the first preset container.

[0114] In one or more embodiments of the present application, when the acquisition module 702 takes out the input component to be verified from the first preset container according to the preset index information of the input component to be verified, it is used to:

[0115] Acquire preset index information of a plurality of input components to be verified from at least one second preset container, wherein each of the second preset containers stores preset index information of a plurality of input components to be verified that are verified in the same batch;

[0116] According to the preset index information of the multiple input components to be verified in the same batch, the multiple input components to be verified corresponding to the preset index information are taken out from the first preset container.

[0117] In one or more embodiments of the present application, when the acquisition module 702 takes out the input component to be verified from the first preset container according to the preset index information of the input component to be verified, it is used to:

[0118] Traversing all input components in the first preset container to determine at least one input component to be verified;

[0119] The preset index information of the input component to be verified is obtained, and the input component to be verified is taken out from the first preset container according to the preset index information of the input component to be verified.

[0120] In one or more embodiments of the present application, when verifying the business information input by the input component to be verified, the execution module 703 is used to:

[0121] Perform at least one of the following verifications on the business information input by the input component to be verified:

[0122] Legality verification, data type verification, and verification according to business rules.

[0123] In one or more embodiments of the present application, the acquisition module 702 is further used to take out a target component of a target method to be executed from the first preset container, and acquire the pre-configured target method from the target component;

[0124] The execution module 703 is further used to execute the target method on the target component, wherein the target method includes at least one of the following: a setting method, a value obtaining method, a method for setting the target component as read-only, and a method for setting the target component as editable.

[0125] In one or more embodiments of the present application, the device further includes: a configuration module 704, configured to create the first preset container and configure properties of the first preset container before receiving business information input by a user through at least one input component in the interface;

[0126] Configure the corresponding verification method for each input component in the interface;

[0127] Each input component is stored in the first preset container.

[0128] In one or more embodiments of the present application, before obtaining preset index information of multiple input components to be verified from at least one second preset container, the configuration module 704 is further used to:

[0129] Determine multiple input components to be verified in the same batch;

[0130] The preset index information of multiple input components to be verified in the same batch is stored in one of the second preset containers.

[0131] The interface element verification device provided in this embodiment can execute the processing flow provided in the above method embodiment, and its principles and technical effects will not be repeated here.

[0132] Figure 8 The electronic device provided in the embodiment of the present application can execute the processing flow provided in the embodiment of the method for verifying interface elements, such as Figure 8 As shown, the electronic device 80 includes a memory 81, a processor 82, and a computer program; wherein the computer program is stored in the memory 81 and is configured so that the processor 82 executes the verification method of the interface element described in the above embodiment. In addition, the electronic device 80 may also have a communication interface 83 for transmitting control instructions and / or data.

[0133] Figure 8 The electronic device of the illustrated embodiment can be used to execute the technical solution of the above-mentioned interface element verification method embodiment, and its implementation principle and technical effect are similar and will not be repeated here.

[0134] The processor 82 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method. The memory 81 may be a non-temporary computer-readable storage medium.

[0135] In addition, this embodiment further provides a computer-readable storage medium on which a computer program is stored. The computer program is executed by a processor to implement the method described in the above embodiment.

[0136] In addition, this embodiment further provides a computer program product, including a computer program, and the computer program is executed by a processor to implement the method described in the above embodiment.

[0137] In the several embodiments provided in the embodiments of the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0138] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0139] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.

[0140] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

[0141] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0142] The above embodiments are only used to illustrate the technical solutions of the embodiments of the present application, rather than to limit them. Although the embodiments of the present application are described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0143] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0144] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for verifying interface elements, characterized in that: include: Receiving business information input by a user through at least one input component in the interface; Taking out the input component to be verified from the at least one input component from the first preset container, and obtaining a pre-configured verification method from the input component to be verified; wherein the first preset container is a carrier for storing components, and the pre-configured verification method is used to verify the business information input through the input component to be verified, and the verification method includes at least one of the following: legality verification, data type verification, and verification according to business rules; Executing the verification method on the input component to be verified to verify the business information input by the input component to be verified; The step of taking out the input component to be verified from the at least one input component from the first preset container comprises: Acquire preset index information of a plurality of input components to be verified from at least one second preset container, wherein each of the second preset containers stores preset index information of a plurality of input components to be verified that are verified in the same batch; According to the preset index information of the multiple input components to be verified in the same batch, the multiple input components to be verified corresponding to the preset index information are taken out from the first preset container.

2. The method according to claim 1, characterized in that After receiving the business information input by the user through at least one input component in the interface, the method further includes: Taking out a target component of a target method to be executed from the first preset container, and acquiring the pre-configured target method from the target component; The target method is executed on the target component, wherein the target method includes at least one of the following: a setting method, a getting method, a method for setting the target component as read-only, and a method for setting the target component as editable.

3. The method according to claim 1, characterized in that Before receiving the business information input by the user through at least one input component in the interface, the method further includes: Creating the first preset container and configuring properties of the first preset container; Configure the corresponding verification method for each input component in the interface; Each input component is stored in the first preset container.

4. The method according to claim 1, characterized in that: Before obtaining preset index information of a plurality of input components to be verified from at least one second preset container, the method further includes: Determine multiple input components to be verified in the same batch verification; The preset index information of multiple input components to be verified in the same batch is stored in one of the second preset containers.

5. An interface element verification device, characterized in that: include: An input module, used to receive business information input by a user through at least one input component in the interface; An acquisition module, used to take out an input component to be verified from the at least one input component from a first preset container, and acquire a pre-configured verification method from the input component to be verified; wherein the first preset container is a carrier for storing components, and the pre-configured verification method is used to verify the business information input through the input component to be verified, and the verification method includes at least one of the following: legality verification, data type verification, and verification according to business rules; An execution module, configured to execute the verification method on the input component to be verified, so as to verify the business information input by the input component to be verified; The acquisition module specifically acquires preset index information of a plurality of input components to be verified from at least one second preset container, wherein each of the second preset containers stores preset index information of a plurality of input components to be verified in the same batch; According to the preset index information of the multiple input components to be verified in the same batch, the multiple input components to be verified corresponding to the preset index information are taken out from the first preset container.

6. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 4 when executed by a processor.

8. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 4 when being executed by a processor.

Citation Information

Patent Citations

  • Method, apparatus and device for verifying financial business and computer storage medium

    CN108269187A