Variable comparison method and device and electronic equipment
By obtaining and comparing the variable configuration list, the target variable value is determined, which solves the problem of low accuracy and efficiency of the variable comparison method and improves the reliability and stability of application deployment.
Patent Information
- Application Number
- CN202410795398.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-01
AI Technical Summary
Variable comparison methods in the prior art have low accuracy and low configuration efficiency, resulting in application deployment failure or unstable operation.
By obtaining the variable configuration list of the deployed environment and the environment to be verified, comparing according to the variable comparison rules, obtaining the verification results and determining the target variable value, the accuracy and efficiency of the variable comparison are improved.
It improves the accuracy of variable comparison and configuration efficiency, reduces the probability of application deployment failure, and ensures the accuracy and consistency of variable values.
Smart Images

Figure CN118733059A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data analysis in the field of financial technology, and specifically, to a variable comparison method, device and electronic device. Background Art
[0002] IT systems generally use different values for the same variable during the development and deployment phases, such as the port number that the server listens to, the database address that needs to be connected, etc. And for the same variable, when deployed to different environments, you may need to configure different environment values. If the variable value is configured incorrectly, it is likely to cause the application deployment to fail, or the deployment to succeed but fail to run.
[0003] In the traditional way, it is necessary to manually confirm whether the deployment value of the variable is set correctly. When faced with a large number of variables, omissions are inevitable, resulting in application deployment failure. The present invention proposes a method for automatic variable comparison to improve the efficiency and accuracy of variable comparison and reduce the probability of application deployment failure. Summary of the invention
[0004] The main purpose of the present application is to provide a variable comparison method, device and electronic device to solve the technical problems of inaccurate variable comparison and low configuration efficiency in the variable comparison method in the related art.
[0005] In order to achieve the above purpose, according to one aspect of the present application, a variable comparison method is provided. The method includes: obtaining a first variable configuration list of a first environment, and obtaining a second variable configuration list of a second environment, wherein the first environment is a system environment that has been deployed, and the second environment is a system environment to be verified; comparing the first variable in the first variable configuration list with the second variable matching the first variable in the second variable configuration list according to the variable comparison rule; when the variable value of the first variable and the variable value of the second variable do not meet the numerical verification condition, obtaining the verification results of the first variable and the second variable; and determining the target variable value of the second variable according to the verification result.
[0006] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a variable comparison device is provided. The device includes: a first acquisition unit, which acquires a first variable configuration list of a first environment, and acquires a second variable configuration list of a second environment, wherein the first environment is a system environment that has been deployed, and the second environment is a system environment to be verified; a comparison unit, which compares the first variable in the first variable configuration list with the second variable matching the first variable in the second variable configuration list according to the variable comparison rule; a second acquisition unit, which acquires the verification results of the first variable and the second variable when the variable value of the first variable and the variable value of the second variable do not meet the numerical verification condition; and a determination unit, which determines the target variable value of the second variable according to the verification result.
[0007] Optionally, the variable comparison device also includes: a first verification unit, used to obtain the second variable matching the first variable from the second variable configuration list; when the second variable value of the second variable does not meet the type verification condition indicated by the variable type of the second variable, display a first prompt message, wherein the first prompt message is used to indicate that the second variable value of the second variable is a variable value to be revised; when the second variable value of the second variable meets the type verification condition indicated by the variable type of the second variable, obtain a comparison result between the first variable value and the second variable value.
[0008] Optionally, the first verification unit includes: a second verification unit, used to determine that the second variable does not meet the configuration verification condition when failing to obtain the second variable matching the first variable from the second variable configuration list; and display a second prompt message according to the configuration verification condition, wherein the second prompt message is used to indicate that the second variable matching the first variable does not exist in the second environment.
[0009] Optionally, the first verification unit includes: a third verification unit, used to determine that the second variable does not satisfy the above-mentioned numerical verification condition when the variable value of the above-mentioned first variable is the same as the variable value of the above-mentioned second variable, and the above-mentioned second variable is a variable of the target type; display a third prompt message according to the above-mentioned numerical verification condition, wherein the third prompt message is used to indicate that the above-mentioned second variable is the variable to be verified; when the variable value of the above-mentioned first variable is the same as the variable value of the above-mentioned second variable, and the above-mentioned second variable is not a variable of the above-mentioned target type, determine that the above-mentioned second variable satisfies the above-mentioned numerical verification condition; and determine the above-mentioned second variable value as the above-mentioned target variable value.
[0010] Optionally, the first verification unit includes: a first display unit, used to display a fourth prompt information, wherein the fourth prompt information is used to indicate that the second variable is the variable to be verified; when a confirmation operation on the fourth prompt information is received, the second variable value is determined as the target variable value; when an editing operation on the second variable value is received, the variable value received according to the editing operation is determined as the target variable value of the second variable.
[0011] Optionally, the first acquisition unit includes: a second display unit, used to acquire a variable set that does not meet the verification conditions in the second variable set indicated by the second variable configuration list, wherein the variable set includes multiple reference variables that have not passed the verification, and the verification conditions include the numerical verification conditions, type verification conditions, and configuration verification conditions; displaying a verification interface according to the variable set, wherein the verification interface includes a display area for respectively displaying the verification results of the reference variables; and determining the target variable value that matches each of the reference variables according to the touch operation received in the verification interface.
[0012] Optionally, the first acquisition unit includes: a third display unit, used to display variable information of the current reference variable in the current display area matching the current reference variable in the verification interface, wherein the variable information includes variable name information and variable value information of the current reference variable; display verification prompt information matching the current reference variable in the current display area, wherein the verification prompt information is used to indicate the verification condition that the current reference variable does not meet; display a confirmation control and an edit control in the current display area, wherein the confirmation control is used to determine the current variable value of the current reference variable as the target variable value matching the current reference variable, and the edit control is used to obtain the target variable value configured for the current reference variable.
[0013] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned variable comparison method when running.
[0014] In order to achieve the above object, according to another aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above variable comparison method.
[0015] In order to achieve the above object, according to another aspect of the present application, a processor is provided for running a program, wherein the variable comparison method is executed when the program is running.
[0016] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an electronic device is provided, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors execute the above-mentioned variable comparison method.
[0017] Through the present application, the following steps are adopted: obtaining a first variable configuration list of a first environment, and obtaining a second variable configuration list of a second environment, wherein the first environment is a system environment that has been deployed, and the second environment is a system environment to be verified; comparing the first variable in the first variable configuration list with the second variable that matches the first variable in the second variable configuration list according to the variable comparison rule; obtaining the verification result of the first variable and the second variable when the variable value of the first variable and the variable value of the second variable do not meet the numerical verification condition; determining the target variable value of the second variable according to the verification result, thereby solving the technical problems of low accuracy and low configuration efficiency of the variable comparison method in the related art, thereby improving the accuracy and configuration efficiency of the variable comparison. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0019] Figure 1 is a flow chart of a variable comparison method provided according to an embodiment of the present application;
[0020] Figure 2 is a schematic diagram of a variable comparison method provided according to an embodiment of the present application;
[0021] Figure 3 is a schematic diagram of another variable comparison method provided according to an embodiment of the present application;
[0022] Figure 4 is a schematic diagram of another variable comparison method provided according to an embodiment of the present application;
[0023] Figure 5 is a schematic diagram of another variable comparison method provided according to an embodiment of the present application;
[0024] Figure 6 is a schematic diagram of another variable comparison method provided according to an embodiment of the present application;
[0025] Figure 7 is a schematic diagram of another variable comparison method provided according to an embodiment of the present application;
[0026] Figure 8 is a flow chart of another variable comparison method provided according to an embodiment of the present application;
[0027] Fig. 9 is a schematic structural diagram of an optional variable comparison device provided according to an embodiment of the present application;
[0028] Fig.10 It is a schematic diagram of the structure of an optional electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0029] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0030] The variable comparison method, device and electronic device in this application can be used in the field of financial technology, and can also be used in any other field with variable comparison-related data analysis except the field of financial technology. The application field of the variable comparison method, device and electronic device in this application is not limited.
[0031] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] It should be noted that the relevant information (including but not limited to variable information) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. The acquisition, storage, processing, etc. of data involved in this application are in compliance with relevant regulations, the collected information is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with relevant laws, regulations and standards of relevant regions, necessary confidentiality measures are taken, public order and good customs are not violated, and corresponding operation entrances are provided for users to choose to authorize or refuse.
[0034] The present invention is described below in conjunction with preferred implementation steps. Figure 1 is a flow chart of a variable comparison method provided in an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0035] S102, obtaining a first variable configuration list of a first environment, and obtaining a second variable configuration list of a second environment, wherein the first environment is a system environment that has been deployed, and the second environment is a system environment to be verified;
[0036] S104, comparing the first variable in the first variable configuration list with the second variable matching the first variable in the second variable configuration list according to the variable comparison rule;
[0037] S106, when the variable value of the first variable and the variable value of the second variable do not satisfy the numerical verification condition, obtaining the verification result of the first variable and the second variable;
[0038] S108, determining the target variable value of the second variable according to the verification result.
[0039] It should be noted that the present application can be used in the configuration variable comparison scenario between the bank development environment and the deployment environment. The variable configuration list in the above S102 can be, but not limited to, in the form of a text table, JSON format, YAML format, Excel form, database, etc.; the content in the variable configuration list can include, but not limited to: variable name, variable type, default value, description, configuration example, etc.; this is only an example, and no specific limitation is imposed on the above variable configuration list;
[0040] Further, a first variable configuration list of a first environment is obtained, and a second variable configuration list of a second environment is obtained, wherein the first environment is a system environment that has been deployed, and the second environment is a system environment to be verified, which is only an example and does not specifically limit the above process;
[0041] In the above S104, the first variable in the first variable configuration list is compared with the second variable in the second variable configuration list that matches the first variable according to the variable comparison rule. Specifically, the database type, host address, port number, user name, password, parameter value, etc. of the first variable and the second variable, or at least one of the above, can be used as the comparison object to determine the variable comparison rule. This is only an example, and the above comparison process and method are not specifically limited;
[0042] It should be noted that, in step S106, the above verification conditions may be, but are not limited to, data type conditions, optional value conditions, length conditions, format conditions, logic conditions, range conditions, etc., which is only an example and does not impose specific restrictions on the above verification conditions; the above verification results include, but are not limited to: variable value verification results, variable type verification results, variable integrity verification results, variable dependency verification results, variable association verification results, etc., which is only an example and does not impose specific restrictions on the above verification results;
[0043] As an optional implementation, in the above S106, when the variable value of the first variable and the variable value of the second variable do not meet the numerical verification condition, the verification result of the first variable and the second variable is obtained;
[0044] In the above S108, the target variable value of the second variable is determined according to the verification result. As an optional implementation, when the verification result indicates that the variable value of the second variable is not within the correct range, the value recorded in the development manual can be used as the target variable value. It should be noted that in this solution, the variable value does not only represent the numerical value of the variable, but also includes the variable environment value, type value, etc. This is only an example and is not specifically limited.
[0045] The variable comparison method provided in the embodiment of the present application obtains a first variable configuration list for a first environment and obtains a second variable configuration list for a second environment, wherein the first environment is a system environment that has been deployed and the second environment is a system environment to be verified; the first variable in the first variable configuration list is compared with the second variable that matches the first variable in the second variable configuration list according to the variable comparison rule; when the variable value of the first variable and the variable value of the second variable do not meet the numerical verification condition, the verification result of the first variable and the second variable is obtained; and the target variable value of the second variable is determined according to the verification result. The technical problems of accuracy and complex management of the variable comparison method in the related art are solved, thereby improving the accuracy and management efficiency of the variable comparison.
[0046] As an optional solution, the above-mentioned comparing the first variable in the first variable configuration list with the second variable matching the first variable in the second variable configuration list according to the variable comparison rule includes:
[0047] S1, obtaining a second variable matching the first variable from a second variable configuration list;
[0048] S2, when the second variable value of the second variable does not satisfy the type verification condition indicated by the variable type of the second variable, displaying first prompt information, wherein the first prompt information is used to indicate that the second variable value of the second variable is a variable value to be revised;
[0049] S3, when the second variable value of the second variable satisfies the type verification condition indicated by the variable type of the second variable, obtaining a comparison result between the first variable value and the second variable value.
[0050] As an optional implementation, in S1, a second variable matching the first variable is obtained from the second variable configuration list; specifically, the second variable having the same variable name as the first variable can be obtained from the second configuration list but is not limited to it. This is only an example and does not specifically limit the method of obtaining the second variable.
[0051] As an optional implementation, in step S2, when the second variable value of the second variable does not satisfy the type verification condition indicated by the variable type of the second variable, a first prompt information is displayed, and the first prompt information is used to indicate that the second variable value of the second variable is a variable value to be revised, such as Figure 2 As shown, this is only an example and does not specifically limit the display interface;
[0052] Further, in step S3, when the second variable value of the second variable satisfies the type verification condition indicated by the variable type of the second variable, a comparison result of the first variable value and the second variable value is obtained. It can be understood that the comparison result includes but is not limited to unpaired variables, unequal variable values, incorrect variable value configuration, etc. This is only an example and no specific limitation is made.
[0053] The variable comparison method provided in the embodiment of the present application obtains a second variable matching the first variable from a second variable configuration list; when the second variable value of the second variable does not satisfy the type verification condition indicated by the variable type of the second variable, displays a first prompt message, wherein the first prompt message is used to indicate that the second variable value of the second variable is a variable value to be revised; when the second variable value of the second variable satisfies the type verification condition indicated by the variable type of the second variable, obtains a comparison result of the first variable value and the second variable value, uses the type verification condition to compare and verify the variables, and improves the efficiency and accuracy of variable comparison.
[0054] As an optional solution, after obtaining the first variable configuration list of the first environment and obtaining the second variable configuration list of the second environment, the method further includes:
[0055] S1, in the case where obtaining a second variable matching the first variable from the second variable configuration list fails, determining that the second variable does not satisfy a configuration verification condition;
[0056] S2. Displaying second prompt information according to the configuration verification condition, wherein the second prompt information is used to indicate that there is no second variable matching the first variable in the second environment.
[0057] In step S1, in the case of failure to obtain a second variable matching the first variable from the second variable configuration list, determining that the second variable does not satisfy the configuration verification condition;
[0058] As an optional implementation, in step S2, a second prompt information is displayed according to the configuration verification condition, wherein the second prompt information is used to indicate that there is no second variable matching the first variable in the second environment, such as Figure 3 As shown, this is only an example and does not specifically limit the display interface;
[0059] The variable comparison method provided in the embodiment of the present application determines that the second variable does not meet the configuration verification condition when failing to obtain the second variable matching the first variable from the second variable configuration list; displays a second prompt message according to the configuration verification condition, wherein the second prompt message is used to indicate that there is no second variable matching the first variable in the second environment, and compares the variables in batches and displays the prompt message, thereby solving the technical problems of low accuracy and efficiency of the variable comparison method in the prior art.
[0060] As an optional solution, after comparing the first variable in the first variable configuration list with the second variable matching the first variable in the second variable configuration list according to the variable comparison rule, the method further includes:
[0061] S1, when the variable value of the first variable is the same as the variable value of the second variable and the second variable is a variable of the target type, determining that the second variable does not meet the numerical verification condition; displaying a third prompt information according to the numerical verification condition, wherein the third prompt information is used to indicate that the second variable is a variable to be verified;
[0062] S2, when the variable value of the first variable is the same as the variable value of the second variable and the second variable is not a variable of the target type, determine that the second variable satisfies the numerical verification condition; and determine the second variable value as the target variable value.
[0063] As an optional implementation, in step S1, when the variable value of the first variable is the same as the variable value of the second variable and the second variable is a variable of the target type, it is determined that the second variable does not meet the numerical verification condition; it should be noted that, for example, there is a configuration variable of type A in the deployment environment and a configuration variable of type B in the development environment whose variable value is equal, but the configuration variable A and the configuration variable B are not actually corresponding variables (that is, the two variables are actually unrelated and the variable values are not equal), it is determined that the second variable (such as variable A) does not meet the numerical verification condition; further, a third prompt information is displayed according to the numerical verification condition, and the third prompt information is used to indicate that the second variable is a variable to be verified, such as Figure 4 The above is only an example and does not limit the above process.
[0064] In step S2, when the variable value of the first variable is the same as the variable value of the second variable and the second variable is not a variable of the target type, it is determined that the second variable meets the numerical verification condition; and the second variable value is determined as the target variable value;
[0065] The variable comparison method provided in the embodiment of the present application determines that the second variable does not meet the numerical verification condition when the variable value of the first variable is the same as the variable value of the second variable and the second variable is a variable of the target type; displays a third prompt information according to the numerical verification condition, wherein the third prompt information is used to indicate that the second variable is the variable to be verified; determines that the second variable meets the numerical verification condition when the variable value of the first variable is the same as the variable value of the second variable and the second variable is not a variable of the target type; determines the second variable value as the target variable value, and compares and verifies the variable according to the numerical verification condition, thereby solving the technical problems of low accuracy and efficiency of the variable comparison method in the prior art.
[0066] As an optional solution, when the variable value of the first variable and the variable value of the second variable do not meet the numerical verification condition, obtaining the verification result of the first variable and the second variable includes:
[0067] S1, displaying fourth prompt information, wherein the fourth prompt information is used to indicate that the second variable is a variable to be verified;
[0068] S2, when a confirmation operation on the fourth prompt information is received, determining the second variable value as the target variable value;
[0069] S3, when an editing operation on the second variable value is received, determining the variable value received according to the editing operation as the target variable value of the second variable.
[0070] It can be understood that step S1 displays the fourth prompt information, and the fourth prompt information is used to indicate that the second variable is a variable to be verified;
[0071] As an optional implementation manner, in step S2, upon receiving a confirmation operation on the fourth prompt information, the second variable value is determined as the target variable value;
[0072] As another optional implementation, in step S3, when an edit operation on the second variable value is received, the variable value received according to the edit operation is determined as the target variable value of the second variable, such as Figure 5 As shown, this is only an example and does not specifically limit the display interface;
[0073] The variable comparison method provided in the embodiment of the present application displays a fourth prompt information, wherein the fourth prompt information is used to indicate that the second variable is a variable to be verified; when a confirmation operation on the fourth prompt information is received, the second variable value is determined as the target variable value; when an edit operation on the second variable value is received, the variable value received according to the edit operation is determined as the target variable value of the second variable, and the variables are compared and verified in batches, and the results are confirmed and the editing operation is performed to modify the variables with configuration errors, thereby solving the technical problems of low accuracy and low configuration efficiency in the variable comparison method in the prior art.
[0074] As an optional solution, after obtaining the first variable configuration list of the first environment and obtaining the second variable configuration list of the second environment, the method further includes:
[0075] S1, obtaining a variable set that does not meet a verification condition in a second variable set indicated by a second variable configuration list, wherein the variable set includes a plurality of reference variables that have not passed the verification, and the verification condition includes a value verification condition, a type verification condition, and a configuration verification condition;
[0076] S2, displaying a verification interface according to the variable set, wherein the verification interface includes a display area for respectively displaying verification results of the reference variables;
[0077] S3, determining a target variable value matching each reference variable according to the touch operation received in the verification interface.
[0078] In an optional implementation, a variable set that does not meet the verification condition in the second variable set indicated by the second variable configuration list is obtained, wherein the variable set includes multiple reference variables that have not passed the verification, and the verification condition includes a numerical verification condition, a type verification condition, and a configuration verification condition. This is only an example and does not specifically limit the above process;
[0079] It can be understood that in step S2, a verification interface is displayed according to the variable set, and the verification interface includes a display area for displaying the verification results of the reference variables respectively, such as Figure 6As shown, this is only an example and does not specifically limit the display interface;
[0080] Further, in step S3, a target variable value matching each reference variable is determined according to the touch operation received in the verification interface. This is only an example and does not impose any specific limitation on the display interface.
[0081] The variable comparison method provided in the embodiment of the present application obtains a variable set that does not meet the verification conditions in the second variable set indicated by the second variable configuration list, wherein the variable set includes multiple reference variables that have not passed the verification, and the verification conditions include numerical verification conditions, type verification conditions, and configuration verification conditions; a verification interface is displayed according to the variable set, wherein the verification interface includes a display area for respectively displaying the verification results of the reference variables; based on the touch operation received in the verification interface, a target variable value matching each reference variable is determined, and the accuracy and efficiency of the variable comparison and configuration are improved by displaying the reason for the failure of the variable verification and being able to further perform the touch operation modification.
[0082] As an optional solution, the verification interface is displayed based on the variable set, including:
[0083] S1, displaying variable information of the current reference variable in the current display area matching the current reference variable in the verification interface, wherein the variable information includes variable name information and variable value information of the current reference variable;
[0084] S2, displaying verification prompt information matching the current reference variable in the current display area, wherein the verification prompt information is used to indicate the verification condition that the current reference variable does not meet;
[0085] S3, displaying a confirmation control and an edit control in the current display area, wherein the confirmation control is used to determine the current variable value of the current reference variable as the target variable value matching the current reference variable, and the edit control is used to obtain the target variable value configured for the current reference variable;
[0086] As an optional implementation, in step S1, variable information of the current reference variable is displayed in the current display area matching the current reference variable in the verification interface, and the variable information includes variable name information and variable value information of the current reference variable. This is only an example and does not specifically limit the display interface.
[0087] Further, in step S2, verification prompt information matching the current reference variable is displayed in the current display area, and the verification prompt information is used to indicate the verification condition that the current reference variable does not meet. This is only an example and does not specifically limit the display interface;
[0088] In step S3, a confirmation control and an edit control are displayed in the current display area. The confirmation control is used to determine the current variable value of the current reference variable as the target variable value matching the current reference variable. The edit control is used to obtain the target variable value configured for the current reference variable, such as Figure 7 As shown, this is only an example and does not specifically limit the display interface;
[0089] The variable comparison method provided in the embodiment of the present application displays variable information of the current reference variable in the current display area that matches the current reference variable in the verification interface, wherein the variable information includes variable name information and variable value information of the current reference variable; displays verification prompt information that matches the current reference variable in the current display area, wherein the verification prompt information is used to indicate the verification conditions that the current reference variable does not meet; displays a confirmation control and an edit control in the current display area, wherein the confirmation control is used to determine the current variable value of the current reference variable as a target variable value that matches the current reference variable, and the edit control is used to obtain the target variable value configured for the current reference variable, thereby improving the accuracy and efficiency of variable comparison.
[0090] The following is a complete example to illustrate this solution:
[0091] The process of variable comparison method Figure 8 As shown,
[0092] S802, prepare a development environment variable list and a deployment environment variable list, specifically, collect the variables involved in the development environment and the deployment environment into a table file, including information such as variable name, variable value, and environment where the variable is located;
[0093] S804, performing variable comparison, specifically, performing comparison based on the parameter file, and performing value comparison for each parameter in the parameter file one by one;
[0094] S806, determining whether the variables exist at the same time and have the same value; it is understandable that the variable value not only represents the numerical value, but also includes the variable type value, the variable environment value, etc., which are not specifically limited here;
[0095] As an optional implementation, parameter types are distinguished. Specifically, each parameter has a type identifier, which is divided into two types: environment variables and version variables. Environment variables refer to variable values that vary with different environments, such as dev in the development environment, test in the test environment, and prod in the production environment. Version variables refer to variable values that vary with different production versions, such as season1 for the first quarter version and season2 for the second quarter version.
[0096] As another optional implementation, variable validity check, specifically, each variable has a value type identifier, such as text type, date type, JSON type, etc. If the variable value does not conform to the type identification, it is directly determined that the comparison fails and a configuration error prompt is generated;
[0097] As another optional implementation, variable value comparison, specifically, for each variable, first check whether it exists in both the development environment and the deployment environment. If it does not exist in either side, directly generate a variable unpaired error prompt. For version variables, the deployment environment is generally the correct value, and the development environment value and the deployment environment value can be directly compared. If the values are completely equal, the comparison passes, otherwise the comparison fails. For environment variables, the deployment personnel need to maintain the target value to the deployment environment, and then export it for comparison with the development environment value. If the values are completely equal, the comparison passes, otherwise it fails.
[0098] If the variables do not exist and have equal values at the same time, S808 is executed for manual confirmation. Specifically, the variables that failed the comparison are manually checked and confirmed, and the variables that failed the comparison are displayed on a web page. The variable name, variable value, and reason for the comparison failure are provided, such as variable value configuration error, variable unpaired, variable values are not equal, and a pass or fail button is provided. Based on actual needs, developers confirm whether the inconsistent variable values are configuration errors or real needs. For variables that are indeed misconfigured, a variable value modification button is provided to support continued comparison after modification until the comparison passes; otherwise, the comparison ends;
[0099] As an optional implementation, intelligent diagnosis can be performed. Specifically, for some variables with specific purposes, the system will automatically perform some rationality diagnosis and correction recommendations. For example, for variables with the PASSWORD keyword in the variable name, which are generally used as passwords, the system will automatically diagnose whether the length and complexity of the password meet a certain strength. If not, it will prompt to make corrections. For variables with URLs in the name, which are generally URL addresses, it will check whether the HTTPS protocol is used. If not, it will prompt to make corrections.
[0100] Execute S810 to determine whether it is indeed necessary to configure a different value. If not, execute S812 to correct the variable value. Otherwise, end.
[0101] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0102] The embodiment of the present application also provides a variable comparison device. It should be noted that the variable comparison device of the embodiment of the present application can be used to execute the variable comparison method provided in the embodiment of the present application. The variable comparison device provided in the embodiment of the present application is introduced below.
[0103] Fig. 9 Schematic diagram of a variable comparison device according to an embodiment of the present application. Fig. 9 As shown, the device comprises:
[0104] A first acquisition unit 902 acquires a first variable configuration list of a first environment, and acquires a second variable configuration list of a second environment, wherein the first environment is a system environment that has been deployed, and the second environment is a system environment to be verified;
[0105] A comparison unit 904 compares the first variable in the first variable configuration list with the second variable in the second variable configuration list that matches the first variable according to a variable comparison rule;
[0106] A second obtaining unit 906, when the variable value of the first variable and the variable value of the second variable do not satisfy the numerical verification condition, obtains the verification result of the first variable and the second variable;
[0107] The determination unit 908 determines the target variable value of the second variable according to the verification result.
[0108] Optionally, the variable comparison device also includes: a first verification unit, used to obtain the second variable matching the first variable from the second variable configuration list; when the second variable value of the second variable does not meet the type verification condition indicated by the variable type of the second variable, display a first prompt message, wherein the first prompt message is used to indicate that the second variable value of the second variable is a variable value to be revised; when the second variable value of the second variable meets the type verification condition indicated by the variable type of the second variable, obtain a comparison result between the first variable value and the second variable value.
[0109] Optionally, the first verification unit includes: a second verification unit, used to determine that the second variable does not meet the configuration verification condition when failing to obtain the second variable matching the first variable from the second variable configuration list; and display a second prompt message according to the configuration verification condition, wherein the second prompt message is used to indicate that the second variable matching the first variable does not exist in the second environment.
[0110] Optionally, the first verification unit includes: a third verification unit, used to determine that the second variable does not satisfy the above-mentioned numerical verification condition when the variable value of the above-mentioned first variable is the same as the variable value of the above-mentioned second variable, and the above-mentioned second variable is a variable of the target type; display a third prompt message according to the above-mentioned numerical verification condition, wherein the third prompt message is used to indicate that the above-mentioned second variable is the variable to be verified; when the variable value of the above-mentioned first variable is the same as the variable value of the above-mentioned second variable, and the above-mentioned second variable is not a variable of the above-mentioned target type, determine that the above-mentioned second variable satisfies the above-mentioned numerical verification condition; and determine the above-mentioned second variable value as the above-mentioned target variable value.
[0111] Optionally, the first verification unit includes: a first display unit, used to display a fourth prompt information, wherein the fourth prompt information is used to indicate that the second variable is the variable to be verified; when a confirmation operation on the fourth prompt information is received, the second variable value is determined as the target variable value; when an editing operation on the second variable value is received, the variable value received according to the editing operation is determined as the target variable value of the second variable.
[0112] Optionally, the first acquisition unit includes: a second display unit, used to acquire a variable set that does not meet the verification conditions in the second variable set indicated by the second variable configuration list, wherein the variable set includes multiple reference variables that have not passed the verification, and the verification conditions include the numerical verification conditions, type verification conditions, and configuration verification conditions; displaying a verification interface according to the variable set, wherein the verification interface includes a display area for respectively displaying the verification results of the reference variables; and determining the target variable value that matches each of the reference variables according to the touch operation received in the verification interface.
[0113] Optionally, the first acquisition unit includes: a third display unit, used to display variable information of the current reference variable in the current display area matching the current reference variable in the verification interface, wherein the variable information includes variable name information and variable value information of the current reference variable; display verification prompt information matching the current reference variable in the current display area, wherein the verification prompt information is used to indicate the verification condition that the current reference variable does not meet; display a confirmation control and an edit control in the current display area, wherein the confirmation control is used to determine the current variable value of the current reference variable as the target variable value matching the current reference variable, and the edit control is used to obtain the target variable value configured for the current reference variable.
[0114] Optionally, in this embodiment, the embodiments to be implemented by the above-mentioned various unit modules can refer to the above-mentioned various method embodiments, which will not be repeated here.
[0115] The variable comparison device provided in the embodiment of the present application comprises a first acquisition unit, which acquires a first variable configuration list of a first environment, and acquires a second variable configuration list of a second environment, wherein the first environment is a system environment that has been deployed, and the second environment is a system environment to be verified; a comparison unit, which compares the first variable in the first variable configuration list with the second variable matching the first variable in the second variable configuration list according to the variable comparison rule; a second acquisition unit, which acquires the verification result of the first variable and the second variable when the variable value of the first variable and the variable value of the second variable do not meet the numerical verification condition; and a determination unit, which determines the target variable value of the second variable according to the verification result.
[0116] The variable comparison device includes a processor and a memory. The first acquisition unit, comparison unit, second acquisition unit, determination unit, etc. are all stored in the memory as program units. The processor executes the program units stored in the memory to implement corresponding functions.
[0117] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the efficiency of modifying and improving the program can be improved by adjusting the kernel parameters.
[0118] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0119] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, a variable comparison method is implemented.
[0120] An embodiment of the present invention provides a processor, which is used to run a program, wherein a variable comparison method is executed when the program is running.
[0121] The present application also provides an electronic device for implementing the above variable comparison method. The electronic device may be as follows: Fig.10 The terminal device or server shown in FIG. This embodiment is described by taking the electronic device as an example. Fig.10As shown, the electronic device includes a memory 1002 and a processor 1004. The memory 1002 stores a computer program, and the memory 1002 may include, but is not limited to, the first acquisition unit 902, the comparison unit 904, the second acquisition unit 906, and the determination unit 908 in the above-mentioned variable comparison device. The processor 1004 is configured to execute the above-mentioned variable comparison method through the computer program. When the processor 1004 executes the program, the following steps are implemented:
[0122] Obtain a first variable configuration list for a first environment, and obtain a second variable configuration list for a second environment, wherein the first environment is a system environment that has been deployed, and the second environment is a system environment to be verified; compare the first variable in the first variable configuration list with the second variable that matches the first variable in the second variable configuration list according to a variable comparison rule; if the variable value of the first variable and the variable value of the second variable do not meet the numerical verification condition, obtain the verification results of the first variable and the second variable; determine the target variable value of the second variable according to the verification result.
[0123] The first variable in the first variable configuration list is compared with the second variable in the second variable configuration list that matches the first variable according to the variable comparison rule, including: obtaining the second variable that matches the first variable from the second variable configuration list; if the second variable value of the second variable does not satisfy the type verification condition indicated by the variable type of the second variable, displaying first prompt information, wherein the first prompt information is used to indicate that the second variable value of the second variable is a variable value to be revised; if the second variable value of the second variable satisfies the type verification condition indicated by the variable type of the second variable, obtaining a comparison result between the first variable value and the second variable value;
[0124] After obtaining the first variable configuration list of the first environment and the second variable configuration list of the second environment, the method further includes: in the case where obtaining the second variable matching the first variable from the second variable configuration list fails, determining that the second variable does not meet the configuration verification condition; and displaying second prompt information according to the configuration verification condition, wherein the second prompt information is used to indicate that the second variable matching the first variable does not exist in the second environment;
[0125] After comparing the first variable in the first variable configuration list with the second variable in the second variable configuration list that matches the first variable according to the variable comparison rule, the method further includes: when the variable value of the first variable is the same as the variable value of the second variable and the second variable is a variable of the target type, determining that the second variable does not meet the numerical verification condition; displaying a third prompt information according to the numerical verification condition, wherein the third prompt information is used to indicate that the second variable is a variable to be verified; when the variable value of the first variable is the same as the variable value of the second variable and the second variable is not a variable of the target type, determining that the second variable meets the numerical verification condition; and determining the second variable value as the target variable value;
[0126] In the case that the variable value of the above-mentioned first variable and the variable value of the above-mentioned second variable do not meet the numerical verification conditions, the verification results of the above-mentioned first variable and the above-mentioned second variable are obtained, including: displaying a fourth prompt information, wherein the above-mentioned fourth prompt information is used to indicate that the above-mentioned second variable is the variable to be verified; in the case of receiving a confirmation operation on the above-mentioned fourth prompt information, determining the above-mentioned second variable value as the above-mentioned target variable value; in the case of receiving an editing operation on the above-mentioned second variable value, determining the variable value received according to the above-mentioned editing operation as the above-mentioned target variable value of the above-mentioned second variable.
[0127] After obtaining the first variable configuration list of the first environment and the second variable configuration list of the second environment, it also includes: obtaining the variable set that does not meet the verification conditions in the second variable set indicated by the above-mentioned second variable configuration list, wherein the above-mentioned variable set includes multiple reference variables that have not passed the verification, and the above-mentioned verification conditions include the above-mentioned numerical verification conditions, type verification conditions, and configuration verification conditions; displaying a verification interface according to the above-mentioned variable set, wherein the above-mentioned verification interface includes a display area for respectively displaying the verification results of the above-mentioned reference variables; and determining the above-mentioned target variable value matching each of the above-mentioned reference variables according to the touch operation received in the above-mentioned verification interface.
[0128] Displaying a verification interface according to a variable set includes: displaying variable information of the current reference variable in a current display area matching the current reference variable in the verification interface, wherein the variable information includes variable name information and variable value information of the current reference variable; displaying verification prompt information matching the current reference variable in the current display area, wherein the verification prompt information is used to indicate the verification condition that the current reference variable does not meet; displaying a confirmation control and an edit control in the current display area, wherein the confirmation control is used to determine the current variable value of the current reference variable as the target variable value matching the current reference variable, and the edit control is used to obtain the target variable value configured for the current reference variable.
[0129] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0130] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing the following method steps:
[0131] Obtain a first variable configuration list for a first environment, and obtain a second variable configuration list for a second environment, wherein the first environment is a system environment that has been deployed, and the second environment is a system environment to be verified; compare the first variable in the first variable configuration list with the second variable that matches the first variable in the second variable configuration list according to a variable comparison rule; if the variable value of the first variable and the variable value of the second variable do not meet the numerical verification condition, obtain the verification results of the first variable and the second variable; determine the target variable value of the second variable according to the verification result.
[0132] The first variable in the first variable configuration list is compared with the second variable in the second variable configuration list that matches the first variable according to the variable comparison rule, including: obtaining the second variable that matches the first variable from the second variable configuration list; if the second variable value of the second variable does not satisfy the type verification condition indicated by the variable type of the second variable, displaying first prompt information, wherein the first prompt information is used to indicate that the second variable value of the second variable is a variable value to be revised; if the second variable value of the second variable satisfies the type verification condition indicated by the variable type of the second variable, obtaining a comparison result between the first variable value and the second variable value;
[0133] After obtaining the first variable configuration list of the first environment and the second variable configuration list of the second environment, the method further includes: in the case where obtaining the second variable matching the first variable from the second variable configuration list fails, determining that the second variable does not meet the configuration verification condition; and displaying second prompt information according to the configuration verification condition, wherein the second prompt information is used to indicate that the second variable matching the first variable does not exist in the second environment;
[0134] After comparing the first variable in the first variable configuration list with the second variable in the second variable configuration list that matches the first variable according to the variable comparison rule, the method further includes: when the variable value of the first variable is the same as the variable value of the second variable and the second variable is a variable of the target type, determining that the second variable does not meet the numerical verification condition; displaying a third prompt information according to the numerical verification condition, wherein the third prompt information is used to indicate that the second variable is a variable to be verified; when the variable value of the first variable is the same as the variable value of the second variable and the second variable is not a variable of the target type, determining that the second variable meets the numerical verification condition; and determining the second variable value as the target variable value;
[0135] In the case that the variable value of the above-mentioned first variable and the variable value of the above-mentioned second variable do not meet the numerical verification conditions, the verification results of the above-mentioned first variable and the above-mentioned second variable are obtained, including: displaying a fourth prompt information, wherein the above-mentioned fourth prompt information is used to indicate that the above-mentioned second variable is the variable to be verified; in the case of receiving a confirmation operation on the above-mentioned fourth prompt information, determining the above-mentioned second variable value as the above-mentioned target variable value; in the case of receiving an editing operation on the above-mentioned second variable value, determining the variable value received according to the above-mentioned editing operation as the above-mentioned target variable value of the above-mentioned second variable.
[0136] After obtaining the first variable configuration list of the first environment and the second variable configuration list of the second environment, it also includes: obtaining the variable set that does not meet the verification conditions in the second variable set indicated by the above-mentioned second variable configuration list, wherein the above-mentioned variable set includes multiple reference variables that have not passed the verification, and the above-mentioned verification conditions include the above-mentioned numerical verification conditions, type verification conditions, and configuration verification conditions; displaying a verification interface according to the above-mentioned variable set, wherein the above-mentioned verification interface includes a display area for respectively displaying the verification results of the above-mentioned reference variables; and determining the above-mentioned target variable value matching each of the above-mentioned reference variables according to the touch operation received in the above-mentioned verification interface.
[0137] Displaying a verification interface according to a variable set includes: displaying variable information of the current reference variable in a current display area matching the current reference variable in the verification interface, wherein the variable information includes variable name information and variable value information of the current reference variable; displaying verification prompt information matching the current reference variable in the current display area, wherein the verification prompt information is used to indicate the verification condition that the current reference variable does not meet; displaying a confirmation control and an edit control in the current display area, wherein the confirmation control is used to determine the current variable value of the current reference variable as the target variable value matching the current reference variable, and the edit control is used to obtain the target variable value configured for the current reference variable.
[0138] Alternatively, a person skilled in the art may understand that: Fig.10 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Fig.10 The structure of the electronic device is not limited. For example, the electronic device may also include Fig.10 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.10 Different configurations are shown.
[0139] Among them, the memory 1002 can be used to store software programs and modules, such as the program instructions / modules corresponding to the variable comparison method and device in the embodiment of the present application, and the processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, realizing the above-mentioned variable comparison method. The memory 1002 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1002 may further include a memory remotely arranged relative to the processor 1004, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. Among them, the memory 1002 can be specifically used, but not limited to, for storing information such as business change information, object account information, etc.
[0140] Optionally, the electronic device further includes a transmission device 1006, and the transmission device 1006 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 1006 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1006 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0141] In addition, the electronic device further includes: a display 1008 for displaying the information; and a connection bus 1010 for connecting various module components in the electronic device.
[0142] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0143] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0144] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0145] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0146] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0147] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0148] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0149] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0150] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0151] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A variable comparison method, characterized in that: include: Obtain a first variable configuration list of a first environment, and obtain a second variable configuration list of a second environment, wherein the first environment is a system environment that has been deployed, and the second environment is a system environment to be verified; Comparing a first variable in the first variable configuration list with a second variable in the second variable configuration list that matches the first variable according to a variable comparison rule; When the variable value of the first variable and the variable value of the second variable do not satisfy the numerical verification condition, obtaining the verification result of the first variable and the second variable; A target variable value of the second variable is determined according to the verification result.
2. The method according to claim 1, characterized in that: The comparing, according to the variable comparison rule, the first variable in the first variable configuration list with the second variable in the second variable configuration list that matches the first variable, includes: Acquire the second variable that matches the first variable from the second variable configuration list; If the second variable value of the second variable does not satisfy the type verification condition indicated by the variable type of the second variable, display first prompt information, wherein the first prompt information is used to indicate that the second variable value of the second variable is a variable value to be revised; When the second variable value of the second variable satisfies the type verification condition indicated by the variable type of the second variable, a comparison result of the first variable value and the second variable value is obtained.
3. The method according to claim 2, characterized in that After obtaining the first variable configuration list of the first environment and obtaining the second variable configuration list of the second environment, the method further includes: In the case of failure to obtain the second variable matching the first variable from the second variable configuration list, determining that the second variable does not satisfy the configuration verification condition; Second prompt information is displayed according to the configuration verification condition, wherein the second prompt information is used to indicate that the second variable matching the first variable does not exist in the second environment.
4. The method according to claim 2, characterized in that: After comparing the first variable in the first variable configuration list with the second variable in the second variable configuration list that matches the first variable according to the variable comparison rule, the method further includes: When the variable value of the first variable is the same as the variable value of the second variable and the second variable is a variable of the target type, determining that the second variable does not satisfy the numerical verification condition; displaying third prompt information according to the numerical verification condition, wherein the third prompt information is used to indicate that the second variable is a variable to be verified; When the variable value of the first variable is the same as the variable value of the second variable, and the second variable is not a variable of the target type, it is determined that the second variable satisfies the numerical verification condition; and the second variable value is determined as the target variable value.
5. The method according to claim 2, characterized in that: The obtaining the verification result of the first variable and the second variable when the variable value of the first variable and the variable value of the second variable do not satisfy the numerical verification condition includes: Displaying fourth prompt information, wherein the fourth prompt information is used to indicate that the second variable is a variable to be verified; In case of receiving a confirmation operation on the fourth prompt information, determining the second variable value as the target variable value; In the case where an editing operation on the second variable value is received, the variable value received according to the editing operation is determined as the target variable value of the second variable.
6. The method according to any one of claims 1 to 5, characterized in that: After obtaining the first variable configuration list of the first environment and obtaining the second variable configuration list of the second environment, the method further includes: Obtaining a variable set that does not meet a verification condition in a second variable set indicated by the second variable configuration list, wherein the variable set includes a plurality of reference variables that have not passed the verification, and the verification condition includes the value verification condition, the type verification condition, and the configuration verification condition; Displaying a verification interface according to the variable set, wherein the verification interface includes a display area for respectively displaying verification results of the reference variables; According to the touch operation received in the verification interface, the target variable value matching each of the reference variables is determined.
7. The method according to any one of claims 1 to 5, characterized in that: Display the verification interface according to the variable set, including: In the current display area matching the current reference variable in the verification interface, the variable information of the current reference variable is displayed, wherein the variable information includes the variable name information and the variable value information of the current reference variable; Displaying verification prompt information matching the current reference variable in the current display area, wherein the verification prompt information is used to indicate the verification condition that the current reference variable does not satisfy; A confirmation control and an edit control are displayed in the current display area, wherein the confirmation control is used to determine the current variable value of the current reference variable as the target variable value matching the current reference variable, and the edit control is used to obtain the target variable value configured for the current reference variable.
8. A variable comparison device, characterized in that: include: A first acquisition unit is configured to acquire a first variable configuration list of a first environment and to acquire a second variable configuration list of a second environment, wherein the first environment is a system environment that has been deployed and the second environment is a system environment to be verified; a comparison unit, comparing a first variable in the first variable configuration list with a second variable in the second variable configuration list that matches the first variable according to a variable comparison rule; a second obtaining unit, for obtaining a verification result of the first variable and the second variable when the variable value of the first variable and the variable value of the second variable do not satisfy a numerical verification condition; A determination unit is configured to determine a target variable value of the second variable according to the verification result.
9. A processor, characterized in that: The processor is used to run a program, wherein the program executes the method according to any one of claims 1 to 7 when running.
10. An electronic device, characterized in that: The invention comprises one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of claims 1 to 7.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
