CN111857883A - Page data checking method and device, electronic equipment and storage medium - Google Patents

Page data checking method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111857883A
CN111857883A CN202010719920.4A CN202010719920A CN111857883A CN 111857883 A CN111857883 A CN 111857883A CN 202010719920 A CN202010719920 A CN 202010719920A CN 111857883 A CN111857883 A CN 111857883A
Authority
CN
China
Prior art keywords
page
data
verification
check
parent object
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.)
Granted
Application number
CN202010719920.4A
Other languages
Chinese (zh)
Other versions
CN111857883B (en
Inventor
郭晓龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202010719920.4A priority Critical patent/CN111857883B/en
Publication of CN111857883A publication Critical patent/CN111857883A/en
Application granted granted Critical
Publication of CN111857883B publication Critical patent/CN111857883B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

A method for verifying page data, the method comprising: acquiring preset data configuration information and a first data verification function of the main page; acquiring a second data check function of the associated page; constructing a parent object according to the preset data configuration information, the first data check function and the second data check function; when the main page receives a data submission instruction, judging whether an unloaded page exists in the associated page according to the parent object; if the related page does not have an unloaded page, performing data verification on the main page and the related page according to the parent object to obtain a verification result; and if the verification result is submittable, executing the data submission instruction. The invention also provides a page data checking device, electronic equipment and a storage medium. The invention can reduce the dependence of the associated page. In addition, the invention relates to the block chain technology, and the checking result can be stored in the block chain node.

Description

Page data checking method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a page data checking method and device, electronic equipment and a storage medium.
Background
At present, with the development of computer technology, the phenomenon of handling business online is more common, some businesses need to fill various application forms in pages, the data filled in the forms can be checked, and the data missing filling is prompted in time.
Therefore, how to reduce the dependency of the associated pages and decouple the pages from each other is a technical problem which needs to be solved urgently.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, an electronic device, and a storage medium for checking page data, which can reduce dependency on associated pages and decouple the pages from each other.
The first aspect of the present invention provides a method for checking page data, where the method includes:
when the main page is detected to be loaded, acquiring preset data configuration information and a first data verification function of the main page;
when detecting that the associated page is loaded, acquiring a second data check function of the associated page, wherein the associated page and the main page have associated data;
constructing a parent object according to the preset data configuration information, the first data check function and the second data check function;
when the main page receives a data submission instruction, judging whether an unloaded page exists in the associated page according to the parent object before the data submission instruction is executed;
if the related page does not have an unloaded page, performing data verification on the main page and the related page according to the parent object to obtain a verification result;
and if the verification result is submittable, executing the data submission instruction.
In a possible implementation manner, the constructing a parent object according to the preset data configuration information, the first data check function, and the second data check function includes:
creating an initial object according to a preset verification object creating function;
storing the preset data configuration information as a corresponding attribute value in the initial object;
and adding the first data check function and the second data check function to the data check function of the initial object to obtain the parent object.
In a possible implementation manner, the performing, according to the parent object, data verification on the main page and the associated page, and obtaining a verification result includes:
acquiring form data of the main page and form data of the associated page through the parent object;
executing the first data verification function in the parent object, and performing data verification on the form data of the main page to obtain a first verification result;
executing the second data check function in the parent-level object, and performing data check on the form data of the associated page to obtain a second check result;
if the first check result and the second check result can be submitted, determining that the check result can be submitted; or
And if the first check result is not submittable or the second check result is not submittable, determining that the check result is not submittable.
In a possible implementation manner, the determining, according to the parent object, whether an unloaded page exists in the associated page includes:
acquiring a loaded page identifier of a currently loaded page;
determining a page identifier to be compared of the associated page from the parent object;
if the page identifier to be compared has a page identifier other than the loaded page identifier, determining that an unloaded page exists in the associated page; or
And if the page identifier to be compared does not have a page identifier except the loaded page identifier, determining that an unloaded page does not exist in the associated page.
In a possible implementation manner, the page data checking method further includes:
if an unloaded page exists in the associated pages, generating prompt information corresponding to the unloaded page;
and outputting the prompt information.
In a possible implementation manner, the page data checking method further includes:
when a data verification forbidding instruction aiming at a target page is received, determining a data verification method of the target page;
and deleting the data verification method of the target page from the data verification method of the parent object.
In one possible implementation, the data check includes a mandatory item check, a data format check, a data exception detection, and a sensitive data detection.
A second aspect of the present invention provides a page data verification apparatus, including:
the system comprises an acquisition module, a verification module and a verification module, wherein the acquisition module is used for acquiring preset data configuration information and a first data verification function of a main page when the main page is detected to be loaded;
the obtaining module is further configured to obtain a second data check function of the associated page when it is detected that the associated page is loaded, where the associated page and the main page have associated data;
the construction module is used for constructing a parent object according to the preset data configuration information, the first data check function and the second data check function;
the judging module is used for judging whether an unloaded page exists in the associated page according to the parent object when the main page receives a data submission instruction and before the data submission instruction is executed;
the verification module is used for performing data verification on the main page and the associated page according to the parent object if the unloaded page does not exist in the associated page, and obtaining a verification result;
and the execution module is used for executing the data submission instruction if the verification result is submittable.
As an optional implementation manner, the manner of constructing, by the construction module, the parent object according to the preset data configuration information, the first data check function, and the second data check function is specifically:
creating an initial object according to a preset verification object creating function;
storing the preset data configuration information as a corresponding attribute value in the initial object;
and adding the first data check function and the second data check function to the data check function of the initial object to obtain the parent object.
As an optional implementation manner, the verification module performs data verification on the main page and the associated page according to the parent object, and a manner of obtaining a verification result specifically includes:
acquiring form data of the main page and form data of the associated page through the parent object;
executing the first data verification function in the parent object, and performing data verification on the form data of the main page to obtain a first verification result;
executing the second data check function in the parent-level object, and performing data check on the form data of the associated page to obtain a second check result;
if the first check result and the second check result can be submitted, determining that the check result can be submitted; or
And if the first check result is not submittable or the second check result is not submittable, determining that the check result is not submittable.
As an optional implementation manner, the manner of determining, by the determining module, whether an unloaded page exists in the associated page according to the parent object specifically is:
acquiring a loaded page identifier of a currently loaded page;
determining a page identifier to be compared of the associated page from the parent object;
if the page identifier to be compared has a page identifier other than the loaded page identifier, determining that an unloaded page exists in the associated page; or
And if the page identifier to be compared does not have a page identifier except the loaded page identifier, determining that an unloaded page does not exist in the associated page.
As an optional implementation manner, the page data checking apparatus may further include:
the generating module is used for generating prompt information corresponding to the unloaded page if the unloaded page exists in the associated page;
and the output module is used for outputting the prompt message.
In this optional embodiment, if an unloaded page exists in the associated page, a prompt message corresponding to the unloaded page is generated, for example, the prompt page is not loaded completely, and the prompt message may be output to prompt the user to open other unloaded pages or wait.
As an optional implementation manner, the page data checking apparatus may further include:
the determining module is used for determining a data verification method of a target page when a data verification forbidding instruction aiming at the target page is received;
and the deleting module is used for deleting the data verification method of the target page from the data verification method of the parent object.
A third aspect of the present invention provides an electronic device, which includes a processor and a memory, wherein the processor is configured to implement the page data checking method when executing a computer program stored in the memory.
A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program, which when executed by a processor implements the page data checking method.
By the technical scheme, the data verification functions of the multiple pages can be obtained, the parent objects of the multiple pages are constructed, the data of the multiple pages can be verified simultaneously through the parent objects, a large amount of form contents do not need to be output in one page, the multiple pages can be used for displaying the multiple form contents and verifying uniformly, the loading content of a single page is reduced, the loading speed of the single page is improved, meanwhile, the data separation can reduce the dependence of different types of data, the pages are decoupled, and the maintenance performance and the expansion performance of the pages are improved.
Drawings
FIG. 1 is a flowchart illustrating a method for verifying page data according to an embodiment of the present invention.
FIG. 2 is a functional block diagram of a page data checking apparatus according to a preferred embodiment of the present invention.
Fig. 3 is a schematic structural diagram of an electronic device implementing a page data verification method according to a preferred embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
The page data verification method provided by the embodiment of the invention is applied to electronic equipment, and can also be applied to a hardware environment formed by the electronic equipment and a server connected with the electronic equipment through a network, and the server and the electronic equipment execute together. Networks include, but are not limited to: a wide area network, a metropolitan area network, or a local area network.
A server may refer to a computer system that provides services to other devices (e.g., electronic devices) in a network. A personal computer may also be called a server if it can externally provide a File Transfer Protocol (FTP) service. In a narrow sense, a server refers to a high-performance computer, which can provide services to the outside through a network, and compared with a common personal computer, the server has higher requirements on stability, security, performance and the like, and therefore, hardware such as a CPU, a chipset, a memory, a disk system, a network and the like is different from that of the common personal computer.
The electronic device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware thereof includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like. The electronic device may also include a network device and/or a user device. The network device includes, but is not limited to, a single network device, a server group consisting of a plurality of network devices, or a Cloud Computing (Cloud Computing) based Cloud consisting of a large number of hosts or network devices, wherein the Cloud Computing is one of distributed Computing, and is a super virtual computer consisting of a group of loosely coupled computers. The user device includes, but is not limited to, any electronic product that can interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device, for example, a personal computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), or the like.
Referring to fig. 1, fig. 1 is a flowchart illustrating a page data checking method according to a preferred embodiment of the present invention. The order of the steps in the flowchart may be changed, and some steps may be omitted. The execution subject of the page data verification method may be an electronic device.
S11, when the main page is detected to be loaded, acquiring preset data configuration information and a first data verification function of the main page.
The preset data configuration information is stored in a background server and comprises tab _ key (form identifier), tab _ title (form name), check _ must (necessary transmission check identifier), a function dynamic adding method, a function dynamic deleting method and the like. The function dynamic adding method is used for adding the functions in real time, and the function dynamic deleting method is used for deleting the functions in real time.
The first data check function may be a data check function defined in the main page, and is used to check data in the table of the main page, including format check and mandatory check (data is not empty) of the data.
S12, when the loading of the associated page is detected, acquiring a second data check function of the associated page, wherein the associated page and the main page have associated data.
The associated page may be an extended form submission page of the main page, and the form of the main page and the form of the associated page need to be submitted simultaneously due to associated data or business requirements.
The second data check function may be a data check function defined in the associated page, and is used to check data in the table of the associated page, including format check and mandatory check of the data (the data is not empty).
S13, constructing a parent object according to the preset data configuration information, the first data check function and the second data check function.
Wherein the parent object is a parent of the master page and the associated page.
In this embodiment of the present invention, the parent object is a parent of the main page and the associated page, the main page and the associated page are peers, the main page may not access data of the associated page across pages, the associated page may not access data of the main page across pages, and the parent object may access data of the main page and data of the associated page.
Specifically, constructing a parent object according to the preset data configuration information, the first data check function, and the second data check function includes:
creating an initial object according to a preset verification object creating function;
storing the preset data configuration information as a corresponding attribute value in the initial object;
and adding the first data check function and the second data check function to the data check function of the initial object to obtain the parent object.
In this alternative embodiment, an initial object is created first, in which the respective attribute values are not assigned or have default values. Various items of information of the preset data configuration information may be used as attributes of the initial object, such as a form identification attribute, a form name attribute, and the like, and may be used to store information of form data, such as data information of forms of the main page and the associated page. The first data verification function and the second data verification function can be added to the data verification function of the initial object through a function dynamic adding method in preset data configuration information to obtain the parent object, the function attribute of the parent object can be called to perform data verification on the main page and the associated page through constructing the parent object, interaction does not exist basically in the data verification process between the main page and the associated page, and dependency between the pages is reduced.
S14, when the main page receives a data submission instruction, before the data submission instruction is executed, judging whether the associated page has an unloaded page according to the parent object, if not, executing the step S15, and if so, ending the process.
Specifically, the determining whether an unloaded page exists in the associated page according to the parent object includes:
acquiring a loaded page identifier of a currently loaded page;
determining a page identifier to be compared of the associated page from the parent object;
if the page identifier to be compared has a page identifier other than the loaded page identifier, determining that an unloaded page exists in the associated page; or
And if the page identifier to be compared does not have a page identifier except the loaded page identifier, determining that an unloaded page does not exist in the associated page.
The page identifier to be compared may be page identifiers of all the associated pages.
The loaded page identifier may be a page identifier of an associated page that has been loaded.
The unloaded page may refer to an associated page that is not loaded.
In this optional embodiment, the page identifier of the associated page may be stored in the parent object (to-be-compared page identifier is obtained), and then according to the to-be-compared page identifier in the parent object, a page that is not loaded (unloaded page) may be determined, because data of each page needs to be simultaneously submitted to a server for processing, it is necessary to determine each page, and determine whether an unloaded page exists. If the page identifier to be compared has a page identifier other than the loaded page identifier, determining that an unloaded page exists in the associated page; and if the page identifier to be compared does not have a page identifier except the loaded page identifier, determining that an unloaded page does not exist in the associated page.
And S15, according to the parent object, performing data verification on the main page and the associated page to obtain a verification result.
The data check comprises mandatory item check, data format check, data abnormity detection and sensitive data detection.
The mandatory item check may be to detect whether a data item with a specified requirement value that is not null (must be filled) has a null value;
the data format check may refer to detecting whether each item of data meets a preset format specification, for example, an age item must be an integer item, an english name must be input, and the like.
Wherein, the data anomaly detection may be to detect whether the input data is anomalous, such as inputting a negative number in an age item, the item of data being anomalous data;
the sensitive data detection may be to detect whether the input data is data such as sensitive vocabulary.
Specifically, the performing data verification on the main page and the associated page according to the parent object includes:
acquiring form data of the main page and form data of the associated page through the parent object;
executing the first data verification function in the parent object, and performing data verification on the form data of the main page to obtain a first verification result;
executing the second data check function in the parent-level object, and performing data check on the form data of the associated page to obtain a second check result;
if the first check result and the second check result can be submitted, determining that the check result can be submitted; or
And if the first check result is not submittable or the second check result is not submittable, determining that the check result is not submittable.
The data check may be a must-input check of the data (i.e., checking whether there is a data item that must be input but is not input by the user), a data format check, and the like.
In this optional implementation manner, the form data of the main page and the form data of the associated page may be obtained by the parent object, then the first data check function in the parent object is called, data check is performed on the form data of the main page to obtain a first check result, the second data check function in the parent object is called, data check is performed on the form data of the associated page to obtain a second check result, and the check result of the page data includes the first check result and the second check result. If the first check result and the second check result are both submittable, determining that the check result of the page data is submittable; and if the first check result or the second check result is uncommitted, determining that the check result of the page data is uncommitted.
As an optional implementation, the method further comprises:
if an unloaded page exists in the associated pages, generating prompt information corresponding to the unloaded page;
and outputting the prompt information.
In this optional embodiment, if an unloaded page exists in the associated page, a prompt message corresponding to the unloaded page is generated, for example, the prompt page is not loaded completely, and the prompt message may be output to prompt the user to open other unloaded pages or wait.
And S16, if the verification result is that the data can be submitted, executing the data submitting instruction.
In the embodiment of the present invention, if the verification result is submittable, it indicates that both the form data of the main page and the form data of the associated page have passed the verification, and the form data of the main page and the form data of the associated page can be submitted to the background.
As an optional implementation, the method further comprises:
when a data verification forbidding instruction aiming at a target page is received, determining a data verification method of the target page;
and deleting the data verification method of the target page from the data verification method of the parent object.
In this optional embodiment, data verification of each page may be flexibly processed, and if it is not necessary to verify data of a certain page, the corresponding data verification method in the parent object is directly deleted, and when the parent object executes the data verification method, all the data verification methods stored in the parent object may be sequentially executed, and the data verification methods not stored in the parent object may not be executed.
It is emphasized that, to further ensure the privacy and security of the check result, the check result may also be stored in a node of a block chain.
In the method flow described in fig. 1, data check functions of multiple pages may be obtained, parent objects of the multiple pages are constructed, simultaneous check of data of the multiple pages is realized through the parent objects, a large amount of form content does not need to be output in one page, the multiple pages may be used to display and uniformly check the content of multiple forms, and the loading content of a single page is reduced, so that the loading speed of the single page is increased, and meanwhile, the separation of data can reduce the dependence of different types of data, decouple the pages from each other, and improve the maintenance performance and the expansion performance of the pages.
FIG. 2 is a functional block diagram of a page data checking apparatus according to a preferred embodiment of the present invention.
Referring to fig. 2, the page data verification apparatus 20 may be operated in an electronic device. The page data verification means 20 may comprise a plurality of functional modules consisting of program code segments. The program code of each program segment in the page data checking apparatus 20 may be stored in a memory and executed by at least one processor to perform some or all of the steps of the page data checking method described in fig. 1.
In this embodiment, the page data verification apparatus 20 may be divided into a plurality of functional modules according to the functions executed by the page data verification apparatus. The functional module may include: the system comprises an acquisition module 201, a construction module 202, a judgment module 203, a verification module 204 and an execution module 205. The module referred to herein is a series of computer program segments capable of being executed by at least one processor and capable of performing a fixed function and is stored in memory.
The obtaining module 201 is configured to obtain preset data configuration information and a first data check function of a main page when it is detected that the main page is loaded.
The preset data configuration information is stored in a background server and comprises tab _ key (form identifier), tab _ title (form name), check _ must (necessary transmission check identifier), a function dynamic adding method, a function dynamic deleting method and the like. The function dynamic adding method is used for adding the functions in real time, and the function dynamic deleting method is used for deleting the functions in real time.
The first data check function may be a data check function defined in the main page, and is used to check data in the table of the main page, including format check and mandatory check (data is not empty) of the data.
The obtaining module 201 is further configured to obtain a second data check function of the associated page when it is detected that the associated page is loaded, where there is associated data between the associated page and the main page.
The associated page may be an extended form submission page of the main page, and the form of the main page and the form of the associated page need to be submitted simultaneously due to associated data or business requirements.
The second data check function may be a data check function defined in the associated page, and is used to check data in the table of the associated page, including format check and mandatory check of the data (the data is not empty).
A building module 202, configured to build a parent object according to the preset data configuration information, the first data check function, and the second data check function.
Wherein the parent object is a parent of the master page and the associated page.
In this embodiment of the present invention, the parent object is a parent of the main page and the associated page, the main page and the associated page are peers, the main page may not access data of the associated page across pages, the associated page may not access data of the main page across pages, and the parent object may access data of the main page and data of the associated page.
The determining module 203 is configured to, when the main page receives a data submission instruction, determine whether an unloaded page exists in the associated page according to the parent object before the data submission instruction is executed.
The checking module 204 is configured to, if an unloaded page does not exist in the associated page, perform data checking on the main page and the associated page according to the parent object, and obtain a checking result.
The data check comprises mandatory item check, data format check, data abnormity detection and sensitive data detection.
The mandatory item check may be to detect whether a data item with a specified requirement value that is not null (must be filled) has a null value;
the data format check may refer to detecting whether each item of data meets a preset format specification, for example, an age item must be an integer item, an english name must be input, and the like.
Wherein, the data anomaly detection may be to detect whether the input data is anomalous, such as inputting a negative number in an age item, the item of data being anomalous data;
the sensitive data detection may be to detect whether the input data is data such as sensitive vocabulary.
The execution module 205 is configured to execute the data commit instruction if the check result is resumable.
In the embodiment of the present invention, if the verification result is submittable, it indicates that both the form data of the main page and the form data of the associated page have passed the verification, and the form data of the main page and the form data of the associated page can be submitted to the background.
As an optional implementation manner, the manner of constructing the parent object by the construction module 202 according to the preset data configuration information, the first data check function, and the second data check function is specifically:
creating an initial object according to a preset verification object creating function;
storing the preset data configuration information as a corresponding attribute value in the initial object;
and adding the first data check function and the second data check function to the data check function of the initial object to obtain the parent object.
In this alternative embodiment, an initial object is created first, in which the respective attribute values are not assigned or have default values. Various items of information of the preset data configuration information may be used as attributes of the initial object, such as a form identification attribute, a form name attribute, and the like, and may be used to store information of form data, such as data information of forms of the main page and the associated page. The first data verification function and the second data verification function can be added to the data verification function of the initial object through a function dynamic adding method in preset data configuration information to obtain the parent object, the function attribute of the parent object can be called to perform data verification on the main page and the associated page through constructing the parent object, interaction does not exist basically in the data verification process between the main page and the associated page, and dependency between the pages is reduced.
As an optional implementation manner, the verification module 204 performs data verification on the main page and the associated page according to the parent object, and a manner of obtaining a verification result specifically includes:
acquiring form data of the main page and form data of the associated page through the parent object;
executing the first data verification function in the parent object, and performing data verification on the form data of the main page to obtain a first verification result;
executing the second data check function in the parent-level object, and performing data check on the form data of the associated page to obtain a second check result;
if the first check result and the second check result can be submitted, determining that the check result can be submitted; or
And if the first check result is not submittable or the second check result is not submittable, determining that the check result is not submittable.
It is emphasized that, to further ensure the privacy and security of the check result, the check result may also be stored in a node of a block chain.
The data check may be a must-input check of the data (i.e., checking whether there is a data item that must be input but is not input by the user), a data format check, and the like.
In this optional implementation manner, the form data of the main page and the form data of the associated page may be obtained by the parent object, then the first data check function in the parent object is called, data check is performed on the form data of the main page to obtain a first check result, the second data check function in the parent object is called, data check is performed on the form data of the associated page to obtain a second check result, and the check result of the page data includes the first check result and the second check result. If the first check result and the second check result are both submittable, determining that the check result of the page data is submittable; and if the first check result or the second check result is uncommitted, determining that the check result of the page data is uncommitted.
As an optional implementation manner, the manner for the determining module 203 to determine whether there is an unloaded page in the associated page according to the parent object specifically is:
acquiring a loaded page identifier of a currently loaded page;
determining a page identifier to be compared of the associated page from the parent object;
if the page identifier to be compared has a page identifier other than the loaded page identifier, determining that an unloaded page exists in the associated page; or
And if the page identifier to be compared does not have a page identifier except the loaded page identifier, determining that an unloaded page does not exist in the associated page.
The page identifier to be compared may be page identifiers of all the associated pages.
The loaded page identifier may be a page identifier of an associated page that has been loaded.
The unloaded page may refer to an associated page that is not loaded.
In this optional embodiment, the page identifier of the associated page may be stored in the parent object (to-be-compared page identifier is obtained), and then according to the to-be-compared page identifier in the parent object, a page that is not loaded (unloaded page) may be determined, because data of each page needs to be simultaneously submitted to a server for processing, it is necessary to determine each page, and determine whether an unloaded page exists. If the page identifier to be compared has a page identifier other than the loaded page identifier, determining that an unloaded page exists in the associated page; and if the page identifier to be compared does not have a page identifier except the loaded page identifier, determining that an unloaded page does not exist in the associated page.
As an optional implementation manner, the page data verification apparatus 20 may further include:
the generating module is used for generating prompt information corresponding to the unloaded page if the unloaded page exists in the associated page;
and the output module is used for outputting the prompt message.
In this optional embodiment, if an unloaded page exists in the associated page, a prompt message corresponding to the unloaded page is generated, for example, the prompt page is not loaded completely, and the prompt message may be output to prompt the user to open other unloaded pages or wait.
As an optional implementation manner, the page data verification apparatus 20 may further include:
the determining module is used for determining a data verification method of a target page when a data verification forbidding instruction aiming at the target page is received;
and the deleting module is used for deleting the data verification method of the target page from the data verification method of the parent object.
In this optional embodiment, data verification of each page may be flexibly processed, and if it is not necessary to verify data of a certain page, the corresponding data verification method in the parent object is directly deleted, and when the parent object executes the data verification method, all the data verification methods stored in the parent object may be sequentially executed, and the data verification methods not stored in the parent object may not be executed.
In the method flow described in fig. 1, data check functions of multiple pages may be obtained, parent objects of the multiple pages are constructed, simultaneous check of data of the multiple pages is realized through the parent objects, a large amount of form content does not need to be output in one page, the multiple pages may be used to display and uniformly check the content of multiple forms, and the loading content of a single page is reduced, so that the loading speed of the single page is increased, and meanwhile, the separation of data can reduce the dependence of different types of data, decouple the pages from each other, and improve the maintenance performance and the expansion performance of the pages.
In the page data verification apparatus 20 depicted in fig. 2, data verification functions of multiple pages may be obtained, parent objects of the multiple pages are constructed, simultaneous verification of data of the multiple pages is realized through the parent objects, a large amount of form content does not need to be output in one page, multiple pages may be used to display and uniformly verify multiple form content, and the loading content of a single page is reduced, so that the loading speed of a single page is increased, meanwhile, the separation of data may reduce dependence of different types of data, and the pages are decoupled from each other, thereby improving the maintenance performance and the expansion performance of the pages.
As shown in fig. 3, fig. 3 is a schematic structural diagram of an electronic device implementing a page data checking method according to a preferred embodiment of the present invention. The electronic device 3 comprises a memory 31, at least one processor 32, a computer program 33 stored in the memory 31 and executable on the at least one processor 32, and at least one communication bus 34.
Those skilled in the art will appreciate that the schematic diagram shown in fig. 3 is merely an example of the electronic device 3, and does not constitute a limitation of the electronic device 3, and may include more or less components than those shown, or combine some components, or different components, for example, the electronic device 3 may further include an input/output device, a network access device, and the like.
The electronic device 3 may also include, but is not limited to, any electronic product that can interact with a user through a keyboard, a mouse, a remote controller, a touch panel, or a voice control device, for example, a Personal computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game machine, an Internet Protocol Television (IPTV), an intelligent wearable device, and the like. The Network where the electronic device 3 is located includes, but is not limited to, the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like.
The at least one Processor 32 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a transistor logic device, a discrete hardware component, etc. The processor 32 may be a microprocessor or the processor 32 may be any conventional processor or the like, and the processor 32 is a control center of the electronic device 3 and connects various parts of the whole electronic device 3 by various interfaces and lines.
The memory 31 may be used to store the computer program 33 and/or the module/unit, and the processor 32 may implement various functions of the electronic device 3 by running or executing the computer program and/or the module/unit stored in the memory 31 and calling data stored in the memory 31. The memory 31 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the electronic device 3, and the like. In addition, the memory 31 may include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, and the like.
With reference to fig. 1, the memory 31 of the electronic device 3 stores a plurality of instructions to implement a page data checking method, and the processor 32 can execute the plurality of instructions to implement:
when the main page is detected to be loaded, acquiring preset data configuration information and a first data verification function of the main page;
when detecting that the associated page is loaded, acquiring a second data check function of the associated page, wherein the associated page and the main page have associated data;
constructing a parent object according to the preset data configuration information, the first data check function and the second data check function;
when the main page receives a data submission instruction, judging whether an unloaded page exists in the associated page according to the parent object before the data submission instruction is executed;
if the related page does not have an unloaded page, performing data verification on the main page and the related page according to the parent object to obtain a verification result;
and if the verification result is submittable, executing the data submission instruction.
Specifically, the processor 32 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the instruction, which is not described herein again.
In the electronic device 3 described in fig. 3, data check functions of multiple pages may be obtained, parent objects of the multiple pages are constructed, simultaneous check of data of the multiple pages is realized through the parent objects, a large amount of form content does not need to be output in one page, the multiple pages may be used to display and uniformly check the content of multiple forms, and the loading content of a single page is reduced, so that the loading speed of a single page is increased, and meanwhile, the separation of data may reduce dependence on different types of data, decouple the pages from each other, and improve the maintenance performance and the expansion performance of the pages.
The integrated modules/units of the electronic device 3 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program code may be in source code form, object code form, an executable file or some intermediate form, etc. 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 system, apparatus and method may 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.
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.
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. 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 page data verification method is characterized by comprising the following steps:
when the main page is detected to be loaded, acquiring preset data configuration information and a first data verification function of the main page;
when detecting that the associated page is loaded, acquiring a second data check function of the associated page, wherein the associated page and the main page have associated data;
constructing a parent object according to the preset data configuration information, the first data check function and the second data check function;
when the main page receives a data submission instruction, judging whether an unloaded page exists in the associated page according to the parent object before the data submission instruction is executed;
if the related page does not have an unloaded page, performing data verification on the main page and the related page according to the parent object to obtain a verification result;
and if the verification result is submittable, executing the data submission instruction.
2. The method for checking page data according to claim 1, wherein the constructing a parent object according to the preset data configuration information, the first data checking function, and the second data checking function includes:
creating an initial object according to a preset verification object creating function;
storing the preset data configuration information as a corresponding attribute value in the initial object;
and adding the first data check function and the second data check function to the data check function of the initial object to obtain the parent object.
3. The method for checking page data according to claim 2, wherein the data checking the main page and the associated page according to the parent object, and obtaining a checking result includes:
acquiring form data of the main page and form data of the associated page through the parent object;
executing the first data verification function in the parent object, and performing data verification on the form data of the main page to obtain a first verification result;
executing the second data check function in the parent-level object, and performing data check on the form data of the associated page to obtain a second check result;
if the first check result and the second check result can be submitted, determining that the check result can be submitted; or
And if the first check result is not submittable or the second check result is not submittable, determining that the check result is not submittable.
4. The method for checking page data according to claim 1, wherein the determining whether there is an unloaded page in the associated pages according to the parent object includes:
acquiring a loaded page identifier of a currently loaded page;
determining a page identifier to be compared of the associated page from the parent object;
if the page identifier to be compared has a page identifier other than the loaded page identifier, determining that an unloaded page exists in the associated page; or
And if the page identifier to be compared does not have a page identifier except the loaded page identifier, determining that an unloaded page does not exist in the associated page.
5. The page data verification method according to any one of claims 1 to 4, wherein the page data verification method further includes:
if an unloaded page exists in the associated pages, generating prompt information corresponding to the unloaded page;
and outputting the prompt information.
6. The page data verification method according to any one of claims 1 to 4, wherein the page data verification method further includes:
when a data verification forbidding instruction aiming at a target page is received, determining a data verification method of the target page;
and deleting the data verification method of the target page from the data verification method of the parent object.
7. The page data checking method according to any one of claims 1 to 4, wherein the data checking includes mandatory item checking, data format checking, data exception detection, and sensitive data detection.
8. A page data verification apparatus, characterized in that the page data verification apparatus comprises:
the system comprises an acquisition module, a verification module and a verification module, wherein the acquisition module is used for acquiring preset data configuration information and a first data verification function of a main page when the main page is detected to be loaded;
the obtaining module is further configured to obtain a second data check function of the associated page when it is detected that the associated page is loaded, where the associated page and the main page have associated data;
the construction module is used for constructing a parent object according to the preset data configuration information, the first data check function and the second data check function;
the judging module is used for judging whether an unloaded page exists in the associated page according to the parent object when the main page receives a data submission instruction and before the data submission instruction is executed;
the verification module is used for performing data verification on the main page and the associated page according to the parent object if the unloaded page does not exist in the associated page, and obtaining a verification result;
and the execution module is used for executing the data submission instruction if the verification result is submittable.
9. An electronic device, characterized in that the electronic device comprises a processor and a memory, the processor being configured to execute a computer program stored in the memory to implement the page data checking method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing at least one instruction which, when executed by a processor, implements a page data checking method according to any one of claims 1 to 7.
CN202010719920.4A 2020-07-23 2020-07-23 Page data checking method and device, electronic equipment and storage medium Active CN111857883B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010719920.4A CN111857883B (en) 2020-07-23 2020-07-23 Page data checking method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010719920.4A CN111857883B (en) 2020-07-23 2020-07-23 Page data checking method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111857883A true CN111857883A (en) 2020-10-30
CN111857883B CN111857883B (en) 2022-04-08

Family

ID=72950200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010719920.4A Active CN111857883B (en) 2020-07-23 2020-07-23 Page data checking method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111857883B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377417A (en) * 2021-06-29 2021-09-10 中国平安财产保险股份有限公司 Form data checking method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102426549A (en) * 2011-09-08 2012-04-25 新一站保险代理有限公司 Efficient Web form validation method and framework thereof
US8209666B1 (en) * 2007-10-10 2012-06-26 United Services Automobile Association (Usaa) Systems and methods for testing interfaces and applications
CN105893546A (en) * 2016-04-01 2016-08-24 赵忠义 One-time asynchronous checking and accurate positioning prompt mode adopted in BS software system
US20190272212A1 (en) * 2018-03-05 2019-09-05 Alibaba Group Holding Limited Supporting multiple page lengths with unique error correction coding via galois field dimension folding
CN110334303A (en) * 2019-06-05 2019-10-15 平安科技(深圳)有限公司 Form validation method, device, computer equipment and storage medium
CN110990254A (en) * 2019-10-25 2020-04-10 苏州浪潮智能科技有限公司 Test management platform-based automatic script packing and checking method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8209666B1 (en) * 2007-10-10 2012-06-26 United Services Automobile Association (Usaa) Systems and methods for testing interfaces and applications
CN102426549A (en) * 2011-09-08 2012-04-25 新一站保险代理有限公司 Efficient Web form validation method and framework thereof
CN105893546A (en) * 2016-04-01 2016-08-24 赵忠义 One-time asynchronous checking and accurate positioning prompt mode adopted in BS software system
US20190272212A1 (en) * 2018-03-05 2019-09-05 Alibaba Group Holding Limited Supporting multiple page lengths with unique error correction coding via galois field dimension folding
CN110334303A (en) * 2019-06-05 2019-10-15 平安科技(深圳)有限公司 Form validation method, device, computer equipment and storage medium
CN110990254A (en) * 2019-10-25 2020-04-10 苏州浪潮智能科技有限公司 Test management platform-based automatic script packing and checking method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄鹏: "粮情远程监控系统的设计与实现", 《全国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377417A (en) * 2021-06-29 2021-09-10 中国平安财产保险股份有限公司 Form data checking method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111857883B (en) 2022-04-08

Similar Documents

Publication Publication Date Title
US10387684B2 (en) Interlocked blockchains to increase blockchain security
AU2019295815A1 (en) Blockchain-based data verification method and apparatus, and electronic device
US10614454B1 (en) Remote population and redaction of high security data
WO2019097322A1 (en) Optimization of high volume transaction performance on a blockchain
CN111427971B (en) Business modeling method, device, system and medium for computer system
US11003653B2 (en) Method and system for secure digital documentation of subjects using hash chains
WO2019019702A1 (en) Algorithm generation method and device, terminal device and storage medium
CN111142863B (en) Page generation method and device
CN112053143A (en) Fund routing method, apparatus, electronic device and storage medium
CN112001159A (en) Document generation method and device, electronic equipment and storage medium
CN111899018B (en) Order data processing method, device, server and storage medium
CN111857883B (en) Page data checking method and device, electronic equipment and storage medium
CN112819305A (en) Service index analysis method, device, equipment and storage medium
US20210165907A1 (en) Systems and methods for intelligent and quick masking
CN111639903A (en) Review processing method for architecture change and related equipment
CN112199483A (en) Information input assisting method and device, electronic equipment and storage medium
CN111680483A (en) Document template updating method and device, electronic equipment and medium
CN112395319B (en) Cache sharing method and device, server and storage medium
CN108052842A (en) Storage, verification method and the device of signed data
US20130097493A1 (en) Managing Digital Signatures
CN112434237A (en) Page loading method and device, electronic equipment and storage medium
CN112667721A (en) Data analysis method, device, equipment and storage medium
KR20210137612A (en) Device, method, system and computer readable storage medium for managing blockchain
CN112306648B (en) Transaction calling method, device, electronic equipment and storage medium
US11822663B2 (en) Supervisor-based firmware hardening

Legal Events

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