Plug-in updating method and device, electronic equipment and storage medium

By receiving and decoding plug-in update instructions and obtaining and updating plug-in address information, the rapid update of the target verification plug-in is achieved, and the system downtime caused by configuration verification service update is solved, which improves update efficiency and user experience.

CN120406972APending Publication Date: 2025-08-01TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410141396.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-01
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

In the prior art, the update method of configuring verification services causes a long-term downtime of distributed systems, affecting user experience.

Method used

By receiving plug-in update instructions, decoding and updating plug-in data, obtaining update plug-in address information, and updating the plug-in call address of the target sub-application, in order to communicate with the update verification plug-in and achieve rapid update of the target verification plug-in.

Benefits of technology

It achieves rapid update of preset verification logic in the target application, avoids long-term downtime of the system, and improves user experience and update efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120406972A_ABST
    Figure CN120406972A_ABST
Patent Text Reader

Abstract

The invention relates to a plug-in updating method and device, electronic equipment and a storage medium, and relates to the technical field of computers, the plug-in updating method and device are applied to a target application, the target application is arranged in target equipment, the target application comprises a target sub-application and a target verification plug-in, and the target verification plug-in is used for verifying the target sub-application based on preset verification logic. A configuration verification result is determined from consistency verification results between to-be-verified configuration information and reference configuration information corresponding to the to-be-verified configuration information, and the method comprises the steps of receiving a plug-in updating instruction for a target verification plug-in; decoding the updated plug-in data to obtain an updated check plug-in so as to update the preset check logic; on the basis of the target plug-in identification information, obtaining update plug-in address information corresponding to the update verification plug-in; and on the basis of the updated plug-in address information, updating plug-in calling address information in the target sub-application. According to the embodiment of the invention, the updating efficiency of the preset verification logic in the target application can be improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular, to a method, apparatus, electronic device, and storage medium for plugin update. Background Art

[0002] The configuration verification service is a service used to verify network configurations and detect configuration inconsistencies. Such a service is generally deployed as a monolithic service on network element devices that require network forwarding. In the prior art, the logic of the configuration verification service is defined by code and is relatively fixed. If there is a need to update the logic in the configuration verification service, the overall service is usually upgraded and updated through a release system and an operation and maintenance system, and the update is generally carried out by releasing software packages and binary packages. However, the above method of updating by releasing software takes a long time for distributed systems, which will cause the system to be in a downtime state for a long time, thereby affecting the user experience. Summary of the Invention

[0003] In view of the above technical problems, the present disclosure provides a method, apparatus, electronic device, and storage medium for plugin update.

[0004] According to an aspect of an embodiment of the present disclosure, a method for plugin update is provided, which is applied to a target application. The target application is set on a target device. The target application includes a target sub-application and a target verification plugin. The target verification plugin is used to determine a configuration verification result from the consistency verification result between the to-be-verified configuration information and the reference configuration information corresponding to the to-be-verified configuration information based on a preset verification logic. The method includes:

[0005] Receiving a plugin update instruction for the target verification plugin, where the plugin update instruction includes target plugin identification information corresponding to the target verification plugin and update plugin data corresponding to the target verification plugin;

[0006] Performing decoding processing on the update plugin data to obtain an updated verification plugin to update the preset verification logic;

[0007] Based on the target plugin identification information, obtaining update plugin address information corresponding to the updated verification plugin;

[0008] Based on the update plugin address information, updating the plugin call address information in the target sub-application, so that the target sub-application can communicate with the updated verification plugin based on the updated plugin call address information.

[0009] According to another aspect of the embodiments of the present disclosure, there is provided a plug-in update device. The device is provided with a target application, the target application is set on a target device, the target application includes a target sub-application and a target verification plug-in, and the target verification plug-in is used to determine a configuration verification result from the consistency verification result between the to-be-verified configuration information and the reference configuration information corresponding to the to-be-verified configuration information based on a preset verification logic. The device includes:

[0010] An instruction receiving module, configured to receive a plug-in update instruction for the target verification plug-in, where the plug-in update instruction includes target plug-in identification information corresponding to the target verification plug-in and update plug-in data corresponding to the target verification plug-in;

[0011] A decoding module, configured to perform decoding processing on the update plug-in data to obtain an updated verification plug-in, so as to update the preset verification logic;

[0012] An address obtaining module, configured to obtain update plug-in address information corresponding to the updated verification plug-in based on the target plug-in identification information;

[0013] An address updating module, configured to update the plug-in call address information in the target sub-application based on the update plug-in address information, so that the target sub-application can communicate with the updated verification plug-in based on the updated plug-in call address information.

[0014] Optionally, the address obtaining module includes:

[0015] A current address obtaining module, configured to obtain current plug-in address information corresponding to the target verification plug-in based on the target plug-in identification information;

[0016] An update address obtaining module, configured to determine the update plug-in address information from multiple preset address information corresponding to the target verification plug-in based on the current plug-in address information.

[0017] Optionally, the update address obtaining module includes:

[0018] A to-be-selected address obtaining module, configured to determine to-be-selected address information based on the multiple preset address information and the current plug-in address information; the to-be-selected address information is the address information other than the current plug-in address information among the multiple preset address information;

[0019] An update address determining module, configured to determine the update plug-in address information based on the to-be-selected address information.

[0020] Optionally, the device further includes:

[0021] A binding processing module for performing binding processing on the updated plug-in address information and the update verification plug-in.

[0022] Optionally, the device further includes:

[0023] A plug-in running module for running the update verification plug-in;

[0024] A first instruction sending module for sending a startup status acquisition instruction to the update verification plug-in based on the updated plug-in address information, so that the update verification plug-in returns the current status indication information corresponding to the update verification plug-in;

[0025] Correspondingly, the address update module includes:

[0026] An invocation address update module for updating the plug-in invocation address information in the target sub-application based on the updated plug-in address information when the received current status indication information indicates that the update verification plug-in is in a normally started state.

[0027] Optionally, the plug-in update instruction further includes update instruction key information; the device further includes:

[0028] A key verification processing module for performing key verification processing on the update instruction key information to obtain a key verification result;

[0029] Correspondingly, the decoding module includes:

[0030] A first decoding module for decoding the updated plug-in data to obtain the update verification plug-in when the key verification result indicates that the update instruction key information is verified successfully.

[0031] Optionally, the plug-in update instruction further includes data signature information corresponding to the updated plug-in data; the device further includes:

[0032] A data verification module for performing data verification processing on the updated plug-in data based on the data signature information to obtain a data verification result;

[0033] Correspondingly, the decoding module includes:

[0034] A second decoding module for decoding the updated plug-in data to obtain the update verification plug-in when the key verification result indicates that the update instruction key information is verified successfully and the data verification result indicates that the updated plug-in data is verified successfully.

[0035] Optionally, the device further includes:

[0036] A deletion module, configured to delete the plugin file corresponding to the target verification plugin and the plugin configuration information corresponding to the target verification plugin.

[0037] Optionally, the preset verification logic includes a preset exception filtering condition, and the configuration verification result includes a first configuration verification result; the apparatus further includes:

[0038] A first request receiving module, configured to receive a first verification service request;

[0039] A first configuration obtaining module, configured to obtain the configuration information to be verified from the target device;

[0040] A second configuration obtaining module, configured to obtain the reference configuration information from the data storage layer of the target sub-application;

[0041] A second instruction sending module, configured to send a verification processing instruction to the updated verification plugin based on the updated plugin address information, the configuration information to be verified, and the reference configuration information, so that the updated verification plugin performs a consistency verification process on the configuration information to be verified based on the reference configuration information, obtains a first consistency verification result, and filters the results in the first consistency verification result that meet the preset exception filtering condition to obtain the first configuration verification result;

[0042] A first result receiving module, configured to receive the first configuration verification result returned by the updated verification plugin;

[0043] A first result returning module, configured to return the first configuration verification result based on the first verification service request.

[0044] Optionally, the preset verification logic includes a preset exception filtering condition, and the configuration verification result includes a second configuration verification result; the apparatus further includes:

[0045] A second request receiving module, configured to receive a second verification service request;

[0046] A third configuration obtaining module, configured to obtain the configuration information to be verified from the target device;

[0047] A fourth configuration obtaining module, configured to obtain the reference configuration information from the data storage layer of the target sub-application;

[0048] A third instruction sending module, configured to send a verification processing instruction to the target verification plugin based on the current plugin address information, the configuration information to be verified, and the reference configuration information, so that the target verification plugin performs a consistency verification process on the configuration information to be verified based on the reference configuration information, obtains a second consistency verification result, and filters the results in the second consistency verification result that meet the preset exception filtering condition to obtain the second configuration verification result;

[0049] A second result receiving module, configured to receive the second configuration verification result returned by the target verification plugin;

[0050] A second result returning module, configured to return the second configuration verification result based on the second verification service request.

[0051] According to another aspect of the embodiments of the present disclosure, there is provided an electronic device, including: a processor; a memory for storing executable instructions of the processor; wherein, the processor is configured to execute the instructions to implement the above-mentioned plugin update method.

[0052] According to another aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enabling the electronic device to execute the above-mentioned plugin update method.

[0053] According to another aspect of the embodiments of the present disclosure, there is provided a computer program product containing instructions, when it runs on a computer, enabling the computer to execute the above-mentioned plugin update method.

[0054] The technical solutions provided by the embodiments of the present disclosure at least bring the following beneficial effects:

[0055] By receiving a plugin update instruction for a target verification plugin, where the target verification plugin is used to determine a configuration verification result from the consistency verification result between the configuration information to be verified and the reference configuration information corresponding to the configuration information to be verified based on a preset verification logic, the plugin update instruction includes target plugin identification information corresponding to the target verification plugin and updated plugin data corresponding to the target verification plugin, it is possible to receive the update instruction of the target verification plugin, then perform decoding processing on the updated plugin data to obtain an updated verification plugin to update the preset verification logic, which can achieve a quick update of the target verification plugin in the target application, avoid overall update of the target application, and further achieve a quick update of the preset verification logic in the target application. Then, in combination with the target plugin identification information, obtain the updated plugin address information corresponding to the updated verification plugin, which can achieve the acquisition of the plugin address information of the updated verification plugin. Then, based on the updated plugin address information, update the plugin call address information in the target sub-application, so that the target sub-application can communicate with the updated verification plugin based on the updated plugin call address information, which can achieve an improvement in the update efficiency of the preset verification logic in the target application, adapt to the rapid business development needs of configuration verification, and avoid the system being in a shutdown state for a long time, so that the system has an efficient and non-stop update ability for the preset verification logic, thereby improving the user experience.

[0056] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. Brief Description of the Drawings

[0057] The drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure, and do not constitute an improper limitation to the present disclosure.

[0058] Figure 1 is a schematic diagram of an application system shown according to an exemplary embodiment;

[0059] Figure 2 is a flowchart of a plugin update method shown according to an exemplary embodiment;

[0060] Figure 3 is a schematic diagram of the framework of a target application shown according to an exemplary embodiment;

[0061] Figure 4 is a schematic diagram of the update process of a plugin update method shown according to an exemplary embodiment;

[0062] Figure 5 is a block diagram of a plugin update device shown according to an exemplary embodiment;

[0063] Figure 6 is a block diagram of an electronic device for updating a verification plug-in in a target application shown according to an exemplary embodiment;

[0064] Figure 7 is a block diagram of another electronic device for updating a verification plug-in in a target application shown according to an exemplary embodiment. Detailed implementation manners

[0065] Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. The same reference numerals in the drawings denote elements having the same or similar functions. Although various aspects of the embodiments are shown in the drawings, the drawings do not have to be drawn to scale unless otherwise specified.

[0066] The special term "exemplary" herein means "serving as an example, an embodiment or an illustration". Any embodiment described herein as "exemplary" does not have to be construed as superior to or better than other embodiments.

[0067] In addition, for a better description of the present application, numerous specific details are given in the following detailed implementation manners. Those skilled in the art should understand that the present application can also be implemented without some specific details. In some instances, methods, means, elements and circuits well known to those skilled in the art are not described in detail so as to highlight the gist of the present application.

[0068] The system involved in the embodiments of the present invention may be a distributed system formed by connecting a client and multiple nodes (any form of computing device in an access network, such as a server, a user terminal) in a form of network communication. A distributed system may refer to a loosely coupled system formed by interconnecting multiple processors through communication lines. With the rapid development of the Internet, distributed systems have been widely used in various fields. Exemplarily, the above-mentioned distributed system may be composed of multiple servers, and these servers may be located in different geographical locations; such an architecture can provide better performance and scalability, and provide better fault tolerance and user experience.

[0069] Cloud computing refers to the delivery and usage model of IT infrastructure, which means obtaining the required resources through the network in a on-demand and easily scalable manner; in a broad sense, cloud computing refers to the delivery and usage model of services, which means obtaining the required services through the network in a on-demand and easily scalable manner. Such services can be related to IT and software, the Internet, or other services. Cloud computing is the product of the development and integration of traditional computer and network technologies such as Grid Computing, Distributed Computing, Parallel Computing, Utility Computing, Network Storage Technologies, Virtualization, and Load Balance.

[0070] With the development of the Internet, real-time data streams, and the diversification of connected devices, as well as the promotion of demands such as search services, social networks, mobile commerce, and open collaboration, cloud computing has developed rapidly. Different from previous parallel distributed computing, the emergence of cloud computing will, in concept, drive revolutionary changes in the entire Internet model and enterprise management model.

[0071] Please refer to Figure 1 , Figure 1 which is a schematic diagram of an application system shown according to an exemplary embodiment. The application system can be used for the plugin update method of the present application. The application system can at least include server 01 and terminal 02.

[0072] In the embodiments of the present application, server 01 can refer to a plugin update server; among them, the above plugin update server can be used to generate plugin update instructions. Specifically, the above server 01 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0073] In the embodiments of the present application, the terminal 02 may refer to a target device; the above-mentioned target device may run a target application; the above-mentioned target application may be used to perform configuration verification processing on the configuration information to be verified in the terminal 02. The above-mentioned terminal 02 may include entity devices such as smart phones, desktop computers, tablet computers, laptop computers, smart speakers, vehicle-mounted terminals, digital assistants, augmented reality (AR) / virtual reality (VR) devices, and smart wearable devices, or may also include software running on the entity devices, such as application programs, etc. In the embodiments of the present application, the operating system running on the above-mentioned terminal 02 may include, but is not limited to, Android system, GNU / Linux system, Windows system, etc.

[0074] In the embodiments of this specification, the above-mentioned terminal 02 and the server 01 may be directly or indirectly connected through wired or wireless communication methods, and the present application does not limit this.

[0075] It should be noted that the following shows a possible step sequence, and actually does not limit that it must be strictly in this order. Some steps can be executed in parallel without depending on each other.

[0076] Specifically, Figure 2 is a flowchart of a plug-in update method shown according to an exemplary embodiment. As Figure 2 shown, this plug-in update method can be used in electronic devices such as target devices, and specifically may include the following steps:

[0077] S201: Receive a plug-in update instruction for the target verification plug-in.

[0078] In a specific embodiment, the target verification plug-in may be used to determine a configuration verification result based on a preset verification logic from the consistency verification result between the configuration information to be verified and the reference configuration information corresponding to the configuration information to be verified. It can be understood that the target verification plug-in may refer to the verification plug-in to be updated in the target application. Among them, the preset verification logic may be used to implement determining a configuration verification result from the consistency verification result between the configuration information to be verified and the reference configuration information corresponding to the configuration information to be verified. The configuration information to be verified may refer to the network configuration information stored in the target device that needs to be configured and verified. The configuration information to be verified may include the network configuration information corresponding to the target object; specifically, the network configuration information corresponding to the target object may refer to the network configuration information configured for the target device in the target system; among them, the target system may refer to the system constructed by the target object. The reference configuration information corresponding to the configuration information to be verified may refer to the network configuration information used as a reference for the verification configuration processing of the configuration information to be verified.

[0079] In a specific embodiment, the target application can be used to implement the configuration verification of the configuration information to be verified in the target device. The target application can be set in the target device; optionally, the target device can be any network element device in the distributed system; for example, the target device can be a virtual machine. Figure 3 It is a schematic framework diagram of a target application shown according to an exemplary embodiment. Specifically, as Figure 3 shown, the target application can include a target sub-application and a target verification plugin; the target sub-application can include a northbound drive layer, a southbound drive layer, a data storage layer, and a model layer. Among them, the northbound drive layer can be used to obtain reference configuration information. On this basis, the northbound drive layer can also be used to implement the update of the target verification plugin in the target application; specifically, the northbound drive layer can include a reference configuration acquisition module and a plugin update module. The reference configuration acquisition module can be used to obtain reference configuration information, and the plugin update module can be used to update the target verification plugin in the target application. The southbound drive layer can be used to obtain the configuration information to be verified. The data storage layer is used to store the relevant data of the target application; specifically, the relevant data of the above-mentioned target application can include the application configuration file of the target application or reference configuration information, etc. The model layer can be used to perform data conversion processing on the configuration information to be verified and the reference configuration information, so that the target verification plugin can achieve fast verification.

[0080] In a specific embodiment, the plugin update instruction can be used to indicate the update of the target verification plugin in the target application. The plugin update instruction can include the target plugin identification information corresponding to the target verification plugin and the updated plugin data corresponding to the target verification plugin. Among them, the target plugin identification information can be used as the unique identifier of the target verification plugin. The updated plugin data refers to the data obtained after the plugin binary file of the updated verification plugin is compressed and encoded. It can be understood that the target plugin identification information is the same as the plugin identification information of the updated verification plugin, while the plugin version information corresponding to the target verification plugin is different from the plugin version information of the updated verification plugin.

[0081] In a specific embodiment, the application maintenance party can perform a plug-in generation operation on the plug-in maintenance terminal corresponding to the application maintenance party to generate update plug-in data corresponding to the update verification plug-in in the plug-in maintenance terminal; the application maintenance party can perform an update instruction generation operation on the plug-in maintenance terminal to cause the plug-in maintenance terminal to send an update sending instruction to the plug-in update server; wherein, the update sending instruction can include the device identification information corresponding to the device to be updated and the above-mentioned update plug-in data. Correspondingly, when the plug-in update server receives the update sending instruction sent by the plug-in maintenance terminal, it can, based on the device identification information in the update sending instruction, send a plug-in update instruction carrying the update plug-in data to the device to be updated. Specifically, the device to be updated can include at least one network element device in the distributed system; it can be understood that the target device can be any network element device in the device to be updated.

[0082] S203: Decode the update plug-in data to obtain an update verification plug-in to update the preset verification logic.

[0083] In a specific embodiment, the update verification plug-in can refer to the updated target verification plug-in. The update verification plug-in can be used to determine the configuration verification result from the consistency verification result between the configuration information to be verified and the reference configuration information corresponding to the configuration information to be verified based on the updated preset verification logic.

[0084] In a specific embodiment, the update plug-in data can be decoded based on a preset coding dimension to obtain the decoded update plug-in data; after decompressing the above-mentioned decoded update plug-in data based on a preset compression dimension, the plug-in file of the update verification plug-in can be obtained. Correspondingly, the plug-in file of the update verification plug-in can be stored in the corresponding plug-in storage area in the target device. Specifically, the plug-in update instruction can further include the plug-in version information corresponding to the update verification plug-in; the plug-in update module in the target sub-application can store the plug-in file of the update verification plug-in based on the above-mentioned target plug-in identification information and the plug-in version information of the update verification plug-in.

[0085] In a specific embodiment, the plug-in update instruction can further include update instruction key information. Among them, the update instruction key information can be used to verify the legitimacy of the source of the sent plug-in update instruction. The update instruction key information can include the key information corresponding to the plug-in update server.

[0086] In a specific embodiment, before the above step S203, the method can further include:

[0087] Perform a key verification process on the update instruction key information to obtain a key verification result;

[0088] Correspondingly, the above step S203 may include:

[0089] When the key verification result indicates that the update instruction key information passes the verification, decode the update plugin data to obtain an update verification plugin.

[0090] In a specific embodiment, the key verification result can be used to indicate whether the update instruction key information passes the verification. The key verification result may include a first key verification result or a second key verification result. Among them, the first key verification result can be used to indicate that the update instruction key information passes the verification; the second key verification result can be used to indicate that the update instruction key information fails the verification.

[0091] In a specific embodiment, the plugin update module can obtain multiple preset key information from the data storage layer; the plugin update module can compare the update instruction key information with each preset key information in the multiple preset key information to obtain a key comparison result; the plugin update module can determine the key verification result based on the above key comparison result. Specifically, when the above key comparison result indicates that there is a preset key information in the multiple preset key information that is the same as the update instruction key information, the plugin update module can determine that the key verification result is the first key verification result; when the above key comparison result indicates that there is no preset key information in the multiple preset key information that is the same as the update instruction key information, the plugin update module can determine that the key verification result is the second key verification result.

[0092] In a specific embodiment, the plugin update module can decode the update plugin data to obtain an update verification plugin when the key verification result is the first key verification result.

[0093] In the above embodiment, by performing key verification processing on the update instruction key information to obtain a key verification result, and decoding the update plugin data to obtain an update verification plugin when the key verification result indicates that the update instruction key information passes the verification, the authentication of the plugin update instruction can be realized, thereby improving the security of plugin update.

[0094] In a specific embodiment, the plugin update instruction may further include data signature information corresponding to the update plugin data. Among them, the above data signature information can be used to verify the legality of the update verification plugin and the transmission integrity of the update verification plugin. Specifically, the data signature information in the plugin update instruction can be obtained by the plugin maintenance terminal by signing the update plugin data. Exemplarily, data signature information can be obtained by performing a hashing process on the above update plugin data.

[0095] In a specific embodiment, the above method may further include:

[0096] Perform data verification processing on the updated plugin data based on the data signature information to obtain a data verification result;

[0097] Correspondingly, when the key verification result indicates that the key information of the update instruction is verified successfully, performing decoding processing on the updated plugin data to obtain an updated verification plugin may include:

[0098] When the key verification result indicates that the key information of the update instruction is verified successfully and the data verification result indicates that the updated plugin data is verified successfully, perform decoding processing on the updated plugin data to obtain an updated verification plugin.

[0099] In a specific embodiment, the data verification result can be used to indicate whether the updated plugin data is verified successfully. The data verification result can include a first data verification result or a second data verification result. Among them, the first data verification result can be used to indicate that the updated plugin data is verified successfully; the second data verification result can be used to indicate that the updated plugin data is not verified successfully.

[0100] In a specific embodiment, the plugin update module can perform signature processing on the updated plugin data to obtain the signature information to be compared corresponding to the updated plugin data; the plugin update module can perform comparison processing on the signature information to be compared and the data signature information in the plugin update instruction to obtain a signature comparison result; the plugin update module can determine the data verification result based on the signature comparison result. Specifically, the plugin update module can determine that the data verification result is the first data verification result when the signature comparison result indicates that the signature information to be compared is consistent with the data signature information in the plugin update instruction; the plugin update module can determine that the data verification result is the second data verification result when the signature comparison result indicates that the signature information to be compared is inconsistent with the data signature information in the plugin update instruction.

[0101] In a specific embodiment, the plugin update module can perform decoding processing on the updated plugin data to obtain an updated verification plugin when the key verification result is the first key verification result and the data verification result is the first data verification result.

[0102] In the above embodiment, by performing key verification processing on the key information of the update instruction to obtain a key verification result, performing data verification processing on the updated plugin data based on the data signature information to obtain a data verification result, and performing decoding processing on the updated plugin data when the key verification result indicates that the key information of the update instruction is verified successfully and the data verification result indicates that the updated plugin data is verified successfully to obtain an updated verification plugin, the authentication of the plugin update instruction and the verification of the updated plugin data can be realized, and thus the security of plugin update can be improved.

[0103] S205: Obtain the update plug-in address information corresponding to the update verification plug-in based on the target plug-in identification information.

[0104] In a specific embodiment, the update plug-in address information can be used for communication between the target sub-application and the update verification plug-in. The update plug-in address information can include the port number corresponding to the update verification plug-in. It can be understood that the target sub-application can call the above update verification plug-in based on the above update plug-in address information.

[0105] In a specific embodiment, the above step S205 can include:

[0106] Obtain the current plug-in address information corresponding to the target verification plug-in based on the target plug-in identification information;

[0107] Determine the update plug-in address information from multiple preset address information corresponding to the target verification plug-in based on the current plug-in address information.

[0108] In a specific embodiment, the current plug-in address information can refer to the address information currently used for communication with the target verification plug-in. The current plug-in address information can include the port number corresponding to the target verification plug-in.

[0109] In a specific embodiment, the current used address information can be obtained from the data storage layer; wherein, the current used address information can include the address information corresponding to at least one plug-in of the current application; the address information corresponding to any plug-in can be used to call the above plug-in. Then, the address information corresponding to the target plug-in identification information in the above current used address information can be used as the above current plug-in address information.

[0110] In a specific embodiment, the multiple preset address information corresponding to the target verification plug-in can be preset and used to select the address information for calling the target verification plug-in. Exemplarily, the multiple preset address information corresponding to the target verification plug-in can include port number "8000" and port number "8001". Specifically, the current plug-in address information corresponding to the target verification plug-in can be any one of the above multiple preset address information.

[0111] In a specific embodiment, the multiple preset address information corresponding to the target verification plug-in can be obtained from the multiple preset address information corresponding to each of the multiple plug-in identification information based on the target plug-in identification information. Specifically, the multiple preset address information corresponding to each plug-in identification information can be set according to actual application needs, and the present disclosure does not make a limitation.

[0112] In a specific embodiment, determining the updated plugin address information from multiple preset address information corresponding to the target verification plugin based on the current plugin address information may include:

[0113] Determining the address information to be selected based on the multiple preset address information and the current plugin address information;

[0114] Determining the updated plugin address information based on the address information to be selected.

[0115] In a specific embodiment, the address information to be selected may be the address information among the multiple preset address information other than the current plugin address information.

[0116] In a specific embodiment, the address information among the multiple preset address information other than the current plugin address information may be used as the address information to be selected.

[0117] In a specific embodiment, when the address information to be selected is one preset address information, the address information to be selected may be used as the updated plugin address information. When the address information to be selected is multiple preset address information, any one of the preset address information among the address information to be selected may be used as the updated plugin address information.

[0118] In the above embodiment, determining the address information to be selected based on the multiple preset address information and the current plugin address information, and determining the updated plugin address information in combination with the address information to be selected can realize the reuse of the preset address information, and the acquisition method of the updated plugin address information is simple, and the rapid acquisition of the updated plugin address information can be realized.

[0119] In a specific embodiment, the plugin update module may generate a configuration file corresponding to the updated verification plugin after storing the plugin file corresponding to the updated verification plugin, wherein the configuration file corresponding to the updated verification plugin may include the updated plugin address information.

[0120] In a specific embodiment, the above method may further include:

[0121] Performing a binding process on the updated plugin address information and the updated verification plugin.

[0122] In a specific embodiment, the plugin update module may perform a binding process on the updated plugin address information and the updated verification plugin so that the target sub-application can call the updated verification plugin based on the updated plugin address information.

[0123] S207: Updating the plugin call address information in the target sub-application based on the updated plugin address information, so that the target sub-application can communicate with the updated verification plugin based on the updated plugin call address information.

[0124] In a specific embodiment, the plug-in call address information in the target sub-application may refer to the address information for calling the target verification plug-in included in the target sub-application. It can be understood that the target sub-application can communicate with the target verification plug-in based on the plug-in call address information. Specifically, the communication between the target sub-application and the target verification plug-in may be based on the Remote Procedure Call (RPC) protocol; correspondingly, the above address information may be RPC address information.

[0125] In a specific embodiment, the plug-in update module may update the plug-in call address information in the target sub-application to the updated plug-in address information, so that the target sub-application calls the updated verification plug-in based on the updated plug-in address information.

[0126] In a specific embodiment, before the above step S207, the method may further include:

[0127] Run the updated verification plug-in;

[0128] Based on the updated plug-in address information, send a start status acquisition instruction to the updated verification plug-in, so that the updated verification plug-in returns the current status indication information corresponding to the updated verification plug-in;

[0129] Correspondingly, the above step S207 may include:

[0130] When the received current status indication information indicates that the updated verification plug-in is in a normally started state, update the plug-in call address information in the target sub-application based on the updated plug-in address information.

[0131] In a specific embodiment, the target sub-application may start the updated verification plug-in by performing a preset plug-in start operation.

[0132] In a specific embodiment, the current status indication information may be used to indicate the current running state of the updated verification plug-in. The current status indication information may include the first status indication information, the second status indication information, or the third status indication information. Among them, the first status indication information may be used to indicate that the updated verification plug-in is in a normally started state; the second status indication information may be used to indicate that the updated verification plug-in is in the process of starting; the third status indication information may be used to indicate that the updated verification plug-in is in an abnormal state.

[0133] In a specific embodiment, the target sub-application may send a startup status acquisition instruction to the update verification plugin based on the updated plugin address information. When the update verification plugin receives the above startup status acquisition instruction, it may acquire the current status indication information and return the above current status indication information. Correspondingly, the target sub-application may receive the above current status indication information returned by the update verification plugin, and when the above current status indication information is the first status indication information, it may update the plugin call address information in the target sub-application based on the updated plugin address information.

[0134] In a specific embodiment, after the above step S207, the method may further include:

[0135] Delete the plugin file corresponding to the target verification plugin and the plugin configuration information corresponding to the target verification plugin.

[0136] In a specific embodiment, based on the plugin version information and the target plugin identification information of the target verification plugin, the plugin file corresponding to the target verification plugin may be determined from the plugin storage area. Correspondingly, the plugin file corresponding to the target verification plugin may be deleted.

[0137] In a specific embodiment, based on the plugin version information and the target plugin identification information of the target verification plugin, the plugin configuration file corresponding to the plugin configuration information of the target verification plugin may be determined from the plugin configuration storage area. Correspondingly, the above plugin configuration file corresponding to the target verification plugin may be deleted.

[0138] In the above embodiment, by deleting the plugin file corresponding to the target verification plugin and the plugin configuration information corresponding to the target verification plugin, the memory occupation of the plugin file corresponding to the target verification plugin and the plugin configuration information corresponding to the target verification plugin can be avoided, the release of the plugin address information corresponding to the target verification plugin can be realized, and thus the reuse of the preset address information can be facilitated.

[0139] In a specific embodiment, the preset verification logic may include a preset exception filtering condition. The preset exception filtering condition may be used to determine the results that need to be filtered in the consistency verification result.

[0140] In a specific embodiment, the configuration verification result may include a first configuration verification result. The first configuration verification result may refer to the configuration verification result obtained by the update verification plugin based on the updated preset verification logic.

[0141] In a specific embodiment, after the above step S207, the method may further include:

[0142] Receive a first verification service request;

[0143] Obtain the configuration information to be verified from the target device;

[0144] Obtain the reference configuration information from the data storage layer of the target sub - application;

[0145] Based on the updated plugin address information, the configuration information to be verified, and the reference configuration information, send a verification processing instruction to the update verification plugin, so that the update verification plugin performs a consistency verification process on the configuration information to be verified based on the reference configuration information, obtains the first consistency verification result, and filters the results in the first consistency verification result that meet the preset exception filtering conditions to obtain the first configuration verification result;

[0146] Receive the first configuration verification result returned by the update verification plugin;

[0147] Return the first configuration verification result based on the first verification service request.

[0148] In a specific embodiment, the first verification service request can be used to instruct the target application to perform a configuration verification on the configuration information to be verified corresponding to the first verification service request. The first verification service request may include the target object identification information corresponding to the target object.

[0149] In a specific embodiment, the target device may regularly generate the first verification service request, so that the target application performs a configuration verification on the configuration information to be verified in the target device. Specifically, in the case where the target object constructs a target system based on the target device, after the target system is constructed, a first verification service request for the network configuration information of the target device in the target system may be generated.

[0150] In a specific embodiment, the target object may generate the first verification service request by performing a preset verification trigger operation on the target terminal. Correspondingly, the target terminal may send the first verification service request to the target device.

[0151] In a specific embodiment, based on the above-mentioned target object identification information, the to-be-verified configuration information corresponding to the target object identification information can be obtained from the target device. Specifically, based on the above-mentioned southbound drive layer and the above-mentioned target object identification information, the to-be-verified configuration information corresponding to the target object identification information can be obtained from multiple network configuration information stored in the target device. Further, after the target object constructs the target system, based on the network configuration construction module in the network configuration distribution component and the system network configuration information of the target system constructed by the target object, the device network configuration information corresponding to each device in the target system can be generated; then, based on the network configuration distribution module in the network configuration distribution component, the device network configuration information corresponding to each device can be distributed to the corresponding device. Correspondingly, the target device can receive the network configuration information corresponding to the target object and store it in the network configuration storage area in the target device.

[0152] In a specific embodiment, based on the above-mentioned northbound drive layer and the above-mentioned target object identification information, the reference configuration information corresponding to the target object identification information can be obtained from multiple network configuration information stored in the data storage layer of the target sub-application. Specifically, based on the reference configuration construction module in the reference configuration distribution component and the system network configuration information of the above-mentioned target system, the device network configuration information corresponding to each device in the target system can be generated; then, based on the reference configuration distribution module in the reference configuration distribution component, the device network configuration information corresponding to each device can be distributed, that is, the device network configuration information corresponding to the target device can be distributed to the target application. Correspondingly, when the target application receives the device network configuration information corresponding to the above-mentioned target device, the device network configuration information corresponding to the above-mentioned target device can be used as the reference configuration information corresponding to the target object and stored in the data storage layer of the target device.

[0153] In a specific embodiment, the verification processing instruction can be used to instruct the update verification plug-in to perform configuration verification processing on the to-be-verified configuration information and the reference configuration information. The verification processing instruction can include the to-be-verified configuration information and the reference configuration information.

[0154] In a specific embodiment, when the target sub-application obtains the configuration information to be verified based on the southbound driver layer, the above-mentioned configuration information to be verified can be sent to the model layer, and the model layer can perform data conversion processing on the above-mentioned configuration information to be verified to obtain the converted configuration information to be verified; correspondingly, when the target sub-application obtains the reference configuration information based on the northbound driver layer, the above-mentioned reference configuration information can be sent to the model layer, and the model layer can perform data conversion processing on the above-mentioned reference configuration information to obtain the converted reference configuration information. The target sub-application can generate a verification processing instruction carrying the above-mentioned converted configuration information to be verified and the converted reference configuration information based on the model layer, the converted configuration information to be verified, and the converted reference configuration information; then, the target sub-application can send the above-mentioned verification processing instruction to the update verification plug-in based on the model layer and the above-mentioned updated plug-in address information.

[0155] In a specific embodiment, the first consistency verification result can characterize the difference between the reference configuration information and the configuration information to be verified. The first consistency verification result can include multiple configuration comparison results.

[0156] In a specific embodiment, the first configuration verification result can be used to reflect the actual consistency requirements of the service after the update. The first configuration verification result can include at least one configuration comparison result.

[0157] In a specific embodiment, the preset exception filtering condition of the preset verification logic can be set according to actual business needs, and the present disclosure does not make a limitation.

[0158] In a specific embodiment, when the update verification plug-in receives the above-mentioned converted configuration information to be verified and the above-mentioned converted reference configuration information, it can perform consistency verification processing on the above-mentioned converted configuration information to be verified and the above-mentioned converted reference configuration information to obtain the first consistency verification result.

[0159] In a specific embodiment, the update verification plug-in can filter the configuration comparison results in the first consistency verification result that meet the preset exception filtering condition after the update to obtain the first configuration verification result. Correspondingly, the update verification plug-in can return the above-mentioned first configuration verification result to the target sub-application. When the target sub-application receives the first configuration verification result returned by the update verification plug-in, it can return the above-mentioned first configuration verification result based on the request sending address information in the first verification service request. Among them, the above-mentioned request sending address information can characterize the address of the request sender corresponding to the above-mentioned first verification service request.

[0160] In the above embodiments, by receiving a first verification service request and obtaining the configuration information to be verified from the target device, the acquisition of the network configuration to be verified can be realized. Then, by obtaining the reference configuration information from the data storage layer of the target sub-application, the acquisition of the network configuration for reference can be realized. Next, by combining the updated plug-in address information, the configuration information to be verified, and the reference configuration information, a verification processing instruction is sent to the update verification plug-in, so that the update verification plug-in performs a consistency verification process on the configuration information to be verified based on the reference configuration information, obtains a first consistency verification result, and filters the results in the first consistency verification result that meet the preset abnormal filtering conditions to obtain a first configuration verification result. By receiving the first configuration verification result returned by the update verification plug-in and returning the first configuration verification result based on the first verification service request, configuration verification can be realized based on the updated preset verification logic, and thus the quick update of the preset verification logic can be realized through the update verification plug-in. In addition, in the case of an exception in the preset verification logic, through the quick update of the target verification plug-in, the target application can be made to have the ability to quickly repair the verification logic.

[0161] It can be understood that for the need of frequent updates of the preset verification logic, by updating the target verification plug-in, the update of the preset verification logic can be realized, and thus the update efficiency of the preset verification logic in the target application can be improved, avoiding the system being in a downtime state for a long time, so that the system has the ability to update the preset verification logic efficiently and without downtime. Exemplarily, in the case of a known exception in the system, before the above exception is repaired, the updated preset verification logic can be determined through the above known exception, and a corresponding update verification plug-in can be generated based on the updated preset verification logic. By updating the target verification plug-in in the target application, the inconsistent results caused by the above known exception can be filtered based on the updated preset verification logic, thereby avoiding the inconsistent results caused by the above known exception from affecting the judgment of other abnormal situations in the system, and improving the accuracy of system exception judgment. It should be noted that the above is only an example of one business situation, and the preset verification logic can be set according to actual business needs, and the present disclosure makes no limitation.

[0162] In a specific embodiment, the preset verification logic may include a preset abnormal filtering condition. The configuration verification result may include a second configuration verification result.

[0163] In a specific embodiment, before the above step S207, the method may further include:

[0164] Receiving a second verification service request;

[0165] Obtaining the configuration information to be verified from the target device;

[0166] Obtain reference configuration information from the data storage layer of the target sub-application;

[0167] Based on the current plugin address information, the configuration information to be verified, and the reference configuration information, send a verification processing instruction to the target verification plugin, so that the target verification plugin performs a consistency verification process on the configuration information to be verified based on the reference configuration information, obtains a second consistency verification result, and filters the results in the second consistency verification result that meet the preset abnormal filtering conditions to obtain a second configuration verification result;

[0168] Receive the second configuration verification result returned by the target verification plugin;

[0169] Based on the second verification service request, return the second configuration verification result.

[0170] In a specific embodiment, the second verification service request can be used to instruct the target application to perform a configuration verification on the configuration information to be verified corresponding to the second verification service request. The second verification service request may include target object identification information corresponding to the target object.

[0171] In a specific embodiment, the generation and sending process of the second verification service request can refer to the generation and sending process of the above-mentioned first verification service request, which will not be elaborated in this disclosure. It can be understood that the first verification service request may be a verification service request received after the update of the update verification plugin is completed, that is, after the update of the update verification plugin is completed, configuration verification can be performed through the update verification plugin; the second verification service request may be a verification service request received before the update of the update verification plugin is completed, that is, before the update of the update verification plugin is completed, configuration verification can be performed through the target verification plugin.

[0172] In a specific embodiment, the obtaining processes of the configuration information to be verified and the reference configuration information can respectively refer to the obtaining process of the configuration information to be verified and the obtaining process of the reference configuration information mentioned above, which will not be elaborated in this disclosure.

[0173] In a specific embodiment, the verification processing instruction can be used to instruct the target verification plugin to perform a configuration verification on the configuration information to be verified and the reference configuration information. The verification processing instruction may include the configuration information to be verified and the reference configuration information.

[0174] In a specific embodiment, when the target sub-application obtains the configuration information to be verified based on the southbound driver layer, the above-mentioned configuration information to be verified can be sent to the model layer, and the data conversion process can be performed on the above-mentioned configuration information to be verified based on the model layer to obtain the converted configuration information to be verified; correspondingly, when the target sub-application obtains the reference configuration information based on the northbound driver layer, the above-mentioned reference configuration information can be sent to the model layer, and the data conversion process can be performed on the above-mentioned reference configuration information based on the model layer to obtain the converted reference configuration information. The target sub-application can generate a verification processing instruction carrying the above-mentioned converted configuration information to be verified and the converted reference configuration information based on the model layer, the converted configuration information to be verified, and the converted reference configuration information; then, the target sub-application can send the above-mentioned verification processing instruction to the target verification plugin based on the model layer and the above-mentioned current plugin address information.

[0175] In a specific embodiment, the second consistency verification result can represent the difference between the reference configuration information and the configuration information to be verified. The second consistency verification result can include multiple configuration comparison results.

[0176] In a specific embodiment, the second configuration verification result can be used to reflect the actual consistency requirements of the service before the update. The second configuration verification result can include at least one configuration comparison result.

[0177] In a specific embodiment, when the target verification plugin receives the above-mentioned converted configuration information to be verified and the above-mentioned converted reference configuration information, it can perform a consistency verification process on the above-mentioned converted configuration information to be verified and the above-mentioned converted reference configuration information to obtain a second consistency verification result.

[0178] In a specific embodiment, the target verification plugin can filter the configuration comparison results that meet the preset abnormal filtering conditions in the second consistency verification result to obtain a second configuration verification result. Correspondingly, the target verification plugin can return the above-mentioned second configuration verification result to the target sub-application. When the target sub-application receives the second configuration verification result returned by the target verification plugin, it can return the above-mentioned second configuration verification result based on the request sending address information in the second verification service request. Among them, the above-mentioned request sending address information can represent the address of the request sender corresponding to the above-mentioned second verification service request.

[0179] In the above embodiments, during the update process of the target verification plugin, a verification processing instruction can be sent to the target verification plugin based on the current plugin address information, the configuration information to be verified, and the reference configuration information, so that the target verification plugin performs a consistency verification process on the configuration information to be verified based on the reference configuration information, obtains a second consistency verification result, filters the results in the second consistency verification result that meet the preset exception filtering conditions, obtains a second configuration verification result, receives the second configuration verification result returned by the target verification plugin, and based on the second verification service request, returns the second configuration verification result. It is possible to achieve configuration verification without downtime and avoid affecting the normal operation of other services due to the downtime of the target verification plugin update.

[0180] In the above embodiments, by receiving a plugin update instruction for the target verification plugin, where the target verification plugin is used to determine the configuration verification result from the consistency verification result between the configuration information to be verified and the corresponding reference configuration information based on a preset verification logic, the plugin update instruction includes the target plugin identification information corresponding to the target verification plugin and the updated plugin data corresponding to the target verification plugin. It is possible to receive the update instruction of the target verification plugin, then decode the updated plugin data to obtain the updated verification plugin to update the preset verification logic, which can achieve the rapid update of the target verification plugin in the target application, avoid the overall update of the target application, and then achieve the rapid update of the preset verification logic in the target application. Then, in combination with the target plugin identification information, the updated plugin address information corresponding to the updated verification plugin can be obtained, which can achieve the acquisition of the plugin address information of the updated verification plugin. Then, based on the updated plugin address information, the plugin call address information in the target sub-application is updated, so that the target sub-application can communicate with the updated verification plugin based on the updated plugin call address information, which can improve the update efficiency of the preset verification logic in the target application to meet the rapid business development needs of configuration verification and avoid the system being in a downtime state for a long time, so that the system has the ability to update the preset verification logic efficiently and without downtime, thereby improving the user experience. In addition, in the case of an exception in the preset verification logic, through the rapid update of the target verification plugin, the target application can have the ability to quickly repair the verification logic.

[0181] Figure 4 It is a schematic diagram of the update process of a plugin update method shown according to an exemplary embodiment. Specifically, as Figure 4As shown, the plugin update server may send a plugin update instruction for the target verification plugin to the target application; when the target application receives the above plugin update instruction, it may perform key verification processing on the update instruction key information to obtain a key verification result, and based on the data signature information, perform data verification processing on the updated plugin data to obtain a data verification result; the target application may perform decoding processing on the updated plugin data to obtain an updated verification plugin to update the preset verification logic when the key verification result indicates that the update instruction key information is verified and the data verification result indicates that the updated plugin data is verified; the target application may obtain the updated plugin address information corresponding to the updated verification plugin based on the target plugin identification information; the target application may run the above updated verification plugin; the target application may send a startup status acquisition instruction to the updated verification plugin based on the updated plugin address information to enable the updated verification plugin to return the current status indication information corresponding to the updated verification plugin; the target application may update the plugin call address information in the target sub-application based on the updated plugin address information when the received current status indication information indicates that the updated verification plugin is in a normal startup state, so that the target sub-application can communicate with the updated verification plugin based on the updated plugin call address information.

[0182] Figure 5 is a block diagram of a plugin update device shown according to an exemplary embodiment. Specifically, the above device is provided with a target application, the target application is set in the target device, the target application includes a target sub-application and a target verification plugin, and the target verification plugin is used to determine a configuration verification result from the consistency verification result between the to-be-verified configuration information and the reference configuration information corresponding to the to-be-verified configuration information based on a preset verification logic; further, as Figure 5 shown, the device may include:

[0183] An instruction receiving module 510, which may be used to receive a plugin update instruction for the target verification plugin, and the plugin update instruction includes the target plugin identification information corresponding to the target verification plugin and the updated plugin data corresponding to the target verification plugin;

[0184] A decoding module 520, which may be used to perform decoding processing on the updated plugin data to obtain an updated verification plugin to update the preset verification logic;

[0185] An address acquisition module 530, which may be used to obtain the updated plugin address information corresponding to the updated verification plugin based on the target plugin identification information;

[0186] An address update module 540, which may be used to update the plugin call address information in the target sub-application based on the updated plugin address information, so that the target sub-application can communicate with the updated verification plugin based on the updated plugin call address information.

[0187] In a specific embodiment, the above-mentioned address acquisition module 530 may include:

[0188] A current address acquisition module, which can be used to acquire the current plug-in address information corresponding to the target verification plug-in based on the target plug-in identification information;

[0189] An updated address acquisition module, which can be used to determine the updated plug-in address information from multiple preset address information corresponding to the target verification plug-in based on the current plug-in address information.

[0190] In a specific embodiment, the above-mentioned updated address acquisition module may include:

[0191] An address to be selected acquisition module, which can be used to determine the address information to be selected based on multiple preset address information and the current plug-in address information; the address information to be selected is the address information other than the current plug-in address information among the multiple preset address information;

[0192] An updated address determination module, which can be used to determine the updated plug-in address information based on the address information to be selected.

[0193] In a specific embodiment, the above-mentioned device may further include:

[0194] A binding processing module, which can be used to perform binding processing on the updated plug-in address information and the updated verification plug-in.

[0195] In a specific embodiment, the above-mentioned device may further include:

[0196] A plug-in operation module, which can be used to run the updated verification plug-in;

[0197] A first instruction sending module, which can be used to send a start status acquisition instruction to the updated verification plug-in based on the updated plug-in address information, so that the updated verification plug-in returns the current status indication information corresponding to the updated verification plug-in;

[0198] Correspondingly, the above-mentioned address update module 540 may include:

[0199] An invoked address update module, which can be used to update the plug-in invocation address information in the target sub-application based on the updated plug-in address information when the received current status indication information indicates that the updated verification plug-in is in a normal start state.

[0200] In a specific embodiment, the plug-in update instruction further includes update instruction key information; the above-mentioned device may further include:

[0201] A key verification processing module, which can be used to perform key verification processing on the update instruction key information to obtain a key verification result;

[0202] Correspondingly, the above decoding module 520 may include:

[0203] A first decoding module, which may be used to decode the updated plug-in data to obtain an updated verification plug-in when the key verification result indicates that the update instruction key information is verified successfully.

[0204] In a specific embodiment, the plug-in update instruction further includes data signature information corresponding to the updated plug-in data; the above device may further include:

[0205] A data verification module, which may be used to perform data verification processing on the updated plug-in data based on the data signature information to obtain a data verification result;

[0206] Correspondingly, the above decoding module 520 may include:

[0207] A second decoding module, which may be used to decode the updated plug-in data to obtain an updated verification plug-in when the key verification result indicates that the update instruction key information is verified successfully and the data verification result indicates that the updated plug-in data is verified successfully.

[0208] In a specific embodiment, the above device may further include:

[0209] A deletion module, which may be used to delete the plug-in file corresponding to the target verification plug-in and the plug-in configuration information corresponding to the target verification plug-in.

[0210] In a specific embodiment, the above preset verification logic includes preset exception filtering conditions, and the configuration verification result includes a first configuration verification result; the above device may further include:

[0211] A first request receiving module, which may be used to receive a first verification service request;

[0212] A first configuration obtaining module, which may be used to obtain the configuration information to be verified from the target device;

[0213] A second configuration obtaining module, which may be used to obtain reference configuration information from the data storage layer of the target sub-application;

[0214] A second instruction sending module, which may be used to send a verification processing instruction to the updated verification plug-in based on the updated plug-in address information, the configuration information to be verified, and the reference configuration information, so that the updated verification plug-in performs consistency verification processing on the configuration information to be verified based on the reference configuration information to obtain a first consistency verification result, and filters the results in the first consistency verification result that meet the preset exception filtering conditions to obtain a first configuration verification result;

[0215] A first result receiving module, which may be used to receive the first configuration verification result returned by the updated verification plug-in;

[0216] The first result returning module can be used to return a first configuration verification result based on a first verification service request.

[0217] In a specific embodiment, the preset verification logic includes preset exception filtering conditions, and the configuration verification result includes a second configuration verification result; the apparatus may further include:

[0218] The second request receiving module can be used to receive a second verification service request;

[0219] The third configuration obtaining module can be used to obtain configuration information to be verified from a target device;

[0220] The fourth configuration obtaining module can be used to obtain reference configuration information from the data storage layer of a target sub-application;

[0221] The third instruction sending module can be used to send a verification processing instruction to a target verification plugin based on current plugin address information, configuration information to be verified, and reference configuration information, so that the target verification plugin performs consistency verification processing on the configuration information to be verified based on the reference configuration information to obtain a second consistency verification result, and filters the results in the second consistency verification result that meet the preset exception filtering conditions to obtain a second configuration verification result;

[0222] The second result receiving module can be used to receive the second configuration verification result returned by the target verification plugin;

[0223] The second result returning module can be used to return the second configuration verification result based on the second verification service request.

[0224] Regarding the apparatus in the above embodiments, the specific manners in which each module and unit perform operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.

[0225] Figure 6 is a block diagram of an electronic device for updating a verification plugin in a target application shown according to an exemplary embodiment. The electronic device may be a server, and its internal structure diagram may be as Figure 6 shown. The electronic device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a plugin update method is implemented.

[0226] Figure 7 is a block diagram of another electronic device for updating a verification plug-in in a target application shown according to an exemplary embodiment. The electronic device may be a terminal, and its internal structure diagram may be as shown in Figure 7 shown. The electronic device includes a processor, a memory, a network interface, a display screen, and an input device connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a plug-in update method. The display screen of the electronic device may be a liquid crystal display screen or an electronic ink display screen. The input device of the electronic device may be a touch layer covered on the display screen, or may be a button, a trackball, or a touchpad provided on the housing of the electronic device, or may also be an external keyboard, a touchpad, or a mouse, etc.

[0227] Those skilled in the art can understand that Figure 6 or Figure 7 the structure shown in does not constitute a limitation on the electronic device to which the present disclosure solution is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0228] In an exemplary embodiment, there is also provided an electronic device, including: a processor; a memory for storing executable instructions of the processor; wherein, the processor is configured to execute the instructions to implement the plug-in update method as in the embodiments of the present disclosure.

[0229] In an exemplary embodiment, there is also provided a computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the plug-in update method in the embodiments of the present disclosure.

[0230] In an exemplary embodiment, there is also provided a computer program product containing instructions. When it runs on a computer, the computer executes the plug-in update method in the embodiments of the present disclosure.

[0231] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or an external cache. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.

[0232] In the embodiments of the present application, the term "module" or "unit" refers to a computer program with a predetermined function or a part of a computer program, which works together with other related parts to achieve a predetermined goal, and can be fully or partially implemented by using software, hardware (such as a processing circuit or a memory), or a combination thereof. Similarly, one processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be a part of an overall module or unit that includes the function of that module or unit.

[0233] It can be understood that in the specific implementation manners of the present application, when it comes to data related to user information, etc., when the above embodiments of the present application are applied to specific products or technologies, user permission or consent needs to be obtained, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of the relevant countries and regions.

[0234] After considering the specification and practicing the invention disclosed herein, those skilled in the art will readily conceive of other embodiments of the present disclosure. The present application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include known common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0235] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A plugin update method, characterized in that, Applied to a target application, the target application is set on a target device, the target application includes a target sub-application and a target verification plugin, and the target verification plugin is used to determine a configuration verification result from the consistency verification result between the to-be-verified configuration information and the reference configuration information corresponding to the to-be-verified configuration information based on a preset verification logic. The method includes: Receiving a plugin update instruction for the target verification plugin, where the plugin update instruction includes target plugin identification information corresponding to the target verification plugin and update plugin data corresponding to the target verification plugin; Performing decoding processing on the update plugin data to obtain an updated verification plugin to update the preset verification logic; Based on the target plugin identification information, obtaining updated plugin address information corresponding to the updated verification plugin; Based on the updated plugin address information, updating the plugin call address information in the target sub-application, so that the target sub-application can communicate with the updated verification plugin based on the updated plugin call address information.

2. The method according to claim 1, characterized in that The obtaining the updated plugin address information corresponding to the updated verification plugin based on the target plugin identification information includes: Based on the target plugin identification information, obtaining the current plugin address information corresponding to the target verification plugin; Based on the current plugin address information, determining the updated plugin address information from multiple preset address information corresponding to the target verification plugin.

3. The method according to claim 2, wherein The determining the updated plugin address information from multiple preset address information corresponding to the target verification plugin based on the current plugin address information includes: Based on the multiple preset address information and the current plugin address information, determining to-be-selected address information; the to-be-selected address information is the address information other than the current plugin address information among the multiple preset address information; Based on the to-be-selected address information, determining the updated plugin address information.

4. The method according to claim 2, wherein The method further includes: Performing a binding process on the updated plugin address information and the updated verification plugin.

5. The method according to claim 1, wherein Before updating the plugin call address information in the target sub-application based on the updated plugin address information, the method further includes: Running the updated verification plugin; Based on the updated plugin address information, sending a startup status acquisition instruction to the updated verification plugin, so that the updated verification plugin returns the current status indication information corresponding to the updated verification plugin; The updating the plugin call address information in the target sub-application based on the updated plugin address information includes: When the received current status indication information indicates that the updated verification plugin is in a normal startup state, updating the plugin call address information in the target sub-application based on the updated plugin address information.

6. The method according to claim 1, wherein The plugin update instruction further includes update instruction key information; before performing decoding processing on the update plugin data to obtain an updated verification plugin, the method further includes: Performing key verification processing on the update instruction key information to obtain a key verification result; The performing decoding processing on the update plugin data to obtain an updated verification plugin includes: When the key verification result indicates that the key information of the update instruction passes the verification, decode the update plugin data to obtain the update verification plugin.

7. The method according to claim 6, characterized in that The plugin update instruction further includes data signature information corresponding to the update plugin data; the method further includes: Based on the data signature information, perform data verification processing on the update plugin data to obtain a data verification result; The step of "when the key verification result indicates that the key information of the update instruction passes the verification, decode the update plugin data to obtain the update verification plugin" includes: When the key verification result indicates that the key information of the update instruction passes the verification and the data verification result indicates that the update plugin data passes the verification, decode the update plugin data to obtain the update verification plugin.

8. The method according to any one of claims 1-7, characterized in that, After updating the plugin call address information in the target sub-application based on the update plugin address information, the method further includes: Delete the plugin file corresponding to the target verification plugin and the plugin configuration information corresponding to the target verification plugin.

9. The method according to claim 1, wherein The preset verification logic includes preset exception filtering conditions, and the configuration verification result includes a first configuration verification result; after updating the plugin call address information in the target sub-application based on the update plugin address information, the method further includes: Receive a first verification service request; Obtain the configuration information to be verified from the target device; Obtain the reference configuration information from the data storage layer of the target sub-application; Based on the update plugin address information, the configuration information to be verified, and the reference configuration information, send a verification processing instruction to the update verification plugin, so that the update verification plugin performs consistency verification processing on the configuration information to be verified based on the reference configuration information to obtain a first consistency verification result, and filter the results that meet the preset exception filtering conditions in the first consistency verification result to obtain the first configuration verification result; Receive the first configuration verification result returned by the update verification plugin; Based on the first verification service request, return the first configuration verification result.

10. The method according to claim 1, wherein The preset verification logic includes preset exception filtering conditions, and the configuration verification result includes a second configuration verification result; before updating the plugin call address information in the target sub-application based on the update plugin address information, the method further includes: Receive a second verification service request; Obtain the configuration information to be verified from the target device; Obtain the reference configuration information from the data storage layer of the target sub-application; Based on the current plugin address information, the configuration information to be verified, and the reference configuration information, send a verification processing instruction to the target verification plugin, so that the target verification plugin performs consistency verification processing on the configuration information to be verified based on the reference configuration information to obtain a second consistency verification result, and filter the results that meet the preset exception filtering conditions in the second consistency verification result to obtain the second configuration verification result; Receive the second configuration verification result returned by the target verification plugin; Based on the second verification service request, return the second configuration verification result.

11. A plug-in update device, characterized in that, The device is provided with a target application, the target application is set on a target device, the target application includes a target sub-application and a target verification plugin, the target verification plugin is used to determine a configuration verification result from the consistency verification result between the configuration information to be verified and the reference configuration information corresponding to the configuration information to be verified based on a preset verification logic, and the device includes: An instruction receiving module, configured to receive a plugin update instruction for the target verification plugin, where the plugin update instruction includes target plugin identification information corresponding to the target verification plugin and update plugin data corresponding to the target verification plugin; A decoding module, configured to perform decoding processing on the update plugin data to obtain an updated verification plugin to update the preset verification logic; An address acquisition module, configured to acquire update plugin address information corresponding to the updated verification plugin based on the target plugin identification information; An address update module, configured to update the plugin call address information in the target sub-application based on the update plugin address information, so that the target sub-application realizes communication with the updated verification plugin based on the updated plugin call address information.

12. An electronic device, characterized in that, Comprising: A processor; A memory for storing executable instructions of the processor; Wherein, the processor is configured to execute the executable instructions to implement the plugin update method according to any one of claims 1 to 10.

13. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the computer program instructions are executed by the processor, the plugin update method according to any one of claims 1 to 10 is implemented.

14. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by an electronic device, the plugin update method according to any one of claims 1 to 10 is implemented.