Service plug-in management method and device, electronic equipment and storage medium

By obtaining and matching the version number and configuration information of the target application, and determining and installing matching plug-in managers and business plug-ins, the problem of managing different versions of applications is solved, and the stability and performance of applications and plug-ins are improved.

CN118535207APending Publication Date: 2024-08-23GUANGZHOU BOGUAN TELECOMM TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410455426.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-15
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing technology fails to effectively manage different versions of applications and their corresponding plug-ins, making it difficult to maximize application stability and plug-in performance.

Method used

By obtaining the current version number of the target application and the configuration information of the plug-in manager and business plug-ins, determine and install the plug-in manager and business plug-ins that match the application version to ensure application stability and plug-in performance.

Benefits of technology

It maximizes the stability and performance of different versions of applications and plug-ins, and meets complexity, flexibility and performance requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535207A
    Figure CN118535207A
Patent Text Reader

Abstract

The invention provides a business plug-in management method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining the current application version number of a target application, the configuration information of a plurality of plug-in managers of the target application and the configuration information of a plurality of business plug-ins, different plug-in managers having different manager version numbers, different business plug-ins have different plug-in version numbers, determining a target plug-in manager from the plurality of plug-in managers according to the application version number of the target application and the configuration information of the plurality of plug-in managers, installing the target plug-in manager, and adopting the target plug-in manager to complete the application of the target application. And according to the current application version number of the target application and the configuration information of the plurality of service plug-ins, determining a target service plug-in from the plurality of service plug-ins, and installing the target service plug-in. By installing the plug-in manager and the plug-in matched with the current application version, the stability and the plug-in performance of the target application are ensured, and the complexity, flexibility and performance requirements of project services are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a service plug-in management method, device, electronic device and storage medium. Background Art

[0002] In the context of plug-in and dynamic application function modules, the application function modules can package their codes, resources, etc. into a plug-in, and dynamically distribute the plug-in. The application body acts as a host to download the corresponding plug-in, and can dynamically update and load the plug-in functions.

[0003] During the application development process, the application will be updated with iterations, and each version of the application can support different plug-in features. Therefore, it is urgent to solve the solution of managing the corresponding plug-ins of different versions of applications, so that different versions of host applications can download and use the plug-in manager and plug-ins adapted to their own versions, thereby ensuring the stability of the application itself and maximizing the plug-in performance. However, there is no solution to the above problem yet. Summary of the invention

[0004] In view of this, embodiments of the present application provide a business plug-in management method, device, electronic device and storage medium to match the corresponding plug-in manager and business plug-in according to the application version to ensure application stability and maximize plug-in performance.

[0005] In a first aspect, an embodiment of the present application provides a service plug-in management method, including:

[0006] Obtaining a current application version number of a target application, configuration information of multiple plug-in managers of the target application, and configuration information of multiple service plug-ins, where different plug-in managers have different manager version numbers, and different service plug-ins have different plug-in version numbers;

[0007] Determining a target plug-in manager from the multiple plug-in managers according to the application version number of the target application and the configuration information of the multiple plug-in managers, and installing the target plug-in manager;

[0008] The target plug-in manager is used to determine a target service plug-in from the multiple service plug-ins according to the current application version number of the target application and the configuration information of the multiple service plug-ins, and install the target service plug-in.

[0009] In a second aspect, an embodiment of the present application further provides a service plug-in management device, including:

[0010] An acquisition module, used to acquire the current application version number of the target application, configuration information of multiple plug-in managers of the target application, and configuration information of multiple business plug-ins, where different plug-in managers have different manager version numbers, and different business plug-ins have different plug-in version numbers;

[0011] a processing module, configured to determine a target plug-in manager from the multiple plug-in managers according to an application version number of the target application and configuration information of the multiple plug-in managers, and install the target plug-in manager;

[0012] The processing module is further configured to use the target plug-in manager to determine a target service plug-in from the multiple service plug-ins according to the current application version number of the target application and the configuration information of the multiple service plug-ins, and install the target service plug-in.

[0013] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory through the bus, and the processor executes the machine-readable instructions to execute any one of the methods described in the first aspect.

[0014] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described in any one of the first aspects is executed.

[0015] The present application provides a business plug-in management method, device, electronic device and storage medium, wherein the method includes: obtaining the current application version number of the target application, the configuration information of multiple plug-in managers of the target application and the configuration information of multiple business plug-ins, different plug-in managers have different manager version numbers, different business plug-ins have different plug-in version numbers, according to the application version number of the target application and the configuration information of multiple plug-in managers, determining the target plug-in manager from multiple plug-in managers, and installing the target plug-in manager, using the target plug-in manager, according to the current application version number of the target application and the configuration information of multiple business plug-ins, determining the target business plug-in from multiple business plug-ins, and installing the target business plug-in. By installing the plug-in manager and plug-in matching the current application version, the stability of the target application and the plug-in performance are guaranteed, and the complexity, flexibility and performance requirements of the project business are met. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 This is a schematic diagram of the version management architecture;

[0018] Figure 2 Schematic diagram of the process of the service plug-in management method provided in the embodiment of the present application Figure 1 ;

[0019] Figure 3 Schematic diagram of the process of the service plug-in management method provided in the embodiment of the present application Figure 2 ;

[0020] Figure 4 Schematic diagram of the process of the service plug-in management method provided in the embodiment of the present application Figure 3 ;

[0021] Figure 5 Schematic diagram of the process of the service plug-in management method provided in the embodiment of the present application Figure 4 ;

[0022] Figure 6 Schematic diagram of the process of the service plug-in management method provided in the embodiment of the present application Figure 5 ;

[0023] Figure 7 Schematic diagram of the process of the service plug-in management method provided in the embodiment of the present application Figure 6 ;

[0024] Figure 8 Schematic diagram of the process of the service plug-in management method provided in the embodiment of the present application Figure 7 ;

[0025] Fig. 9 Schematic diagram of the process of the service plug-in management method provided in the embodiment of the present application Figure 8 ;

[0026] Fig.10 A flowchart of a specific service plug-in management method provided in an embodiment of the present application;

[0027] Fig.11 A schematic diagram of the structure of a service plug-in management device provided in an embodiment of the present application;

[0028] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0030] Figure 1 This is a schematic diagram of the version management architecture, such as Figure 1 As shown, the application versions include application V1.0, application V1.1, and application V2.0. For each application version, the plug-in manager version may include plug-in manager V1.0, plug-in manager V2.0... For each plug-in manager, the business plug-in may include plug-in a, plug-in b..., the version of plug-in a includes plug-in aV1.0, plug-in aV2.0..., the version of plug-in b includes plug-in bV1.0, plug-in bV2.0...

[0031] During the application development process, the plug-in features supported by each version of the application are different. In order to ensure the stability of different versions of the host application itself and maximize the plug-in performance, it is urgent to automate the version management of the application, plug-in manager, and business plug-ins. This application matches the adapted plug-in manager version according to the current application version, downloads the target plug-in manager, and then downloads and installs the adapted version of the target business plug-in through the target plug-in manager. In this way, in complex business scenarios, the stability, adaptability and plug-in application performance of the application under different versions of applications, different versions of plug-in managers and different versions of plug-ins are improved.

[0032] Figure 2 Schematic diagram of the process of the service plug-in management method provided in the embodiment of the present application Figure 1 , the execution subject of this embodiment is an electronic device, such as a terminal.

[0033] like Figure 2 As shown, the method may include:

[0034] S101: Obtain a current application version number of a target application, configuration information of multiple plug-in managers of the target application, and configuration information of multiple business plug-ins.

[0035] The target application is any application that performs version management. The multiple plug-in managers of the target application are multiple plug-in managers developed during the development process of the target application. Different plug-in managers have different manager version numbers. The multiple business plug-ins are multiple plug-ins developed for any business of the target application during the development process of the target application. Any business, such as the business corresponding to the above-mentioned plug-in a and the business corresponding to plug-in b, different business plug-ins have different plug-in version numbers. The business of the target application can be, for example, live broadcast, barrage, reward, etc.

[0036] The configuration information of each plug-in manager may include the application version number supported by each plug-in manager, and the configuration information of each service plug-in includes the application version number supported by each service plug-in.

[0037] In an optional implementation, a package manager (PackageManager) is used to obtain the current version number of the target application, and multiple plug-in managers and multiple business plug-ins related to the target application are pulled from the background server through an interface.

[0038] S102: Determine a target plug-in manager from multiple plug-in managers according to an application version number of the target application and configuration information of multiple plug-in managers, and install the target plug-in manager.

[0039] According to the application version number of the target application and the configuration information of multiple plug-in managers, a target plug-in manager is screened and determined from the multiple plug-in managers, wherein the target plug-in manager is a plug-in manager that supports the current application version number of the target application, and a data package of the target plug-in manager is downloaded to install the target plug-in manager.

[0040] S103: Using the target plug-in manager, according to the current application version number of the target application and the configuration information of the multiple service plug-ins, determine the target service plug-in from the multiple service plug-ins, and install the target service plug-in.

[0041] A target plug-in manager is used to screen and determine a target business plug-in from multiple business plug-ins according to the current application version number of the target application and configuration information of multiple business plug-ins, wherein the target business plug-in is a business plug-in that supports the current application version number of the target application, and download a data packet of the target business plug-in to install the target business plug-in.

[0042] In an optional implementation, in step S103, using the target plug-in manager to determine the target service plug-in from the multiple service plug-ins according to the current application version number of the target application and the configuration information of the multiple service plug-ins, and before installing the target service plug-in, the method may further include:

[0043] In response to a triggering operation on a preset function of a target application, a plurality of service plug-ins associated with the preset function are determined.

[0044] The preset function may be, for example, a live broadcast function. In response to a triggering operation on the preset function of the target application, multiple service plug-ins associated with the preset function are determined. That is, the multiple service plug-ins are service plug-ins of multiple versions of the preset function triggered by the user.

[0045] Among them, in the case of a non-preset network, in response to a trigger operation on a preset function, multiple business plug-ins associated with the preset function are determined, and then the current application version number of the target application, the configuration information of multiple plug-in managers, and the configuration information of multiple business plug-ins associated with the preset function are obtained, thereby reducing the data packet download waiting time of the plug-in manager and the business plug-in.

[0046] After the target business plug-in is installed, the functional logic of the target business plug-in can be loaded.

[0047] In an optional implementation, in the case of a preset network, there is no need to trigger a preset function. Instead, when the target application is started, the current application version number of the target application, the configuration information of multiple plug-in managers, and the configuration information of multiple business plug-ins are directly obtained. The multiple preset business plug-ins are business plug-ins of different versions of any business of the target application, wherein the preset network can be understood as a WiFi network.

[0048] In this embodiment, by installing a target plug-in manager that matches the current application version, and then using the target plug-in manager to install a target business plug-in that matches the current application version, the stability of the target application and the plug-in performance are guaranteed to meet the complexity, flexibility and performance requirements of the project business.

[0049] In an optional implementation, the configuration information of each plug-in manager includes: the application version number supported by each plug-in manager and the data package download path of each plug-in manager. Figure 3 Schematic diagram of the process of the service plug-in management method provided in the embodiment of the present application Figure 2 ,like Figure 3 As shown, the above step S102, determining a target plug-in manager from multiple plug-in managers according to the application version number of the target application and the configuration information of multiple plug-in managers, and installing the target plug-in manager, may include:

[0050] S201: Match the current application version number with the application version number supported by each plug-in manager to obtain a first matching result.

[0051] S202: Determine a target plug-in manager from multiple plug-in managers according to the first matching result.

[0052] The current application version number is matched with the application version number supported by each plug-in manager to obtain a first matching result, the first matching result is used to indicate whether the application version number supported by each plug-in manager is consistent with the current application version number, and according to the first matching result, at least one plug-in manager matching the current application version number is determined from multiple plug-in managers, and a target plug-in manager is determined from the at least one plug-in manager.

[0053] Among them, the application version number supported by the plug-in manager can be, for example, compatGLVersion1.0-3.1.0, which means that the application version number supported by the plug-in manager is all versions greater than or equal to 1.0 and less than or equal to 3.1.0. For another example, the application version number supported by the plug-in manager is compatGLVersion1.0-, which means that the version number supported by the plug-in manager is all versions greater than or equal to 1.0. For another example, the application version number supported by the plug-in manager is compatGLVersion-3.0, which means that the version number supported by the plug-in manager is all versions less than or equal to 3.0.

[0054] A regular match is performed on the current application version number and the application version number supported by the plug-in manager to obtain a first matching result to determine whether the application version number supported by the plug-in manager includes the current application version number, wherein the current application version number may be 1.1, for example. Since 1.1 is greater than 1.0 and less than 3.1.0, the application version number supported by the plug-in manager is consistent with the current application version number.

[0055] In an optional implementation, the configuration information of each plug-in manager also includes: a manager version number of each plug-in manager. Step S202, determining a target plug-in manager from a plurality of plug-in managers according to the first matching result, may include:

[0056] If the first matching result indicates that the current application version number matches the application version number supported by the at least one plug-in manager, then according to the manager version number of the at least one plug-in manager, the latest version is determined from the at least one plug-in manager as the target plug-in manager.

[0057] If the first matching result indicates that the current application version number matches the application version number supported by at least one plug-in manager, a plug-in manager of the latest version is determined as the target plug-in manager from the at least one plug-in manager according to the manager version number of the at least one plug-in manager.

[0058] Among them, the manager version number of the plug-in manager is the version number of the plug-in manager, for example, it can be versionCode: 1.0, indicating that the manager version number of plug-in manager 1 is 1.0, versionCode: 2.0, indicating that the manager version number of plug-in manager 2 is 2.0. If the current application version number and the application version numbers supported by plug-in manager 1 and plug-in manager 2 match, plug-in manager 2 is determined to be the target plug-in manager, wherein the manager version number of plug-in manager 2 is the latest version number. The larger the manager version number, the newer the corresponding plug-in manager version.

[0059] It is worth noting that the latest version number corresponds to the latest developed business plug-in. Determining the plug-in manager with the latest version number as the target plug-in manager can ensure that the plug-in performance of the target application is maximized.

[0060] S203: Download the data package of the target plug-in manager according to the data package download path of the target plug-in manager and install the target plug-in manager.

[0061] According to the data packet download path of the target plug-in manager, the data packet of the target plug-in manager is downloaded, and the target plug-in manager is installed according to the data packet of the target plug-in manager, wherein the data packet download path of the plug-in manager can be, for example, a download path corresponding to a uniform resource locator (URL).

[0062] In this embodiment, the target plug-in manager is determined by matching the application version number supported by the plug-in manager with the current application version number, and the target plug-in manager matching the current application version number can be installed to ensure the stability of the target application.

[0063] In an optional implementation, the configuration information of each plug-in manager further includes: a version number of a mandatory update manager supported by each plug-in manager. Figure 4 Schematic diagram of the process of the service plug-in management method provided in the embodiment of the present application Figure 3 ,like Figure 4 As shown, in an optional implementation, in the above step S203, downloading the data package of the target plug-in manager and installing the target plug-in manager according to the data package download path of the target plug-in manager may include:

[0064] S301: If a local plug-in manager of the target application already exists locally, obtain a manager version number of the local plug-in manager.

[0065] S302: If the manager version number of the local plug-in manager is the mandatory update manager version number supported by the target plug-in manager, delete the data package of the local plug-in manager and download the data package of the target plug-in manager according to the data package download path of the target plug-in manager.

[0066] If the local plug-in manager of the target application already exists under the local storage path, obtain the manager version number of the local plug-in manager, and determine whether the manager version number of the local plug-in manager is the mandatory update manager version number supported by the target plug-in manager. If so, delete the data package of the local plug-in manager and download the data package of the target plug-in manager according to the data package download path of the target plug-in manager, and install the target plug-in manager.

[0067] Regular matching is performed on the manager version number of the local plug-in manager and the mandatory update manager version number supported by the target plug-in manager to determine whether the manager version number of the local plug-in manager is the mandatory update manager version number supported by the target plug-in manager.

[0068] Among them, the manager version number of the target plug-in manager can be 3.0, for example, and the forced update manager version number supported by the target plug-in manager can be forceUpdateVersionCode as "1.0,2.0", indicating that the forced update manager version numbers supported by the target plug-in manager are 1.0 and 2.0. If the manager version number of the local plug-in manager is 1.0, it means that the manager version number of the local plug-in manager is the forced update manager version number supported by the target plug-in manager, that is, the local plug-in manager needs to be forcibly updated to overwrite the local plug-in manager to support bug repair scenarios.

[0069] It is worth noting that each plug-in manager has its corresponding application version number. When a new plug-in manager is released, it will not affect the application functions of the application versions it does not support.

[0070] In this embodiment, by matching the manager version number of the local plug-in manager with the mandatory update manager version number supported by the target plug-in manager, the version management of the plug-in manager is made more flexible.

[0071] In an optional implementation, the configuration information of each plug-in manager further includes: a first target encryption field corresponding to each plug-in manager. Figure 5 Schematic diagram of the process of the service plug-in management method provided in the embodiment of the present application Figure 4 ,like Figure 5 As shown, in an optional implementation, in the above step S203, installing the target plug-in manager may include:

[0072] S401: Encrypt a data packet of a target plug-in manager to obtain a first data packet encryption field of the target plug-in manager.

[0073] S402: If the first data packet encryption field is consistent with the first target encryption field, the target plug-in manager is installed according to the data packet of the target plug-in manager.

[0074] After downloading the data packet of the target plug-in manager, the data packet of the target plug-in manager is encrypted to obtain the first data packet encryption field of the target plug-in manager, and the first data packet encryption field is compared with the first target encryption field corresponding to each plug-in manager. If they are consistent, it means that the data packet of the target plug-in manager has not been tampered with, and the target plug-in manager is installed according to the data packet of the target plug-in manager.

[0075] Among them, the first target encryption field corresponding to each plug-in manager is the encryption field of the data packet of each plug-in manager. The first target encryption field can be an md5 encryption field, for example, it can be md5:809632d3a7b3a5b63caf4452f9e136d2. The md5 information digest algorithm is used to encrypt the data packet of the target plug-in manager to obtain the first data packet encryption field, and the first data packet encryption field and the first target encryption field are compared. When the two are consistent, the target plug-in manager is installed.

[0076] In this embodiment, by comparing the first data packet encryption field with the first target encryption field, it is possible to prevent the data packet of the target plug-in manager from being tampered with, thereby ensuring security.

[0077] In an optional implementation, the configuration information of each service plug-in includes: an application version number supported by each service plug-in and a data packet download path of each service plug-in. Figure 6 Schematic diagram of the process of the service plug-in management method provided in the embodiment of the present application Figure 5 ,like Figure 6 As shown, in an optional implementation, the above step S103, using the target plug-in manager to determine the target business plug-in from multiple business plug-ins according to the current application version number of the target application and the configuration information of multiple business plug-ins, and installing the target business plug-in, may include:

[0078] S501: Use the target plug-in manager to match the current application version number with the application version number supported by each service plug-in to obtain a second matching result.

[0079] S502: Using the target plug-in manager, determine a target service plug-in from multiple service plug-ins according to the second matching result.

[0080] The target plug-in manager is used to match the current application version number with the application version number supported by each business plug-in to obtain a second matching result, where the second matching result is used to indicate whether the application version number supported by each business plug-in is consistent with the current application version number. According to the second matching result, the target plug-in manager is used to select at least one business plug-in from multiple business plug-ins and determine the target business plug-in from the at least one business plug-in.

[0081] Among them, the application version number supported by the business plug-in can be, for example, compatGLVersion1.0-6.6.6, which means that the application version number supported by the plug-in manager is all versions greater than or equal to 1.0 and less than or equal to 6.6.6. For another example, the application version number supported by the plug-in manager is compatGLVersion1.0-, which means that the version number supported by the business plug-in is all versions greater than or equal to 1.0. For another example, the application version number supported by the plug-in manager is compatGLVersion-6.6.6, which means that the version number supported by the business plug-in is all versions less than or equal to 6.6.6.

[0082] A regular match is performed on the current application version number and the application version number supported by the business plug-in to obtain a second matching result to determine whether the application version number supported by the business plug-in includes the current application version number, wherein the current application version number may be 1.1, for example, since 1.1 is greater than 1.0 and less than 6.6.6, so the application version number supported by the business plug-in is consistent with the current application version number.

[0083] In an optional implementation, the configuration information of each service plug-in further includes: a plug-in version number of each service plug-in. Step S502, using a target plug-in manager to determine a target service plug-in from a plurality of service plug-ins according to the second matching result, may include:

[0084] If the second matching result indicates that the current application version number matches the application version number supported by at least one service plug-in, the target plug-in manager is used to determine the latest version from at least one service plug-in as the target service plug-in according to the version number of the at least one service plug-in.

[0085] If the second matching result indicates that the current application version number matches the application version number supported by at least one service plug-in, a service plug-in with the latest version is determined as the target service plug-in from the at least one service plug-in according to the plug-in version number of the at least one service plug-in.

[0086] Among them, the plug-in version number of the business plug-in is the version number of the business plug-in, for example, it can be versionCode: 1.0, indicating that the plug-in version number of business plug-in 1 is 1.0, versionCode: 2.0, indicating that the plug-in version number of business plug-in 2 is 2.0. If the current application version number and the application version numbers supported by business plug-in 1 and business plug-in 2 match, business plug-in 2 is determined to be the target business plug-in, wherein the plug-in version number of business plug-in 2 is the latest version number. The larger the plug-in version number, the newer the corresponding business plug-in version.

[0087] It is understandable that the downloaded and decompressed target plug-in manager can be dynamically loaded through the Java class loader, and the detection and download plug-in methods of the target plug-in manager can be called through Java reflection to execute the data packet download of the target business plug-in.

[0088] S503: Using the target plug-in manager, according to the data packet download path of the target service plug-in, download the data packet of the target service plug-in, and install the target service plug-in.

[0089] The target plug-in manager is used to download the data packet of the target business plug-in according to the data packet download path of the target business plug-in, and the target business plug-in is installed according to the data packet of the target business plug-in, wherein the data packet download path of the business plug-in can be, for example, a download path corresponding to a uniform resource locator (URL).

[0090] It is understandable that the downloaded, decompressed and installed target plug-in manager can be dynamically loaded through the Java class loader, and the decompression and installation methods of the target plug-in manager can be called through Java reflection to execute the installation of the target business plug-in.

[0091] In this embodiment, the target business plug-in is determined by matching the application version number supported by the business plug-in with the current application version number, and the target business plug-in matching the current application version number can be installed to ensure the stability of the target application and the plug-in performance, and meet the complexity, flexibility and performance requirements of the project business.

[0092] In an optional implementation, the configuration information of each service plug-in further includes: a mandatory update plug-in version number supported by each service plug-in. Figure 7 Schematic diagram of the process of the service plug-in management method provided in the embodiment of the present application Figure 6 ,like Figure 7 As shown, in an optional implementation, in the above step S503, using the target plug-in manager to download the data packet of the target service plug-in according to the data packet download path of the target service plug-in may include:

[0093] S601: If a local service plug-in of the target application already exists locally, the target plug-in manager is used to obtain a plug-in version number of the local service plug-in.

[0094] S602: If the plug-in version number of the local service plug-in is the mandatory update plug-in version number supported by the target service plug-in, the target plug-in manager is used to delete the data package of the local service plug-in and download the data package of the target service plug-in according to the data package download path of the target service plug-in.

[0095] If the local service plug-in of the target application already exists in the local storage path, the plug-in version number of the local service plug-in is obtained, and it is determined whether the plug-in version number of the local service plug-in is the plug-in version number of the target service plug-in. If so, the target plug-in manager is used to delete the data packet of the local service plug-in and download the data packet of the target service plug-in according to the data packet download path of the target service plug-in, and install the target service plug-in. Among them, the local service plug-in and multiple service plug-ins correspond to the same service of the target application.

[0096] A regular expression match is performed on the plug-in version number of the local service plug-in and the mandatory update plug-in version number supported by the target service plug-in to determine whether the plug-in version number of the local service plug-in is the mandatory update plug-in version number supported by the target service plug-in.

[0097] Among them, the plug-in version number of the target business plug-in can be 3.0, for example, and the forced update plug-in version number supported by the target business plug-in can be forceUpdateVersionCode as "1.0,2.0", indicating that the forced update manager version numbers supported by the target business plug-in are 1.0 and 2.0. If the plug-in version number of the local business plug-in is 1.0, it means that the plug-in version number of the local business plug-in is the forced update plug-in version number supported by the target business plug-in, that is, the local business plug-in needs to be forcibly updated to overwrite the local business plug-in to support bug repair scenarios.

[0098] In this embodiment, by matching the plug-in version number of the local service plug-in with the mandatory update plug-in version number supported by the target service plug-in, the version management of the service plug-in is made more flexible.

[0099] In an optional implementation manner, the configuration information of each service plug-in further includes: a second target encryption field corresponding to each service plug-in. Figure 8 Schematic diagram of the process of the service plug-in management method provided in the embodiment of the present application Figure 7 ,like Figure 8 As shown, in the above step S503, installing the target service plug-in may include:

[0100] S701: Encrypt a data packet of a target service plug-in to obtain a second data packet encryption field of the target service plug-in.

[0101] S702: If the second data packet encryption field is consistent with the second target encryption field, install the target service plug-in according to the data packet of the target service plug-in.

[0102] After downloading the data packet of the target business plug-in, the data packet of the target business plug-in is encrypted to obtain the second data packet encryption field of the target business plug-in, and the second data packet encryption field is compared with the second target encryption field corresponding to each business plug-in. If they are consistent, it means that the data packet of the target business plug-in has not been tampered with, and the target business plug-in is installed according to the data packet of the target business plug-in.

[0103] Among them, the second target encryption field corresponding to each business plug-in is the encryption field of the data packet of each business plug-in. The second target encryption field can be an md5 encryption field, for example, it can be md5:be953dfac97e26dad3c6134ffbd8b1ac. The md5 information digest algorithm is used to encrypt the data packet of the target business plug-in to obtain the second data packet encryption field, and the second data packet encryption field is compared with the second target encryption field. When the two are consistent, the target business plug-in is installed.

[0104] It is worth noting that if the second data packet encryption field is consistent with the second target encryption field, the data packet of the target business plug-in can be decompressed to the corresponding local path according to the plug-in identifier of the target business plug-in, and the target business plug-in can be installed, wherein the configuration information of each business plug-in also includes: the plug-in identifier of each business plug-in, and the plug-in identifier can be a universally unique identifier (Universally Unique Identifier, uuid) identifier, such as uuid: CEE8AFD4-026E-40A4-9BF2-1B451D036A88.

[0105] In this embodiment, by comparing the second data packet encryption field with the second target encryption field, it is possible to prevent the data packet of the target service plug-in from being tampered with, thereby ensuring security.

[0106] Fig. 9 Schematic diagram of the process of the service plug-in management method provided in the embodiment of the present application Figure 8 ,like Fig. 9 As shown, in an optional implementation, in the above step S702, installing the target service plug-in according to the data packet of the target service plug-in may include:

[0107] S801. Decompress the data packet of the target service plug-in to obtain the program file of the target service plug-in.

[0108] The target plug-in manager is used to decompress the data packet of the target service plug-in to obtain the program file of the target service plug-in, and the program file may be an apk file.

[0109] S802: If the program file includes a dynamic link library corresponding to the plug-in architecture of the target business plug-in, then obtain the application architecture of the target application.

[0110] If the program file includes a dynamic link library corresponding to the plug-in architecture of the target business plug-in, the application architecture of the target application is obtained, wherein the plug-in architecture of the target business plug-in includes armeabi-v7a, arm64-v8a, etc., and the application architecture includes armeabi-v7a, arm64-v8a, etc. The dynamic link library includes the business code of the target business plug-in under the plug-in architecture.

[0111] S803: If the plug-in architecture is consistent with the application architecture, decompress and run the dynamic link library to install the target service plug-in.

[0112] If the plug-in architecture is consistent with the application architecture, the dynamic link library is decompressed and run to install the target business plug-in. The dynamic link library is a so library. The application architecture is, for example, arm64-v8a. The plug-in architecture of the target business plug-in includes armeabi-v7a and arm64-v8a. Both armeabi-v7a and arm64-v8a include so libraries. In this case, only the so library under the arm64-v8a architecture will be compressed and run to install the target business plug-in.

[0113] It is understandable that after the dynamic link library is decompressed, the code and resources of the target business plug-in exist in the corresponding local path, where the resources include pictures, fonts, texts, layout files, etc.

[0114] After installing the target business plug-in, in response to the function trigger operation of the target business plug-in for the target application, the function trigger operation is used to trigger the business corresponding to the target business plug-in. The function trigger operation can be clicking on the plug-in function entrance, such as clicking to watch live broadcast. The code and resources under the local path of the target business plug-in can be dynamically loaded through the class loader DexClassLoader under the Android platform to load the business function logic of the target business plug-in.

[0115] When loading the business function logic of the target business plug-in, if the plug-in page corresponding to the target business plug-in is started, the preset pit page of the target application needs to be started, and then the life cycle of the plug-in page is transferred from the pit life cycle, so as to realize the normal execution of the life cycle of the plug-in page, that is, to enable the gap page to render and interact normally. Among them, the plug-in page corresponding to the target business plug-in can be, for example, a live broadcast page, a user information page, a report page, etc., and the preset pit page is a page pre-buried for the target application.

[0116] In this embodiment, the target business plug-in is installed according to the consistency of the application architecture and the plug-in architecture, so that the business plug-in and the target application are consistent, thereby preventing the business function logic of the target business plug-in from being unavailable and improving the application performance of the target business plug-in.

[0117] Based on the above embodiments, the solution of the present application is described below in conjunction with a specific embodiment.

[0118] Fig.10 A flowchart of a specific service plug-in management method provided in an embodiment of the present application is shown as follows: Fig.10 As shown, the target application is represented as the application subject, and the method includes the following steps:

[0119] Step 1: The application obtains the configuration information of all plug-in managers and all business plug-ins from the background server and saves it locally.

[0120] Step 2: WiFi pre-downloads and verifies the target plug-in manager.

[0121] Find the target plug-in manager that supports the current application version number of the application body and is the latest version from all plug-in managers, and check whether a forced update is required. If necessary, delete the local plug-in manager and download the target plug-in manager. After the download is complete, perform an md5 check.

[0122] Step 3: WiFi pre-downloads and verifies the target service plug-in.

[0123] The target plug-in manager automatically selects and downloads the target business plug-in of the adapted version, and calls back to notify the application that the target business plug-in is being downloaded and waits for the download to be completed. After completion, the application is called back to notify that the download is complete.

[0124] The target plug-in manager finds the target business plug-in that supports the current application version number of the application body and is the latest version from all business plug-ins, and checks whether a mandatory update is required. If necessary, the local business plug-in is deleted and the target business plug-in is downloaded. After the download is completed, an md5 check is performed.

[0125] Step 4: Use the target plug-in manager to decompress and install the target service plug-in.

[0126] Step 5: Trigger and start the plug-in page corresponding to the target business plug-in.

[0127] Step 6: The target plug-in manager loads the plug-in environment of the target business plug-in.

[0128] Load the plugin environment of the target business plugin and start the pit page of the application body.

[0129] Step 7: Complete the startup of the target service plug-in.

[0130] Based on the same inventive concept, a business plug-in management device corresponding to the business plug-in management method is also provided in the embodiment of the present application. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned business plug-in management method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0131] Fig.11 This is a schematic diagram of the structure of a service plug-in management device provided in an embodiment of the present application, which can be integrated in an electronic device.

[0132] like Fig.11 As shown, the device may include:

[0133] The acquisition module 901 is used to acquire the current application version number of the target application, the configuration information of multiple plug-in managers of the target application, and the configuration information of multiple business plug-ins, where different plug-in managers have different manager version numbers, and different business plug-ins have different plug-in version numbers;

[0134] The processing module 902 is used to determine a target plug-in manager from multiple plug-in managers according to the application version number of the target application and the configuration information of the multiple plug-in managers, and install the target plug-in manager;

[0135] The processing module 902 is further configured to use the target plug-in manager to determine a target service plug-in from multiple service plug-ins according to the current application version number of the target application and configuration information of multiple service plug-ins, and install the target service plug-in.

[0136] In an optional implementation, the configuration information of each plug-in manager includes: the application version number supported by each plug-in manager and the data packet download path of each plug-in manager; the processing module 902 is specifically used to:

[0137] Matching the current application version number with the application version number supported by each plug-in manager to obtain a first matching result;

[0138] Determine a target plug-in manager from a plurality of plug-in managers according to the first matching result;

[0139] Download the target plug-in manager's data package according to the target plug-in manager's data package download path and install the target plug-in manager.

[0140] In an optional implementation, the configuration information of each plug-in manager further includes: a manager version number of each plug-in manager; and a processing module 902 is specifically configured to:

[0141] If the first matching result indicates that the current application version number matches the application version number supported by the at least one plug-in manager, then according to the manager version number of the at least one plug-in manager, the latest version is determined from the at least one plug-in manager as the target plug-in manager.

[0142] In an optional implementation, the configuration information of each plug-in manager further includes: a version number of a mandatory update manager supported by each plug-in manager; and the processing module 902 is specifically configured to:

[0143] If the local plug-in manager of the target application already exists locally, obtain the manager version number of the local plug-in manager;

[0144] If the manager version number of the local plug-in manager is the mandatory update manager version number supported by the target plug-in manager, the data package of the local plug-in manager is deleted and the data package of the target plug-in manager is downloaded according to the data package download path of the target plug-in manager.

[0145] In an optional implementation, the configuration information of each plug-in manager further includes: a first target encryption field corresponding to each plug-in manager; and a processing module 902, specifically configured to:

[0146] Encrypting a data packet of the target plug-in manager to obtain a first data packet encryption field of the target plug-in manager;

[0147] If the first data packet encryption field is consistent with the first target encryption field, the target plug-in manager is installed according to the data packet of the target plug-in manager.

[0148] In an optional implementation, the configuration information of each service plug-in includes: the application version number supported by each service plug-in and the data packet download path of each service plug-in; the processing module 902 is specifically used to:

[0149] Using the target plug-in manager, matching the current application version number with the application version number supported by each business plug-in to obtain a second matching result;

[0150] Using a target plug-in manager, according to the second matching result, to determine a target service plug-in from a plurality of service plug-ins;

[0151] The target plug-in manager is used to download the data package of the target service plug-in according to the data package download path of the target service plug-in, and the target service plug-in is installed.

[0152] In an optional implementation, the configuration information of each service plug-in further includes: a plug-in version number of each service plug-in; and the processing module 902 is specifically configured to:

[0153] If the second matching result indicates that the current application version number matches the application version number supported by at least one service plug-in, the target plug-in manager is used to determine the latest version from at least one service plug-in as the target service plug-in according to the version number of the at least one service plug-in.

[0154] In an optional implementation, the configuration information of each service plug-in further includes: a mandatory update plug-in version number supported by each service plug-in; the processing module 902 is specifically configured to:

[0155] If a local service plug-in of the target application already exists locally, the target plug-in manager is used to obtain the plug-in version number of the local service plug-in;

[0156] If the plug-in version number of the local service plug-in is the mandatory update plug-in version number supported by the target service plug-in, the target plug-in manager is used to delete the data package of the local service plug-in and download the data package of the target service plug-in according to the data package download path of the target service plug-in.

[0157] In an optional implementation, the configuration information of each service plug-in further includes: a second target encryption field corresponding to each service plug-in; and a processing module 902, specifically configured to:

[0158] Download the data package of the target service plug-in according to the data package download path of the target service plug-in;

[0159] Encrypting a data packet of the target service plug-in to obtain a second data packet encryption field of the target service plug-in;

[0160] If the second data packet encryption field is consistent with the second target encryption field, the target service plug-in is installed according to the data packet of the target service plug-in.

[0161] In an optional implementation, the processing module 902 is specifically configured to:

[0162] Decompress the data packet of the target service plug-in to obtain the program file of the target service plug-in;

[0163] If the program file includes a dynamic link library corresponding to the plug-in architecture of the target business plug-in, then the application architecture of the target application is obtained;

[0164] If the plug-in architecture is consistent with the application architecture, decompress and run the dynamic link library to install the target business plug-in.

[0165] In an optional implementation, the processing module 902 is further configured to:

[0166] In response to a triggering operation on a preset function of a target application, a plurality of service plug-ins associated with the preset function are determined.

[0167] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Fig.12 As shown, the device may include: a processor 1101, a memory 1002 and a bus 1003, the memory 1002 stores machine-readable instructions executable by the processor 1001, when the electronic device is running, the processor 1001 communicates with the memory 1002 through the bus 1003, and the processor 1001 executes the machine-readable instructions to perform the following steps:

[0168] Obtaining the current application version number of the target application, configuration information of multiple plug-in managers of the target application, and configuration information of multiple business plug-ins, where different plug-in managers have different manager version numbers, and different business plug-ins have different plug-in version numbers;

[0169] Determine a target plug-in manager from the multiple plug-in managers according to the application version number of the target application and the configuration information of the multiple plug-in managers, and install the target plug-in manager;

[0170] A target plug-in manager is used to determine a target service plug-in from multiple service plug-ins according to the current application version number of the target application and configuration information of multiple service plug-ins, and install the target service plug-in.

[0171] In an optional implementation, the configuration information of each plug-in manager includes: an application version number supported by each plug-in manager and a data packet download path of each plug-in manager; determining a target plug-in manager from the multiple plug-in managers according to the application version number of the target application and the configuration information of the multiple plug-in managers, and installing the target plug-in manager, including:

[0172] Matching the current application version number with the application version number supported by each plug-in manager to obtain a first matching result;

[0173] Determine a target plug-in manager from a plurality of plug-in managers according to the first matching result;

[0174] Download the target plug-in manager's data package according to the target plug-in manager's data package download path and install the target plug-in manager.

[0175] In an optional implementation, the configuration information of each plug-in manager further includes: a manager version number of each plug-in manager; and determining a target plug-in manager from the plurality of plug-in managers according to the first matching result, comprising:

[0176] If the first matching result indicates that the current application version number matches the application version number supported by the at least one plug-in manager, then according to the manager version number of the at least one plug-in manager, the latest version is determined from the at least one plug-in manager as the target plug-in manager.

[0177] In an optional implementation, the configuration information of each plug-in manager further includes: a version number of a mandatory update manager supported by each plug-in manager; and downloading a data packet of a target plug-in manager according to a data packet download path of the target plug-in manager, including:

[0178] If the local plug-in manager of the target application already exists locally, obtain the manager version number of the local plug-in manager;

[0179] If the manager version number of the local plug-in manager is the mandatory update manager version number supported by the target plug-in manager, the data package of the local plug-in manager is deleted and the data package of the target plug-in manager is downloaded according to the data package download path of the target plug-in manager.

[0180] In an optional implementation, the configuration information of each plug-in manager further includes: a first target encryption field corresponding to each plug-in manager; installing the target plug-in manager includes:

[0181] Encrypting a data packet of the target plug-in manager to obtain a first data packet encryption field of the target plug-in manager;

[0182] If the first data packet encryption field is consistent with the first target encryption field, the target plug-in manager is installed according to the data packet of the target plug-in manager.

[0183] In an optional implementation, the configuration information of each service plug-in includes: an application version number supported by each service plug-in and a data packet download path of each service plug-in; using a target plug-in manager, according to a current application version number of a target application and the configuration information of multiple service plug-ins, determining a target service plug-in from multiple service plug-ins, and installing the target service plug-in, including:

[0184] Using the target plug-in manager, matching the current application version number with the application version number supported by each business plug-in to obtain a second matching result;

[0185] Using a target plug-in manager, according to the second matching result, to determine a target service plug-in from a plurality of service plug-ins;

[0186] The target plug-in manager is used to download the data package of the target service plug-in according to the data package download path of the target service plug-in, and the target service plug-in is installed.

[0187] In an optional implementation, the configuration information of each service plug-in further includes: a plug-in version number of each service plug-in; using the target plug-in manager, according to the second matching result, determining the target service plug-in from the plurality of service plug-ins, including:

[0188] If the second matching result indicates that the current application version number matches the application version number supported by at least one service plug-in, the target plug-in manager is used to determine the latest version from at least one service plug-in as the target service plug-in according to the version number of the at least one service plug-in.

[0189] In an optional implementation, the configuration information of each service plug-in further includes: a mandatory update plug-in version number supported by each service plug-in; using a target plug-in manager to download a data packet of a target service plug-in according to a data packet download path of the target service plug-in, including:

[0190] If a local service plug-in of the target application already exists locally, the target plug-in manager is used to obtain the plug-in version number of the local service plug-in;

[0191] If the plug-in version number of the local service plug-in is the mandatory update plug-in version number supported by the target service plug-in, the target plug-in manager is used to delete the data package of the local service plug-in and download the data package of the target service plug-in according to the data package download path of the target service plug-in.

[0192] In an optional implementation, the configuration information of each service plug-in further includes: a second target encryption field corresponding to each service plug-in; installing the target service plug-in includes:

[0193] Download the data package of the target service plug-in according to the data package download path of the target service plug-in;

[0194] Encrypting a data packet of the target service plug-in to obtain a second data packet encryption field of the target service plug-in;

[0195] If the second data packet encryption field is consistent with the second target encryption field, the target service plug-in is installed according to the data packet of the target service plug-in.

[0196] In an optional implementation, installing the target service plug-in according to the data packet of the target service plug-in includes:

[0197] Decompress the data packet of the target service plug-in to obtain the program file of the target service plug-in;

[0198] If the program file includes a dynamic link library corresponding to the plug-in architecture of the target business plug-in, then the application architecture of the target application is obtained;

[0199] If the plug-in architecture is consistent with the application architecture, decompress and run the dynamic link library to install the target business plug-in.

[0200] In an optional implementation, the target plug-in manager is used to determine the target service plug-in from the multiple service plug-ins according to the current application version number of the target application and the configuration information of the multiple service plug-ins. Before the method further includes:

[0201] In response to a triggering operation on a preset function of a target application, a plurality of service plug-ins associated with the preset function are determined.

[0202] In this embodiment, the processor executes machine-readable instructions to obtain the current application version number of the target application, the configuration information of multiple plug-in managers of the target application, and the configuration information of multiple business plug-ins, different plug-in managers have different manager version numbers, different business plug-ins have different plug-in version numbers, determine the target plug-in manager from multiple plug-in managers according to the application version number of the target application and the configuration information of multiple plug-in managers, and install the target plug-in manager, use the target plug-in manager, determine the target business plug-in from multiple business plug-ins according to the current application version number of the target application and the configuration information of multiple business plug-ins, and install the target business plug-in. By installing the plug-in manager and plug-in that match the current application version, the stability of the target application and the plug-in performance are guaranteed, and the complexity, flexibility and performance requirements of the project business are met.

[0203] The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. The computer program is executed when a processor is running, and the processor performs the following steps:

[0204] Obtaining the current application version number of the target application, configuration information of multiple plug-in managers of the target application, and configuration information of multiple business plug-ins, where different plug-in managers have different manager version numbers, and different business plug-ins have different plug-in version numbers;

[0205] Determine a target plug-in manager from the multiple plug-in managers according to the application version number of the target application and the configuration information of the multiple plug-in managers, and install the target plug-in manager;

[0206] A target plug-in manager is used to determine a target service plug-in from multiple service plug-ins according to the current application version number of the target application and configuration information of multiple service plug-ins, and install the target service plug-in.

[0207] In an optional implementation, the configuration information of each plug-in manager includes: an application version number supported by each plug-in manager and a data packet download path of each plug-in manager; determining a target plug-in manager from the multiple plug-in managers according to the application version number of the target application and the configuration information of the multiple plug-in managers, and installing the target plug-in manager, including:

[0208] Matching the current application version number with the application version number supported by each plug-in manager to obtain a first matching result;

[0209] Determine a target plug-in manager from a plurality of plug-in managers according to the first matching result;

[0210] Download the target plug-in manager's data package according to the target plug-in manager's data package download path and install the target plug-in manager.

[0211] In an optional implementation, the configuration information of each plug-in manager further includes: a manager version number of each plug-in manager; and determining a target plug-in manager from the plurality of plug-in managers according to the first matching result, comprising:

[0212] If the first matching result indicates that the current application version number matches the application version number supported by the at least one plug-in manager, then according to the manager version number of the at least one plug-in manager, the latest version is determined from the at least one plug-in manager as the target plug-in manager.

[0213] In an optional implementation, the configuration information of each plug-in manager further includes: a version number of a mandatory update manager supported by each plug-in manager; and downloading a data packet of a target plug-in manager according to a data packet download path of the target plug-in manager, including:

[0214] If the local plug-in manager of the target application already exists locally, obtain the manager version number of the local plug-in manager;

[0215] If the manager version number of the local plug-in manager is the mandatory update manager version number supported by the target plug-in manager, the data package of the local plug-in manager is deleted and the data package of the target plug-in manager is downloaded according to the data package download path of the target plug-in manager.

[0216] In an optional implementation, the configuration information of each plug-in manager further includes: a first target encryption field corresponding to each plug-in manager; installing the target plug-in manager includes:

[0217] Encrypting a data packet of the target plug-in manager to obtain a first data packet encryption field of the target plug-in manager;

[0218] If the first data packet encryption field is consistent with the first target encryption field, the target plug-in manager is installed according to the data packet of the target plug-in manager.

[0219] In an optional implementation, the configuration information of each service plug-in includes: an application version number supported by each service plug-in and a data packet download path of each service plug-in; using a target plug-in manager, according to a current application version number of a target application and the configuration information of multiple service plug-ins, determining a target service plug-in from multiple service plug-ins, and installing the target service plug-in, including:

[0220] Using the target plug-in manager, matching the current application version number with the application version number supported by each business plug-in to obtain a second matching result;

[0221] Using a target plug-in manager, according to the second matching result, to determine a target service plug-in from a plurality of service plug-ins;

[0222] The target plug-in manager is used to download the data package of the target service plug-in according to the data package download path of the target service plug-in, and the target service plug-in is installed.

[0223] In an optional implementation, the configuration information of each service plug-in further includes: a plug-in version number of each service plug-in; using the target plug-in manager, according to the second matching result, determining the target service plug-in from the plurality of service plug-ins, including:

[0224] If the second matching result indicates that the current application version number matches the application version number supported by at least one service plug-in, the target plug-in manager is used to determine the latest version from at least one service plug-in as the target service plug-in according to the version number of the at least one service plug-in.

[0225] In an optional implementation, the configuration information of each service plug-in further includes: a mandatory update plug-in version number supported by each service plug-in; using a target plug-in manager to download a data packet of a target service plug-in according to a data packet download path of the target service plug-in, including:

[0226] If a local service plug-in of the target application already exists locally, the target plug-in manager is used to obtain the plug-in version number of the local service plug-in;

[0227] If the plug-in version number of the local service plug-in is the mandatory update plug-in version number supported by the target service plug-in, the target plug-in manager is used to delete the data package of the local service plug-in and download the data package of the target service plug-in according to the data package download path of the target service plug-in.

[0228] In an optional implementation, the configuration information of each service plug-in further includes: a second target encryption field corresponding to each service plug-in; installing the target service plug-in includes:

[0229] Download the data package of the target service plug-in according to the data package download path of the target service plug-in;

[0230] Encrypting a data packet of the target service plug-in to obtain a second data packet encryption field of the target service plug-in;

[0231] If the second data packet encryption field is consistent with the second target encryption field, the target service plug-in is installed according to the data packet of the target service plug-in.

[0232] In an optional implementation, installing the target service plug-in according to the data packet of the target service plug-in includes:

[0233] Decompress the data packet of the target service plug-in to obtain the program file of the target service plug-in;

[0234] If the program file includes a dynamic link library corresponding to the plug-in architecture of the target business plug-in, then the application architecture of the target application is obtained;

[0235] If the plug-in architecture is consistent with the application architecture, decompress and run the dynamic link library to install the target business plug-in.

[0236] In an optional implementation, the target plug-in manager is used to determine the target service plug-in from the multiple service plug-ins according to the current application version number of the target application and the configuration information of the multiple service plug-ins. Before the method further includes:

[0237] In response to a triggering operation on a preset function of a target application, a plurality of service plug-ins associated with the preset function are determined.

[0238] In this embodiment, the computer program is executed by the processor when it is running, and the processor executes to obtain the current application version number of the target application, the configuration information of multiple plug-in managers of the target application, and the configuration information of multiple business plug-ins, different plug-in managers have different manager version numbers, and different business plug-ins have different plug-in version numbers. According to the application version number of the target application and the configuration information of multiple plug-in managers, the target plug-in manager is determined from multiple plug-in managers, and the target plug-in manager is installed. The target plug-in manager is used to determine the target business plug-in from multiple business plug-ins according to the current application version number of the target application and the configuration information of multiple business plug-ins, and the target business plug-in is installed. By installing the plug-in manager and plug-in that match the current application version, the stability of the target application and the plug-in performance are guaranteed, and the complexity, flexibility and performance requirements of the project business are met.

[0239] In the embodiment of the present application, the computer program can also execute other machine-readable instructions when run by the processor to execute other methods described in the embodiment. For the specific execution method steps and principles, please refer to the description of the embodiment, which will not be repeated here.

[0240] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0241] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0242] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0243] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0244] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0245] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A service plug-in management method, characterized in that: include: Obtaining a current application version number of a target application, configuration information of multiple plug-in managers of the target application, and configuration information of multiple service plug-ins, where different plug-in managers have different manager version numbers, and different service plug-ins have different plug-in version numbers; Determining a target plug-in manager from the multiple plug-in managers according to the application version number of the target application and the configuration information of the multiple plug-in managers, and installing the target plug-in manager; The target plug-in manager is used to determine a target service plug-in from the multiple service plug-ins according to the current application version number of the target application and the configuration information of the multiple service plug-ins, and install the target service plug-in.

2. The method according to claim 1, characterized in that The configuration information of each plug-in manager includes: the application version number supported by each plug-in manager and the data packet download path of each plug-in manager; determining a target plug-in manager from the multiple plug-in managers according to the application version number of the target application and the configuration information of the multiple plug-in managers, and installing the target plug-in manager, including: Matching the current application version number with the application version numbers supported by each plug-in manager to obtain a first matching result; Determining the target plug-in manager from the plurality of plug-in managers according to the first matching result; According to the data package download path of the target plug-in manager, the data package of the target plug-in manager is downloaded and the target plug-in manager is installed.

3. The method according to claim 2, characterized in that The configuration information of each plug-in manager also includes: a manager version number of each plug-in manager; and determining the target plug-in manager from the plurality of plug-in managers according to the first matching result includes: If the first matching result indicates that the current application version number matches the application version number supported by at least one plug-in manager, then according to the manager version number of the at least one plug-in manager, the latest version is determined from the at least one plug-in manager as the target plug-in manager.

4. The method according to claim 2, characterized in that: The configuration information of each plug-in manager also includes: a version number of a mandatory update manager supported by each plug-in manager; and downloading the data packet of the target plug-in manager according to the data packet download path of the target plug-in manager includes: If a local plug-in manager of the target application already exists locally, obtaining a manager version number of the local plug-in manager; If the manager version number of the local plug-in manager is the mandatory update manager version number supported by the target plug-in manager, the data packet of the local plug-in manager is deleted and the data packet of the target plug-in manager is downloaded according to the data packet download path of the target plug-in manager.

5. The method according to claim 2, characterized in that: The configuration information of each plug-in manager also includes: a first target encryption field corresponding to each plug-in manager; and installing the target plug-in manager includes: Encrypting a data packet of the target plug-in manager to obtain a first data packet encryption field of the target plug-in manager; If the first data packet encryption field is consistent with the first target encryption field, the target plug-in manager is installed according to the data packet of the target plug-in manager.

6. The method according to claim 1, characterized in that The configuration information of each service plug-in includes: the application version number supported by each service plug-in and the data packet download path of each service plug-in; the target plug-in manager is used to determine the target service plug-in from the multiple service plug-ins according to the current application version number of the target application and the configuration information of the multiple service plug-ins, and the target service plug-in is installed, including: Using the target plug-in manager, matching the current application version number with the application version number supported by each service plug-in to obtain a second matching result; Using the target plug-in manager, according to the second matching result, determine the target service plug-in from the multiple service plug-ins; The target plug-in manager is used to download the data packet of the target service plug-in according to the data packet download path of the target service plug-in, and the target service plug-in is installed.

7. The method according to claim 6, characterized in that The configuration information of each service plug-in further includes: a plug-in version number of each service plug-in; and the step of using the target plug-in manager to determine the target service plug-in from the multiple service plug-ins according to the second matching result includes: If the second matching result indicates that the current application version number matches the application version number supported by at least one service plug-in, the target plug-in manager is used to determine the latest version from the at least one service plug-in as the target service plug-in according to the version number of the at least one service plug-in.

8. The method according to claim 6, characterized in that The configuration information of each service plug-in further includes: a mandatory update plug-in version number supported by each service plug-in; the adopting the target plug-in manager to download the data packet of the target service plug-in according to the data packet download path of the target service plug-in includes: If a local service plug-in of the target application already exists locally, the target plug-in manager is used to obtain a plug-in version number of the local service plug-in; If the plug-in version number of the local service plug-in is the mandatory update plug-in version number supported by the target service plug-in, the target plug-in manager is used to delete the data packet of the local service plug-in and download the data packet of the target service plug-in according to the data packet download path of the target service plug-in.

9. The method according to claim 6, characterized in that The configuration information of each service plug-in further includes: a second target encryption field corresponding to each service plug-in; and installing the target service plug-in includes: Downloading the data packet of the target service plug-in according to the data packet download path of the target service plug-in; Encrypting a data packet of the target service plug-in to obtain a second data packet encryption field of the target service plug-in; If the second data packet encryption field is consistent with the second target encryption field, the target service plug-in is installed according to the data packet of the target service plug-in.

10. The method according to claim 9, characterized in that The step of installing the target service plug-in according to the data packet of the target service plug-in includes: Decompressing the data packet of the target service plug-in to obtain the program file of the target service plug-in; If the program file includes a dynamic link library corresponding to the plug-in architecture of the target business plug-in, then obtaining the application architecture of the target application; If the plug-in architecture is consistent with the application architecture, the dynamic link library is decompressed and run to install the target service plug-in.

11. The method according to claim 1, characterized in that: Before determining the target service plug-in from the multiple service plug-ins by using the target plug-in manager according to the current application version number of the target application and the configuration information of the multiple service plug-ins, the method further includes: In response to a triggering operation on a preset function of the target application, the plurality of service plug-ins associated with the preset function are determined.

12. A service plug-in management device, characterized in that: include: An acquisition module, used to acquire the current application version number of the target application, configuration information of multiple plug-in managers of the target application, and configuration information of multiple business plug-ins, where different plug-in managers have different manager version numbers, and different business plug-ins have different plug-in version numbers; a processing module, configured to determine a target plug-in manager from the multiple plug-in managers according to an application version number of the target application and configuration information of the multiple plug-in managers, and install the target plug-in manager; The processing module is further configured to use the target plug-in manager to determine a target service plug-in from the multiple service plug-ins according to the current application version number of the target application and the configuration information of the multiple service plug-ins, and install the target service plug-in.

13. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and the processor executes the machine-readable instructions to perform the method described in any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 11 is executed.