[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113032039A - Plug-in reconstruction method and device for application, electronic equipment and storage medium - Google Patents

Plug-in reconstruction method and device for application, electronic equipment and storage medium Download PDF

Info

Publication number
CN113032039A
CN113032039A CN202110274186.XA CN202110274186A CN113032039A CN 113032039 A CN113032039 A CN 113032039A CN 202110274186 A CN202110274186 A CN 202110274186A CN 113032039 A CN113032039 A CN 113032039A
Authority
CN
China
Prior art keywords
application
plug
interface
host
modified
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110274186.XA
Other languages
Chinese (zh)
Other versions
CN113032039B (en
Inventor
孙洋洋
罗涛
李可
赵海强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110274186.XA priority Critical patent/CN113032039B/en
Publication of CN113032039A publication Critical patent/CN113032039A/en
Application granted granted Critical
Publication of CN113032039B publication Critical patent/CN113032039B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present disclosure provides a plug-in reconstruction method for an application, including: extracting a common service module and a common interface in at least one application to be modified, and storing the common service module and the common interface into a host application; modifying the configuration file of at least one application to be modified to generate at least one plug-in application of the application to be modified; a first communication interface and at least one second communication interface are added in the host application and the plug-in application, so that the host application can start the plug-in application through the first communication interface, and the plug-in application can call a common service module and a common interface in the host application through the at least one second communication interface. The method provided by the disclosure can plug in the multi-inventory application and avoid frequent application switching of a user through the function of installing and using the plug-in application by the host application, and the desktop of the user equipment does not have a corresponding plug-in application icon, thereby improving the user experience and the neatness of the desktop of the equipment.

Description

Plug-in reconstruction method and device for application, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a plug-in modification method and apparatus for an application, an electronic device, and a computer-readable storage medium.
Background
The existing mobile client plug-in technology solves the problems of how to load plug-in codes, how to manage the component life cycle in the plug-in, plug-in resource loading and resource conflict between the plug-in and a host, and the core idea of various plug-in frameworks is to adopt a proxy mode 'cheat' system, so that the system mistakenly considers that the function of the plug-in is called as the same as the native function, and the dynamic loading of the client function is realized. The plug-in function needs to be split, project reconstruction is involved, the method is not suitable for the existing projects which are complicated, communication is loaded among multiple applications in a plug-in mode, and the technical scheme has huge modification workload. The invention provides a scheme for modifying a plurality of stored APP plug-ins, which achieves the purposes of installing, uninstalling, upgrading, managing and the like of all the plug-ins APP through a host APP.
The plug-in technology of the existing mobile client solves the problem of single-project plug-in transformation, and for APP plug-in transformation with complex functions, the transformation workload is large, the cost is high, and plug-in transformation of multiple APPs cannot be rapidly and effectively solved.
Disclosure of Invention
In view of the above, the present disclosure provides a plug-in transformation method and apparatus for an application, an electronic device, and a computer-readable storage medium.
One aspect of the present disclosure provides a plug-in modification method for an application, including: extracting a common service module and a common interface in at least one application to be modified, and storing the common service module and the common interface into a host application; modifying the configuration file of the at least one application to be modified to generate a plug-in application of the at least one application to be modified; adding a first communication interface and at least one second communication interface in the host application and the plug-in application, so that the host application can start the plug-in application through the first communication interface and call the function of the plug-in application, and the plug-in application can call the common service module and the common interface in the host application through the at least one second communication interface.
Optionally, the method further includes: and merging the account information of the same user in the account systems of the host application and the at least one application to be modified to obtain a merged account system.
Optionally, the method further includes: modifying an operation interface associated with the account system of the at least one application to be modified in the common business module, so that the operation interface is used for operating the merged account system; when the host application starts the plug-in application of the at least one application to be modified through the first communication interface, the account information of the current user is acquired from the merged account system through the operation interface, and the account information is transmitted to the plug-in application.
Optionally, the method further includes: if the account information is successfully transferred, opening an interface of the plug-in application; and if the account information is failed to be transmitted, returning to the interface of the host application.
Optionally, the interface of the plugin application includes the common interface and a non-common interface, and when the plugin application calls a function corresponding to the common interface, the method includes: and the plug-in application sends an interface request to the host application through the second communication interface so as to acquire the common interface corresponding to the function.
Optionally, the modifying the configuration file of the at least one application to be modified, and the generating the plug-in application of the at least one application to be modified includes: modifying an application starting configuration mode in the configuration file of the at least one application to be modified; and compiling the program of the at least one application to be modified to generate a plug-in application installation package of the at least one application to be modified, wherein the starting mode of the plug-in application is implicit starting.
Optionally, the method further includes: adding a plug-in prejudgment logic in the host application, wherein the plug-in prejudgment logic comprises: when a user desires to start the plug-in application through the host application, judging whether the plug-in application is installed in the host application; if the plug-in application is installed in the host application, starting the plug-in application; and if the plug-in application is not installed in the host application, inquiring whether the user installs the plug-in application.
Optionally, the method further includes: generating a login information token when logging in the host application; when the login information token fails, prompting a user that the login information token fails, ending the processes of the host application and the plugin application, and clearing account information and cache of the host application and the plugin application; and jumping to a login page of the host application.
Optionally, an applied plug-in reconstruction device includes: the service extraction module is used for extracting a common service module and a common interface in at least one application to be modified and storing the common service module and the common interface into the host application; the configuration modification module is used for modifying the configuration file of the at least one application to be modified and generating the plug-in application of the at least one application to be modified; the interface setting module is used for adding a first communication interface and at least one second communication interface in the host application and the plug-in application, so that the host application can start the plug-in application through the first communication interface and call the function of the plug-in application, and the plug-in application can call the common service module and the common interface in the host application through the at least one second communication interface.
Another aspect of the present disclosure provides a computer system, including: one or more processors; memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of the first aspects.
Another aspect of the disclosure provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to implement the method of any one of the first aspects.
According to the embodiment of the disclosure, a plurality of applications are subjected to plug-in transformation, and plug-ins are uniformly managed through one host application, so that the switching times of a user among different applications can be reduced, and the user experience is improved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates a flow diagram of plug-in adaptation of an application according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow diagram of a host application calling a plug-in application, in accordance with an embodiment of the present disclosure;
FIG. 3 schematically shows a block diagram of a plug-in retrofit device for an application according to an embodiment of the present disclosure;
fig. 4 schematically illustrates a block diagram of a computer system 400 suitable for implementing a robot in accordance with an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Fig. 1 schematically shows a flow chart of a plug-in adaptation method of an application according to an embodiment of the present disclosure.
As shown in fig. 1, the method includes operations S110 to S130.
S110, extracting at least one common service module and a common interface in the application to be modified, and storing the common service module and the common interface in the host application.
S120, modifying the configuration file of at least one application to be modified, and generating at least one plug-in application of the application to be modified.
S130, a first communication interface and at least one second communication interface are added in the host application and the plug-in application, so that the host application can start the plug-in application through the first communication interface and call the function of the plug-in application, and the plug-in application can call the shared service module and the shared interface in the host application through the at least one second communication interface.
In the embodiment of the present disclosure, the common service module is a general module with each modification application, such as a user information registration module, an information query module, a network correlation module, and the like, and these modules are stored in the host application and provided to each plug-in application for use in the form of a common SDK.
According to the embodiment of the disclosure, the logic and the interface of the common service of each application to be modified are similar, so that the common service can be extracted and uniformly managed through the host application. The applications to be modified are pluged, and are uniformly managed through the host application, so that the functions of the host application can be expanded along with the increase of the plugins, and meanwhile, the user can be prevented from switching back and forth among the applications, the user experience is improved, and the user viscosity is increased. The method has the advantages that the reconstruction mode of the application to be reconstructed is simple, and the reconstruction efficiency can be improved.
In the embodiment of the present disclosure, in order to enable the host application to implement the same management on the plug-in application, the account system between the host application and the plug-in application is opened first, and before the method, the method further includes step S111.
And S111, merging the account information of the same user in the account systems of the host application and the at least one application to be modified to obtain a merged account system.
According to the embodiment of the disclosure, account information of the same user in the account system of the host application and at least one application to be modified is combined, so that the host application sends the acquired account information and account state to the plug-in application when the plug-in application is started through the host application after the user logs in the host application, and the account information of the plug-in application is provided by the host application.
After the accounts are merged, in order to enable the host application to manage the account information of the unified management plug-in application, the account management module in the application to be modified is stored in the host application as a common service module, and the steps include S112 to S113.
And S112, modifying an operation interface associated with the account system of at least one application to be modified in the common service module, and enabling the operation interface to be used for operating the combined account system.
In the embodiment of the disclosure, the common services of each application to be modified include login, modified password, fingerprint password, gesture password, network correlation and the like, the login is only one of the common services according to the account information in the account system, and since the common service module is originally in the application to be modified and is used for operating the account system of the application to be modified, the common service module is transferred to the host module and then correspondingly modified, so that the operation interface is used for operating and merging the account information in the account system.
It should be noted that, similar to the account service, other service codes in the common service should be modified when being transferred to the host application, so that the host application can reasonably run the common service, and thus the plug-in application can run smoothly.
And S113, when the host application starts at least one plug-in application of the application to be modified through the first communication interface, acquiring account information of the current user from the combined account system through the operation interface, and transmitting the account information to the plug-in application.
In the embodiment of the disclosure, when the user starts the plug-in application in the host application, the host application acquires the account information of the user from the merged account system and transmits the account information to the plug-in application through the second communication interface, so that the user does not need to manually input the account information when starting the plug-in application through the host application, the number of times of manually inputting the account information by the user is reduced, and the user experience is improved.
When the plug-in application is registered in step S113, the method further includes steps S1131 to S1132.
S1131, if the account information is successfully transferred, an interface of the plug-in application is opened.
S1132, if the account information is failed to be transmitted, returning to an interface of the host application.
In the embodiment of the disclosure, when the plug-in application logs in according to the account information, login failure may be caused due to reasons such as network status and account information being out of date, and the reason for the failure may be prompted to the user and then returned to the host application.
In an embodiment of the present disclosure, the interface of the plug-in application includes the common interface and a non-common interface, and when the plug-in application calls a function corresponding to the common interface, the method includes:
and the plug-in application sends an interface request to the host application through the second communication interface so as to acquire a common interface corresponding to the function.
For example, when the plug-in application calls the user data registration function of the common service module, the plug-in application acquires a registration interface corresponding to the function from the host application through the second communication interface, so that the user can register.
It should be noted that the interface stored in the host application does not include at least one start-up interface of the application to be modified. In this way, when the user starts the plug-in application through the host application, the start page of the plug-in application can be a preset page in the host application, but not an original start screen of the application which is not modified by the user, so that the visual effect that the plug-in application is loaded as a functional component of the host application is achieved.
In step S120, a plug-in application is generated according to the application to be modified, which specifically includes steps S121 to S122.
S121, modifying an application starting configuration mode in the configuration file of at least one application to be modified.
And S122, compiling at least one program of the application to be modified, and generating at least one plug-in application installation package of the application to be modified, wherein the starting mode of the plug-in application is implicit starting.
According to the steps, the modification of the application to be modified does not affect the application logic of the application to be modified actually, the configuration file is modified, and the starting logic code of the plug-in is added, so that the plug-in application can be started implicitly in a host + scheme mode without displaying an icon for starting on a desktop.
FIG. 2 schematically illustrates a flow diagram of a host application calling a plug-in application, according to an embodiment of the disclosure.
As shown in fig. 2, installing the plug-in application into the host application further includes adding a plug-in anticipation logic in the host application, where the plug-in anticipation logic includes steps S210 to S230.
S210, when the user desires to start the plug-in application through the host application, whether the plug-in application is installed in the host application is judged.
In the embodiment of the present disclosure, a user may search through a search box or click through a preset function button to start a certain plugin application, but the host application may not install the plugin application itself, and therefore, before starting the plugin application, it should be determined whether the plugin application is already installed in the host application.
And S220, if the plug-in application is installed in the host application, starting the plug-in application.
In the embodiment of the present disclosure, if the plug-in application is already installed in the host application, when the plug-in application is started, the host application will combine the account information of the user in the account system to query the account information of the user in the plug-in application according to the account information of the current user, and log in the plug-in application according to the account information.
And S230, if the plug-in application is not installed in the host application, inquiring whether the user installs the plug-in application.
And S231, installing and starting the plug-in application when the user agrees to install the plug-in application.
In the embodiment of the disclosure, if the user agrees to install, the corresponding plug-in application is downloaded from the host application and the plug-in application is installed, so that the number or type of the plug-ins of the host application is expanded, and the functions of the host application are correspondingly expanded. After the installation is finished, the plug-in application can be automatically started and jumps to the corresponding functional interface, so that the times of manual operation of a user are reduced.
And S232, when the user does not agree to install the plug-in application, prompting the user that the corresponding function of the plug-in application cannot be used.
In addition, in order to ensure the security of the account, the method further comprises steps S241 to S243.
S241, when the host application is logged in, generates a login information token.
And S242, when the login information token fails, prompting the user that the login information token fails, ending the processes of the host application and the plug-in application, and clearing the account information and the cache of the host application and the plug-in application.
S243, jumping to the login page of the host application.
In the embodiment of the disclosure, the security of the user account in the host application is protected by the login information token, for example, after the user logs in the host application, if no action is performed for a preset time, the token may be disabled, or if a problem occurs in the network connection of the host application, the token may be disabled, and in order to prevent the risk that the user account is tampered or stolen, the token is disabled, the current login state is exited. And when the interface is displayed as the interface of the plug-in application and the login information token fails, ending the process of the plug-in application, returning to the host application, and exiting the login state of the host application.
According to the embodiment of the disclosure, if the login information token returns to the login state of the host application due to failure of the login information token, the user can directly jump to the interface before logging out after logging in again, for example, if the token fails when using the function of the plug-in application, the user directly jumps to the interface corresponding to the function after logging in again.
Fig. 3 schematically shows a block diagram of a plug-in retrofit device for an application according to an embodiment of the present disclosure.
As shown in fig. 3, a plug-in retrofit device 300 is applied, comprising: a service extraction module 310, a configuration modification module 320, and an interface setting module 330.
And the service extraction module 310 is configured to extract a common service module and a common interface in at least one application to be modified, and store the common service module and the common interface in the host application.
And the configuration modification module 320 is configured to modify the configuration file of the at least one application to be modified, and generate a plug-in application of the at least one application to be modified.
The interface setting module 330 is configured to add a first communication interface and at least one second communication interface in the host application and the plug-in application, so that the host application can start the plug-in application through the first communication interface and call a function of the plug-in application, and the plug-in application can call a common service module and a common interface in the host application through the at least one second communication interface.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any plurality of the service extraction module 310, the configuration modification module 320 and the interface setting module 330 may be combined and implemented in one module/unit/sub-unit, or any one of the modules/units/sub-units may be split into a plurality of modules/units/sub-units. Alternatively, at least part of the functionality of one or more of these modules/units/sub-units may be combined with at least part of the functionality of other modules/units/sub-units and implemented in one module/unit/sub-unit. According to an embodiment of the present disclosure, at least one of the service extraction module 310, the configuration modification module 320, and the interface setting module 330 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware. Alternatively, at least one of the service extraction module 310, the configuration modification module 320, the interface setting module 330 may be at least partially implemented as a computer program module, which when executed, may perform a corresponding function.
It should be noted that the plug-in modification device portion applied in the embodiment of the present disclosure corresponds to the plug-in modification method portion applied in the embodiment of the present disclosure, and the description of the plug-in modification device portion applied specifically refers to the data processing method portion, and is not described herein again.
FIG. 4 schematically shows a block diagram of a computer system suitable for implementing the above described method according to an embodiment of the present disclosure. The computer system illustrated in FIG. 4 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the disclosure.
As shown in fig. 4, a computer system 400 according to an embodiment of the present disclosure includes a processor 401 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage section 408 into a Random Access Memory (RAM) 403. Processor 401 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 401 may also include onboard memory for caching purposes. Processor 401 may include a single processing unit or multiple processing units for performing the different actions of the method flows in accordance with embodiments of the present disclosure.
In the RAM 403, various programs and data necessary for the operation of the system 400 are stored. The processor 401, ROM 402 and RAM 403 are connected to each other by a bus 404. The processor 401 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 402 and/or the RAM 403. Note that the programs may also be stored in one or more memories other than the ROM 402 and RAM 403. The processor 401 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, system 400 may also include an input/output (I/O) interface 405, input/output (I/O) interface 405 also connected to bus 404. The system 400 may also include one or more of the following components connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output section 407 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 408 including a hard disk and the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. A driver 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 410 as necessary, so that a computer program read out therefrom is mounted into the storage section 408 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 409, and/or installed from the removable medium 411. The computer program, when executed by the processor 401, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
For example, according to embodiments of the present disclosure, a computer-readable storage medium may include ROM 402 and/or RAM 403 and/or one or more memories other than ROM 402 and RAM 403 described above.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (11)

1. A plug-in adaptation method for an application, comprising:
extracting a common service module and a common interface in at least one application to be modified, and storing the common service module and the common interface into a host application;
modifying the configuration file of the at least one application to be modified to generate a plug-in application of the at least one application to be modified;
adding a first communication interface and at least one second communication interface in the host application and the plug-in application, so that the host application can start the plug-in application through the first communication interface and call the function of the plug-in application, and the plug-in application can call the common service module and the common interface in the host application through the at least one second communication interface.
2. The method of claim 1, further comprising:
and merging the account information of the same user in the account systems of the host application and the at least one application to be modified to obtain a merged account system.
3. The method of claim 2, further comprising:
modifying an operation interface associated with the account system of the at least one application to be modified in the common business module, so that the operation interface is used for operating the merged account system;
when the host application starts the plug-in application of the at least one application to be modified through the first communication interface, the account information of the current user is acquired from the merged account system through the operation interface, and the account information is transmitted to the plug-in application.
4. The method of claim 3, further comprising:
if the account information is successfully transferred, opening an interface of the plug-in application;
and if the account information is failed to be transmitted, returning to the interface of the host application.
5. The method of claim 3, wherein the interface of the plug-in application comprises the common interface and a non-common interface, and when the plug-in application calls a function corresponding to the common interface, the method comprises the following steps:
and the plug-in application sends an interface request to the host application through the second communication interface so as to acquire the common interface corresponding to the function.
6. The method of claim 1, wherein modifying the configuration file of the at least one application to be rebuilt, generating the plug-in application of the at least one application to be rebuilt comprises:
modifying an application starting configuration mode in the configuration file of the at least one application to be modified;
and compiling the program of the at least one application to be modified to generate a plug-in application installation package of the at least one application to be modified, wherein the starting mode of the plug-in application is implicit starting.
7. The method of claim 1, further comprising:
adding a plug-in prejudgment logic in the host application, wherein the plug-in prejudgment logic comprises:
when a user desires to start the plug-in application through the host application, judging whether the plug-in application is installed in the host application;
if the plug-in application is installed in the host application, starting the plug-in application;
and if the plug-in application is not installed in the host application, inquiring whether the user installs the plug-in application.
8. The method of claim 1, further comprising:
generating a login information token when logging in the host application;
when the login information token fails, prompting a user that the login information token fails, ending the processes of the host application and the plugin application, and clearing account information and cache of the host application and the plugin application;
and jumping to a login page of the host application.
9. A plug-in retrofit device for an application, comprising:
the service extraction module is used for extracting a common service module and a common interface in at least one application to be modified and storing the common service module and the common interface into the host application;
the configuration modification module is used for modifying the configuration file of the at least one application to be modified and generating the plug-in application of the at least one application to be modified;
the interface setting module is used for adding a first communication interface and at least one second communication interface in the host application and the plug-in application, so that the host application can start the plug-in application through the first communication interface and call the function of the plug-in application, and the plug-in application can call the common service module and the common interface in the host application through the at least one second communication interface.
10. A computer system, comprising:
one or more processors;
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-8.
11. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 8.
CN202110274186.XA 2021-03-12 2021-03-12 Plug-in transformation method and device for application, electronic equipment and storage medium Active CN113032039B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110274186.XA CN113032039B (en) 2021-03-12 2021-03-12 Plug-in transformation method and device for application, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110274186.XA CN113032039B (en) 2021-03-12 2021-03-12 Plug-in transformation method and device for application, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113032039A true CN113032039A (en) 2021-06-25
CN113032039B CN113032039B (en) 2024-07-05

Family

ID=76468701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110274186.XA Active CN113032039B (en) 2021-03-12 2021-03-12 Plug-in transformation method and device for application, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113032039B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273142A (en) * 2017-07-12 2017-10-20 北京潘达互娱科技有限公司 Method for updating program, program operating method and device
CN107463406A (en) * 2017-08-08 2017-12-12 上海连尚网络科技有限公司 Issue the method and electronic equipment of Mobile solution
CN109542445A (en) * 2017-08-01 2019-03-29 北京京东尚科信息技术有限公司 A kind of method and apparatus that Android plug-in unit melts hair
CN110162345A (en) * 2019-05-05 2019-08-23 网宿科技股份有限公司 A kind of application program access method, device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273142A (en) * 2017-07-12 2017-10-20 北京潘达互娱科技有限公司 Method for updating program, program operating method and device
CN109542445A (en) * 2017-08-01 2019-03-29 北京京东尚科信息技术有限公司 A kind of method and apparatus that Android plug-in unit melts hair
CN107463406A (en) * 2017-08-08 2017-12-12 上海连尚网络科技有限公司 Issue the method and electronic equipment of Mobile solution
CN110162345A (en) * 2019-05-05 2019-08-23 网宿科技股份有限公司 A kind of application program access method, device and storage medium

Also Published As

Publication number Publication date
CN113032039B (en) 2024-07-05

Similar Documents

Publication Publication Date Title
CN106462467B (en) Integrated API and UI for consuming services over different distributed networks
US20180150306A1 (en) Systems and methods for eliminating reboot during initial machine configuration of operating systems
US8910138B2 (en) Hot pluggable extensions for access management system
US20090193491A1 (en) Secure element manager
WO2017166446A1 (en) Vulnerability-fixing method and device
US10922445B2 (en) Computing systems and methods
US9626196B2 (en) Broadcasting management information using fountain codes
CN111427579A (en) Plug-in, application program implementing method and system, computer system and storage medium
CN110609755A (en) Message processing method, device, equipment and medium for cross-block chain node
CN112596757A (en) Method and device for upgrading agent component of cloud desktop virtual machine and storage medium
CN111737687A (en) Access control method, system, electronic device and medium for webpage application system
US20140280693A1 (en) Font delivery service
CN112966257B (en) Authorization method and device for application program
US20240362005A1 (en) Component integration method, apparatus, device, and storage medium
CN114048463A (en) Program operation checking method and device, storage medium and electronic equipment
US11704105B2 (en) Method, device, and computer program product for managing virtual machine upgrade
CN112491940B (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
CN113778393A (en) Component generation method, device, computer system and computer-readable storage medium
CN113191889A (en) Wind control configuration method, configuration system, electronic device and readable storage medium
CN113032039A (en) Plug-in reconstruction method and device for application, electronic equipment and storage medium
CN109933355B (en) Application program upgrading method and device
CN111107106A (en) Authentication method, authentication system, firewall device and storage medium
CN115277857A (en) Method and device for interface verification, electronic equipment and storage medium
CN114185623A (en) Method and device for processing deadlock in application starting process
CN111859403A (en) Method and device for determining dependency vulnerability, electronic equipment and storage medium

Legal Events

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