CN111859452A - Page information checking method, device and equipment and computer readable storage medium - Google Patents
Page information checking method, device and equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN111859452A CN111859452A CN202010719146.7A CN202010719146A CN111859452A CN 111859452 A CN111859452 A CN 111859452A CN 202010719146 A CN202010719146 A CN 202010719146A CN 111859452 A CN111859452 A CN 111859452A
- Authority
- CN
- China
- Prior art keywords
- page
- page information
- information
- frame
- check
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24552—Database cache management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/252—Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Bioethics (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Storage Device Security (AREA)
Abstract
The invention relates to the technical field of big data, and discloses a page information checking method, which comprises the following steps: acquiring a page information frame of an information entry page, binding a pre-constructed check instruction with element nodes in the page information frame, and generating a page check rule of the element nodes; acquiring page information in the page information frame, and identifying whether the page information accords with the page verification rule; if the page information does not accord with the page checking rule, the page information is obtained again; and if the page information accords with the page verification rule, storing the page information into a cache of the information entry page. The invention also relates to a block chain technology, and the page information can be arranged in block chain nodes. The invention can improve the verification efficiency of the page information verification.
Description
Technical Field
The invention relates to the technical field of big data, in particular to a method and a device for checking page information, electronic equipment and a computer-readable storage medium.
Background
When a user accesses an information entry page of a system, page information verification is an indispensable process responding to user feedback, and the safety of the access information of the user can be ensured through the page information verification, so that the safety of an application system can be improved.
At present, the page information verification mainly has the following defects: the background interface is required to be called repeatedly to access the background database to compare the page information, so that the data interaction times of the information input page and the background database are increased easily, and the verification efficiency of page information verification is reduced.
Disclosure of Invention
The invention provides a method and a device for checking page information, electronic equipment and a computer readable storage medium, and mainly aims to reduce the data interaction times of an information entry page and a background database so as to improve the checking efficiency of the page information checking.
In order to achieve the above object, the present invention provides a method for checking page information, comprising:
acquiring a page information frame of an information entry page, binding a pre-constructed check instruction with element nodes in the page information frame, and generating a page check rule of the element nodes;
acquiring page information in the page information frame, and identifying whether the page information accords with the page verification rule;
if the page information does not accord with the page checking rule, the page information is obtained again;
and if the page information accords with the page verification rule, storing the page information into a cache of the information entry page.
Optionally, the binding the pre-constructed check instruction with the element node in the page information frame, and the generating the check rule of the element node includes:
acquiring the check logic of the element node;
binding the pre-constructed check instruction with the check logic to obtain an initial check logic;
and performing attribute marking on the initial check logic to obtain a target check logic, and selecting a check mode matched with the target check logic to obtain a check rule of the element node.
Optionally, the acquiring the page information of the page information frame includes:
identifying whether an information input page corresponding to the page information frame is logged in for the first time;
when the information entry page is logged in for the first time, a data query interface is called to query whether first page information corresponding to the page information frame exists from a background database corresponding to the information entry page;
when first page information corresponding to the page information frame is inquired, taking the first page information as the acquired page information;
if the first page information corresponding to the page information frame is not inquired, taking second page information input by a user in the page information frame as the acquired page information;
and when the information entry page is not logged in for the first time, inquiring third page information corresponding to the page information frame from a cache of the information entry page, and taking the third page information as the acquired page information.
Optionally, before storing the page information into the cache, the method further includes: and performing character string conversion on the page information to generate a character string value of the page information.
Optionally, the storage form of storing the page information in the cache is a key-value pair form.
In order to solve the above problem, the present invention further provides a page information checking apparatus, including:
the binding module is used for acquiring a page information frame of an information input page, binding a pre-constructed verification instruction with an element node in the page information frame and generating a page verification rule of the element node;
the identification module is used for acquiring the page information in the page information frame and identifying whether the page information accords with the page verification rule or not;
the acquisition module is used for acquiring the page information again when the page information does not accord with the page verification rule;
and the storage module is used for storing the page information into the cache of the information entry page when the page information accords with the page verification rule.
Optionally, the binding module is specifically configured to:
acquiring the check logic of the element node;
binding the pre-constructed check instruction with the check logic to obtain an initial check logic;
and performing attribute marking on the initial check logic to obtain a target check logic, and selecting a check mode matched with the target check logic to obtain a check rule of the element node.
Optionally, the identification module is specifically configured to:
identifying whether an information input page corresponding to the page information frame is logged in for the first time;
when the information entry page is logged in for the first time, a data query interface is called to query whether first page information corresponding to the page information frame exists from a background database corresponding to the information entry page;
when first page information corresponding to the page information frame is inquired, taking the first page information as the acquired page information;
if the first page information corresponding to the page information frame is not inquired, taking second page information input by a user in the page information frame as the acquired page information;
and when the information entry page is not logged in for the first time, inquiring third page information corresponding to the page information frame from a cache of the information entry page, and taking the third page information as the acquired page information.
In order to solve the above problem, the present invention also provides an electronic device, including:
a memory storing at least one instruction; and
and the processor executes the instructions stored in the memory to realize the page information checking method.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, where at least one instruction is stored, and the at least one instruction is executed by a processor in an electronic device to implement the page information checking method described above.
The embodiment of the invention binds the pre-constructed check instruction with the element node in the page information frame of the information input page to generate the page check rule of the element node, thereby realizing the check of the subsequent page information and judging whether the page information is legal or not, thereby ensuring the safety of the information input page when the page information is input; secondly, the page information in the page information frame is obtained, whether the page information accords with the page checking rule or not is identified, excessive calling background interfaces of information input pages corresponding to the page information frame can be avoided from accessing a background database, excessive data interaction with the background database is reduced, and therefore checking efficiency of page information checking is improved.
Drawings
Fig. 1 is a schematic flowchart of a page information verification method according to a first embodiment of the present invention;
fig. 2 is a schematic flowchart of step S1 of the page information checking method provided in fig. 1 according to the first embodiment of the present invention;
fig. 3 is a flowchart illustrating a step S2 of the page information checking method provided in fig. 1 according to the first embodiment of the present invention;
fig. 4 is a schematic block diagram of a page information checking apparatus according to a first embodiment of the present invention;
fig. 5 is a schematic diagram of an internal structure of an electronic device implementing a method for verifying page information according to a first embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
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 electronic devices that 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 checking method may be performed by software or hardware installed in the terminal device or the server device, and the software may 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, and the like.
The invention provides a method for checking page information. Fig. 1 is a schematic flow chart of a page information verification method according to an embodiment of the present invention.
In this embodiment, the method for checking page information includes:
s1, obtaining a page information frame of the information entry page, binding a pre-constructed verification instruction with an element node in the page information frame, and generating a page verification rule of the element node.
In at least one embodiment of the present invention, 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: the system comprises a vehicle information input page, a staff information input page, an order information input page and the like.
Further, the page information frame is used for entering page information to be collected into the information entry page, for example, the page information frame of the employee information entry page includes: an employee name box, an employee address box, an employee post box, an employee age box, and the like; the page information frame of the vehicle information entry page comprises: a vehicle license plate frame, a vehicle owner name frame, a vehicle production date frame, and the like; the page information frame of the order information entry page comprises: order price boxes, order type boxes, order time boxes, and the like.
In an alternative embodiment, the page information box may be compiled by using currently mature Html language + Css style + JavaScript scripting technology, which will not be described in detail herein.
Furthermore, the embodiment of the invention binds the pre-constructed verification instruction with the element node in the page information frame to generate the page verification rule of the element node, and can realize the subsequent verification of the page information and judge whether the page information is legal according to the page verification rule, thereby ensuring the safety of the information input page when the page information is input.
The element node refers to a compiling node when the page information box is compiled, such as an order price compiling node, an owner name compiling node and an employee age compiling node.
In detail, as shown in fig. 2, the binding the pre-constructed check instruction with the element node in the page information frame, and generating the check rule of the element node includes:
and S10, acquiring the check logic of the element node.
In a preferred embodiment of the present invention, the verification instruction is used to specify verification conditions of the corresponding element node, such as order price range, owner name format, and employee age range.
And S11, binding the pre-constructed check instruction with the check logic to obtain an initial check logic.
In a preferred embodiment of the present invention, the check instruction is used to specify whether the data of the corresponding element node is a mandatory item, for example, whether the value of the data is mandatory, whether the letter filled in the data is mandatory, whether only the chinese character check can be input, whether only the numeric value check can be input, and the like.
In an alternative embodiment, the pre-built check instructions are bound to the check logic using a bind () method.
In an optional embodiment, the check instruction is v-verify.
And S12, performing attribute marking on the initial check logic to obtain a target check logic, and selecting a check mode matched with the target check logic to obtain a check rule of the element node.
In the preferred embodiment of the invention, the current known self-increment sequence algorithm is used for carrying out id marking on the initial check logic to generate the target check logic, and based on the id marking, the uniqueness of the generated target check logic can be ensured, and the check efficiency of subsequent page information is improved.
Further, in an optional embodiment of the present invention, the verification method includes: the method comprises the following steps of firstly, immediately stopping checking the remaining configuration items of the subsequent data when an error is encountered; and secondly, the method is not stopped when an error is encountered until all the configuration items of the data are verified, and all the configuration items of the data with the error are summarized and returned.
Preferably, the invention can select the checking mode of the mode one and/or the mode two to match with the target checking logic according to the requirements of different users, so as to obtain the checking rule of the element node.
S2, acquiring the page information in the page information frame, and identifying whether the page information accords with the page checking rule.
In the embodiment of the present invention, referring to fig. 3, the acquiring the page information of the page information frame includes:
and S20, identifying whether the information entry page corresponding to the page information frame is entered for the first time.
In a preferred embodiment of the present invention, whether a token of an information entry page corresponding to the page information frame exists in the server is queried, if yes, it is determined that the information entry page corresponding to the page information frame is not entered for the first time, and if not, it is determined that the information entry page corresponding to the page information frame is entered for the first time. The token is intended to mean a token (temporary) in computer authentication, and is generally understood as a label.
And S21, if the information entry page is logged in for the first time, calling a data query interface to query whether first page information corresponding to the page information frame exists from a background database corresponding to the information entry page, if the first page information corresponding to the page information frame is queried, using the first page information as the acquired page information, and if the first page information corresponding to the page information frame is not queried, using second page information input by a user in the page information frame as the acquired page information.
And S22, if the page information is not entered into the information entry page for the first time, inquiring third page information corresponding to the page information frame from the cache of the information entry page, and taking the third page information as the acquired page information.
It should be emphasized that, in order to further ensure the privacy and security of the page information, the page information may also be stored in a node of a block chain.
Further, in the embodiment of the present invention, whether the page information conforms to the page verification rule is identified through a regular expression, that is, whether a field of the page information is within the range of the page verification rule is determined.
For example, the regular expressions "^ 1] [3,4,5,7,8] [0-9] {9} $", "^ 0] [1-9] {2,3} - [0-9] {5,10} $", "^ 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 so, return true, and if not, return false; 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 yes, true is returned, and if not, false is returned.
Based on the page checking rule, checking of the page information is achieved, excessive calling of background interfaces for the information input pages corresponding to the page information frame to access the background database can be avoided, excessive data interaction with the background database is reduced, and therefore checking efficiency of checking the page information is improved.
And S3, if the page information does not accord with the page checking rule, re-acquiring the page information.
And S4, if the page information accords with the page verification rule, storing the page information into a cache of the information entry page.
In another embodiment of the present invention, before storing the page information into the local cache, the method further includes: and performing character string conversion on the page information to generate a character string value of the page information, and based on the character string value, accelerating the speed of searching the page information of the information input page again in the follow-up process.
In an alternative embodiment, the page is converted to a corresponding 16-bit string verifyinfstr value using a matrix shift algorithm.
Further, the storage form of storing the page information in the cache is a key-value pair (key-value) form, that is, the identifier of the page information is used as a key value, and the string value of the page information is used as a numerical value. And storing the page information based on the form of the key value pair, and updating the page information in real time.
In an optional embodiment, the cache is a redis cache.
Furthermore, it is required to state that after the page information is stored in the cache of the information entry page, the embodiment of the present invention skips the information entry page, and when the user returns the information entry page again to view the page information without modifying the page information, the user only needs to perform direct skip of the page according to the character string value generated by returning the information entry page again and the character string value in the cache, and does not need to call a background interface again to access a background database, thereby reducing interaction between the information entry page and the background database.
In summary, the embodiment of the present invention binds the pre-established verification instruction with the element node in the page information frame of the information entry page to generate the page verification rule of the element node, so as to implement subsequent verification of the page information and determine whether the page information is legal, thereby ensuring the security of the information entry page when the page information is entered; secondly, the page information in the page information frame is obtained, whether the page information accords with the page checking rule or not is identified, excessive calling background interfaces of information input pages corresponding to the page information frame can be avoided from accessing a background database, excessive data interaction with the background database is reduced, and therefore checking efficiency of page information checking is improved.
Fig. 4 is a schematic block diagram of a page information verification apparatus according to an embodiment of the present invention.
The page information verification apparatus 100 of the present invention may be installed in an electronic device. According to the implemented functions, the page information checking device may include a binding module 101, an identification module 102, an obtaining module 103, and a storage module 104. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the binding module 101 is configured to obtain a page information frame of an information entry page, bind a pre-constructed check instruction with an element node in the page information frame, and generate a page check rule of the element node.
In at least one embodiment of the present invention, 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: the system comprises a vehicle information input page, a staff information input page, an order information input page and the like.
Further, the page information frame is used for entering page information to be collected into the information entry page, for example, the page information frame of the employee information entry page includes: an employee name box, an employee address box, an employee post box, an employee age box, and the like; the page information frame of the vehicle information entry page comprises: a vehicle license plate frame, a vehicle owner name frame, a vehicle production date frame, and the like; the page information frame of the order information entry page comprises: order price boxes, order type boxes, order time boxes, and the like.
In an alternative embodiment, the page information box may be compiled by using currently mature Html language + Css style + JavaScript scripting technology, which will not be described in detail herein.
Furthermore, the embodiment of the invention binds the pre-constructed verification instruction with the element node in the page information frame to generate the page verification rule of the element node, and can realize the subsequent verification of the page information and judge whether the page information is legal according to the page verification rule, thereby ensuring the safety of the information input page when the page information is input.
The element node refers to a compiling node when the page information box is compiled, such as an order price compiling node, an owner name compiling node and an employee age compiling node.
In detail, as shown in fig. 2, the binding the pre-constructed check instruction with the element node in the page information frame, and generating the check rule of the element node includes:
and S10, acquiring the check logic of the element node.
In a preferred embodiment of the present invention, the verification instruction is used to specify verification conditions of the corresponding element node, such as order price range, owner name format, and employee age range.
And S11, binding the pre-constructed check instruction with the check logic to obtain an initial check logic.
In a preferred embodiment of the present invention, the check instruction is used to specify whether the data of the corresponding element node is a mandatory item, for example, whether the value of the data is mandatory, whether the letter filled in the data is mandatory, whether only the chinese character check can be input, whether only the numeric value check can be input, and the like.
In an alternative embodiment, the pre-built check instructions are bound to the check logic using a bind () method.
In an optional embodiment, the check instruction is v-verify.
And S12, performing attribute marking on the initial check logic to obtain a target check logic, and selecting a check mode matched with the target check logic to obtain a check rule of the element node.
In the preferred embodiment of the invention, the current known self-increment sequence algorithm is used for carrying out id marking on the initial check logic to generate the target check logic, and based on the id marking, the uniqueness of the generated target check logic can be ensured, and the check efficiency of subsequent page information is improved.
Further, in an optional embodiment of the present invention, the verification method includes: the method comprises the following steps of firstly, immediately stopping checking the remaining configuration items of the subsequent data when an error is encountered; and secondly, the method is not stopped when an error is encountered until all the configuration items of the data are verified, and all the configuration items of the data with the error are summarized and returned.
Preferably, the invention can select the checking mode of the mode one and/or the mode two to match with the target checking logic according to the requirements of different users, so as to obtain the checking rule of the element node.
The identifying module 102 is configured to obtain the page information in the page information frame, and identify whether the page information conforms to the page verification rule.
In the embodiment of the present invention, referring to fig. 3, the acquiring the page information of the page information frame includes:
and S20, identifying whether the information entry page corresponding to the page information frame is entered for the first time.
In a preferred embodiment of the present invention, whether a token of an information entry page corresponding to the page information frame exists in the server is queried, if yes, it is determined that the information entry page corresponding to the page information frame is not entered for the first time, and if not, it is determined that the information entry page corresponding to the page information frame is entered for the first time. The token is intended to mean a token (temporary) in computer authentication, and is generally understood as a label.
And S21, if the information entry page is logged in for the first time, calling a data query interface to query whether first page information corresponding to the page information frame exists from a background database corresponding to the information entry page, if the first page information corresponding to the page information frame is queried, using the first page information as the acquired page information, and if the first page information corresponding to the page information frame is not queried, using second page information input by a user in the page information frame as the acquired page information.
And S22, if the page information is not entered into the information entry page for the first time, inquiring third page information corresponding to the page information frame from the cache of the information entry page, and taking the third page information as the acquired page information.
It should be emphasized that, in order to further ensure the privacy and security of the page information, the page information may also be stored in a node of a block chain.
Further, in the embodiment of the present invention, whether the page information conforms to the page verification rule is identified through a regular expression, that is, whether a field of the page information is within the range of the page verification rule is determined.
For example, the regular expressions "^ 1] [3,4,5,7,8] [0-9] {9} $", "^ 0] [1-9] {2,3} - [0-9] {5,10} $", "^ 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 so, return true, and if not, return false; 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 yes, true is returned, and if not, false is returned.
Based on the page checking rule, checking of the page information is achieved, excessive calling of background interfaces for the information input pages corresponding to the page information frame to access the background database can be avoided, excessive data interaction with the background database is reduced, and therefore checking efficiency of checking the page information is improved.
The obtaining module 103 is configured to obtain the page information again when the page information does not meet the page verification rule.
The storage module 104 is configured to store the page information into the cache of the information entry page, where the page information conforms to the page verification rule.
In another embodiment of the present invention, before storing the page information into the local cache, the method further includes: and performing character string conversion on the page information to generate a character string value of the page information, and based on the character string value, accelerating the speed of searching the page information of the information input page again in the follow-up process.
In an alternative embodiment, the page is converted to a corresponding 16-bit string verifyinfstr value using a matrix shift algorithm.
Further, the storage form of storing the page information in the cache is a key-value pair (key-value) form, that is, the identifier of the page information is used as a key value, and the string value of the page information is used as a numerical value. And storing the page information based on the form of the key value pair, and updating the page information in real time.
In an optional embodiment, the cache is a redis cache.
Furthermore, it is required to state that after the page information is stored in the cache of the information entry page, the embodiment of the present invention skips the information entry page, and when the user returns the information entry page again to view the page information without modifying the page information, the user only needs to perform direct skip of the page according to the character string value generated by returning the information entry page again and the character string value in the cache, and does not need to call a background interface again to access a background database, thereby reducing interaction between the information entry page and the background database.
In summary, the embodiment of the present invention binds the pre-established verification instruction with the element node in the page information frame of the information entry page to generate the page verification rule of the element node, so as to implement subsequent verification of the page information and determine whether the page information is legal, thereby ensuring the security of the information entry page when the page information is entered; secondly, the page information in the page information frame is obtained, whether the page information accords with the page checking rule or not is identified, excessive calling background interfaces of information input pages corresponding to the page information frame can be avoided from accessing a background database, excessive data interaction with the background database is reduced, and therefore checking efficiency of page information checking is improved.
Fig. 5 is a schematic structural diagram of an electronic device implementing a method for verifying page information according to an embodiment of the present invention.
The electronic device 1 may include a processor 10, a memory 11 and a bus, and may further include a computer program, such as a page information check program, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only to store application software installed in the electronic device 1 and various types of data, such as codes of a page information check program, but also to temporarily store data that has been output or is to be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device 1 by running or executing programs or modules (e.g., page information checking programs, etc.) stored in the memory 11 and calling data stored in the memory 11.
The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
Fig. 5 only shows an electronic device with components, and it will be understood by a person skilled in the art that the structure shown in fig. 5 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or a combination of certain components, or a different arrangement of components.
For example, although not shown, the electronic device 1 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so as to implement functions of charge management, discharge management, power consumption management, and the like through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device 1 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the electronic device 1 may further include a network interface, and optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the electronic device 1 and other electronic devices.
Optionally, the electronic device 1 may further comprise a user interface, which may be a Display (Display), an input unit (such as a Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visualized user interface, among other things.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The page information checking program 12 stored in the memory 11 of the electronic device 1 is a combination of a plurality of instructions, and when running in the processor 10, can realize:
acquiring a page information frame of an information entry page, binding a pre-constructed check instruction with element nodes in the page information frame, and generating a page check rule of the element nodes;
acquiring page information in the page information frame, and identifying whether the page information accords with the page verification rule;
if the page information does not accord with the page checking rule, the page information is obtained again;
and if the page information accords with the page verification rule, storing the page information into a cache of the information entry page.
Specifically, the specific implementation method of the processor 10 for the instruction may refer to the description of the relevant steps in the embodiment corresponding to fig. 1, which is not described herein again. It is emphasized that the audit data may also be stored in a node of a block chain in order to further ensure the privacy and security of the original data set.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims (10)
1. A method for checking page information is characterized in that the method comprises the following steps:
acquiring a page information frame of an information entry page, binding a pre-constructed check instruction with element nodes in the page information frame, and generating a page check rule of the element nodes;
acquiring page information in the page information frame, and identifying whether the page information accords with the page verification rule;
if the page information does not accord with the page checking rule, the page information is obtained again;
and if the page information accords with the page verification rule, storing the page information into a cache of the information entry page.
2. The method for checking page information according to claim 1, wherein the binding the pre-constructed check instruction with the element node in the page information frame, and the generating the check rule of the element node includes:
acquiring the check logic of the element node;
binding the pre-constructed check instruction with the check logic to obtain an initial check logic;
and performing attribute marking on the initial check logic to obtain a target check logic, and selecting a check mode matched with the target check logic to obtain a check rule of the element node.
3. The method for checking page information according to claim 1, wherein the acquiring the page information of the page information frame includes:
identifying whether an information input page corresponding to the page information frame is logged in for the first time;
when the information entry page is logged in for the first time, a data query interface is called to query whether first page information corresponding to the page information frame exists from a background database corresponding to the information entry page;
when first page information corresponding to the page information frame is inquired, taking the first page information as the acquired page information;
if the first page information corresponding to the page information frame is not inquired, taking second page information input by a user in the page information frame as the acquired page information;
and when the information entry page is not logged in for the first time, inquiring third page information corresponding to the page information frame from a cache of the information entry page, and taking the third page information as the acquired page information.
4. The method for checking page information according to any one of claims 1 to 3, wherein before storing the page information into a cache, the method further comprises: and performing character string conversion on the page information to generate a character string value of the page information.
5. The method for checking page information of claim 4, wherein the storing of the page information into the cache is in the form of key-value pairs.
6. A page information verifying apparatus, comprising:
the binding module is used for acquiring a page information frame of an information input page, binding a pre-constructed verification instruction with an element node in the page information frame and generating a page verification rule of the element node;
the identification module is used for acquiring the page information in the page information frame and identifying whether the page information accords with the page verification rule or not;
the acquisition module is used for acquiring the page information again when the page information does not accord with the page verification rule;
and the storage module is used for storing the page information into the cache of the information entry page when the page information accords with the page verification rule.
7. The page information verifying apparatus of claim 6, wherein the binding module is specifically configured to:
acquiring the check logic of the element node;
binding the pre-constructed check instruction with the check logic to obtain an initial check logic;
and performing attribute marking on the initial check logic to obtain a target check logic, and selecting a check mode matched with the target check logic to obtain a check rule of the element node.
8. The page information verifying apparatus according to claim 6, wherein the identifying module is specifically configured to:
identifying whether an information input page corresponding to the page information frame is logged in for the first time;
when the information entry page is logged in for the first time, a data query interface is called to query whether first page information corresponding to the page information frame exists from a background database corresponding to the information entry page;
when first page information corresponding to the page information frame is inquired, taking the first page information as the acquired page information;
if the first page information corresponding to the page information frame is not inquired, taking second page information input by a user in the page information frame as the acquired page information;
and when the information entry page is not logged in for the first time, inquiring third page information corresponding to the page information frame from a cache of the information entry page, and taking the third page information as the acquired page information.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a page information checking method according to any one of claims 1 to 5.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the page information checking method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010719146.7A CN111859452A (en) | 2020-07-23 | 2020-07-23 | Page information checking method, device and equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010719146.7A CN111859452A (en) | 2020-07-23 | 2020-07-23 | Page information checking method, device and equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111859452A true CN111859452A (en) | 2020-10-30 |
Family
ID=72950557
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010719146.7A Pending CN111859452A (en) | 2020-07-23 | 2020-07-23 | Page information checking method, device and equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111859452A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113704614A (en) * | 2021-08-30 | 2021-11-26 | 康键信息技术(深圳)有限公司 | Page generation method, device, equipment and medium based on user portrait |
-
2020
- 2020-07-23 CN CN202010719146.7A patent/CN111859452A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113704614A (en) * | 2021-08-30 | 2021-11-26 | 康键信息技术(深圳)有限公司 | Page generation method, device, equipment and medium based on user portrait |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112418798A (en) | Information auditing method and device, electronic equipment and storage medium | |
CN112115145A (en) | Data acquisition method and device, electronic equipment and storage medium | |
CN112528307A (en) | Service request checking method and device, electronic equipment and storage medium | |
CN112527664A (en) | Method and device for generating test case, electronic equipment and storage medium | |
CN113434674A (en) | Data analysis method and device, electronic equipment and readable storage medium | |
CN112580079A (en) | Authority configuration method and device, electronic equipment and readable storage medium | |
CN114881616A (en) | Business process execution method and device, electronic equipment and storage medium | |
CN113868528A (en) | Information recommendation method and device, electronic equipment and readable storage medium | |
CN112486490A (en) | Front-end code packaging method and device, electronic equipment and storage medium | |
CN113282854A (en) | Data request response method and device, electronic equipment and storage medium | |
CN113032275A (en) | Method and device for testing field, electronic equipment and storage medium | |
CN111985194A (en) | Data storage method and device, electronic equipment and storage medium | |
CN115081016A (en) | Log desensitization method and device, electronic equipment and storage medium | |
CN112464619B (en) | Big data processing method, device and equipment and computer readable storage medium | |
CN112541688A (en) | Service data checking method and device, electronic equipment and computer storage medium | |
CN113434542A (en) | Data relation identification method and device, electronic equipment and storage medium | |
CN111859452A (en) | Page information checking method, device and equipment and computer readable storage medium | |
CN113051224A (en) | File transmission method and device, electronic equipment and computer readable storage medium | |
CN111932413A (en) | Case element extraction method, case element extraction device, case element extraction equipment and case element extraction medium | |
CN111625236A (en) | Front-end development method and device based on componentization, electronic equipment and storage medium | |
CN115827115A (en) | H5 page jump method, device, equipment and storage medium of WeChat applet | |
CN114840388A (en) | Data monitoring method and device, electronic equipment and storage medium | |
CN112667244A (en) | Data verification method and device, electronic equipment and computer readable storage medium | |
CN112506931A (en) | Data query method and device, electronic equipment and storage medium | |
CN113065086A (en) | Webpage text extraction method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |