Page information checking method, device and equipment and computer readable storage medium
By binding pre-built verification instructions to the information entry page to generate verification rules, identifying and storing page information, the inefficiency caused by frequent database interactions in existing technologies is solved, and efficient and secure page information verification is achieved.
Patent Information
- Application Number
- CN202010719146.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-23
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2040-07-23
AI Technical Summary
In existing technologies, page information verification requires repeated calls to the backend interface to compare with the database, which increases the number of data interactions between the information entry page and the backend database, reducing verification efficiency.
By binding pre-built validation instructions to element nodes of the information entry page, page validation rules are generated, identifying whether the page information conforms to the rules, and storing the information in the cache when it does, thus reducing interaction with the backend database.
It improves the efficiency of page information verification, ensures the security of information entry pages, and reduces the number of data interactions with the backend database.
Smart Images

Figure CN111859452B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of big data, and in particular to a page information verification method and device, electronic equipment and a computer readable storage medium. BACKGROUND
[0002] When a user accesses an information entry page of a system, page information verification is an indispensable process in response to user feedback. Through page information verification, the security of user access information can be ensured, thereby improving the security of the application system.
[0003] Currently, page information verification mainly has the following disadvantages: repeated calling of a background interface is required to access a background database for comparison of page information, which easily increases the number of data interactions between the information entry page and the background database, thereby reducing the verification efficiency of page information verification. SUMMARY
[0004] The present application provides a page information verification method and device, electronic equipment and a computer readable storage medium, which mainly aims to reduce the number of data interactions between the information entry page and the background database, thereby improving the verification efficiency of page information verification.
[0005] To achieve the above-mentioned purpose, the present application provides a page information verification method, which comprises:
[0006] obtaining a page information box of an information entry page, binding a pre-constructed verification instruction with an element node in the page information box, and generating a page verification rule of the element node;
[0007] obtaining page information in the page information box, and identifying whether the page information conforms to the page verification rule;
[0008] if the page information does not conform to the page verification rule, re-obtaining the page information;
[0009] if the page information conforms to the page verification rule, storing the page information in a cache of the information entry page.
[0010] Optionally, the binding of the pre-constructed verification instruction with the element node in the page information box to generate the verification rule of the element node comprises:
[0011] obtaining a verification logic of the element node;
[0012] binding the pre-constructed verification instruction with the verification logic to obtain an initial verification logic;
[0013] Attribute marking is performed on the initial check logic to obtain target check logic, and a check mode matching the target check logic is selected to obtain the check rule of the element node.
[0014] Optionally, the obtaining of the page information of the page information box comprises:
[0015] Optionally, the obtaining of the page information of the page information box comprises:
[0016] Optionally, the obtaining of the page information of the page information box comprises:
[0017] Optionally, the obtaining of the page information of the page information box comprises:
[0018] Optionally, the obtaining of the page information of the page information box comprises:
[0019] Optionally, the obtaining of the page information of the page information box comprises:
[0020] Optionally, the obtaining of the page information of the page information box comprises:
[0021] Optionally, the obtaining of the page information of the page information box comprises:
[0022] To solve the above problems, the application further provides a page information check device, the device comprising:
[0023] A binding module is configured to obtain a page information box of an information input page, bind a pre-constructed check instruction with an element node in the page information box, and generate a page check rule of the element node.
[0024] A recognition module is configured to obtain page information in the page information box and recognize whether the page information meets the page check rule.
[0025] A obtaining module is configured to re-obtain the page information when the page information does not meet the page check rule.
[0026] A storage module is configured to store the page information in a cache of the information input page when the page information meets the page check rule.
[0027] Optionally, the binding module is specifically used for:
[0028] acquiring the check logic of the element node;
[0029] binding the pre-constructed check instruction with the check logic to obtain initial check logic;
[0030] performing attribute marking on the initial check logic to obtain target check logic, and selecting a check mode matching the target check logic to obtain the check rule of the element node.
[0031] Optionally, the identification module is specifically used for:
[0032] identifying whether it is the first time to log in the information entry page corresponding to the page information box;
[0033] when it is the first time to log in the information entry page, calling a data query interface to query whether first page information corresponding to the page information box exists in a background database corresponding to the information entry page;
[0034] when the first page information corresponding to the page information box is queried, taking the first page information as the acquired page information;
[0035] if the first page information corresponding to the page information box is not queried, taking second page information input by a user in the page information box as the acquired page information;
[0036] when it is not the first time to log in the information entry page, querying third page information corresponding to the page information box from a cache of the information entry page, and taking the third page information as the acquired page information.
[0037] To solve the above problems, the present application further provides an electronic device, which comprises:
[0038] a memory for storing at least one instruction; and
[0039] a processor for executing the instruction stored in the memory to implement the page information check method described in the above.
[0040] To solve the above problems, the present application further provides a computer readable storage medium, which stores at least one instruction, and the at least one instruction is executed by a processor in an electronic device to implement the page information check method described in the above.
[0041] The embodiment of the present application binds the pre-constructed verification instruction with the element node in the page information box of the information entry page, generates the page verification rule of the element node, can realize the verification of the subsequent page information, judges whether the page information is legal, and thus can guarantee the security of the information entry page when entering the page information. Secondly, the embodiment of the present application obtains the page information in the page information box, identifies whether the page information conforms to the page verification rule, can avoid the excessive calling of the background interface access to the background database by the page information box corresponding information entry page, reduces the excessive data interaction with the background database, and thus improves the verification efficiency of the page information verification. BRIEF DESCRIPTION OF DRAWINGS
[0042] Figure 1 The flowchart of the page information verification method provided by the first embodiment of the present application is shown.
[0043] Figure 2 The flowchart of the page information verification method provided by the first embodiment of the present application is shown. Figure 1
[0044] Figure 3 The flowchart of the page information verification method provided by the first embodiment of the present application is shown. Figure 1
[0045] Figure 4 The module diagram of the page information verification device provided by the first embodiment of the present application is shown.
[0046] Figure 5 The internal structure diagram of the electronic device for realizing the page information verification method provided by the first embodiment of the present application is shown.
[0047] The implementation of the present application, the functional characteristics and advantages will be integrated with the embodiments, and further explained with reference to the drawings. DETAILED DESCRIPTION
[0048] It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
[0049] The execution subject of the page information verification method provided by the embodiment of the present application includes but is not limited to at least one of the electronic devices which can be configured to execute the method provided by the embodiment of the present application, such as a server and a terminal. In other words, the page information verification method can be executed by software or hardware installed in a terminal device or a server device, and the software can be a block chain platform. The server includes but is not limited to a single server, a server cluster, a cloud server or a cloud server cluster.
[0050] The present application provides a page information verification method. Referring to Figure 1 The diagram shown is a flowchart illustrating a page information verification method provided in an embodiment of the present invention.
[0051] In this embodiment, the method for verifying page information includes:
[0052] S1. Obtain the page information box of the information entry page, bind the pre-built verification instruction to the element node in the page information box, and generate the page verification rule of the element node.
[0053] In at least one embodiment of the present invention, the information entry page refers to an interface for entering different user information and / or behavioral information, wherein the information entry page includes, but is not limited to: vehicle information entry page, employee information entry page, and order information entry page, etc.
[0054] Furthermore, the page information boxes are used to input page information to be collected on the information input page. For example, the page information boxes on the employee information input page include: employee name box, employee address box, employee position box, and employee age box, etc.; the page information boxes on the vehicle information input page include: vehicle license plate number box, vehicle owner's name box, and vehicle production date box, etc.; the page information boxes on the order information input page include: order price box, order type box, and order time box, etc.
[0055] In one alternative embodiment, the page information box can be compiled using the currently mature HTML language + CSS style + JavaScript scripting technology, which will not be elaborated on here.
[0056] Furthermore, in this embodiment of the invention, a pre-built verification instruction is bound to the element node in the page information box to generate a page verification rule for the element node. According to the page verification rule, the subsequent page information can be verified to determine whether the page information is valid, thereby ensuring the security of the information entry page when entering page information.
[0057] The element node refers to the compilation node when compiling the page information box, such as the order price compilation node, the car owner's name compilation node, and the employee's age compilation node.
[0058] In detail, such as Figure 2 As shown, the step of binding the pre-built verification instructions to the element nodes in the page information box and generating the verification rules for the element nodes includes:
[0059] S10. Obtain the verification logic of the element node.
[0060] In the preferred embodiment of the present application, the verification instruction is used to define the verification condition of the corresponding element node, such as the order price range, the format of the owner name, and the range of the employee age, etc.
[0061] S11, binding the pre-constructed verification instruction and the verification logic to obtain initial verification logic.
[0062] In the preferred embodiment of the present application, the verification instruction is used to define whether the data of the corresponding element node is a mandatory item, such as whether the value of the data is mandatory, whether the letter filled in the data must be in upper and lower case, whether only Chinese characters can be input, and whether only numerical values can be input, etc.
[0063] In an optional embodiment, the pre-constructed verification instruction and the verification logic are bound by using the bind() method.
[0064] In an optional embodiment, the verification instruction is v-verify.
[0065] S12, marking the initial verification logic with attributes to obtain target verification logic, and selecting a verification mode matching the target verification logic to obtain the verification rule of the element node.
[0066] In the preferred embodiment of the present application, the initial verification logic is marked with an id by using the currently known self-increment sequence algorithm to generate the target verification logic. Based on the id marking, the uniqueness of the generated target verification logic can be guaranteed, and the verification efficiency of the subsequent page information can be improved.
[0067] Further, in an optional embodiment of the present application, the verification mode includes: mode one, stopping the verification of the remaining configuration items of the subsequent data immediately when an error is encountered; and mode two, not stopping when an error is encountered, until all configuration items of the data are verified, and all data configuration items with errors are summarized and returned.
[0068] Preferably, the present application can select the verification mode of mode one and / or mode two to match the target verification logic according to the needs of different users to obtain the verification rule of the element node.
[0069] S2, obtaining the page information in the page information box, and identifying whether the page information meets the page verification rule.
[0070] In the embodiment of the present application, referring to FIG. 1, Figure 3 the obtaining of the page information in the page information box includes:
[0071] S20, identifying whether it is the first time to enter the information input page corresponding to the page information box.
[0072] In the preferred embodiment of the present application, it is judged whether the token corresponding to the information entry page of the page information box exists in the query service end. If it exists, it is judged that it is not the first time to enter the information entry page corresponding to the page information box. If it does not exist, it is judged that it is the first time to enter the information entry page corresponding to the page information box. The token refers to the meaning of token (temporary) in computer identity authentication, and can be generally understood as a mark.
[0073] In S21, if it is the first time to log in the information entry page, a data query interface is called to query whether the first page information corresponding to the page information box exists in the background database corresponding to the information entry page. If the first page information corresponding to the page information box is queried out, the first page information is taken as the obtained page information. If the first page information corresponding to the page information box is not queried out, the second page information input by the user in the page information box is taken as the obtained page information.
[0074] In S22, if it is not the first time to enter the information entry page, the third page information corresponding to the page information box is queried from the cache of the information entry page, and the third page information is taken as the obtained page information.
[0075] It should be emphasized that, in order to further ensure the privacy and security of the above-mentioned page information, the above-mentioned page information can also be stored in a node of a block chain.
[0076] Further, in the embodiment of the present application, whether the page information conforms to the page verification rule is identified by a regular expression, that is, whether the field of the page information is within the range of the page verification rule is judged.
[0077] For example, the regular expressions "^[1][3,4,5,7,8][0-9]{9}$", "^[0][1-9]{2,3}-[0-9]{5,10}$", and "^[1-9]{1}[0-9]{5,8}$" can identify whether the mobile phone number of the page information conforms to the mobile phone number format in the page verification rule. If it conforms, true is returned. If it does not conform, false is returned. The regular expression " / (^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$) / " can identify whether the identity card number of the page information conforms to the identity card format in the page verification rule. If it conforms, true is returned. If it does not conform, false is returned.
[0078] Based on the page check rule, the page information is checked, the background interface access to the background database is avoided for the information entry page corresponding to the page information box, the data interaction with the background database is reduced, and the checking efficiency of the page information checking is improved.
[0079] S3, if the page information does not conform to the page check rule, the page information is reacquired.
[0080] S4, if the page information conforms to the page check rule, the page information is stored in the cache of the information entry page.
[0081] In another embodiment of the application, before the page information is stored in the local cache, the page information is converted into a string, a string value of the page information is generated, and the subsequent page information searching speed of the information entry page is accelerated based on the string value.
[0082] In an optional embodiment, the matrix displacement algorithm is used to convert the page into a corresponding 16-bit string verifyInfostr value.
[0083] Further, the storage form of the page information stored in the cache is in the form of key-value, that is, the identification of the page information is taken as the key value, and the string value of the page information is taken as the numerical value. Based on the key-value form of the page information, the page information can be updated in real time.
[0084] In an optional embodiment, the cache is a redis cache.
[0085] Further, it needs to be declared that after the page information is stored in the cache of the information entry page, the information entry page is jumped by the embodiment of the application, and when the user returns to the information entry page to check the page information without modifying the page information, the string value generated by returning to the information entry page again is directly jumped to the page with the string value in the cache, without calling the background interface to access the background database again, and the interaction between the information entry page and the background database is reduced.
[0086] To sum up, the embodiment of the present application binds the pre-constructed verification instruction with the element node in the page information box of the information entry page, generates the page verification rule of the element node, can realize the verification of the subsequent page information, judges whether the page information is legal or not, so as to guarantee the security of the information entry page when the page information is entered. Secondly, the embodiment of the present application acquires the page information in the page information box, identifies whether the page information conforms to the page verification rule, can avoid the information entry page corresponding to the page information box from calling the background interface to access the background database too much, reduces the data interaction with the background database too much, so as to improve the verification efficiency of the page information verification.
[0087] As shown in Figure 4 Fig. 1 is a module schematic diagram of the page information verification device provided by an embodiment of the present application.
[0088] The page information verification device 100 can be installed in an electronic device. According to the realized function, the page information verification device can include a binding module 101, an identification module 102, an acquisition module 103 and a storage module 104. The modules of the present application can also be called units, which refer to a series of computer program segments that can be executed by the processor of the electronic device and can complete fixed functions, and are stored in the memory of the electronic device.
[0089] In the embodiment, the functions of each module / unit are as follows:
[0090] The binding module 101 is used for acquiring the page information box of the information entry page, binding the pre-constructed verification instruction with the element node in the page information box, and generating the page verification rule of the element node.
[0091] In at least one embodiment of the present application, the information entry page refers to an interface for entering different user information and / or behavior information, wherein the information entry page includes, but is not limited to: a vehicle information entry page, an employee information entry page and an order information entry page, etc.
[0092] Further, the page information box is used for entering the page information to be collected in the information entry page. For example, the page information box of the employee information entry page includes: an employee name box, an employee address box, an employee position box and an employee age box, etc.; the page information box of the vehicle information entry page includes: a vehicle license plate box, a vehicle owner name box and a vehicle production date box, etc.; and the page information box of the order information entry page includes: an order price box, an order type box and an order time box, etc.
[0093] In an optional embodiment, the page information box can be compiled by the current mature Html language+Css style+JavaScript script technology, which will not be described in detail.
[0094] Further, the embodiment of the present application binds the pre-built verification instruction with the element node in the page information box to generate the page verification rule of the element node, and according to the page verification rule, the verification of subsequent page information can be realized to determine whether the page information is legal, thereby guaranteeing the security of the information entry page when entering the page information.
[0095] The element node refers to a compilation node when compiling the page information box, for example, an order price compilation node, a car owner name compilation node and an employee age compilation node.
[0096] As shown in Figure 2 The binding of the pre-built verification instruction with the element node in the page information box to generate the verification rule of the element node includes:
[0097] S10, obtaining the verification logic of the element node.
[0098] In the preferred embodiment of the present application, the verification instruction is used to define the verification condition of the corresponding element node, for example, the order price range, the car owner name format and the employee age range.
[0099] S11, binding the pre-built verification instruction with the verification logic to obtain the initial verification logic.
[0100] In the preferred embodiment of the present application, the verification instruction is used to define whether the data of the corresponding element node is a mandatory item, for example, whether the value of the data is mandatory, whether the letters filled in the data must be in upper and lower case, whether only Chinese characters can be input for verification, and whether only numerical values can be input for verification.
[0101] In an optional embodiment, the bind() method is used to bind the pre-built verification instruction with the verification logic.
[0102] In an optional embodiment, the verification instruction is v-verify.
[0103] S12, attribute marking is performed on the initial verification logic to obtain the target verification logic, and a verification mode matching the target verification logic is selected to obtain the verification rule of the element node.
[0104] In the preferred embodiment of the present application, the initial check logic is id-tagged by using a currently known self-increment sequence algorithm, and the target check logic is generated based on the id-tagging, which can guarantee the uniqueness of the generated target check logic and improve the check efficiency of subsequent page information.
[0105] Further, in an optional embodiment of the present application, the check mode includes: mode one, stopping the check of the remaining configuration items of subsequent data immediately upon encountering an error; and mode two, not stopping upon encountering an error, and checking all configuration items of data until all configuration items of data with errors are summarized and returned.
[0106] Preferably, the present application can select the check mode of mode one and / or mode two to match the target check logic according to the needs of different users, so as to obtain the check rule of the element node.
[0107] The identification module 102 is configured to obtain the page information in the page information box and identify whether the page information meets the page check rule.
[0108] In the embodiment of the present application, referring to FIG. 1, Figure 3 The obtaining of the page information in the page information box includes:
[0109] S20, identifying whether it is the first time to enter the information input page corresponding to the page information box.
[0110] In the preferred embodiment of the present application, it is queried whether the token of the information input page corresponding to the page information box exists in the server, if the token exists, it is judged that it is not the first time to enter the information input page corresponding to the page information box, and if the token does not exist, it is judged that it is the first time to enter the information input page corresponding to the page information box. The token means a token (temporary) in computer identity authentication, which can be understood as a mark.
[0111] S21, if it is the first time to enter the information input page, a data query interface is called to query whether the first page information corresponding to the page information box exists in the background database corresponding to the information input page, if the first page information corresponding to the page information box is queried, the first page information is taken as the obtained page information, and if the first page information corresponding to the page information box is not queried, the second page information input by the user in the page information box is taken as the obtained page information.
[0112] S22, if it is not the first time to enter the information input page, the third page information corresponding to the page information box is queried from the cache of the information input page, and the third page information is taken as the obtained page information.
[0113] It is emphasized that the page information can be stored in a node of a block chain to further ensure the privacy and security of the page information.
[0114] Further, in the embodiment of the present application, whether the page information conforms to the page check rule is identified by a regular expression, i.e., whether the field of the page information is within the range of the page check rule is determined.
[0115] For example, the regular expression "^[1][3,4,5,7,8][0-9]{9}$", "^[0][1-9]{2,3}-[0-9]{5,10}$", and "^[1-9]{1}[0-9]{5,8}$" can identify whether the mobile phone number of the page information conforms to the mobile phone number format in the page check rule, and if so, true is returned, and if not, false is returned; the regular expression " / (^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$) / " can identify whether the ID number of the page information conforms to the ID number format in the page check rule, and if so, true is returned, and if not, false is returned.
[0116] Based on the page check rule, the checking of the page information is implemented, which can avoid the information entry page corresponding to the page information box from calling the background interface to access the background database too much, reduce the data interaction with the background database too much, and thus improve the checking efficiency of the page information checking.
[0117] The obtaining module 103 is configured to re-obtain the page information if the page information does not conform to the page check rule.
[0118] The storage module 104 is configured to store the page information in the cache of the information entry page if the page information conforms to the page check rule.
[0119] In another embodiment of the present application, before the page information is stored in the local cache, the page information is subjected to string conversion to generate a string value of the page information, and based on the string value, the subsequent page information searching speed of the information entry page can be accelerated.
[0120] In an optional embodiment, the matrix displacement algorithm is used to convert the page into a corresponding 16-bit string verifyInfostr value.
[0121] Further, the storage form of the page information stored in the cache is a key-value form, that is, the identification of the page information is taken as a key value, and the string value of the page information is taken as a numerical value. Based on the key-value form of the page information, the page information can be updated in real time.
[0122] In an optional embodiment, the cache is a redis cache.
[0123] Further, it needs to be declared that after the page information is stored in the cache of the information entry page, the embodiment of the application jumps to the information entry page, and when the user returns to the information entry page again to view the page information without modifying the page information, the string value generated by returning to the information entry page again and the string value in the cache are directly used for page jumping, without the need to call the background interface to access the background database again, thereby reducing the interaction between the information entry page and the background database.
[0124] In summary, the embodiment of the application binds the pre-constructed verification instruction and the element node in the page information box of the information entry page, generates the page verification rule of the element node, can implement the verification of subsequent page information, judges whether the page information is legal, and thus can guarantee the security of the information entry page when the page information is entered; secondly, the embodiment of the application obtains the page information in the page information box, identifies whether the page information meets the page verification rule, can avoid the excessive calling of the background interface to access the background database by the page information box corresponding to the information entry page, reduces the excessive data interaction with the background database, and thus improves the verification efficiency of the page information verification.
[0125] As shown in Figure 5 FIG. 1 is a structural schematic diagram of an electronic device for implementing the method for verifying page information according to an embodiment of the application.
[0126] The electronic device 1 can include a processor 10, a memory 11 and a bus, and can further include a computer program stored in the memory 11 and executable on the processor 10, such as a page information verification program.
[0127] The memory 11 includes at least one type of readable storage medium, such as a flash memory, a mobile hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 11 can also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the memory 11 can include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 can be used to store application software and various data installed in the electronic device 1, such as the code of the page information verification program, etc., and can also be used to temporarily store data that has been output or will be output.
[0128] The processor 10 can be composed of an integrated circuit in some embodiments, such as a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more combinations of a central processing unit (CPU), a microprocessor, a digital processing chip, a graphics processor, and various control chips, etc. The processor 10 is the control unit of the electronic device, which connects various components of the entire electronic device through various interfaces and lines, executes programs or modules stored in the memory 11 (such as the page information verification program, etc.), and calls data stored in the memory 11, to perform various functions and process data of the electronic device 1.
[0129] The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize the connection and communication between the memory 11 and at least one processor 10, etc.
[0130] Figure 5 Only the electronic device with components is shown, and those skilled in the art can understand that, Figure 5The illustrated structure does not constitute a limitation on the electronic device 1, and can include fewer or more components than illustrated, or combine certain components, or arrange different components.
[0131] For example, although not shown, the electronic device 1 can also include a power supply (such as a battery) to power the various components. Preferably, the power supply can be logically connected to the at least one processor 10 through a power management device, so that the power management device can implement functions such as charge management, discharge management, and power consumption management. The power supply can also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and any other components. The electronic device 1 can also include various sensors, Bluetooth modules, Wi-Fi modules, and the like, which are not described here.
[0132] Further, the electronic device 1 can also include a network interface, which can optionally include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), and is typically used to establish a communication connection between the electronic device 1 and other electronic devices.
[0133] Optionally, the electronic device 1 can also include a user interface, which can be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally a standard wired interface, a wireless interface. Optionally, in some embodiments, the display can be an LED display, a liquid crystal display, a touch liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch, etc. The display can also be appropriately referred to as a display screen or a display unit, and is used to display information processed in the electronic device 1 and to display a visual user interface.
[0134] It should be understood that the embodiments are for illustration only and are not limited in scope by the structure.
[0135] The page information verification program 12 stored in the memory 11 in the electronic device 1 is a combination of multiple instructions, which, when executed in the processor 10, can implement:
[0136] Obtain a page information box of an information entry page, bind pre-built verification instructions with element nodes in the page information box, and generate page verification rules for the element nodes;
[0137] Obtain page information in the page information box, and identify whether the page information conforms to the page verification rules;
[0138] If the page information does not conform to the page check rule, the page information is reacquired;
[0139] If the page information conforms to the page check rule, the page information is stored in the cache of the information entry page.
[0140] Specifically, the specific implementation method of the processor 10 to the above instructions can refer to Figure 1 The description of related steps in the corresponding embodiments will not be repeated here. It should be emphasized that, in order to further ensure the privacy and security of the above original data set, the above audit data can also be stored in a node of a block chain.
[0141] Further, the modules / units integrated in the electronic device 1, if realized in the form of software function units and sold or used as independent products, can be stored in a computer readable storage medium. The computer readable medium can include any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM).
[0142] In several embodiments provided by the present application, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the above-described device embodiments are merely illustrative. For example, the division of the modules is only a logical function division. There can be another division manner in actual implementation.
[0143] The modules described as separate components can or can not be physically separated, and the components displayed as modules can or can not be physical units, i.e. they can be located in one place, or distributed on multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the present embodiment.
[0144] In addition, each functional module in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically independently, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of hardware plus software function module.
[0145] It is obvious for those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and the present application can be implemented in other specific forms without departing from the spirit or essential characteristics of the present application.
[0146] Thus, the embodiments can be regarded as illustrative rather than restrictive, and the scope of the application is defined by the appended claims rather than the description preceding it, so that all changes that come within the meaning and range of equivalency of the claims are to be embraced within the scope of the application. Any reference signs in the claims should not be construed as limiting the scope of the claims.
[0147] The blockchain referred to in the present application is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm. The blockchain is essentially a decentralized database, and is a chain of data blocks associated using cryptographic methods. Each data block contains information of a batch of network transactions, and is used to verify the validity (anti-fake) of the information and generate the next block. The blockchain can include a blockchain underlying platform, a platform product service layer, and an application service layer, etc.
[0148] Furthermore, it is clear that the word "comprising" does not exclude other elements or steps, and that the singular also includes the plural. A plurality of units or devices can also be presented by a single unit or device in the system claim. The terms "first", "second", "third", "fourth", etc. are used to distinguish between similar objects having a different reference, and are not necessarily used to describe a sequential or chronological order. If the word "one" or "said" is used, it means "at least one".
[0149] Finally, it should be noted that the above embodiments are merely used to illustrate the technical solutions of the present application, rather than limit the present application. Although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application can be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present application.
Claims
1. A method of checking page information, characterized by, The method comprises: obtaining a page information box of an information entry page, obtaining a verification logic of an element node in the page information box, binding a pre-constructed verification instruction with the verification logic to obtain initial verification logic, marking the initial verification logic with an id using a self-increment sequence algorithm to generate target verification logic, selecting a verification mode matching the target verification logic to obtain a page verification rule of the element node, the verification mode comprising stopping verification of remaining configuration items of subsequent data immediately upon encountering an error, and not stopping until all configuration items of data are verified, and summarizing all data configuration items with errors and returning; obtaining page information in the page information box, and identifying whether fields of the page information conform to the page verification rule using a preset regular expression; if the page information does not conform to the page verification rule, re-obtaining the page information; if the page information conforms to the page verification rule, storing the page information in a cache of the information entry page in the form of a key-value pair, with an identifier of the page information as a key value and a string value of the page information as a numerical value.
2. The page information checking method of claim 1, wherein, The obtaining of the page information of the page information box comprises: identifying whether it is the first time to log in to an information entry page corresponding to the page information box; when it is the first time to log in to the information entry page, calling a data query interface to query whether first page information corresponding to the page information box exists in a background database corresponding to the information entry page; when the first page information corresponding to the page information box is queried, taking the first page information as the obtained page information; if the first page information corresponding to the page information box is not queried, taking second page information input by a user in the page information box as the obtained page information; when it is not the first time to log in to the information entry page, querying third page information corresponding to the page information box from a cache of the information entry page, and taking the third page information as the obtained page information.
3. The page information checking method according to any one of claims 1 to 2, wherein Before the storing of the page information in the cache, the method further comprises: performing string conversion on the page information to generate a string value of the page information.
4. A page information checking device, characterized by comprising: The device comprises: a binding module configured to obtain a page information box of an information entry page, obtain a verification logic of an element node in the page information box, bind a pre-constructed verification instruction with the verification logic to obtain initial verification logic, mark the initial verification logic with an id using a self-increment sequence algorithm to generate target verification logic, select a verification mode matching the target verification logic to obtain a page verification rule of the element node, the verification mode comprising stopping verification of remaining configuration items of subsequent data immediately upon encountering an error, and not stopping until all configuration items of data are verified, and summarizing all data configuration items with errors and returning; a recognition module configured to obtain page information in the page information box, and identify whether fields of the page information conform to the page verification rule using a preset regular expression; The acquisition module is configured to reacquire the page information when the page information does not conform to the page check rule. The storage module is configured to, if the page information conforms to the page check rule, store the page information in the cache of the information entry page in a form of key-value pair, with an identification of the page information as a key value of the key-value pair and a string value of the page information as a value of the key-value pair.
5. The page information checking device of Claim 4, wherein The identification module is specifically configured to: identify whether the information entry page corresponding to the page information box is logged in for the first time; when the information entry page is logged in for the first time, call a data query interface to query, from a background database corresponding to the information entry page, whether first page information corresponding to the page information box exists; when the first page information corresponding to the page information box is queried, take the first page information as the acquired page information; if the first page information corresponding to the page information box is not queried, take second page information input by a user in the page information box as the acquired page information; when the information entry page is not logged in for the first time, query third page information corresponding to the page information box from a cache of the information entry page, and take the third page information as the acquired page information.
6. An electronic device, comprising: The electronic device comprises: at least one processor; and a memory connected with the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the page information check method according to any one of claims 1 to 3.
7. A computer readable storage medium storing a computer program, characterized in that, The computer program is executed by the processor to implement the page information check method according to any one of claims 1 to 3.
Citation Information
Patent Citations
System and method for generating business interface based on page element
CN103019685A
Single sign-on method and device
CN103729589A
Data consistency verification method and device
CN110321505A