CN115314382B - Configuration information processing method - Google Patents

Configuration information processing method Download PDF

Info

Publication number
CN115314382B
CN115314382B CN202210848802.2A CN202210848802A CN115314382B CN 115314382 B CN115314382 B CN 115314382B CN 202210848802 A CN202210848802 A CN 202210848802A CN 115314382 B CN115314382 B CN 115314382B
Authority
CN
China
Prior art keywords
configuration information
information
modification
server
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210848802.2A
Other languages
Chinese (zh)
Other versions
CN115314382A (en
Inventor
李鉴庭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Handhui Technology Group Co ltd
Original Assignee
Shenzhen Handhui Technology Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Handhui Technology Group Co ltd filed Critical Shenzhen Handhui Technology Group Co ltd
Priority to CN202210848802.2A priority Critical patent/CN115314382B/en
Publication of CN115314382A publication Critical patent/CN115314382A/en
Application granted granted Critical
Publication of CN115314382B publication Critical patent/CN115314382B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a configuration information processing method, and belongs to the technical field of information processing. The method comprises the following steps: the terminal firstly acquires first version numbers of a plurality of pieces of first configuration information stored in the server, if the second version numbers of a plurality of pieces of second configuration information stored in the terminal are inconsistent with the first version numbers, information identifiers and information abstracts of the plurality of pieces of first configuration information are acquired from the server, then a target information identifier of configuration information with problems is determined from the information identifiers of the plurality of pieces of second configuration information stored in the terminal according to the information identifiers and the information abstracts of the plurality of pieces of first configuration information, and the second configuration information corresponding to the target information identifier stored in the terminal is updated according to the first configuration information corresponding to the target information identifier stored in the server. The terminal can automatically check whether the configuration information is updated successfully or not, automatically determine the configuration information with problems in the updating of the terminal, avoid modifying all the configuration information, and has higher processing efficiency of the configuration information.

Description

Configuration information processing method
Technical Field
The present disclosure relates to the field of information processing technologies, and in particular, to a configuration information processing method.
Background
With the continuous development of the information industry, enterprises, banks and other institutions are usually deployed with multiple terminals in different regions or in the same region to realize continuous expansion of services, and different terminals need to acquire the same configuration information during starting or running a service system, so as to realize the same service through the same configuration information. The configuration information records important information of the service system, and the service system can be continuously updated by continuously processing and updating the configuration information, so that the updating and upgrading of the service are realized. For example, the service system is an insurance service system of a bank, and the configuration information of the insurance service system may include tariff information, cash value table information, gray level switch information, sensitive word information, and the like.
In the prior art, a plurality of terminals respectively store configuration information, and the configuration information is updated continuously, namely, the configuration information stored by the plurality of terminals is updated synchronously. In order to improve the accuracy of the synchronous updating of the configuration information, the situation that the configuration information stored in different terminals is different is avoided, the processing result of the configuration information is usually determined in a manual verification mode after the configuration information is processed each time, and the terminal with the problem of synchronous updating of the configuration information is timely and accurately positioned. For example, a manual verification mode is adopted to collect the synchronous update of the configuration information of a plurality of terminals, and if the synchronous update of the configuration information in one terminal is problematic, the full modification is manually carried out on all the configuration information stored in the terminal.
In the above-mentioned method of manually checking the configuration information processing result, the configuration information in the plurality of terminals needs to be manually checked one by one and the manual analysis processing capability is weak, so that the efficiency of the configuration information processing is low. In addition, the update of the configuration information is usually to modify some of the configuration information in the whole configuration information, in which case the above-mentioned manner of manually modifying the whole configuration information may have a problem of ineffective modification of the configuration information, resulting in low efficiency of the configuration information processing.
Disclosure of Invention
The method for processing the configuration information can automatically check whether the configuration information set is updated successfully or not, automatically determine the configuration information with problems updated in the terminal on the basis of determining that the configuration information set of the terminal is updated with the problems, avoid modifying all the configuration information, and has higher processing efficiency. The technical scheme is as follows:
in a first aspect, a method for processing configuration information is provided, and the method is applied to a terminal, and includes:
acquiring a first version number of a first configuration information set of a specified object stored in a server, wherein the first configuration information set comprises a plurality of pieces of first configuration information, and the server also stores an information identifier and an information abstract of each piece of first configuration information in the plurality of pieces of first configuration information;
If the second version number of the second configuration information set of the specified object stored in the terminal is inconsistent with the first version number, acquiring information identifiers and information abstracts of the plurality of first configuration information from the server, wherein the second configuration information set comprises a plurality of second configuration information, and the terminal also stores the information identifiers and the information abstracts of each second configuration information in the plurality of second configuration information;
determining a target information identification from the information identifications of the plurality of second configuration information stored by the terminal according to the information identifications and the information summaries of the plurality of first configuration information, wherein the target information identification is the information identification which is identical to any one of the information identifications of the plurality of first configuration information but is not matched with the corresponding information summary in the information identifications of the plurality of second configuration information;
and updating second configuration information stored by the terminal and corresponding to the target information identifier according to the first configuration information stored by the server and corresponding to the target information identifier.
As an example, the method further comprises:
receiving a configuration change instruction sent by control equipment, wherein the configuration change instruction carries a first version number and at least one modification information identifier, the first version number is a version number of a first configuration information set obtained by modifying a third configuration information set of the specified object stored by the server, and the at least one modification information identifier is an information identifier of modified first configuration information in the first configuration information set;
Acquiring at least one first configuration information corresponding to the at least one modification information identifier one by one and an information abstract of each first configuration information in the at least one first configuration information from the server;
and updating the second version number of the second configuration information set of the specified object stored by the terminal, at least one second configuration information in the second configuration information set, which corresponds to the at least one modification information identifier one by one, and the information abstract of each second configuration information in the at least one second configuration information according to the first version number, the at least one first configuration information and the information abstract of each first configuration information in the at least one first configuration information.
In a second aspect, a configuration information processing method is provided, and is applied to a server, where the method includes:
receiving a configuration information modification request sent by control equipment, wherein the configuration information modification request carries a first version number, at least one modification information identifier, modification configuration information and modification information abstracts corresponding to each modification information identifier, and the at least one modification information identifier is used for indicating an information identifier of third configuration information to be modified in a third configuration information set of a specified object stored by the server;
And updating the third version number of the third configuration information set stored by the server, at least one third configuration information in the third configuration information set, which is in one-to-one correspondence with the at least one modification information identifier, and the information abstract of each third configuration information in the at least one third configuration information according to the first version number, the modification configuration information and the modification information abstract corresponding to each modification information identifier in the at least one modification information identifier.
As an example, before the receiving the configuration information modification request sent by the control device, the method further includes:
receiving a modification right acquisition request sent by the control device, wherein the modification right acquisition request is used for requesting to acquire the right for modifying the third configuration information set stored by the server;
and sending a modification right acquisition response to the control device according to the third version number of the third configuration information set stored by the server, wherein the modification right acquisition response is used for indicating that the control device has the right to modify the third configuration information set stored by the server into the first configuration information set indicated by the first version number.
As an example, the updating the third version number of the third configuration information set stored by the server, the at least one third configuration information in the third configuration information set corresponding to the at least one modification information identifier one to one, and the information summary of each third configuration information in the at least one third configuration information according to the first version number, the modification configuration information and the modification information summary corresponding to each modification information identifier in the at least one modification information identifier includes:
updating each third configuration information in the at least one third configuration information which is stored in the server and corresponds to the at least one modification information identifier one by one into modification configuration information corresponding to each modification information identifier in the at least one modification information identifier;
updating the information abstract of each third configuration information in the at least one third configuration information which is stored by the server and corresponds to the at least one modification information identifier one by one into a modification information abstract corresponding to each modification information identifier in the at least one modification information identifier;
and updating the third version number stored by the server to the first version number.
As an example, the updating, for each third configuration information in the at least one third configuration information stored in the server and corresponding to the at least one modification information identifier, to the modification configuration information corresponding to each modification information identifier in the at least one modification information identifier includes:
for a first modification information identifier in the at least one modification information identifier, determining a storage capacity of modification configuration information corresponding to the first modification information identifier, wherein the first modification information identifier is any one of the at least one modification information identifier;
if the storage capacity is larger than a threshold value, adopting a preset data format to perform format conversion on the modification configuration information corresponding to the first modification information identifier;
and updating the third configuration information stored by the server and corresponding to the first modification information identifier into the modification configuration information after format conversion.
As an example, after the updating the third version number of the third configuration information set stored by the server, at least one third configuration information in the third configuration information set corresponding to the at least one modification information identifier one-to-one, and the information digest of each third configuration information in the at least one third configuration information, the method further includes:
And sending a modification configuration success response to the control device, wherein the modification configuration success response is used for indicating that the third configuration information set stored by the server is successfully modified into a first configuration information set indicated by the first version number.
In a third aspect, there is provided a configuration information processing method applied to a control apparatus, the method including:
a configuration information modification request is sent to a server, the configuration information modification request carries a first version number, at least one modification information identifier, modification configuration information and modification information abstracts corresponding to each modification information identifier, the at least one modification information identifier is used for indicating an information identifier of third configuration information to be modified in a third configuration information set of a specified object stored by the server, the configuration information modification request is used for indicating the server to update the third version number of the third configuration information set stored by the server, at least one third configuration information corresponding to the at least one modification information identifier in the third configuration information set and the information abstracts of each third configuration information in the at least one third configuration information set according to the first version number, the modification configuration information and the modification information abstracts corresponding to each modification information identifier in the at least one modification information identifier.
As an example, before sending the configuration information modification request to the server, the method further includes:
sending a modification right acquisition request to the server, wherein the modification right acquisition request is used for requesting to acquire the right for modifying the third configuration information set stored by the server;
and receiving a modification right acquisition response sent by the server, wherein the modification right acquisition response is used for indicating the control equipment to acquire the right of modifying the third configuration information set stored by the server into the first configuration information set indicated by the first version number.
As an example, the method further comprises:
and receiving a modification configuration success response sent by the server, wherein the modification configuration success response is used for indicating that the third configuration information set stored by the server is successfully modified into a first configuration information set indicated by the first version number.
As an example, after receiving the modification configuration success response sent by the server, the method further includes:
a configuration change instruction is sent to a terminal, the configuration change instruction carries the first version number and the at least one modification information identifier, the configuration change instruction is used for indicating the terminal to obtain updated third configuration information corresponding to each modification information identifier in the at least one modification information identifier and an information abstract of each updated third configuration information from the server, and the second version number of the second configuration information set of the specified object stored by the terminal, at least one second configuration information corresponding to the at least one modification information identifier in the second configuration information set and the information abstract of each second configuration information in the at least one second configuration information are updated according to the first version number, the updated third configuration information corresponding to each modification information identifier in the at least one modification information identifier and the information abstract of each second configuration information.
In a fourth aspect, a configuration information processing method is provided, applied to a control device, a server, and a terminal, the method including:
the control equipment sends a configuration information modification request to a server, wherein the configuration information modification request carries a first version number, at least one modification information identifier, modification configuration information and modification information abstracts corresponding to each modification information identifier, and the at least one modification information identifier is used for indicating an information identifier of third configuration information to be modified in a third configuration information set of a specified object stored by the server;
the server receives the configuration information modification request sent by the control equipment;
the server updates a third version number of the third configuration information set stored by the server, at least one third configuration information in the third configuration information set, which corresponds to the at least one modification information identifier one by one, and an information abstract of each third configuration information in the at least one third configuration information according to the first version number, the modification configuration information and the modification information abstract corresponding to each modification information identifier in the at least one modification information identifier;
The control device sends a configuration change instruction to a terminal, wherein the configuration change instruction carries the first version number and the at least one modification information identifier, the first version number is a version number of a first configuration information set obtained by modifying a third configuration information set of the specified object stored by the server, and the at least one modification information identifier is an information identifier of modified first configuration information in the first configuration information set;
the terminal receives the configuration change instruction sent by the control equipment;
the terminal acquires at least one first configuration information corresponding to the at least one modification information identifier one by one and an information abstract of each first configuration information in the at least one first configuration information from the server;
and the terminal updates the second version number of the second configuration information set of the specified object stored by the terminal, at least one second configuration information in the second configuration information set, which is in one-to-one correspondence with the at least one modification information identifier, and the information abstract of each second configuration information in the at least one second configuration information according to the first version number, the at least one first configuration information and the information abstract of each first configuration information in the at least one first configuration information.
The beneficial effects that technical scheme that this application embodiment provided brought are:
in the embodiment of the present application, a terminal firstly obtains a first version number of a first configuration information set including a plurality of first configuration information of a designated object stored in a server, if it is determined that a second version number of a second configuration information set including a plurality of second configuration information of the designated object stored in the terminal is inconsistent with the first version number, an information identifier and an information abstract of each first configuration information of the plurality of first configuration information stored in the server are obtained from the server, then, according to the information identifiers and the information abstracts of the plurality of first configuration information, a target information identifier is determined from the information identifiers of the plurality of second configuration information stored in the terminal, wherein the target information identifier refers to an information identifier which is identical to any one of the information identifiers of the plurality of first configuration information but is not matched with the corresponding information abstract, and then, according to the first configuration information corresponding to the target information identifier stored in the server, the second configuration information corresponding to the target information identifier stored in the terminal is updated. Therefore, the terminal can distinguish the configuration information sets stored by the terminal and the server respectively through the version numbers, automatically check whether the configuration information sets stored by the terminal are consistent with the configuration information sets stored by the server according to the version numbers, if so, determine that the configuration information sets of the terminal are successfully updated, and if not, determine that the configuration information sets of the terminal are failed to update, namely, the terminal can automatically check whether the configuration information sets are successfully updated according to the version numbers, automatically determine the processing result of the configuration information sets of the appointed objects, and the processing efficiency of the configuration information is higher. In addition, on the basis of determining that the updating of the configuration information set of the terminal is problematic, the terminal can automatically and rapidly determine the updated configuration information with the problem from the configuration information set stored by the terminal through the information abstract, and then only update the configuration information with the problem in the terminal, so that the problem of invalid modification caused by modifying all the configuration information is avoided, and the processing efficiency of the configuration information is further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a system diagram of a configuration information processing system according to an embodiment of the present application;
FIG. 2 is a flowchart of a configuration information processing method according to an embodiment of the present application;
FIG. 3 is a flowchart of yet another configuration information processing method provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that reference herein to "a plurality" means two or more. In the description of the present application, "/" means or, unless otherwise indicated, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, for the purpose of facilitating the clear description of the technical solutions of the present application, the words "first", "second", etc. are used to distinguish between the same item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
Before explaining the embodiments of the present application in detail, application scenarios of the embodiments of the present application are described.
The configuration information processing method provided by the embodiment of the invention can be applied to a scene that a plurality of terminals are deployed in different or same regions and the plurality of terminals realize the same service through the configuration information. Wherein, to adapt to the updating and upgrading of the service, the configuration information is generally updated continuously.
For example, for enterprises, banks and other institutions, a plurality of terminals are usually deployed in different regions or in the same region, and the plurality of terminals realize corresponding services through configuration information of a service system. For example, a plurality of terminals can acquire the same configuration information in the process of starting or running the service system, so as to realize the same service through the same configuration information.
In the prior art, a plurality of terminals respectively store configuration information, and each terminal in the plurality of terminals can realize corresponding service according to the respective stored configuration information. In this case, the processing of the configuration information is to update the configuration information stored in each of the plurality of terminals synchronously, which may have a problem that the synchronization update of the configuration information of one of the plurality of terminals fails, so that the service implemented by the terminal is not updated and upgraded, and unified management of the service is not utilized. In order to avoid this, the processing result of the configuration information of each of the plurality of terminals is usually determined by means of manual verification after the configuration information of the plurality of terminals is synchronously updated each time, and the terminal with a problem in synchronous update of the configuration information is timely and accurately located.
For example, the configuration information of each terminal in the plurality of terminals is checked one by adopting a manual checking mode, the synchronous updating condition of the configuration information of the plurality of terminals is collected, and if the synchronous updating problem of the configuration information of one terminal is determined, all the configuration information stored by the terminal is manually modified in full quantity, so that different terminals can realize the same service through the configuration information stored by the terminals.
However, in the above method of manually checking the configuration information processing result, the configuration information processing efficiency is low because the configuration information in the plurality of terminals needs to be manually checked one by one and the manual analysis processing capability is weak. In addition, the update of the configuration information is usually to modify some of the configuration information in the whole configuration information, in which case the above-mentioned manner of manually modifying the whole configuration information may have a problem of ineffective modification of the configuration information, resulting in low efficiency of the configuration information processing.
Based on this, the embodiment of the application provides a configuration information processing method, which can automatically check whether the configuration information stored by the terminal is consistent with the configuration information stored by the server, namely automatically check whether the configuration information is successfully updated, automatically determine the processing result of the configuration information in the terminal, and determine the configuration information with the problem of synchronous update in the terminal on the basis of determining the problem of synchronous update of the configuration information set of the terminal, thereby avoiding modification of all the configuration information and having higher processing efficiency of the configuration information.
Next, a configuration information processing system provided in an embodiment of the present application will be explained in detail.
Referring to fig. 1, fig. 1 is a schematic system diagram of a configuration information processing system according to an embodiment of the present application. The configuration information processing method provided by the embodiment of the application can be applied to the configuration information processing system shown in fig. 1. As shown in fig. 1, the configuration information processing system includes a control device 10, a server 20, and a plurality of terminals 30.
Wherein the server 20, each of the plurality of terminals 30, and the control device 10 may be connected through a limited network or a wireless network.
The control device 10 may modify the configuration information set of the specified object stored in the server 20, or may modify the configuration information set of the specified object stored in each of the plurality of terminals 30. Wherein, the modification may refer to updating the configuration information set, or to replacing a part of configuration information in the configuration information set.
As one example, the configuration information set includes a plurality of configuration information, the plurality of configuration information stored by the server 20 corresponds one-to-one to the plurality of configuration information stored by each of the plurality of terminals 30, any one of the plurality of configuration information stored by the server 20 necessarily has the same configuration information as the information identification of the configuration information in the plurality of configuration information stored by each terminal, and the information identification is the same but the content of the configuration information may be the same or different.
As one example, the control device 10 may send a configuration information modification request to the server 20, by which the control device 10 controls the server 20 to update the set of configuration information stored by itself. For example, the configuration information modification request carries a first version number, at least one modification information identifier, and modification configuration information and a modification information abstract corresponding to each modification information identifier, where the at least one modification information identifier is used to indicate an information identifier of third configuration information to be modified in a third configuration information set of a specified object stored in the server 20, and the configuration information modification request is used to instruct the server 20 to update the third version number of the third configuration information set stored in the server 20, at least one third configuration information corresponding to at least one modification information identifier in the third configuration information set, and an information abstract of each third configuration information in the at least one third configuration information according to the first version number, the modification configuration information and the modification information abstract corresponding to each modification information identifier in the at least one modification information identifier.
As an example, the control device 10 may also send a configuration change instruction to each of the plurality of terminals 30, by which the control device 10 controls each terminal to update its own stored configuration information set. For example, the configuration change instruction carries a first version number and at least one modification information identifier, where the configuration change instruction is configured to instruct each terminal of the plurality of terminals 30 to obtain updated third configuration information corresponding to each modification information identifier in the at least one modification information identifier and an information digest of each updated third configuration information from the server 20, and update, according to the first version number, the updated third configuration information corresponding to each modification information identifier in the at least one modification information identifier, and the information digest of each updated third configuration information, a second version number of a second configuration information set of a specified object stored in the terminal, at least one second configuration information in the second configuration information set that corresponds to at least one modification information identifier one to one, and an information digest of each second configuration information in the at least one second configuration information.
As an example, the control device 10 may be a terminal or a server, and the terminal may be a desktop computer, a tablet computer, a mobile phone, or the like, and the control device 10 in the embodiment of the present application is not limited. For example, as shown in fig. 1, the control device 10 is a server. Alternatively, the control device 10 may be the server 20 or any one of the plurality of terminals 30.
Wherein the server 20 stores the latest configuration information and related information of the latest configuration information after the latest update of the specified object. For example, the server 20 stores a plurality of third configuration information of the specified object, and an information identification and an information digest of each of the plurality of third configuration information.
Server 20 also stores a third version number specifying a third set of configuration information for the object, the third set of configuration information including a plurality of third configuration information.
It should be noted that, the third configuration information set is not limited to the configuration information set stored in the server 20, for example, the server 20 may also store a first configuration information set, where the first configuration information set includes a plurality of first configuration information, the number of configuration information included in the first configuration information set and the number of configuration information included in the third configuration information set are the same, the configuration information included in the first configuration information set and the third configuration information set respectively correspond to each other, and the content of the configuration information identified by the same information may be the same or different.
The server 20 may process, by the control device 10, a set of configuration information of a specified object stored by itself, the set of configuration information stored by the server 20 indicating a latest set of configuration information after the control device 10 has updated the configuration information stored by the server 20 last time.
For example, the server 20 may receive a configuration information modification request sent by the control device 10, where the configuration information modification request carries a first version number, at least one modification information identifier, and modification configuration information and a modification information summary corresponding to each modification information identifier, where the at least one modification information identifier is used to indicate an information identifier of third configuration information to be modified in a third configuration information set of a specified object stored in the server 20. Then, the server 20 updates the third version number of the third configuration information set stored in the server 20, at least one third configuration information in the third configuration information set corresponding to the at least one modification information identifier one by one, and the information summary of each third configuration information in the at least one third configuration information according to the first version number, the modification configuration information and the modification information summary corresponding to each modification information identifier in the at least one modification information identifier.
For example, after updating the third version number of the third configuration information set, at least one third configuration information corresponding to the at least one modification information identifier in the third configuration information set, and the information digest of each of the at least one third configuration information, the server 20 may obtain the first version number of the first configuration information set, and the information identifier and the information digest of each of the plurality of first configuration information included in the first configuration information set of the specified object stored in the server 20.
The third configuration information set refers to a set of configuration information after the control device 10 performs the last synchronization update on the configuration information set stored in the server 20, that is, the configuration information set stored in the server 20 indicates the latest configuration information after the last synchronization update, so that each of the plurality of terminals 30 may determine the processing result of the configuration information of each terminal by comparing the configuration information set stored in itself with the latest configuration information set stored in the server 20, that is, determine the situation of the synchronization update of the configuration information of each terminal.
Wherein, each of the plurality of terminals 30 stores a plurality of configuration information of the specified object and related information of the plurality of configuration information, so that each terminal obtains the configuration information of the specified object in the process of realizing the service, and realizes the corresponding service. For example, each terminal stores a plurality of pieces of second configuration information of a specified object, an information identification and an information digest of each piece of second configuration information of the plurality of pieces of second configuration information.
Each of the plurality of terminals 30 also stores a second version number specifying a second set of configuration information for the object, the second set of configuration information including a plurality of second configuration information.
It should be noted that, the second configuration information set is not limited to the configuration information stored in each terminal, for example, each terminal may further store a fourth configuration information set, where the fourth configuration information set includes a plurality of fourth configuration information, the number of configuration information included in the second configuration information set and the number of configuration information included in the fourth configuration information set are the same, the configuration information included in the second configuration information set and the fourth configuration information set respectively correspond to each other, and the content of the configuration information identified by the same information may be the same or different.
Each of the plurality of terminals 30 may communicate with the control device 10, the server 20, respectively, through processing of the configuration information set of the specified object stored by the control device 10 and the server 20 itself.
For example, each of the plurality of terminals 30 may receive a configuration change instruction sent by the control device 10, where the configuration change instruction carries a first version number and at least one modification information identifier, the first version number is a version number of a first configuration information set obtained by modifying, by the control device 10, a third configuration information set of a specified object stored in the server 20, and the at least one modification information identifier is an information identifier of modified first configuration information in the first configuration information set. Then, each terminal obtains at least one first configuration information corresponding to the at least one modification information identifier one by one and an information abstract of each first configuration information in the at least one first configuration information from the server 20, and updates the second version number of the second configuration information set of the specified object stored in each terminal, the at least one second configuration information corresponding to the at least one modification information identifier one by one in the second configuration information set, and the information abstract of each second configuration information in the at least one second configuration information according to the first version number, the at least one first configuration information, and the information abstract of each first configuration information in the at least one first configuration information.
For example, after the second version number of the second configuration information set, at least one second configuration information corresponding to at least one modification information identifier in the second configuration information set, and the information abstract of each second configuration information are updated successfully, each terminal may obtain a fourth version number of a fourth configuration information set stored in each terminal, a fourth configuration information set, and an information identifier and an information abstract of each fourth configuration information in a plurality of fourth configuration information included in the fourth configuration information set.
In addition, the result of updating the second configuration information set stored by a certain terminal of the plurality of terminals 30 through the control device 10 and the server 20 may be successful or may fail. For example, if the terminal successfully updates the second configuration information set, the terminal stores the updated second configuration information set, that is, the fourth configuration information set, and if the terminal fails to update the second configuration information set, the terminal stores the second configuration information set.
In order to check whether the terminal is successful in updating the second configuration information set stored by the terminal, the terminal can also automatically check whether the configuration information set is successful in updating and automatically determine the processing result of the configuration information, and further can determine the configuration information with problems in the synchronous updating of the configuration information set of the terminal under the condition that the synchronous updating of the configuration information set is determined to be failed.
For example, a certain terminal of the plurality of terminals 30 may obtain the first version number of the first configuration information set of the specified object stored in the server 20, and if the version number of the configuration information set stored in the terminal is the second version number, that is, if it is determined that the second version number of the second configuration information set of the specified object stored in the terminal is inconsistent with the first version number, it is determined that the configuration information set stored in the terminal is not matched with the configuration information set stored in the server 20, and it is determined that a problem occurs in synchronous update of the configuration information set of the terminal.
In this way, each terminal can distinguish the configuration information sets stored by the terminal and the server 20 respectively through the version numbers, automatically check whether the configuration information set stored by the terminal is consistent with the configuration information set stored by the server 20 according to the version numbers, if so, determine that the configuration information set of the terminal is successfully updated, and if not, determine that the configuration information set of the terminal is failed to update, that is, each terminal can automatically check whether the configuration information is successfully updated according to the version numbers, automatically determine the processing result of the configuration information set of the designated object, and the processing efficiency of the configuration information is higher.
For example, since the configuration information set stored in the server 20 is the latest configuration information set after the latest synchronization update, each terminal may further obtain, from the server 20, the latest information identifications and information digests of a plurality of first configuration information after determining that the second version number of the second configuration information set of the specified object stored in the terminal is inconsistent with the first version number, that is, determining, according to the information identifications and information digests of a plurality of first configuration information, the target information identification from the information identifications of a plurality of second configuration information stored in the server 20, where the target information identification is the information identification that is identical to any one of the information identifications of a plurality of first configuration information but that is not matched with the corresponding information digest, and then update the second configuration information corresponding to the target information identification stored in the terminal according to the first configuration information corresponding to the target information identification stored in the server 20.
For example, after updating the second configuration information corresponding to the target information identifier stored in the terminal according to the first configuration information corresponding to the target information identifier stored in the server 20, the fourth version number of the fourth configuration information set of the specified object stored in the terminal, the fourth configuration information set, and the information identifier and the information abstract of each of the plurality of fourth configuration information included in the fourth configuration information set may be obtained.
In this way, on the basis of determining a certain terminal with a problem of synchronous update from the plurality of terminals 10 through the version numbers, the terminal can automatically and rapidly determine the update of the configuration information with the problem from the configuration information set stored in the terminal through the information abstract, and then only update the configuration information with the problem in the terminal, so that the problem of invalid modification caused by modification of all the configuration information is avoided, and the processing efficiency of the configuration information is further improved.
As an example, the plurality of terminals 30 may be deployed in different regions or the same region, and each of the plurality of terminals 30 may be a desktop computer, a tablet computer, a mobile phone, or the like, which is not limited in the embodiment of the present application. For example, as shown in fig. 1, the plurality of terminals 30 may include 3 terminals, and the 3 terminals are tablet computers, respectively.
The configuration information processing method provided in the embodiment of the present application is explained in detail below.
Referring to fig. 2, fig. 2 is a flowchart of a configuration information processing method according to an embodiment of the present application. The configuration information processing method may be applied to any one of the plurality of terminals 30 included in the configuration information processing system shown in fig. 1. As shown in fig. 2, the method comprises the steps of:
in step 201, the terminal obtains a first version number of a first configuration information set of a specified object stored in a server.
It should be noted that, in order to implement updating and upgrading of a service, the control device may update the configuration information set stored in the server, and on the basis of successful updating of the configuration information set stored in the server, the control device and the server may update the configuration information set stored in the terminal, which may have the case that the control device succeeds in updating the configuration information set of the server, but the control device and the server fail in updating the configuration information set of the terminal. That is, the terminal may succeed or fail in updating the self-stored configuration information set through the control device and the server, and in this embodiment, the terminal is configured to automatically check whether the self-stored configuration information set is updated successfully, and determine the configuration information with a problem in updating based on determining that the self-configured information update fails.
Wherein the terminal is any one of a plurality of terminals 30 included in the configuration information processing system as shown in fig. 1.
After the control device updates the configuration information stored in the server last time, the server stores a first version number of the latest first configuration information set, the first configuration information set, and an information identifier and an information abstract of each first configuration information in a plurality of first configuration information included in the first configuration information set, where the first version number is used to indicate the number of times of modification of the configuration information set of the specified object.
As an example, the first version number is a version number of a first configuration information set obtained by modifying, by the control device, a third configuration information set corresponding to a third version number stored in the server, where the first configuration information set is a configuration information set obtained by modifying at least one third configuration information in the third configuration information set. For example, two third configuration information in the third configuration information set are modified, and the obtained first configuration information set includes the modified two third configuration information and other third configuration information except the two third configuration information in the third configuration information set. The updated third configuration information set is the first configuration information set.
It should be noted that, the first configuration information set is a configuration information set obtained after the server updates the third configuration information set stored by the server according to the control device, and in this embodiment of the present application, the first configuration information set is merely taken as an example of the name of the updated configuration information set, and of course, the updated configuration information may also be referred to as other configuration information, such as the fifth configuration information, which is not limited in this embodiment of the present application.
As an example, the control device updates the third version number of the third configuration information set stored in the server to the first configuration information set, and the control device and the server update the configuration information set stored in the terminal. For example, the second version number of the second configuration information set, and the information identifier and the information abstract of each second configuration information in the plurality of second configuration information included in the second configuration information set are stored in the terminal, and the server and the control device may update the second configuration information set stored in the terminal.
As one example, the version number is continuously incremented according to an increase in the number of modifications of the set of configuration information. For example, the version number is a number, and along with modification of the configuration information set, the version number is increased by a preset value, for example, if the configuration information set is modified once, the version number is increased by the preset value, and the preset value can be any value.
The information identifier is used for uniquely identifying the configuration information, and the information identifier can be a letter or a code of data of the configuration information.
The information abstract is ciphertext of configuration information. The information abstracts can be obtained by the configuration information through the operation of the abstracting algorithm, the information abstracts obtained by the same configuration information through the abstracting algorithm are the same, and the information abstracts obtained by different configuration information through the abstracting algorithm are different.
For example, the configuration information is generated into a character string corresponding to the configuration information according to a preset rule, and the character string is the information abstract of the configuration information.
As an example, the Digest algorithm may be an MD5 (Message Digest) algorithm, a SHA-1 algorithm, or the like, which is not limited by the embodiments of the present application.
The specified object may be a service system, an operating system, or a module that implements a certain function in the system, which is not limited in the embodiment of the present application. For example, the designated object is a service system, the server and the terminal respectively store configuration information sets of the service system, the configuration information sets comprise all configuration information for starting or running the service system, so that the terminal can acquire corresponding configuration information from the configuration information sets stored in the terminal in the process of starting and running the service system, and corresponding service is realized.
As one example, the designated object is an insurance service system, and configuration information of the insurance service system may be classified into service class configuration information including tariff table information, cash value table information, and the like, development class configuration information may include gray-scale switch information, sensitive word information, and the like. The terminal can acquire development type configuration information from the configuration information set in the process of starting the insurance service system, and acquire corresponding service type configuration information from the configuration information set in the process of operating the insurance service system so as to realize corresponding service functions.
For example, the terminal may obtain the first version number of the first configuration information set stored in the server when a preset condition is met, where the preset condition may be a preset time interval, a preset time point, or a condition that the terminal updates the configuration information set stored in the terminal, which is not limited in this embodiment of the present application.
As one example, the terminal may obtain the first version number of the first set of configuration information from the server by sending a version number obtaining request to the server.
For example, the terminal sends a version number acquisition request to the server, where the version number acquisition request is used to request to acquire a version number of a latest configuration information set of a specified object stored by the server, such as a version number acquisition request is used to request a first version number of a first configuration information set of the specified object stored by the server. And then the server receives a version number acquisition request sent by the terminal, and sends a version number acquisition response to the terminal, wherein the version number acquisition response carries a first version number of a first configuration information set stored by the server. And then the terminal receives a version number acquisition response sent by the server to obtain a first version number of a first configuration information set of the specified object stored by the server.
For example, the terminal may send a version number acquisition request to the server at a preset time point, so as to compare the acquired first version number with the version number of the configuration information set stored in the terminal, determine whether the version numbers of the configuration information set stored in the terminal and the first version number are consistent, if so, determine that the configuration information set of the terminal is updated successfully, and if not, determine that the configuration information set of the terminal is failed to be updated.
As an example, the control device and the server update the second configuration information set corresponding to the second version number stored in the terminal, if the update is successful, the terminal stores a fourth configuration information set corresponding to the fourth version number, and the fourth configuration information set is matched with the first configuration information set stored in the server. The fourth configuration information set is the first configuration information set, the fourth version number is consistent with the first version number stored by the server, and the fourth version number is the first version number. If the updating fails, a second configuration information set corresponding to the second version number is still stored in the terminal, the second configuration information set is not matched with the first configuration information set stored in the server, and the second version number is inconsistent with the first version number stored in the server.
As an example, the fourth version number is a version number of a fourth configuration information set obtained by modifying, by the control device and the server, a second configuration information set corresponding to the second version number stored in the terminal, where the fourth configuration information set is a configuration information set obtained by modifying at least one second configuration information in the second configuration information set. For example, two second configuration information in the second configuration information set are modified, and the obtained fourth configuration information set includes the modified two second configuration information and other second configuration information except the two second configuration information in the second configuration information set.
As one example, the version number being a numerical value, the second version number being inconsistent with the first version number may mean that the first version number is different from the second version number in numerical value.
It should be noted that, the fourth configuration information set is a configuration information set obtained after the terminal successfully updates the second configuration information set stored by the terminal according to the control device and the server, and in this embodiment of the present application, the fourth configuration information set is merely taken as an example of the name of the updated configuration information set, and of course, the updated configuration information may also be referred to as other configuration information, such as the sixth configuration information, which is not limited in this embodiment of the present application.
If the terminal determines that the terminal stores the fourth version number of the fourth configuration information set, the terminal determines that the configuration information of the terminal is updated successfully, in this case, the terminal does not execute steps 202 to 204 described below, and continues to execute step 201 when the preset condition is satisfied. If the terminal determines that the terminal stores the second version number of the second configuration information set, it determines that the update of the configuration information of the terminal fails, steps 202-204 are executed, and the configuration information with problems in the update of the configuration information set of the terminal is determined, so as to modify only the configuration information with problems in synchronous update. For example, the terminal may determine, according to the information abstract of the configuration information set stored by the terminal and the information abstract of the latest configuration information set stored by the server, update the configuration information with a problem in the configuration information set of the terminal.
Step 202, if the terminal determines that the second version number of the second configuration information set of the specified object stored in the terminal is inconsistent with the first version number, the terminal obtains the information identifiers and the information summaries of the plurality of first configuration information from the server.
The second configuration information set comprises a plurality of second configuration information, and the second version number is used for indicating the modification times of the configuration information set of the specified object.
In addition, the terminal also stores a second configuration information set, and an information identifier and an information abstract of each of the plurality of second configuration information.
The configuration information set stored by the server corresponds to the configuration information set stored by the terminal. For example, the plurality of first configuration information stored by the server corresponds to the plurality of second configuration information stored by the terminal one by one, any one of the plurality of first configuration information is necessarily present in the plurality of second configuration information, the second configuration information is identical to the information identification of the first configuration information, and the content of the first configuration information and the content of the second configuration information which are identical to each other can be identical or different.
As one example, the terminal may acquire the information identifications and the information digests of the plurality of first configuration information from the server by transmitting the information digest acquisition request to the server.
For example, if the terminal determines that the second version number of the second configuration information set of the specified object stored in the terminal is inconsistent with the first version number, the terminal sends an information abstract acquisition request carrying the first version number to the server, where the information abstract acquisition request is used for requesting to acquire information identifiers and information abstracts of a plurality of first configuration information corresponding to the first version number stored in the server. And then the server receives the information abstract acquisition request sent by the terminal and sends an information abstract acquisition response to the terminal, wherein the information abstract acquisition response carries the information identifiers and the information abstracts of a plurality of pieces of first configuration information corresponding to the first version numbers stored by the server. And then the terminal receives the information abstract acquisition response sent by the server to obtain the information identifiers and the information abstracts of the plurality of pieces of first configuration information stored by the server.
In step 203, the terminal determines the target information identifier from the information identifiers of the plurality of second configuration information stored in the terminal according to the information identifiers and the information abstracts of the plurality of first configuration information.
The target information identifier refers to an information identifier which is the same as any one of the information identifiers of the plurality of second configuration information and is not matched with the corresponding information abstract, namely the target information identifier refers to an information identifier of the configuration information which is synchronously updated in the second configuration information set stored in the terminal and has a problem, and the target information identifier can be one or a plurality of target information identifiers.
Because the plurality of first configuration information stored by the server corresponds to the plurality of second configuration information stored by the terminal one by one, the information summaries of the plurality of first configuration information correspond to the information summaries of the plurality of second configuration information one by one, the terminal can determine the second configuration information corresponding to any one of the plurality of first configuration information in the plurality of second configuration information through the information identification, and can also determine the information summary of the second configuration information corresponding to the information summary of any one of the plurality of first configuration information in the information summaries of the plurality of second configuration information through the information identification.
For example, according to the information abstract of each first configuration information in the plurality of first configuration information, determining the information abstract of the second configuration information which is the same as the information identifier of each first configuration information, determining whether the information abstract of each first configuration information is matched with the information abstract of the corresponding second configuration information, if not, determining the information identifier of the second configuration information which is the same as the first configuration information identifier but not matched with the information abstract as the target information identifier.
And 204, updating the second configuration information corresponding to the target information identifier stored by the terminal according to the first configuration information corresponding to the target information identifier stored by the server.
On the basis of determining the target information identification, namely, determining the information identification of the configuration information which is synchronously updated and has problems in the second configuration information set stored by the terminal, the terminal can only modify the configuration information corresponding to the target information identification, so that the problem of invalid modification caused by modifying all the configuration information can be avoided.
As an example, before updating the second configuration information corresponding to the target information identifier, the terminal should also acquire the first configuration information corresponding to the target information identifier stored in the server.
For example, the terminal acquires the plurality of first configuration information at the same time as the information identifier and the information abstract of the plurality of first configuration information in step 202. For example, in step 202, the server may further carry a plurality of first configuration information in the information summary obtaining response sent by the server to the terminal, so that the terminal may obtain a plurality of first configuration information stored by the server.
For example, after determining the target information identifier in step 203, the terminal may acquire the first configuration information corresponding to the target information identifier from the server by sending a configuration information acquisition request to the server.
As an example, the terminal sends a configuration information acquisition request to the server, where the information acquisition request carries a first version number and a target information identifier, and the configuration information acquisition request is used to request to acquire first configuration information stored by the server and corresponding to the target information identifier. And then the server receives a configuration information acquisition request sent by the terminal and sends a configuration information acquisition response to the terminal, wherein the configuration information acquisition response carries first configuration information corresponding to the target information identifier stored by the server, for example, the terminal searches the first configuration information corresponding to the target information identifier from the first configuration information set according to the first version number. And then, the terminal receives a configuration information acquisition response sent by the server to obtain first configuration information corresponding to the target information identifier stored by the server.
For example, the terminal may update the second configuration information corresponding to the target information identifier stored in the terminal to the first configuration information corresponding to the target information identifier stored in the server.
As an example, the terminal may further update the information abstract of the second configuration information corresponding to the target information identifier stored in the terminal according to the information abstract of the first configuration information corresponding to the target information identifier stored in the server. For example, the terminal may update the information abstract of the second configuration information corresponding to the target information identifier to the information abstract of the first configuration information corresponding to the target information identifier.
In the embodiment of the present application, the configuration information processing method will be described by taking only any one of the plurality of terminals 30 included in the configuration information processing system as shown in fig. 1 as an example. Each of the plurality of terminals 30 included in the configuration information processing system shown in fig. 1 may perform the above-described steps 201 to 204, so that each terminal may determine a processing result of the configuration information stored in itself and determine configuration information in which a problem occurs in synchronization update in the configuration information set.
In the embodiment of the present application, a terminal firstly obtains a first version number of a first configuration information set including a plurality of first configuration information of a designated object stored in a server, if it is determined that a second version number of a second configuration information set including a plurality of second configuration information of the designated object stored in the terminal is inconsistent with the first version number, an information identifier and an information abstract of each first configuration information of the plurality of first configuration information stored in the server are obtained from the server, then a target information identifier is determined from information identifiers of the plurality of second configuration information stored in the terminal according to the information identifiers and the information abstracts of the plurality of first configuration information, and then second configuration information corresponding to the target information identifier stored in the terminal is updated according to the first configuration information corresponding to the target information identifier stored in the server. The target information identifier refers to an information identifier which is the same as any one of the information identifiers of the plurality of second configuration information and is not matched with the corresponding information abstract, namely, the information identifier of the configuration information which is synchronously updated in the second configuration information set stored in the terminal and has a problem.
Therefore, the terminal can distinguish the configuration information sets stored by the terminal and the server respectively through the version numbers, automatically check whether the configuration information sets stored by the terminal are consistent with the configuration information sets stored by the server according to the version numbers, if so, determine that the configuration information sets of the terminal are successfully updated, and if not, determine that the configuration information sets of the terminal are failed to update, namely, the terminal can automatically check whether the configuration information is successfully updated according to the version numbers, automatically determine the processing result of the configuration information sets of the appointed objects, and the processing efficiency of the configuration information is higher. In addition, on the basis of determining that the updating of the configuration information set of the terminal is problematic, the terminal can automatically and rapidly determine the updated configuration information with the problem from the configuration information set stored by the terminal through the information abstract, and then only update the configuration information with the problem in the terminal, so that the problem of invalid modification caused by modifying all the configuration information is avoided, and the processing efficiency of the configuration information is further improved.
The control device may process the configuration information set of the specified object stored in the server, or may process the configuration information set of the specified object stored in each of the plurality of terminals. Next, a configuration information processing method will be described by taking interaction of a control device, a server, and a terminal as an example.
Referring to fig. 3, fig. 3 is a flowchart of another configuration information processing method according to an embodiment of the present application. The configuration information processing method may be applied to any one of the control device 10, the server 20, and the plurality of terminals 30 included in the configuration information processing system shown in fig. 1. As shown in fig. 3, the method comprises the steps of:
in step 301, the control device sends a configuration information modification request to the server.
For convenience of explanation, in the embodiment of the present application, before the control device does not update the configuration information sets of the server and the terminal, the third version number of the third configuration information set of the specified object, the third configuration information set, and the information identifier and the information digest of each of the plurality of third configuration information sets included in the third configuration information set are stored in the server, and the second version number of the second configuration information set of the specified object, the second configuration information set, and the information identifier and the information digest of each of the plurality of second configuration information sets included in the second configuration information set are stored in the terminal.
The configuration information modification request carries a first version number, at least one modification information identifier, modification configuration information corresponding to each modification information identifier and a modification information abstract, and the at least one modification information identifier is used for indicating an information identifier of third configuration information to be modified in a third configuration information set of a specified object stored by the server.
The configuration information modification request is used for indicating the server to update the third version number of the third configuration information set stored by the server, at least one third configuration information corresponding to the at least one modification information identifier in the third configuration information set one by one and the information abstract of each third configuration information in the at least one third configuration information according to the first version number, the modification configuration information corresponding to each modification information identifier in the at least one modification information identifier and the modification information abstract.
The third configuration information set comprises a plurality of third configuration information sets, wherein the third configuration information sets are configuration information sets obtained by the control equipment after updating the configuration information sets stored by the server last time, and the third version numbers are used for indicating the modification times of the configuration information sets of the specified objects.
As an example, before the control device sends the configuration information modification request to the server, a modification permission obtaining request may also be sent to the server to obtain permission for modifying the third configuration information set stored by the server, so as to avoid that the plurality of devices update the third version number of the third configuration information set stored by the server, at least one third configuration information in the third configuration information set, which corresponds to at least one modification information identifier one to one, and an information abstract of each third configuration information in the at least one third configuration information at the same time.
For example, the control device sends a modification permission obtaining request to the server, the modification permission obtaining request is used for requesting to obtain the third configuration information set stored by the modification server, the server receives the modification permission obtaining request sent by the control device, and sends a modification permission obtaining response carrying the first version number to the control device according to the third version number of the third configuration information set stored by the server, and the modification permission obtaining response is used for indicating that the control device has the permission of modifying the third configuration information set stored by the server into the first configuration information set indicated by the first version number. And then the control equipment receives a modification authority acquisition response carrying the first version number sent by the server, and acquires the authority of the first configuration information set indicated by the first version number for modifying the third configuration information set stored by the server.
As an example, the server may further send the third set of configuration information, and the information identifier and the information digest of each of the third set of configuration information, to the control device after receiving the modification right acquisition request sent by the control device, and/or send the third version number of the third set of configuration information stored by the server to the control device after receiving the modification right acquisition request sent by the control device.
The control device can determine at least one modification information identifier from the information identifiers of the third configuration information set according to the third configuration information set sent by the server and the information identifiers and the information abstracts of each third configuration information in the third configuration information set, and determine the third configuration information to be modified and the information abstracts of the third configuration information to be modified, which correspond to each modification information identifier in the at least one modification information identifier, from the third configuration information set. Or, the control device may determine, according to the third version number sent by the server, the third configuration information set corresponding to the third version number and the information identifier and the information summary of each third configuration information in the third configuration information set stored in the control device, then determine at least one modification information identifier from the information identifiers in the third configuration information set, and determine, from the third configuration information set, the third configuration information to be modified and the information summary of the third configuration information to be modified, where the third configuration information corresponds to each modification information identifier in the at least one modification information identifier.
For example, the control device may further receive the third set of configuration information sent by the server, and the information identifier and the information digest of each third configuration information in the third set of configuration information, and/or receive the third version number of the third set of configuration information stored by the server and sent by the server.
As an example, before sending the configuration information modification request to the server, the control device may further obtain at least one modification information identifier and modification configuration information corresponding to each modification information identifier in the at least one modification information identifier, determine a modification information summary of modification configuration information corresponding to each modification information identifier according to the modification configuration information corresponding to each modification information identifier, and then send the configuration information modification request to the server.
For example, the control device may obtain the at least one modification information identifier and modification configuration information corresponding to each of the at least one modification information identifier through the configuration information modification instruction.
As an example, the control device may obtain a configuration information modification instruction, where the configuration information modification instruction carries at least one modification information identifier and modification configuration information corresponding to each of the at least one modification information identifier.
For example, the configuration information modification instruction may be triggered by a user, or automatically by the control device. For example, the control device includes a display screen, the control device detects a configuration information modification operation of a user through the display screen, and triggers a configuration information modification instruction, where an operation type of the configuration information modification operation may be a click operation, a press operation, a language operation, or a gesture operation, which is not limited in the embodiment of the present application.
For example, the modification information summary of the modification configuration information corresponding to each modification information identifier can be obtained through the operation of the summary algorithm.
Step 302, the server receives a configuration information modification request sent by the control device, and updates, according to the first version number, the modification configuration information and the modification information abstract corresponding to each modification information identifier in the at least one modification information identifier, a third version number of a third configuration information set stored by the server, at least one third configuration information in the third configuration information set corresponding to the at least one modification information identifier one to one, and the information abstract of each third configuration information in the at least one third configuration information.
The first version number is a version number of a first configuration information set obtained by modifying a third configuration information set corresponding to a third version number stored in the server by the control device, and the first configuration information set is a configuration information set obtained by modifying at least one third configuration information in the third configuration information set.
For example, after updating the third version number of the third configuration information set, at least one third configuration information corresponding to at least one modification information identifier in the third configuration information set and the information abstract of each third configuration information, the server may obtain the first version number of the first configuration information set of the specified object stored by the server, the first configuration information set, and the information identifier and the information abstract of each first configuration information in the plurality of first configuration information included in the first configuration information set. The plurality of first configuration information includes modification configuration information corresponding to at least one modification information identifier one by one, and other third configuration information except for third configuration information corresponding to the at least one modification information identifier in the third configuration information set, and the information digests of the plurality of first configuration information include modification information digests corresponding to the at least one modification information identifier one by one, and information digests of other third configuration information except for the information digests of the third configuration information corresponding to the at least one modification information identifier in the information digests of the plurality of third configuration information.
The plurality of third configuration information and the plurality of first configuration information are in one-to-one correspondence through information identification.
For example, the server may implement updating the third version number of the third configuration information set, at least one third configuration information in the third configuration information set corresponding to the at least one modification information identifier one-to-one, and the information digest of each third configuration information in the at least one third configuration information set by:
step 3021, updating each piece of third configuration information in at least one piece of third configuration information stored in the server and corresponding to at least one piece of modification information identification to modification configuration information corresponding to each piece of modification information identification in the at least one piece of modification information identification.
For example, after updating each third configuration information in at least one third configuration information stored in the server and corresponding to at least one modification information identifier one by one, the first configuration information set may be obtained.
For example, the server determines at least one third configuration information corresponding to the at least one modification information identifier one by one from the third configuration information set, and then updates each third configuration information in the at least one third configuration information to modification configuration information corresponding to the modification information identifier of each third configuration information, where the obtained plurality of first configuration information specifically includes at least one modification configuration information updated on the at least one third configuration information and other third configuration information except for the at least one third configuration information in the third configuration information set.
As an example, before updating each third configuration information in the at least one third configuration information, the server should also determine a storage capacity for storing the modification configuration information corresponding to each modification information identifier in the at least one modification information identifier, and if the storage capacity is greater than the threshold value, the modification configuration information may be formatted in a preset data format. The preset data format may be a HashMap (hash map) data structure format or a red-black tree data structure format, which is not limited in the embodiment of the present application.
For example, for a first modification information identifier in at least one modification information identifier, the server determines a storage capacity of modification configuration information corresponding to the first modification information identifier, where the first modification information identifier is any one of the at least one modification information identifier, if it is determined that the storage capacity is greater than a threshold, format conversion is performed on the modification configuration information corresponding to the first modification information identifier by using a preset data format, and then third configuration information corresponding to the first modification information identifier stored by the server is updated to the format-converted modification configuration information.
As an example, the data format of the at least one modified configuration information prior to the format conversion is a raw data format, which may be a text format, such as text in JSON data format.
As an example, if the server determines that the storage capacity is less than or equal to the threshold, the server may also use a preset data format to perform format conversion on the modification configuration information corresponding to the first modification information identifier.
As an example, the server may represent the modification configuration information corresponding to the first modification information identifier in the original data format as a configuration information key and a key value, convert the configuration information into modification configuration information in the form of a multi-tree key value pair, store the modification configuration information in the form of the multi-tree key value pair by using the preset data format, and update the third configuration information corresponding to the first modification information identifier stored in the server into modification configuration information in the form of the multi-tree key value pair stored using the preset data format.
In this way, through format conversion of the modified configuration information, the configuration information set of the designated object can be stored in the server in the form of a multi-tree key value pair, that is, each configuration information in the plurality of configuration information can be represented as a configuration information keyword and a keyword value, so that the server can conveniently find the corresponding configuration information from the plurality of configuration information, and the terminal can also store the plurality of configuration information in the form of the multi-tree key value pair after acquiring the configuration information set stored by the server, so that the terminal can only acquire the self-stored configuration information corresponding to the realized service in the service realization process, thereby reducing the occupation of the memory by the process when the terminal realizes the corresponding service and improving the operation efficiency of the terminal.
Step 3022, updating the information abstract of each third configuration information in the at least one third configuration information, which is stored in the server and corresponds to the at least one modification information identifier one by one, to a modification information abstract corresponding to each modification information identifier in the at least one modification information identifier.
For example, after updating the information abstract of each third configuration information in at least one third configuration information which is stored in the server and corresponds to at least one modification information identifier one by one, the information abstract of each first configuration information in the first configuration information set can be obtained.
For example, the server determines, from the third configuration information set, an information digest of at least one third configuration information corresponding to the at least one modification information identifier one-to-one, and then updates the information digest of each third configuration information in the at least one third configuration information to a modification information digest corresponding to the (information identifier) modification information identifier of each third configuration information, where the obtained information digests of the plurality of first configuration information specifically include at least one modification information digest after updating the information digest of the at least one third configuration information, and information digests of other third configuration information except the information digest of the at least one third configuration information in the information digests of the plurality of third configuration information.
Step 3023, updating the third version number stored by the server to the first version number.
For example, after updating the third configuration information set and the information summaries of the plurality of third configuration information stored in the server to obtain the first configuration information set and the information summaries of the plurality of first configuration information, the version number of the first configuration information set is determined as the first version number.
As one example, the server may store in its memory space a version number of the set of configuration information that the control device last updated to the server, the set of configuration information, and an information identification and information digest of each of a plurality of configuration information included in the set of configuration information. Alternatively, the server may store, in its storage space, the version number of the configuration information set, and the information identification and the information digest of each of the plurality of configuration information included in the configuration information set, each updated by the control device to the server, so that the version number stored by the server, the configuration information set, and the information identification and the information digest of each of the plurality of configuration information included in the configuration information set may be rolled back to any content that was updated before.
As an example, after steps 3021 to 3023, that is, after updating the third version number of the third configuration information set, at least one third configuration information in the third configuration information set corresponding to the at least one modification information identifier one by one, and the information digest of each of the at least one third configuration information, the server may further generate a configuration information change flow log, and store the configuration information change flow log to the database of the server, where the configuration information change flow log includes the third configuration information and the third version number to be modified in the third configuration information set before the update, and the modified first configuration information and the first version number in the first configuration information set after the update. Thus, the configuration information set of the specified object stored by the server and the version number of the configuration information set are rolled back.
For example, the configuration information change journal may further include other information, which is not limited in this embodiment of the present application. For example, the configuration information change journal further includes a third configuration information set before update, an information summary of the third configuration information set, or a first configuration information set after update, an information summary of the first configuration information set, or a time of updating the configuration information, etc.
For example, after receiving a rollback configuration information instruction carrying a rollback version number, the server may change the flow log according to the rollback version number and the configuration information in the database, and rollback the configuration information set of the specified object stored by the server and the version number of the configuration information set. Or, the rollback configuration information instruction may also carry a rollback time point and the like, and rollback the configuration information set stored by the server and the version number of the configuration information set to the content corresponding to the rollback time point.
For example, the rollback configuration information instruction may be triggered after the server receives the rollback configuration information request sent by the control device, or may be triggered automatically by the server, which is not limited in this embodiment of the present application. For example, the control device may send a rollback configuration information request to the server under the condition that it is determined that the configuration information of the server is updated in error or the control device maliciously updates the configuration information of the server, where the rollback configuration information request carries a version number of the configuration information set of the server, and after receiving the rollback configuration information request, the server rolls back the version number stored by the server, the configuration information set, and the information identifier and the information digest of each configuration information in the plurality of configuration information sets included in the configuration information set to the version number, the configuration information set, and the information identifier and the information digest of each configuration information in the plurality of configuration information sets included in the configuration information set, which are obtained after the control device last updates the configuration information set of the server.
As an example, after updating the third version number of the third configuration information set, at least one third configuration information in the third configuration information set, which corresponds to the at least one modification information identifier one-to-one, and the information digest of each of the at least one third configuration information, the server further sends a modification configuration success response to the control device, where the modification configuration success response is used to indicate that the third configuration information set stored by the server is successfully modified to the first configuration information set indicated by the first version number. The control equipment receives the response of successful configuration modification sent by the server, and determines that the control equipment is successful in processing the configuration information set of the specified object stored by the server, namely, the control equipment is successful in updating the configuration information set of the specified object stored by the server.
As one example, if it is determined that the modification configuration success response sent by the server is not received within the preset time, the control device determines that the configuration information set processing of the specified object stored by the server fails. In this case, the control device may perform the above steps 301 to 302 again, or perform the above step 302 to update the version number of the third configuration information set stored in the server, the third configuration information set, and the information digest of each of the plurality of third configuration information again.
As an example, the control device may process the configuration information set of the specified object stored in each of the plurality of terminals after receiving the modification configuration success response sent by the server, that is, after determining that the third configuration information set stored in the server is successfully modified to the first configuration information set indicated by the first version number.
For example, the control device processes the configuration information set of the specified object stored in the terminal by sending a configuration change instruction to the terminal.
In step 303, the control device sends a configuration change instruction to the terminal.
The configuration change instruction carries a first version number and at least one modification information identifier, the first version number is a version number of a first configuration information set obtained by modifying a third configuration information set of a designated object stored in the server, and the at least one modification information identifier is an information identifier of modified first configuration information in the first configuration information set.
The configuration change instruction is configured to instruct the terminal to obtain updated third configuration information corresponding to each modification information identifier in the at least one modification information identifier and an information abstract of each updated third configuration information from the server, and update a second version number of a second configuration information set of a specified object stored in the terminal, at least one second configuration information corresponding to at least one modification information identifier in the second configuration information set, and an information abstract of each second configuration information in the at least one second configuration information according to the first version number, the updated third configuration information corresponding to each modification information identifier in the at least one modification information identifier, and the information abstract of each updated third configuration information. The updated third configuration information is the corresponding first configuration information.
Wherein the second set of configuration information includes a plurality of second configuration information.
As an example, the control device may also send the first version number and the at least one modification information identity to the terminal via a message queue. For example, the control device may issue a configuration change message carrying the first version number and at least one modification information identifier, where the configuration change message has the same function as the configuration change instruction, so that all terminals subscribed to the configuration change message may acquire the first version number and the at least one modification information identifier, so that the efficiency of the control device for synchronously updating the configuration information sets of the plurality of terminals is higher.
Step 304, the terminal receives the configuration change instruction sent by the control device, and obtains at least one first configuration information corresponding to the at least one modification information identifier one by one and an information abstract of each first configuration information in the at least one first configuration information from the server.
As an example, the terminal may also subscribe to a configuration change message sent by the control device, thereby obtaining the first version number and the at least one modification information identity.
The terminal receives a configuration change instruction sent by the control device, namely, the control device is determined to process a configuration information set of the terminal, in this case, the terminal may obtain at least one first configuration information corresponding to at least one modification information identifier one by one in the first configuration information set indicated by the first version number and an information abstract of each first configuration information in the at least one first configuration information from the server.
As an example, the terminal may acquire at least one first configuration information corresponding to the at least one modification information identifier one by one and an information digest of each of the at least one first configuration information from the server by transmitting an acquisition request to the server.
For example, the terminal sends an acquisition request to the server, where the acquisition request carries a first version number and at least one modification information identifier, and the acquisition request is used to request to acquire at least one first configuration information corresponding to the at least one modification information identifier in a first configuration information set corresponding to the first version number stored in the server, and an information abstract of each first configuration information in the at least one first configuration information. And then the server receives the acquisition request sent by the terminal, and sends an acquisition response to the terminal, wherein the acquisition response carries at least one first configuration information stored in the service area and an information abstract of each first configuration information in the at least one first configuration information. And the terminal receives the acquisition response sent by the server and obtains at least one first configuration information corresponding to the at least one modification information identifier one by one and an information abstract of each first configuration information in the at least one first configuration information.
As an example, after receiving the acquisition request, the server may determine the first configuration information set according to the first version number, determine at least one first configuration information corresponding to the at least one modification information identifier one-to-one from the first configuration information set determination according to the at least one modification information identifier, and determine an information digest of each first configuration information in the at least one first configuration information.
As an example, the terminal may also obtain at least one first configuration information corresponding to the at least one modification information identifier one-to-one from the server, and determine, according to the at least one first configuration information, an information digest of each first configuration information in the at least one first configuration information.
In step 305, the terminal updates the second version number of the second configuration information set of the specified object stored in the terminal, at least one second configuration information in the second configuration information set corresponding to the at least one modification information identifier one by one, and the information abstract of each second configuration information in the at least one second configuration information according to the first version number, the at least one first configuration information, and the information abstract of each first configuration information in the at least one first configuration information.
For example, after updating the second version number, at least one second configuration information in the second configuration information set, which corresponds to at least one modification information identifier one by one, and the information abstract of each second configuration information in the at least one second configuration information, the terminal may obtain a fourth version number of the fourth configuration information of the specified object, the fourth configuration information set, and the information identifier and the information abstract of each fourth configuration information in the plurality of fourth configuration information included in the fourth configuration information set. The plurality of fourth configuration information includes first configuration information corresponding to the at least one modification information identifier one by one and other second configuration information in the second configuration information set except for the second configuration information corresponding to the at least one modification information identifier, and the information digest of the plurality of fourth configuration information includes information digests of the first configuration information corresponding to the at least one modification information identifier one by one and information digests of other second configuration information in the information digests of the plurality of second configuration information except for the second configuration information corresponding to the at least one modification information identifier.
The second configuration information and the fourth configuration information are in one-to-one correspondence through information identification.
For example, the terminal may update the second version number, at least one second configuration information in the second configuration information set, which corresponds to the at least one modification information identifier one-to-one, and an information summary of each second configuration information in the at least one second configuration information by:
step 3051, updating each piece of second configuration information in at least one piece of second configuration information corresponding to at least one modification information identifier stored in the terminal into first configuration information corresponding to each modification information identifier in at least one modification information identifier.
For example, after updating each piece of second configuration information in at least one piece of second configuration information, which is stored in the terminal and corresponds to at least one piece of modification information identifier, a fourth configuration information set can be obtained.
For example, the terminal determines at least one second configuration information corresponding to the at least one modification information identifier one by one from the second configuration information set, and updates each second configuration information in the at least one second configuration information to a first configuration information corresponding to the modification information identifier of each second configuration information, where the obtained plurality of fourth configuration information specifically includes at least one first configuration information obtained by updating the at least one second configuration information and other second configuration information except the at least one second configuration information in the second configuration information set.
Step 3052, updating the information abstract of each second configuration information in at least one second configuration information corresponding to at least one modification information identifier in a one-to-one correspondence manner stored by the terminal to the information abstract of the first configuration information corresponding to each modification information identifier in at least one modification information identifier.
For example, after updating the information abstract of each second configuration information in at least one second configuration information which is stored in the terminal and corresponds to at least one modification information identifier one by one, the information abstract of each fourth configuration information in the fourth configuration information set can be obtained.
For example, the terminal determines the information abstract of at least one second configuration information corresponding to the at least one modification information identifier one by one from the second configuration information set, and then updates the information abstract of each second configuration information in the at least one second configuration information to the information abstract of the first configuration information corresponding to the modification information identifier of each second configuration information, where the obtained information abstracts of the plurality of fourth configuration information specifically include the information abstract of at least one first configuration information after the information abstract of the at least one second configuration information is updated and the information abstracts of other second configuration information except the information abstract of the at least one second configuration information in the information abstracts of the plurality of second configuration information.
And step 3053, updating the second version number stored by the terminal to a fourth version number.
For example, after updating the second configuration information set and the information summaries of the plurality of second configuration information stored in the terminal to obtain a fourth configuration information set and the information summaries of the plurality of fourth configuration information, the version number of the fourth configuration information set is determined as the fourth version number.
As an example, after obtaining the fourth version number, the fourth configuration information set, and the information summaries of the plurality of fourth configuration information, the terminal may delete the second version number, the second configuration information set, and the information summaries of the plurality of second configuration information stored in the terminal, so as to quickly determine the obtained configuration information in the process of implementing the service function by the terminal.
As an example, the storage format of the server storing the at least one first configuration information may be a preset data format, so that after updating at least one second configuration information corresponding to the at least one modification information identifier in the second configuration information set according to the at least one first configuration information, the storage format of a plurality of fourth configuration information in the obtained fourth configuration information set is also a preset data format.
It should be noted that, in the step 305, that is, the steps 3051-3053, the terminal is instructed to update the second configuration information set stored by the control device and the server successfully, and after the update is successful, the version number of the fourth configuration information set, the information identifier and the information abstract of each fourth configuration information in the plurality of fourth configuration information are stored in the terminal. However, there may be a case that the terminal fails to update the second configuration information set stored by the control device and the server, and the terminal still stores the second version number of the second configuration information set, and the like when the update fails.
As an example, the terminal may obtain corresponding configuration information according to a user requirement, and implement a corresponding service function according to the corresponding configuration information. For example, the terminal may receive a user request carrying user related information, determine, according to the user related information, configuration information corresponding to the user related information in the configuration information set stored in the terminal, and implement a corresponding service function according to the configuration information corresponding to the user related information.
For example, the terminal stores a configuration information set of the insurance service system, the terminal receives a user request, the user request carries information such as requested tariff, gender and age, the terminal determines tariff information meeting the gender and age from the configuration information set of the insurance service system according to the requested tariff, gender and age, and the tariff information meeting the gender and age is displayed through a display screen of the terminal.
As an example, if the plurality of configuration information stored in the terminal is stored in a preset data format, the preset data format is a HashMap data structure format or a redblack tree data structure format, that is, the plurality of configuration information is stored in the terminal in the form of a multi-way tree key value pair, each of the plurality of configuration information may be represented as a configuration information key and a key value. In this case, the terminal may determine the user keyword according to the user related information after receiving the user request, determine at least one corresponding configuration information keyword according to the user keyword, traverse the multi-way tree, determine at least one keyword value corresponding to the at least one configuration information keyword one by one from the multi-way tree, assemble the at least one configuration information keyword and the at least one keyword value into a configuration information set corresponding to the user related information in an original data format, implement a corresponding service function according to the configuration information set corresponding to the user related information in the original data format, so that the terminal only obtains the configuration information set corresponding to the user related information from the configuration information set, reduce occupation of memory by a process when implementing a corresponding service by the terminal, and improve operation efficiency of the terminal
As one example, there may be a case where the terminal fails to acquire the configuration information corresponding to the user-related information. For example, the failure of the storage space of the terminal for storing the configuration information set, the existence of viruses in the terminal and the like can cause the failure of the terminal to acquire the configuration information stored by the terminal and corresponding to the relevant information of the user. In this case, the terminal may first acquire and store the configuration information set of the specified object from the server, and then implement the corresponding service function according to the configuration information set stored in the terminal.
As an example, to avoid the situation that the terminal fails to acquire the configuration information corresponding to the user related information in the process of implementing the service function, the terminal may execute the steps in the embodiment of fig. 2 under the conditions of a preset time interval, a preset time point, or after the terminal updates the configuration information set stored by the terminal, so as to ensure that the configuration information set stored by the terminal is consistent with the configuration information set stored by the server, that is, ensure that the terminal stores the correct configuration information set, thereby improving user experience.
In the embodiment of the present application, the configuration information processing method will be described by taking, as an example, only any one of the control device 10, the server 20, and the plurality of terminals 30 included in the configuration information processing system shown in fig. 1. Each of the plurality of terminals 10 included in the configuration information processing system shown in fig. 1 may communicate with the control device and the server to perform the above steps 301 to 305, so that the configuration information set of the specified object stored in the server and the configuration information set of the specified object stored in the terminal may be updated synchronously.
According to the embodiment of the application, the control device sends a configuration information modification request to the server, the server receives the configuration information modification request sent by the control device, and updates the third version number of the third configuration information set stored by the server, at least one third configuration information in the third configuration information set, which corresponds to at least one modification information identifier one by one, and the information abstract of each third configuration information in the at least one third configuration information according to the first version number, the modification configuration information corresponding to each modification information identifier in the at least one modification information identifier, and the modification information abstract. And then the control equipment sends a configuration change instruction to the terminal, the terminal receives the configuration change instruction sent by the control equipment, acquires at least one first configuration information corresponding to at least one modification information identifier one by one and an information abstract of each first configuration information in the at least one first configuration information from the server, and updates a second version number of a second configuration information set of a specified object stored by the terminal, at least one second configuration information corresponding to the at least one modification information identifier one by one in the second configuration information set and an information abstract of each second configuration information in the at least one second configuration information according to the first version number, the at least one first configuration information and the information abstract of each first configuration information in the at least one first configuration information. Therefore, the control device can synchronously update the configuration information set of the specified object stored in the server, and then synchronously update the configuration information set of the specified object stored in the terminal, so that the configuration information set is efficiently subjected to synchronous update processing and maintenance.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 4, the computer device includes: a processor 401, a memory 402 and a computer program 403 stored in the memory 402 and executable on the processor 401, the processor 401 implementing the steps in the configuration information processing method in the embodiment of fig. 2-3 described above when executing the computer program 403.
The computer device may be any of the control device 10, the server 20, and the plurality of terminals 30 as in the embodiment of fig. 1. The computer device may be a general purpose computer device or a special purpose computer device. In a specific implementation, the computer device may be a desktop, a portable computer, a network server, a palm computer, a mobile phone, a tablet computer, a wireless terminal device, a communication device, or an embedded device, and the embodiments of the present application are not limited to the type of computer device. It will be appreciated by those skilled in the art that fig. 4 is merely an example of a computer device and is not intended to be limiting, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The computer device processor 401 may be a central processing unit (Central Processing Unit, CPU), and the processor 401 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. The general purpose processor may be a microprocessor or may be any conventional processor.
The memory 402 may be an internal storage unit of a computer device, such as a hard disk or memory of a computer device, in some embodiments. The memory 402 may also be an external storage device of the computer device in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the computer device. Further, the memory 402 may also include both internal storage units and external storage devices of the computer device. The memory 402 is used to store an operating system, application programs, boot Loader (Boot Loader), data, and other programs, etc. The memory 402 may also be used to temporarily store data that has been output or is to be output.
The embodiment of the application also provides a computer device, which comprises: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, which when executed by the processor performs the steps of any of the various method embodiments described above.
The present application also provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the respective method embodiments described above.
The present embodiments provide a computer program product which, when run on a computer, causes the computer to perform the steps of the various method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. With such understanding, the present application implements all or part of the flow of the above-described method embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, may implement the steps of the above-described method embodiments. Wherein the computer program comprises computer program code which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal device, recording medium, computer Memory, ROM (Read-Only Memory), RAM (Random Access Memory ), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, optical data storage device, and so forth. The computer readable storage medium mentioned in the present application may be a non-volatile storage medium, in other words, a non-transitory storage medium.
It should be understood that all or part of the steps to implement the above-described embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions may be stored in the computer-readable storage medium described above.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (12)

1. A configuration information processing method, applied to a terminal, the method comprising:
acquiring a first version number of a first configuration information set of a specified object stored in a server, wherein the first configuration information set comprises a plurality of pieces of first configuration information, and the server also stores an information identifier and an information abstract of each piece of first configuration information in the plurality of pieces of first configuration information;
if the second version number of the second configuration information set of the specified object stored in the terminal is inconsistent with the first version number, acquiring information identifiers and information abstracts of the plurality of first configuration information from the server, wherein the second configuration information set comprises a plurality of second configuration information, and the terminal also stores the information identifiers and the information abstracts of each second configuration information in the plurality of second configuration information;
determining a target information identification from the information identifications of the plurality of second configuration information stored by the terminal according to the information identifications and the information summaries of the plurality of first configuration information, wherein the target information identification is the information identification which is identical to any one of the information identifications of the plurality of first configuration information but is not matched with the corresponding information summary in the information identifications of the plurality of second configuration information;
And updating second configuration information stored by the terminal and corresponding to the target information identifier according to the first configuration information stored by the server and corresponding to the target information identifier.
2. The method of claim 1, wherein the method further comprises:
receiving a configuration change instruction sent by control equipment, wherein the configuration change instruction carries a first version number and at least one modification information identifier, the first version number is a version number of a first configuration information set obtained by modifying a third configuration information set of the specified object stored by the server, and the at least one modification information identifier is an information identifier of modified first configuration information in the first configuration information set;
acquiring at least one first configuration information corresponding to the at least one modification information identifier one by one and an information abstract of each first configuration information in the at least one first configuration information from the server;
and updating the second version number of the second configuration information set of the specified object stored by the terminal, at least one second configuration information in the second configuration information set, which corresponds to the at least one modification information identifier one by one, and the information abstract of each second configuration information in the at least one second configuration information according to the first version number, the at least one first configuration information and the information abstract of each first configuration information in the at least one first configuration information.
3. A configuration information processing method, characterized by being applied to a server, the method comprising:
receiving a configuration information modification request sent by control equipment, wherein the configuration information modification request carries a first version number, at least one modification information identifier, modification configuration information and modification information abstracts corresponding to each modification information identifier, and the at least one modification information identifier is used for indicating an information identifier of third configuration information to be modified in a third configuration information set of a specified object stored by the server;
and updating the third version number of the third configuration information set stored by the server, at least one third configuration information in the third configuration information set, which is in one-to-one correspondence with the at least one modification information identifier, and the information abstract of each third configuration information in the at least one third configuration information according to the first version number, the modification configuration information and the modification information abstract corresponding to each modification information identifier in the at least one modification information identifier.
4. The method of claim 3, wherein prior to receiving the configuration information modification request sent by the control device, the method further comprises:
Receiving a modification right acquisition request sent by the control device, wherein the modification right acquisition request is used for requesting to acquire the right for modifying the third configuration information set stored by the server;
and sending a modification right acquisition response to the control device according to the third version number of the third configuration information set stored by the server, wherein the modification right acquisition response is used for indicating that the control device has the right to modify the third configuration information set stored by the server into the first configuration information set indicated by the first version number.
5. The method of claim 3, wherein updating the third version number of the third set of configuration information stored by the server, the at least one third configuration information of the third set of configuration information that corresponds one-to-one to the at least one modification information identifier, and the information digest of each third configuration information of the at least one third configuration information according to the first version number, the modification configuration information and the modification information digest corresponding to each modification information identifier of the at least one modification information identifier comprises:
Updating each third configuration information in the at least one third configuration information which is stored in the server and corresponds to the at least one modification information identifier one by one into modification configuration information corresponding to each modification information identifier in the at least one modification information identifier;
updating the information abstract of each third configuration information in the at least one third configuration information which is stored by the server and corresponds to the at least one modification information identifier one by one into a modification information abstract corresponding to each modification information identifier in the at least one modification information identifier;
and updating the third version number stored by the server to the first version number.
6. The method of claim 5, wherein updating each third configuration information in the at least one third configuration information stored by the server and corresponding to the at least one modification information identifier to the modification configuration information corresponding to each modification information identifier in the at least one modification information identifier, comprises:
for a first modification information identifier in the at least one modification information identifier, determining a storage capacity of modification configuration information corresponding to the first modification information identifier, wherein the first modification information identifier is any one of the at least one modification information identifier;
If the storage capacity is larger than a threshold value, adopting a preset data format to perform format conversion on the modification configuration information corresponding to the first modification information identifier;
and updating the third configuration information stored by the server and corresponding to the first modification information identifier into the modification configuration information after format conversion.
7. The method of claim 3, wherein after the updating of the third version number of the third set of configuration information stored by the server, the at least one third configuration information of the third set of configuration information that corresponds one-to-one to the at least one modification information identifier, and the information digest of each third configuration information of the at least one third configuration information, the method further comprises:
and sending a modification configuration success response to the control device, wherein the modification configuration success response is used for indicating that the third configuration information set stored by the server is successfully modified into a first configuration information set indicated by the first version number.
8. A configuration information processing method, characterized by being applied to a control apparatus, the method comprising:
a configuration information modification request is sent to a server, the configuration information modification request carries a first version number, at least one modification information identifier, modification configuration information and modification information abstracts corresponding to each modification information identifier, the at least one modification information identifier is used for indicating an information identifier of third configuration information to be modified in a third configuration information set of a specified object stored by the server, the configuration information modification request is used for indicating the server to update the third version number of the third configuration information set stored by the server, at least one third configuration information corresponding to the at least one modification information identifier in the third configuration information set and the information abstracts of each third configuration information in the at least one third configuration information set according to the first version number, the modification configuration information and the modification information abstracts corresponding to each modification information identifier in the at least one modification information identifier.
9. The method of claim 8, wherein prior to sending the configuration information modification request to the server, further comprising:
sending a modification right acquisition request to the server, wherein the modification right acquisition request is used for requesting to acquire the right for modifying the third configuration information set stored by the server;
and receiving a modification right acquisition response sent by the server, wherein the modification right acquisition response is used for indicating the control equipment to acquire the right of modifying the third configuration information set stored by the server into the first configuration information set indicated by the first version number.
10. The method of claim 8, wherein the method further comprises:
and receiving a modification configuration success response sent by the server, wherein the modification configuration success response is used for indicating that the third configuration information set stored by the server is successfully modified into a first configuration information set indicated by the first version number.
11. The method of claim 10, wherein after receiving the modified configuration success response sent by the server, the method further comprises:
a configuration change instruction is sent to a terminal, the configuration change instruction carries the first version number and the at least one modification information identifier, the configuration change instruction is used for indicating the terminal to obtain updated third configuration information corresponding to each modification information identifier in the at least one modification information identifier and an information abstract of each updated third configuration information from the server, and the second version number of the second configuration information set of the specified object stored by the terminal, at least one second configuration information corresponding to the at least one modification information identifier in the second configuration information set and the information abstract of each second configuration information in the at least one second configuration information are updated according to the first version number, the updated third configuration information corresponding to each modification information identifier in the at least one modification information identifier and the information abstract of each second configuration information.
12. A configuration information processing method, characterized by being applied to a control device, a server, and a terminal, the method comprising:
the control equipment sends a configuration information modification request to a server, wherein the configuration information modification request carries a first version number, at least one modification information identifier, modification configuration information and modification information abstracts corresponding to each modification information identifier, and the at least one modification information identifier is used for indicating an information identifier of third configuration information to be modified in a third configuration information set of a specified object stored by the server;
the server receives the configuration information modification request sent by the control equipment;
the server updates a third version number of the third configuration information set stored by the server, at least one third configuration information in the third configuration information set, which corresponds to the at least one modification information identifier one by one, and an information abstract of each third configuration information in the at least one third configuration information according to the first version number, the modification configuration information and the modification information abstract corresponding to each modification information identifier in the at least one modification information identifier;
The control device sends a configuration change instruction to a terminal, wherein the configuration change instruction carries the first version number and the at least one modification information identifier, the first version number is a version number of a first configuration information set obtained by modifying a third configuration information set of the specified object stored by the server, and the at least one modification information identifier is an information identifier of modified first configuration information in the first configuration information set;
the terminal receives the configuration change instruction sent by the control equipment;
the terminal acquires at least one first configuration information corresponding to the at least one modification information identifier one by one and an information abstract of each first configuration information in the at least one first configuration information from the server;
and the terminal updates the second version number of the second configuration information set of the specified object stored by the terminal, at least one second configuration information in the second configuration information set, which is in one-to-one correspondence with the at least one modification information identifier, and the information abstract of each second configuration information in the at least one second configuration information according to the first version number, the at least one first configuration information and the information abstract of each first configuration information in the at least one first configuration information.
CN202210848802.2A 2022-07-19 2022-07-19 Configuration information processing method Active CN115314382B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210848802.2A CN115314382B (en) 2022-07-19 2022-07-19 Configuration information processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210848802.2A CN115314382B (en) 2022-07-19 2022-07-19 Configuration information processing method

Publications (2)

Publication Number Publication Date
CN115314382A CN115314382A (en) 2022-11-08
CN115314382B true CN115314382B (en) 2024-03-19

Family

ID=83856395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210848802.2A Active CN115314382B (en) 2022-07-19 2022-07-19 Configuration information processing method

Country Status (1)

Country Link
CN (1) CN115314382B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106919372A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 The method of adjustment and device of a kind of terminal configuration
CN111262726A (en) * 2020-01-08 2020-06-09 Oppo广东移动通信有限公司 Configuration information updating method and device and computer readable storage medium
JP2021111115A (en) * 2020-01-10 2021-08-02 キヤノン電子株式会社 Communication control system
CN113692309A (en) * 2021-09-14 2021-11-23 商汤国际私人有限公司 Configuration updating method and device, equipment and storage medium
CN114124924A (en) * 2020-08-25 2022-03-01 深圳市欢太科技有限公司 Method, equipment and system for determining configuration information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106919372A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 The method of adjustment and device of a kind of terminal configuration
CN111262726A (en) * 2020-01-08 2020-06-09 Oppo广东移动通信有限公司 Configuration information updating method and device and computer readable storage medium
JP2021111115A (en) * 2020-01-10 2021-08-02 キヤノン電子株式会社 Communication control system
CN114124924A (en) * 2020-08-25 2022-03-01 深圳市欢太科技有限公司 Method, equipment and system for determining configuration information
CN113692309A (en) * 2021-09-14 2021-11-23 商汤国际私人有限公司 Configuration updating method and device, equipment and storage medium

Also Published As

Publication number Publication date
CN115314382A (en) 2022-11-08

Similar Documents

Publication Publication Date Title
CN111163182B (en) Block chain-based device registration method and apparatus, electronic device, and storage medium
CN110222107B (en) Data transmission method and related equipment
EP3940550A1 (en) Data compression methods and systems based on key-value store
CN110737719B (en) Data synchronization method, device, equipment and computer readable storage medium
CN113448862B (en) Software version testing method and device and computer equipment
CN110532107B (en) Interface calling method, device, computer equipment and storage medium
CN111737246A (en) Data fusion method and device, electronic equipment and storage medium
CN112860662A (en) Data blood relationship establishing method and device, computer equipment and storage medium
CN114139161A (en) Method, device, electronic equipment and medium for batch vulnerability detection
CN113821254A (en) Interface data processing method, device, storage medium and equipment
CN115314382B (en) Configuration information processing method
CN111722994A (en) Task request response method and device
CN115086047B (en) Interface authentication method and device, electronic equipment and storage medium
CN112783909B (en) Data updating method, device, terminal equipment and storage medium
CN115543837A (en) Software testing method and device, electronic equipment and storage medium
WO2017143931A1 (en) Method and apparatus for identifying smart card, method and apparatus for processing smart card identification data, and device
CN114584326A (en) Block chain data processing method and device, electronic equipment and storage medium
CN114143308A (en) File uploading information processing method and device, computer equipment and storage medium
CN113204558A (en) Method and device for automatically updating data table structure
CN111723007A (en) Test case merging method, system, equipment and medium
CN113610503A (en) Resume information processing method, device, equipment and medium
CN114547184A (en) Personnel information synchronization method, terminal device and storage medium
CN115004667A (en) Information pushing method and device, electronic equipment and computer readable medium
CN111539028A (en) File storage method and device, storage medium and electronic equipment
CN109683926B (en) Network component updating method, device, equipment and computer readable storage medium

Legal Events

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