Data verification method, device, computer equipment and storage medium
By preloading and instantiating configuration objects in the data verification container and combining personalized demand information for attribute verification, the limitations of configuration data are solved, and the stable and secure update of the application system is achieved.
Patent Information
- Application Number
- CN202211652220.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-21
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2042-12-21
AI Technical Summary
The verification when configuring data updates in the prior art has limitations and cannot effectively adapt to the personalized needs of different application systems, resulting in insufficient verification.
By creating a data verification container, preloading configuration objects, instantiating configuration object information, obtaining personalized requirements information, performing attribute verification, and updating configuration data when the attribute verification is successful.
Reduces the data verification limitations when configuring data updates, ensuring stable operation and safe updates of the application system.
Smart Images

Figure CN115827486B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data verification technology, and in particular to a data verification method, apparatus, computer equipment, and storage medium. Background Art
[0002] With the development of society, enterprises usually need some application systems to handle related businesses, and the application systems need to process related businesses based on configuration data. If the configuration data is updated, in order to ensure that the application system can process related businesses normally based on the latest version of the configuration data, the application system needs to be verified in advance.
[0003] In the prior art, the verification performed on configuration data generally verifies the format of the configuration data. Since different configuration data may have different problems when used in different application systems, only verifying the format of the configuration data will lead to great limitations in the verification. Summary of the Invention
[0004] The embodiments of the present application provide a data verification method, apparatus, computer equipment, and storage medium that can be used in financial technology or other related fields, which can reduce the limitations of data verification when configuration data is updated.
[0005] The present invention provides a data verification method, including:
[0006] Receive a data refresh instruction for configuration data in the application system, and create a data verification container in response to the data refresh instruction;
[0007] Obtain the latest version of the configuration data, and preload the configuration objects in the latest version into the data verification container.
[0008] If all configuration objects in the latest version of the data are preloaded successfully, the configuration object information corresponding to the latest version of the data is obtained, and based on the configuration object information, the configuration objects are instantiated in sequence in the data verification container;
[0009] If all configuration objects in the configuration object information are successfully instantiated, obtaining personalized requirement information of the application system, and determining a target configuration object corresponding to the application system from the configuration objects based on the personalized requirement information;
[0010] Acquire the properties of the target configuration object and the properties of the associated objects associated with the target configuration object based on the instantiation result, and perform property verification on the target configuration object and the associated objects based on the properties;
[0011] When the attribute verification of the target configuration object and the associated object succeeds, the configuration data is updated in the application system based on the latest version data.
[0012] Accordingly, an embodiment of the present application further provides a data verification device, comprising:
[0013] An instruction receiving module, configured to receive a data refresh instruction for configuration data in the application system, and create a data verification container in response to the data refresh instruction;
[0014] A preloading module is used to obtain the latest version of the configuration data and preload the configuration objects in the latest version of the data in the data verification container;
[0015] An instantiation module, configured to obtain configuration object information corresponding to the latest version of the data if all configuration objects in the latest version of the data are preloaded successfully, and instantiate the configuration objects in the data verification container in sequence based on the configuration object information;
[0016] An information acquisition module is configured to obtain personalized demand information of the application system if all configuration objects in the configuration object information are successfully instantiated, and determine a target configuration object corresponding to the application system from the configuration objects based on the personalized demand information;
[0017] an attribute verification module, configured to obtain attributes of the target configuration object and attributes of associated objects associated with the target configuration object based on the instantiation result, and perform attribute verification on the target configuration object and the associated objects based on the attributes;
[0018] The data updating module is used to update the configuration data in the application system based on the latest version data when the attribute verification of the target configuration object and the associated object succeeds.
[0019] Correspondingly, an embodiment of the present application also provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes any data verification method provided in any embodiment of the present application.
[0020] Correspondingly, an embodiment of the present application further provides a storage medium, which stores a plurality of instructions, and the instructions are suitable for loading by a processor to execute the above data verification method.
[0021] An embodiment of the present application receives a data refresh instruction for configuration data in an application system, creates a data verification container in response to the data refresh instruction, obtains the latest version data of the configuration data, and preloads the configuration objects in the latest version data in the data verification container; if all the configuration objects in the latest version data are preloaded successfully, then the configuration object information corresponding to the latest version data is obtained, and based on the configuration object information, the configuration objects are instantiated in sequence in the data verification container; if all the configuration objects in the configuration object information are instantiated successfully, then the personalized requirement information of the application system is obtained, and based on the personalized requirement information, the target configuration object corresponding to the application system is determined from the configuration objects; based on the instantiation result, the attributes of the target configuration object and the attributes of the associated objects associated with the target configuration object are obtained, and the attributes of the target configuration object and the associated objects are verified based on the attributes; when the attributes of the target configuration object and the associated objects are verified successfully, the configuration data is updated in the application system based on the latest version data, thereby reducing the limitations of data verification when the configuration data is updated. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 A flowchart of a data verification method provided in an embodiment of the present application.
[0024] Figure 2 This is a structural block diagram of a data verification device provided in an embodiment of the present application.
[0025] Figure 3 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making any creative efforts shall fall within the scope of protection of this application.
[0027] The embodiments of the present application provide a data verification method, apparatus, storage medium and computer equipment. Specifically, the data verification method of the embodiments of the present application can be executed by a computer device, wherein the computer device can be a server, or a terminal or other device. Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal can be a smart phone, a desktop computer, a laptop computer, a tablet computer, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, and this application does not limit this.
[0028] For example, the computer device may be a terminal, which may receive a data refresh instruction for configuration data in an application system, and create a data verification container in response to the data refresh instruction; obtain the latest version data of the configuration data, and preload the configuration objects in the latest version data in the data verification container; if all the configuration objects in the latest version data are preloaded successfully, then obtain the configuration object information corresponding to the latest version data, and instantiate the configuration objects in sequence in the data verification container based on the configuration object information; if all the configuration objects in the configuration object information are instantiated successfully, then obtain the personalized requirement information of the application system, and determine the target configuration object corresponding to the application system from the configuration objects based on the personalized requirement information; obtain the attributes of the target configuration object and the attributes of the associated objects associated with the target configuration object based on the instantiation result, and perform attribute verification on the target configuration object and the associated objects based on the attributes; when the attribute verification of the target configuration object and the associated objects is successful, update the configuration data in the application system based on the latest version data.
[0029] Based on the above problems, embodiments of the present application provide a data verification method, apparatus, computer device, and storage medium, which can reduce the limitations of data verification when configuration data is updated.
[0030] It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments.
[0031] An embodiment of the present application provides a data verification method, which can be executed by a terminal or a server. The embodiment of the present application is described by taking the data verification method executed by a terminal as an example.
[0032] See also Figure 1 , Figure 1This is a flow chart of a data verification method provided in an embodiment of the present application. The specific process of the data verification method can be as follows:
[0033] 101. Receive a data refresh instruction for configuration data in an application system, and create a data verification container in response to the data refresh instruction.
[0034] The above configuration data is used to guide the application system to process related business, and the configuration data can be presented in the form of a file.
[0035] For example, the configuration data can be a Spring configuration data source, presented in the form of a Spring configuration file. The Spring framework, built on top of this Spring configuration data source, is a lightweight, open-source JavaEE programming framework designed to address the complexities of enterprise-level programming and development, enabling agile development. The Spring configuration file is equivalent to a "blueprint" for bean production, dependency injection, and bean instance distribution within the Spring factory model, accurately expressing and describing Spring's production actions.
[0036] In this embodiment, when the terminal receives a data refresh instruction for configuration data in the application system, it indicates that the version of the configuration data in the current application system has changed. The current version of the configuration data in the application system is updated to the latest version.
[0037] It is understandable that in order to ensure that the application system can properly use the latest version of the configuration data and prevent abnormal situations, it is necessary to verify the latest version of the configuration data. In this embodiment, by creating a data verification container, verification is performed in the data verification container, thereby avoiding the process of verifying the latest version of the configuration data from affecting the container of the application system's currently running configuration data. The configuration data running in the container of the currently running configuration data is the configuration data of the current version. The data verification container can be a container created in the application system or a container created elsewhere by the terminal, which is different from the container of the currently running configuration data in the application system.
[0038] Specifically, the terminal can use ApplicationContext, which is the Spring core interface and container, to create a data verification container and subsequent processing steps.
[0039] 102. Obtain the latest version of the configuration data, and preload the configuration objects in the latest version in the data verification container.
[0040] Among them, the above-mentioned latest version data is recorded as the data that needs to be updated for the configuration data of the current application system. Therefore, in this embodiment, by obtaining the latest version data and preloading the configuration objects in the latest version data in the data verification container created by the terminal, the configuration objects in the latest version data can be traversed to determine whether all configuration objects can be preloaded, and whether the data verification corresponding to the current preload is successful can be determined based on the judgment result.
[0041] In some embodiments, since different configuration objects in the configuration data have different characteristics, which may also be referred to as properties, the configuration objects may be further processed during the preloading process based on the characteristics of the configuration objects.
[0042] Specifically, the above-mentioned preloading of the configuration object in the above-mentioned latest version data may include: obtaining the characteristics of the configuration object currently being preloaded; and judging whether the characteristics of the configuration object meet the preset characteristics, which are characteristics that the configuration object supports to be created during the preloading process, so that when the characteristics of the above-mentioned configuration object currently being preloaded meet the preset characteristics, the above-mentioned configuration object currently being preloaded is created in the above-mentioned data verification container, and the object information of the configuration object currently being preloaded is recorded; accordingly, when the characteristics of the above-mentioned configuration object currently being preloaded do not meet the preset characteristics, the above-mentioned configuration object currently being preloaded is not created in the above-mentioned data verification container, and only the object information of the configuration object currently being preloaded is recorded.
[0043] In some embodiments, during the process of preloading the configuration object in the latest version data, a preloading result of the configuration object is judged, and the preloading result includes two results: preloading success and preloading failure.
[0044] Specifically, if a configuration object fails to be preloaded in the latest version of the data, indicating an anomaly in the latest version of the data, preloading of the unpreloaded configuration objects is stopped, and the configuration object that failed to be preloaded is identified. Based on the configuration object that failed to be preloaded, a first error message is generated and sent to the user who triggered the data refresh instruction. Furthermore, the current version of the configuration data is maintained in the container of the currently running configuration data in the application system.
[0045] 103. If all configuration objects in the latest version data are preloaded successfully, configuration object information corresponding to the latest version data is obtained, and based on the configuration object information, the configuration objects are sequentially instantiated in the data verification container.
[0046] In this embodiment, if all configuration objects in the latest version of the data are preloaded successfully, this indicates that there were no anomalies during the preloading process of the latest version of the data, meaning that the loading and assembly of some objects in the latest version of the data was normal. To further ensure the normal loading and assembly of objects in the latest version of the data, the configuration objects are instantiated for verification. This instantiation is the operation of obtaining the configuration objects. Once the instantiation is successfully completed, the configuration objects summarized in the latest version of the data have completed initialization.
[0047] It is understood that through the above-mentioned preloading process, the object information of the configuration objects in the latest version of the data can be determined, that is, the configuration object information corresponding to the above-mentioned latest version of the data, so that the configuration objects can be instantiated in the data verification container in sequence based on the arrangement order of the configuration objects in the configuration object information. In particular, the above-mentioned configuration object information can be presented in the form of a list. That is, in the process of generating the configuration object information, each new set of data is recorded in the position after the previous data in the list, thereby obtaining configuration object information with a certain arrangement order.
[0048] In some embodiments, it is also possible to determine whether the configuration object is created in the preloading process based on the characteristics of the configuration object, and execute corresponding processing means according to the determination result of the configuration object.
[0049] Specifically, based on the above-mentioned configuration object information, the configuration objects are instantiated in sequence in the above-mentioned data verification container, which may include: obtaining the characteristics of the configuration object currently being instantiated; when the characteristics of the above-mentioned configuration object currently being instantiated meet the preset characteristics, it means that in the preloading process, the creation operation is implemented on the configuration object currently being instantiated, so in the above-mentioned data verification container, the configuration object currently being instantiated that has been created is instantiated.
[0050] In some embodiments, the above-mentioned instantiation of configuration objects in sequence in the above-mentioned data verification container based on the above-mentioned configuration object information may include: obtaining the characteristics of the configuration object currently being instantiated; when the characteristics of the above-mentioned configuration object currently being instantiated do not meet the preset characteristics, it means that the creation operation of the configuration object currently being instantiated has not been implemented in the preloading process, so the above-mentioned configuration object currently being instantiated is created in the above-mentioned data verification container, and the above-mentioned configuration object currently being instantiated that has been created is instantiated.
[0051] In some embodiments, during the process of instantiating the configuration object in the latest version data, the instantiation result of the configuration object is judged, and the instantiation result includes two results: instantiation success and instantiation failure.
[0052] Specifically, if the configuration object information indicates that all configuration objects have failed to be instantiated, indicating an anomaly in the current latest version of the data, the system stops instantiating the uninstantiated configuration objects, identifies the configuration objects that failed to be instantiated, and generates a second error message based on the configuration objects that failed to be instantiated. This second error message is then sent to the user who triggered the data refresh instruction. Furthermore, the current version of the configuration data is maintained in the container currently running the configuration data in the application system.
[0053] 104. If all configuration objects in the configuration object information are successfully instantiated, obtain personalized requirement information of the application system, and determine a target configuration object corresponding to the application system from the configuration objects based on the personalized requirement information.
[0054] In this embodiment, if all configuration objects in the latest version of the data are successfully instantiated, this indicates that no anomalies occurred during the instantiation process of the latest version of the data, further confirming that the loading and assembly of some objects in the latest version of the data is normal. To further ensure the normal operation of objects in the latest version of the data, it is necessary to identify target configuration objects with the greatest impact on the application system from among the various configuration objects in the latest version of the data, based on the different needs of the application system.
[0055] It is understandable that different application systems have configuration objects that are more important to them. Therefore, by obtaining the personalized demand information of the application system that currently needs to update the configuration data, the target configuration object can be determined from the various configuration objects of the latest version of the data based on the personalized demand information of the application system, and the target configuration object can be further verified for attributes, thereby improving the speed of attribute verification of the latest version of the data.
[0056] 105. Acquire the properties of the target configuration object and the properties of the associated objects associated with the target configuration object based on the instantiation result, and perform property verification on the target configuration object and the associated objects based on the properties.
[0057] In this embodiment, since the attributes of the configuration object in the latest version data have been assigned values during the instantiation process, the attributes of the target configuration object and the attributes of the associated objects associated with the above-mentioned target object can be determined based on the instantiation result, so as to perform attribute verification on the target configuration object and the above-mentioned associated objects based on the attributes of the two.
[0058] It is understandable that since there may be associations between different configuration objects in the configuration data, for example, one configuration object references another configuration object, or one configuration object depends on another configuration object, in order to ensure the progress of the target configuration object, it is also necessary to perform attribute verification on the associated objects associated with the target configuration object.
[0059] In some embodiments, the above-mentioned attribute verification of the above-mentioned target configuration object and the above-mentioned associated objects based on the above-mentioned attributes may include: judging the assignment status of the attributes of the above-mentioned target configuration object and the above-mentioned associated objects based on the above-mentioned attributes; if the attributes of the above-mentioned target configuration object and the above-mentioned associated objects are assigned, it is determined that the attribute verification of the above-mentioned target configuration object and the above-mentioned associated objects is successful; if there is at least one attribute in the attributes of the above-mentioned target configuration object and the above-mentioned associated objects that has not been assigned, it is determined that the attribute verification of the above-mentioned target configuration object and the above-mentioned associated objects has failed.
[0060] Furthermore, sometimes the attributes in the configuration object have corresponding importance. If it is determined that at least one attribute among the attributes of the above-mentioned target configuration object and the above-mentioned associated object has not been assigned a value, the importance of the unassigned attribute to the above-mentioned target configuration object or the above-mentioned associated object can be determined. If the importance is less than the preset threshold, it can be determined that the attribute verification of the above-mentioned target configuration object and the above-mentioned associated object is successful.
[0061] In some embodiments, during the process of performing attribute verification on the target configuration object and the associated objects in the latest version data, the attribute verification result of the configuration object will be judged, and the attribute verification result includes two results: attribute verification success and attribute verification failure.
[0062] Specifically, if attribute verification of the target configuration object and the associated object fails, indicating an anomaly in the current latest version of the data, attribute verification of the unverified attributes of the target configuration object and the associated object is stopped, and the attributes of the target configuration object or the associated object that failed attribute verification are identified. Based on the attributes of the target configuration object or the associated object that failed attribute verification, a third error message is generated and sent to the user who triggered the data refresh instruction. Furthermore, the current version of the configuration data is maintained in the container of the currently running configuration data in the application system.
[0063] 106. When the attribute verification of the target configuration object and the associated object succeeds, the configuration data is updated in the application system based on the latest version data.
[0064] In this embodiment, when the attribute verification of the target configuration object and the associated object succeeds, it indicates that the latest version of the data is normal, and the data can be updated in the application system, and the configuration objects in the updated configuration data can be loaded and assembled.
[0065] It can be understood that this embodiment comprehensively verifies the configuration objects in the configuration data in a multi-layer verification manner by loading the objects in the configuration data in real time in another container, thereby eliminating possible problems such as loading and assembly of the configuration objects, and ensuring that data updates are performed in the application system only when the latest version data is fully verified successfully, thereby ensuring the stable operation of the application system.
[0066] Furthermore, by creating another container for real-time verification, dynamic refreshing of configuration data in the application system is supported while ensuring security.
[0067] If an exception occurs in a certain step, since the verification is performed in the data verification container, the first error message, the second error message or the third error message is directly generated to report the error, that is, the information is sent to the user, so as not to affect the normal operation of the application system.
[0068] An embodiment of the present application discloses a data verification method, which includes: receiving a data refresh instruction for configuration data in an application system, creating a data verification container in response to the data refresh instruction; obtaining the latest version of the configuration data, and preloading the configuration objects in the latest version of the data in the data verification container; if all the configuration objects in the latest version of the data are successfully preloaded, obtaining configuration object information corresponding to the latest version of the data, and instantiating the configuration objects in sequence in the data verification container based on the configuration object information; if all the configuration objects in the configuration object information are successfully instantiated, obtaining personalized requirement information of the application system, and determining a target configuration object corresponding to the application system from the configuration objects based on the personalized requirement information; obtaining attributes of the target configuration object and attributes of associated objects associated with the target configuration object based on the instantiation result, and performing attribute verification on the target configuration object and the associated objects based on the attributes; when the attribute verification of the target configuration object and the associated objects is successful, updating the configuration data in the application system based on the latest version of the data, thereby reducing the limitations of data verification when updating the configuration data.
[0069] To facilitate better implementation of the data verification method provided in the embodiment of the present application, the embodiment of the present application also provides a data verification device based on the above data verification method. The meanings of the terms herein are the same as those in the above data verification method, and the specific implementation details can be referred to the description in the method embodiment.
[0070] See also Figure 2 , Figure 2 This is a structural block diagram of a data verification device provided in an embodiment of the present application, the device comprising:
[0071] The instruction receiving module 201 is used to receive a data refresh instruction for configuration data in the application system, and create a data verification container in response to the data refresh instruction;
[0072] A preloading module 202 is configured to obtain the latest version of the configuration data and preload the configuration objects in the latest version of the data into the data verification container.
[0073] Instantiation module 203 is configured to obtain configuration object information corresponding to the latest version of the data if all configuration objects in the latest version of the data are preloaded successfully, and instantiate the configuration objects in the data verification container based on the configuration object information;
[0074] The information acquisition module 204 is configured to obtain personalized requirement information of the application system if all configuration objects in the configuration object information are successfully instantiated, and determine a target configuration object corresponding to the application system from the configuration objects based on the personalized requirement information;
[0075] An attribute verification module 205 is configured to obtain attributes of the target configuration object and attributes of associated objects associated with the target configuration object based on the instantiation result, and perform attribute verification on the target configuration object and the associated objects based on the attributes;
[0076] The data updating module 206 is configured to update the configuration data in the application system based on the latest version data when the attribute verification of the target configuration object and the associated object succeeds.
[0077] In some embodiments, the data verification device further includes:
[0078] A loading stop module is used to stop preloading the configuration objects that have not been preloaded if a configuration object preloading fails in the above-mentioned latest version data, and to determine the configuration object that failed to be preloaded; a first information generation module is used to generate a first error message based on the above-mentioned configuration object that failed to be preloaded, and to send the above-mentioned first error message to the user who triggered the above-mentioned data refresh instruction.
[0079] In some embodiments, the data verification device further includes:
[0080] The instantiation stop module is used to stop the instantiation of all configuration objects in the above configuration object information if they fail to be instantiated.
[0081] Then, the instantiation of the configuration objects that have not been instantiated is stopped, and the configuration objects that failed to be instantiated are determined;
[0082] The second information generating module is configured to generate second error information based on the configuration object that failed to be instantiated, and send the second error information to the user who triggered the data refresh instruction.
[0083] In some embodiments, the preloading module 202 includes:
[0084] A first feature acquisition unit is used to acquire features of the configuration object currently being preloaded;
[0085] The creation unit is configured to create the configuration object currently being preloaded in the data verification container when a feature of the configuration object currently being preloaded meets a preset feature.
[0086] In some embodiments, the instantiation module 203 includes:
[0087] A second feature acquisition unit is used to acquire features of the configuration object currently being instantiated;
[0088] The first instantiation unit is configured to instantiate the created configuration object currently being instantiated in the data verification container when a feature of the configuration object currently being instantiated meets a preset feature.
[0089] In some embodiments, the instantiation module 203 further includes:
[0090] A third feature acquisition unit is used to acquire features of the configuration object currently being instantiated;
[0091] The second instantiation unit is used to create the configuration object currently being instantiated in the data verification container when the characteristics of the configuration object currently being instantiated do not meet the preset characteristics, and instantiate the created configuration object currently being instantiated.
[0092] In some embodiments, the attribute verification module 205 includes:
[0093] A judgment unit, configured to judge the assignment status of the attributes of the target configuration object and the associated object;
[0094] The attribute verification unit is configured to determine that the attribute verification of the target configuration object and the associated object is successful if the attributes of the target configuration object and the associated object are assigned values.
[0095] The embodiment of the present application discloses a data verification device, which is used to receive a data refresh instruction for configuration data in an application system through an instruction receiving module 201, and create a data verification container in response to the data refresh instruction; through a preloading module 202, it is used to obtain the latest version data of the configuration data, and preload the configuration objects in the latest version data in the data verification container; through an instantiation module 203, it is used to obtain the configuration object information corresponding to the latest version data if all the configuration objects in the latest version data are preloaded successfully, and instantiate the configuration objects in the data verification container in sequence based on the configuration object information; through an information acquisition module 204, it is used to obtain the configuration object information corresponding to the latest version data if all the configuration objects in the latest version data are preloaded successfully, and instantiate the configuration objects in the data verification container in sequence based on the configuration object information; If all configuration objects in the configuration object information are successfully instantiated, the personalized requirement information of the application system is obtained, and based on the personalized requirement information, the target configuration object corresponding to the application system is determined from the configuration objects. The attribute verification module 205 is used to obtain the attributes of the target configuration object and the attributes of the associated objects associated with the target configuration object based on the instantiation result, and to perform attribute verification on the target configuration object and the associated objects based on the attributes. The data update module 206 is used to update the configuration data in the application system based on the latest version data when the attribute verification of the target configuration object and the associated objects is successful. In this way, the limitations of data verification during configuration data update are reduced.
[0096] Accordingly, the embodiment of the present application also provides a computer device, which may be a terminal. Figure 3 As shown, Figure 3 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device 300 includes a processor 301 having one or more processing cores, a memory 302 having one or more computer-readable storage media, and a computer program stored in the memory 302 and executable on the processor. The processor 301 is electrically connected to the memory 302. Those skilled in the art will understand that the computer device structure shown in the figure does not constitute a limitation of the computer device, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0097] The processor 301 is the control center of the computer device 300. It uses various interfaces and lines to connect the various parts of the entire computer device 300. By running or loading software programs and / or modules stored in the memory 302 and calling data stored in the memory 302, it executes various functions of the computer device 300 and processes data, thereby monitoring the computer device 300 as a whole.
[0098] In the embodiment of the present application, the processor 301 in the computer device 300 loads instructions corresponding to one or more application processes into the memory 302 according to the following steps, and the processor 301 runs the application stored in the memory 302 to implement various functions:
[0099] Receive a data refresh instruction for configuration data in the application system, and create a data verification container in response to the data refresh instruction;
[0100] Obtain the latest version of the configuration data, and preload the configuration objects in the latest version into the data verification container.
[0101] If all configuration objects in the latest version of the data are preloaded successfully, the configuration object information corresponding to the latest version of the data is obtained, and based on the configuration object information, the configuration objects are instantiated in sequence in the data verification container;
[0102] If all configuration objects in the configuration object information are successfully instantiated, obtaining personalized requirement information of the application system, and determining a target configuration object corresponding to the application system from the configuration objects based on the personalized requirement information;
[0103] Acquire the properties of the target configuration object and the properties of the associated objects associated with the target configuration object based on the instantiation result, and perform property verification on the target configuration object and the associated objects based on the properties;
[0104] When the attribute verification of the target configuration object and the associated object succeeds, the configuration data is updated in the application system based on the latest version data.
[0105] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0106] Optional, such as Figure 3As shown, the computer device 300 further includes: a touch screen 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power supply 307. Among them, the processor 301 is electrically connected to the touch screen 303, the radio frequency circuit 304, the audio circuit 305, the input unit 306, and the power supply 307 respectively. Those skilled in the art will understand that Figure 3 The computer device structure shown in the figure does not constitute a limitation to the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0107] The touch display screen 303 can be used for displaying a graphical user interface and receiving the operation instructions that the user acts on the graphical user interface. The touch display screen 303 can include a display panel and a touch panel. Wherein, the display panel can be used for displaying the message input by the user or the message provided to the user and the various graphical user interfaces of the computer device, and these graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured using forms such as a liquid crystal display (LCD), an organic light emitting diode (OLED), and an organic light-emitting diode (OLED). The touch panel can be used for collecting the touch operation of the user thereon or near it (such as the user uses any suitable object or attachment such as a finger, a stylus on the touch panel or near the touch panel), and generates corresponding operation instructions, and the operation instruction executes corresponding program. Optionally, the touch panel can include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch message from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 301, and can receive the command sent by the processor 301 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 301 to determine the type of touch event. The processor 301 then provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 303 to realize input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize input and output functions. That is, the touch display screen 303 can also be used as part of the input unit 306 to realize the input function.
[0108] The RF circuit 304 may be used to transmit and receive RF signals, thereby establishing wireless communication with a network device or other computer device through wireless communication, and transmitting and receiving signals between the network device or other computer device.
[0109] Audio circuit 305 can be used to provide an audio interface between the user and the computer device through a speaker and microphone. Audio circuit 305 can convert received audio data into electrical signals and transmit them to the speaker, which then converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuit 305 and converted into audio data. The audio data is then output to processor 301 for processing, then transmitted via RF circuit 304 to, for example, another computer device, or to memory 302 for further processing. Audio circuit 305 may also include an earphone jack to allow communication between external headphones and the computer device.
[0110] The input unit 306 may be configured to receive input digital, character messages, or user feature messages (such as fingerprint, iris, or facial messages), and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
[0111] Power supply 307 is used to supply power to various components of computer device 300. Optionally, power supply 307 can be logically connected to processor 301 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. Power supply 307 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0112] although Figure 3 Not shown in the figure, the computer device 300 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0113] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0114] As can be seen from the above, the computer device provided by this embodiment receives a data refresh instruction for the configuration data in the application system, creates a data verification container in response to the above data refresh instruction; obtains the latest version data of the above configuration data, and preloads the configuration objects in the above latest version data in the above data verification container; if the configuration objects in the above latest version data are all preloaded successfully, the configuration object information corresponding to the above latest version data is obtained, and based on the above configuration object information, the configuration objects are instantiated in sequence in the above data verification container; if the configuration objects in the above configuration object information are all instantiated successfully, the personalized requirement information of the above application system is obtained, and based on the above personalized requirement information, the target configuration object corresponding to the above application system is determined from the above configuration objects; based on the instantiation result, the attributes of the above target configuration object and the attributes of the associated objects associated with the above target configuration object are obtained, and the attributes of the above target configuration object and the above associated objects are verified based on the above attributes; when the attributes of the above target configuration object and the above associated objects are successfully verified, the above configuration data is updated in the above application system based on the above latest version data.
[0115] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0116] To this end, an embodiment of the present application provides a computer-readable storage medium storing a plurality of computer programs, which can be loaded by a processor to execute the steps of any of the data verification methods provided in the embodiments of the present application. For example, the computer program can execute the following steps:
[0117] Receive a data refresh instruction for configuration data in the application system, and create a data verification container in response to the data refresh instruction;
[0118] Obtain the latest version of the configuration data, and preload the configuration objects in the latest version into the data verification container.
[0119] If all configuration objects in the latest version of the data are preloaded successfully, the configuration object information corresponding to the latest version of the data is obtained, and based on the configuration object information, the configuration objects are instantiated in sequence in the data verification container;
[0120] If all configuration objects in the configuration object information are successfully instantiated, obtaining personalized requirement information of the application system, and determining a target configuration object corresponding to the application system from the configuration objects based on the personalized requirement information;
[0121] Acquire the properties of the target configuration object and the properties of the associated objects associated with the target configuration object based on the instantiation result, and perform property verification on the target configuration object and the associated objects based on the properties;
[0122] When the attribute verification of the target configuration object and the associated object succeeds, the configuration data is updated in the application system based on the latest version data.
[0123] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0124] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0125] Since the computer program stored in the storage medium can execute the steps in any data verification method provided in the embodiments of the present application, the beneficial effects that can be achieved by any data verification method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0126] The above is a detailed introduction to a data verification method, device, computer equipment and storage medium provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, based on the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A data verification method, characterized in that: The method comprises: receiving a data refresh instruction for configuration data in the application system, and creating a data verification container in response to the data refresh instruction; Obtaining the latest version of the configuration data, and preloading the configuration objects in the latest version of the configuration data in the data verification container; If all configuration objects in the latest version of the data are preloaded successfully, then obtaining configuration object information corresponding to the latest version of the data, and instantiating the configuration objects in the data verification container in sequence based on the configuration object information; If all configuration objects in the configuration object information are successfully instantiated, obtaining personalized requirement information of the application system, and determining a target configuration object corresponding to the application system from the configuration objects based on the personalized requirement information; Acquire attributes of the target configuration object and attributes of an associated object associated with the target configuration object based on the instantiation result, and perform attribute verification on the target configuration object and the associated object based on the attributes; When the attribute verification of the target configuration object and the associated object succeeds, the configuration data is updated in the application system based on the latest version data.
2. The method according to claim 1, characterized in that Also includes: If a configuration object fails to be preloaded in the latest version data, then preloading of the configuration objects that have not been preloaded is stopped, and the configuration object that failed to be preloaded is determined; Based on the configuration object that failed to be preloaded, first error information is generated, and the first error information is sent to the user who triggered the data refresh instruction.
3. The method according to claim 1, characterized in that Also includes: If all configuration objects in the configuration object information fail to be instantiated, then stopping instantiating the configuration objects that have not been instantiated, and determining the configuration objects that have failed to be instantiated; Based on the configuration object that failed to be instantiated, second error information is generated, and the second error information is sent to the user who triggered the data refresh instruction.
4. The method according to claim 1, wherein The preloading of the configuration object in the latest version data includes: Get the characteristics of the configuration object currently being preloaded; When the characteristics of the configuration object currently being preloaded meet the preset characteristics, the configuration object currently being preloaded is created in the data verification container.
5. The method according to claim 4, characterized in that The instantiating of configuration objects in the data verification container in sequence based on the configuration object information includes: Get the characteristics of the configuration object currently being instantiated; When the characteristics of the configuration object currently being instantiated meet the preset characteristics, the created configuration object currently being instantiated is instantiated in the data verification container.
6. The method according to claim 4, characterized in that The instantiating of configuration objects in the data verification container in sequence based on the configuration object information includes: Get the characteristics of the configuration object currently being instantiated; When the characteristics of the configuration object currently being instantiated do not meet the preset characteristics, the configuration object currently being instantiated is created in the data verification container, and the created configuration object currently being instantiated is instantiated.
7. The method according to any one of claims 1 to 6, characterized in that The performing attribute verification on the target configuration object and the associated object based on the attribute includes: Determining the assignment status of the attributes of the target configuration object and the associated object; If the attributes of the target configuration object and the associated object are assigned values, it is determined that the attribute verification of the target configuration object and the associated object is successful.
8. A data verification device, characterized in that: The device comprises: An instruction receiving module, configured to receive a data refresh instruction for configuration data in the application system, and create a data verification container in response to the data refresh instruction; a preloading module, configured to obtain the latest version of the configuration data and preload the configuration objects in the latest version of the configuration data into the data verification container; an instantiation module, configured to obtain configuration object information corresponding to the latest version of the data if all configuration objects in the latest version of the data are preloaded successfully, and instantiate the configuration objects in the data verification container in sequence based on the configuration object information; an information acquisition module, configured to acquire personalized requirement information of the application system if all configuration objects in the configuration object information are successfully instantiated, and determine a target configuration object corresponding to the application system from the configuration objects based on the personalized requirement information; an attribute verification module, configured to obtain attributes of the target configuration object and attributes of associated objects associated with the target configuration object based on the instantiation result, and perform attribute verification on the target configuration object and the associated objects based on the attributes; The data updating module is configured to update the configuration data in the application system based on the latest version data when the attribute verification of the target configuration object and the associated object succeeds.
9. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and running on the processor, wherein when the processor executes the program, the data verification method according to any one of claims 1 to 7 is implemented.
10. A storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the data verification method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Data verification method, apparatus and device for object type in database and medium
CN109165209A
Page data verification method and device, electronic equipment and storage medium
CN111857883A