CN106155709B - Plug-in loading method, device and equipment - Google Patents

Plug-in loading method, device and equipment Download PDF

Info

Publication number
CN106155709B
CN106155709B CN201510134588.4A CN201510134588A CN106155709B CN 106155709 B CN106155709 B CN 106155709B CN 201510134588 A CN201510134588 A CN 201510134588A CN 106155709 B CN106155709 B CN 106155709B
Authority
CN
China
Prior art keywords
plug
version
unit
main program
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510134588.4A
Other languages
Chinese (zh)
Other versions
CN106155709A (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.)
Beijing Shijie Xinghui Science and Technology Co., Ltd.
Original Assignee
Beijing Shijie Xinghui Science And Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Shijie Xinghui Science And Technology Co Ltd filed Critical Beijing Shijie Xinghui Science And Technology Co Ltd
Priority to CN201510134588.4A priority Critical patent/CN106155709B/en
Publication of CN106155709A publication Critical patent/CN106155709A/en
Application granted granted Critical
Publication of CN106155709B publication Critical patent/CN106155709B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention provides a kind of plug-in loading method, device and equipment, this method comprises: determining the plug-in version that can be adapted to the main program after the interface changes in multiple plug-in versions of the plug-in unit;When receiving the instruction for loading the plug-in unit in the main program, the current version of the already present plug-in unit in the main program is obtained;The current version is compared with the plug-in version that the main program is adapted to, obtains comparison result;The plug-in unit is selectively loaded according to the comparison result.Technical solution provided by the invention can guarantee that plug-in version is adapted to main program version, so as to avoid the problems such as collapsing due to the plug-in unit caused by interface changes or main program are not adapted in the prior art.

Description

Plug-in loading method, device and equipment
Technical field
The present invention relates to computer processing technical field, especially a kind of plug-in loading method, device and equipment.
Background technique
In software development, Function Extension is carried out to software for convenience, can be developed using plug-in mode, it will be soft The function package one by one to be realized of part finally sends out each plug-in unit in plug-in unit together in software main program packet Cloth.
In order to guarantee the normal interaction between plug-in unit and main program, needs plug-in unit to be adapted to main program, in the related technology, pass through It is realized writing the one-to-one relationship between dead main program version and plug-in version in main program code.For example, main program from Version 1 is upgraded to version 2, and plug-in unit is also upgraded to version 2 from version 1 at this time, can be written in main program code in the related technology The one-to-one relationship of main program version 2 and plug-in version 2 guarantees normal interaction between the two.If plug-in unit and main program at this time Between interface change (such as delete, modify), then will appear plug-in unit and be not adapted to main program, so as to cause plug-in unit or master The problems such as program crashing.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State the plug-in loading method, device and equipment of problem.
According to one aspect of the present invention, provide a kind of plug-in loading method, applied in client main program with The case where interface between plug-in unit changes, comprising: in multiple plug-in versions of the plug-in unit, determine that the interface occurs The plug-in version that can be adapted to the main program after variation;When receiving the instruction for loading the plug-in unit in the main program When, obtain the current version of the already present plug-in unit in the main program;The current version is adapted to the main program Plug-in version is compared, and obtains comparison result;The plug-in unit is selectively loaded according to the comparison result.
Optionally, in multiple plug-in versions of the plug-in unit, determining can be with the master after the interface changes The plug-in version of program adaptation, comprising: obtain minimum interface version that the main program can be supported and highest interface version, with And minimum interface version and highest interface version that each plug-in version of the plug-in unit can use;In each plug-in unit of the plug-in unit In version, the minimum interface version and highest interface version that it can be used be respectively positioned on the main program can be supported it is minimum Plug-in version in the interval range of interface version and highest interface version, being determined as after the interface changes can be with institute State the plug-in version of main program adaptation.
Optionally, the current version is compared with the plug-in version that the main program is adapted to, comprising: described in acquisition The version identifier of the plug-in version of the version identifier of current version and main program adaptation;According to the version of the current version The version identifier of the plug-in version of this mark and main program adaptation, compares the current version and is adapted to the main program Plug-in version.
Optionally, the version mark for the plug-in version being adapted to according to the version identifier of the current version and the main program Know, compares the plug-in version that the current version is adapted to the main program, obtain comparison result, comprising: if the main program There are the version identifiers of the current version in the version identifier of the plug-in version of adaptation, then the comparison result is the main journey There are the current versions in the plug-in version of sequence adaptation;If not deposited in the version identifier of the plug-in version of the main program adaptation In the version identifier of the current version, then the comparison result is in the plug-in version of main program adaptation not in the presence of described Current version.
Optionally, the plug-in unit is selectively loaded according to the comparison result, comprising: if the comparison result is the master There are the current versions in the plug-in version of program adaptation, it is determined that the already present plug-in unit and the master in the main program Program adaptation, without reloading the plug-in unit;If the comparison result does not exist in the plug-in version for main program adaptation The current version then chooses any plug-in version from the plug-in version that the main program is adapted to, and then according to the selection Any plug-in version download corresponding plug-in unit, and loaded after the download is complete.
Optionally, corresponding plug-in unit is downloaded according to any plug-in version of the selection, comprising: in the plug-in unit pre-established In the corresponding relationship of version and plug-in unit URL (Uniform Resource Locator, uniform resource locator), the choosing is searched The corresponding plug-in unit URL of any plug-in version taken;Corresponding plug-in unit is downloaded according to the plug-in unit URL of the lookup.
Optionally, it is described after the download is complete, before being loaded, further includes: verified to the plug-in unit of downloading, if school It tests and passes through, then load the plug-in unit of the downloading;And if verification does not pass through, the information of output verification failure.
Optionally, the version identifier includes at least one following:
MD5 (Message Digest Algorithm5, message digest algorithm 5) value of version;
SHA1 (Secure Hash Algorithm1, Secure Hash Algorithm 1) value of version.
Optionally, in multiple plug-in versions of the plug-in unit, determining can be with the master after the interface changes The plug-in version of program adaptation, comprising: after the interface changes, plug-in unit acquisition request is sent to cloud server, In, the plug-in unit list of multiple plug-in versions including being adapted to the main program is prestored in the cloud server;Receive institute State plug-in version that cloud server is returned according to the plug-in unit list, being adapted to the main program.
Optionally, the cloud server returned according to the plug-in unit list, the plug-in unit version that is adapted to the main program It is also carried in this at least one following: the minimum interface boards that the address URL, plug-in unit name, each plug-in version of plug-in unit can use Sheet and highest interface version.
According to another aspect of the invention, a kind of plug-in unit loading device is additionally provided, applied to the main journey in client The case where interface between sequence and plug-in unit changes, comprising:
Determining module, can be with suitable in multiple plug-in versions of the plug-in unit, determining after the interface changes The plug-in version of the main program adaptation;
Module is obtained, suitable for obtaining the main journey when receiving the instruction for loading the plug-in unit in the main program The current version of the already present plug-in unit in sequence;
Comparison module is compared suitable for the current version to be compared with the plug-in version that the main program is adapted to To result;
Loading module is suitable for selectively loading the plug-in unit according to the comparison result.
Optionally, the determining module is further adapted for: obtaining the minimum interface version and highest that the main program can be supported The minimum interface version and highest interface version that interface version and each plug-in version of the plug-in unit can use;Described In each plug-in version of plug-in unit, the minimum interface version and highest interface version that it can be used are respectively positioned on the main program institute Plug-in version in the interval range of the minimum interface version and highest interface version that can support, is determined as the interface and becomes The plug-in version that can be adapted to the main program after change.
Optionally, the comparison module is further adapted for: version identifier and the main program for obtaining the current version are suitable The version identifier for the plug-in version matched;The plug-in version being adapted to according to the version identifier of the current version and the main program Version identifier, compare the plug-in version that the current version is adapted to the main program.
Optionally, the comparison module is further adapted for: if existing in the version identifier of the plug-in version of main program adaptation The version identifier of the current version, then the comparison result is that there are described current in the plug-in version of main program adaptation Version;If there is no the version identifier of the current version, institute in the version identifier of the plug-in version of the main program adaptation It states in the plug-in version that comparison result is main program adaptation and there is no the current version.
Optionally, the loading module is further adapted for: if the comparison result is in the plug-in version of main program adaptation There are the current versions, it is determined that the already present plug-in unit is adapted to the main program in the main program, without adding again Carry the plug-in unit;If there is no the current version in the plug-in version for main program adaptation in the comparison result, from institute It states and chooses any plug-in version in the plug-in version of main program adaptation, and then phase is downloaded according to any plug-in version of the selection The plug-in unit answered, and loaded after the download is complete.
Optionally, the loading module is further adapted for: in the plug-in version and plug-in unit uniform resource position mark URL pre-established Corresponding relationship in, search the corresponding plug-in unit URL of any plug-in version of the selection;According under the plug-in unit URL of the lookup Carry corresponding plug-in unit.
Optionally, described device further include:
Correction verification module is suitable for after the download is complete, before being loaded, verifying the plug-in unit of downloading, if verification is logical It crosses, then loads the plug-in unit of the downloading;And if verification does not pass through, the information of output verification failure.
Optionally, the version identifier includes at least one following:
The message digest algorithm MD5 value of version;
The Secure Hash Algorithm SHA1 value of version.
Optionally, the determining module is further adapted for: after the interface changes, sending plug-in unit to cloud server and obtains Take request, wherein the plug-in unit column including the multiple plug-in versions being adapted to the main program are prestored in the cloud server Table;Receive plug-in version that the cloud server is returned according to the plug-in unit list, being adapted to the main program.
Optionally, the cloud server returned according to the plug-in unit list, the plug-in unit version that is adapted to the main program It is also carried in this at least one following: the minimum interface boards that the address URL, plug-in unit name, each plug-in version of plug-in unit can use Sheet and highest interface version.
Another aspect according to the present invention additionally provides a kind of terminal, including described in any item devices above.
The case where technical solution provided by the invention can apply the interface between main program and plug-in unit to change, , can be in multiple plug-in versions of plug-in unit in the embodiment of the present invention, determining can be with main program after the interface changes The plug-in version of adaptation.Since the present invention can directly determine the plug-in unit that can be adapted to main program after the interface changes Version, thus after the interface changes, it can still guarantee that plug-in version is adapted to main program version, so as to keep away Exempt from the problems such as collapsing due to the plug-in unit caused by interface changes or main program are not adapted in the prior art.Further, In the embodiment of the present invention, when receiving the instruction for loading plug-in unit in main program, and already present plug-in unit in main program is obtained Current version when, current version can be compared with the plug-in version that main program is adapted to, compared with the prior art in only It is able to use fixed plug-in version, the comparison rate of plug-in version can be improved in the present invention.Further, since in main program adaptation There are when current version in plug-in version, the plug-in unit of current version is adapted to main program, without reloading, and it is suitable in main program When there is no current version in the plug-in version matched, the plug-in version that downloading is adapted to main program is needed further exist for, and downloading It is loaded after the completion, thus, the present invention can reduce the number of downloading in the higher situation of comparison rate of plug-in version, mention The utilization rate of high resource, and improve treatment effeciency.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
According to the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will be brighter The above and other objects, advantages and features of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow chart of plug-in loading method according to an embodiment of the invention;
Fig. 2 shows plug-in version control schematic diagrams according to an embodiment of the invention;
Fig. 3 shows the flow chart of plug-in loading method in accordance with another embodiment of the present invention;
Fig. 4 shows the structural schematic diagram of plug-in unit loading device according to an embodiment of the invention;And
Fig. 5 shows the structural schematic diagram of plug-in unit loading device in accordance with another embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
In order to solve the above technical problems, the present invention provides a kind of plug-in loading method, be applied to main program and plug-in unit it Between interface the case where changing.Fig. 1 shows the flow chart of plug-in loading method according to an embodiment of the invention.Such as Shown in Fig. 1, this method at least includes the following steps S102 to step S108.
Step S102, in multiple plug-in versions of plug-in unit, determining can be adapted to after interface changes with main program Plug-in version.
Step S104, it when receiving the instruction for loading plug-in unit in main program, obtains already present this in main program and inserts The current version of part.
Step S106, current version is compared with the plug-in version that main program is adapted to, obtains comparison result.
Step S108, according to comparison result selectively load plug-in unit.
The case where technical solution provided by the invention can apply the interface between main program and plug-in unit to change, , can be in multiple plug-in versions of plug-in unit in the embodiment of the present invention, determining can be with main program after the interface changes The plug-in version of adaptation.Since the present invention can directly determine the plug-in unit that can be adapted to main program after the interface changes Version, thus after the interface changes, it can still guarantee that plug-in version is adapted to main program version, so as to keep away Exempt from the problems such as collapsing due to the plug-in unit caused by interface changes or main program are not adapted in the prior art.Further, In the embodiment of the present invention, when receiving the instruction for loading plug-in unit in main program, and already present plug-in unit in main program is obtained Current version when, current version can be compared with the plug-in version that main program is adapted to, compared with the prior art in only It is able to use fixed plug-in version, the comparison rate of plug-in version can be improved in the present invention.Further, since in main program adaptation There are when current version in plug-in version, the plug-in unit of current version is adapted to main program, without reloading, and it is suitable in main program When there is no current version in the plug-in version matched, the plug-in version that downloading is adapted to main program is needed further exist for, and downloading It is loaded after the completion, thus, the present invention can reduce the number of downloading in the higher situation of comparison rate of plug-in version, mention The utilization rate of high resource, and improve treatment effeciency.
Main program mentioned above, i.e. host program, such as 360 mobile guards, 360 antivirus.Plug-in unit refers to applets, Such as " antitheft " plug-in unit, " booting accelerate " plug-in unit, " calendar " plug-in unit, etc. in 360 mobile guards.
About above-mentioned steps S102, the embodiment of the present invention can be realized in such a way that plug-in version controls, that is, obtain The minimum interface version and highest interface version and each plug-in version of plug-in unit that main program can be supported can use minimum Interface version and highest interface version, then in each plug-in version of plug-in unit, minimum interface version that it can be used and Highest interface version is respectively positioned on inserting in the interval range of minimum interface version and highest interface version that main program can be supported Part version, the plug-in version that the interface being determined as between main program and plug-in unit can be adapted to after changing with main program.Here The plug-in version being adapted to main program referred to refers to that the interface between the plug-in version and main program is able to carry out normal friendship Mutually.
Plug-in version control program is described in detail below in conjunction with Fig. 2.In Fig. 2, (1) indicates the evolution of version, from left to right Version is increasingly newer (or high);(2) the minimum interface version that main program can be supported, also known as compatible version are indicated, which can To write in main program code or be recorded by other forms;(3) the highest interface version that main program can be supported is indicated, also known as HOST (host) version, the information can also write in main program code or be recorded by other forms;(4) indication plug unit institute energy The minimum interface version used, the information can write in the configuration information of plug-in unit or be recorded by other forms;(5) it indicates to insert The highest interface version that part can use, the information can also write in the configuration information of plug-in unit or be recorded by other forms.
As shown in Fig. 2, the minimum interface version and highest interface version that can use when plug-in unit all fall within main program institute energy , can also be equal in the interval range of the minimum interface version and highest interface version supported, it can be assumed that the plug-in version has Effect, i.e., the plug-in version is adapted to main program version.Specifically, in Fig. 2,<1>is effective plug-in version, the plug-in version institute energy The minimum interface version used is identical with highest interface version, and the minimum interface version and highest that all can be supported in main program Between interface version field in range, this is that usual plug-in unit is seldom related to the case where revising interface.It<2>is effective plug-in version, this is inserted The minimum interface version that part version can use is different with highest interface version, but the minimum interface that all can be supported in main program In version and highest interface version interval range, it is considered that be to be adjusted to the interface of plug-in unit, but to current main program It does not influence, meets the condition that plug-in unit is adapted to main program.It<3>is invalid plug-in version, i.e. plug-in version and main program version It is not adapted to, a kind of situation supplemented with<2>, the highest interface version that plug-in unit can use is adjusted, current main program version This is no longer compatible.In general, the highest interface version that adjustment plug-in unit can use, is new in order to use main program to provide Interface, and at this time, if still using old main program, it will appear plug-in unit and be not adapted to main program.It<4>is invalid plug-in unit version This namely plug-in version are not adapted to main program version, supplement another situation of<2>here, are used if necessary to plug-in unit The new interface that main program provides, or need to delete some excessively old main program interfaces, then only needing to adjust main program institute The minimum interface version that can be supported, so that it may allow " offline " that the plug-in unit of some early versions is spontaneous, and update and arrive new version.
In conjunction with the description above with respect to plug-in version control program, can be described in detail by a specific embodiment above The scheme of step S102.The following table 1 lists the relevant information of plug-in unit, as plug-in unit name, plug-in version, plug-in unit version identifier, insert The minimum interface version and highest interface version and plug-in unit URL etc. that part can use.It should be noted that plug-in unit in table 1 Relevant information be only to enumerate, the relevant information of plug-in unit can also include plug-in unit size, information, the Jin Erhou such as briefly introduce It is continuous to meet diversified need in conjunction with the selection of plug-in version, plug-in unit size, the briefly information such as introduction progress plug-in version It asks.
Table 1
If the minimum interface version that main program can be supported is 1, highest interface version is 1, then can be suitable with main program The plug-in version matched is the version 1 of plug-in unit A.If the minimum interface version that main program can be supported is 1, highest interface version is 2, The plug-in version that can be so adapted to main program is the version 1 of plug-in unit A and the version 1 of plug-in unit B.What if main program can be supported Minimum interface version is 2, and highest interface version is 3, then the plug-in version that can be adapted to main program is the version 2 of plug-in unit A.
Using the above plug-in version control program, after step S102 determines that the interface between main program and plug-in unit changes After the plug-in version that can be adapted to main program, step S104 is obtained when receiving the instruction for loading plug-in unit in main program The current version of the already present plug-in unit in main program, the plug-in version that current version is adapted to by later step S106 with main program It is compared, can be directly compared using plug-in version.If comparison result exists in the plug-in version for main program adaptation Current version, it is determined that the already present plug-in unit is adapted to main program in main program, without reloading the plug-in unit;If comparing knot Not there is no current version in plug-in version for main program adaptation in fruit, then choose from the plug-in version that main program is adapted to any slotting Part version, and then corresponding plug-in unit is downloaded according to any plug-in version of selection, and loaded after the download is complete.Here, Do not exist there are many reason of version identifier of current version in the version identifier of the plug-in version of main program adaptation, such as main journey Interface between sequence and plug-in unit is revised;For another example the current version of the already present plug-in unit is very old in main program, It can not meet the normal interaction with main program.At this point it is possible to any plug-in version is chosen from the plug-in version that main program is adapted to, Wherein, there are many modes of selection, newest plug-in version is such as chosen, is for another example chosen according to the size of plug-in unit, for another example basis The user's evaluation information of plug-in unit choose, etc..
In addition, prestoring in an alternative embodiment of the invention, in cloud server multiple slotting including what is be adapted to main program The plug-in unit list of part version, cloud server also have collected the various operating system features information and correspondence being likely to occur in advance Plug-in version, in order to by by operating system platform information compared with these characteristic informations collected in advance carry out matching, The characteristic information with operating system platform information matches is found, plug-in unit corresponding with the characteristic information is to be suitble to current operation The plug-in unit of system.At this point, step S102 may be embodied as after interface changes, plug-in unit acquisition is sent to cloud server and is asked It asks, then receives plug-in version that cloud server is returned according to plug-in unit list, being adapted to main program.Further, it is obtaining After the plug-in unit of the operating system adaptation, plug-in download address can be returned to plug-in unit loading system by cloud server.Example Such as, server can return to the configuration structure of plug-in unit, and which includes URL node, which is the downloading of the plug-in unit Location.In addition, minimum interface version and highest interface that cloud server can also use plug-in unit name, each plug-in version of plug-in unit Version returns to plug-in unit loading system, for use in subsequent load work.
Further, cause comparison result inaccurate to solve the problems, such as that malice that may be present distorts plug-in version, The present invention can also obtain the version identifier of the version identifier of current version and the plug-in version of main program adaptation, and then basis The version identifier of the plug-in version of version identifier and the main program adaptation of current version, compares current version and is adapted to main program Plug-in version.Here, version identifier can be MD5 value or SHA1 value of plug-in version etc..Specifically, the embodiment of the present invention In unique hash (Hash) value of plug-in unit, i.e. MD5 value are calculated by MD5 algorithm.The typical case of MD5 algorithm is to one section Information (Message) generates informative abstract (Message-Digest), to prevent from being tampered.MD5 is by entire file as one Big text information converts algorithm by its irreversible character string, produces this unique MD5 informative abstract.Certainly, this hair Bright embodiment use according to the actual situation other algorithms calculate executable file cryptographic Hash be it is feasible, for example, by using SHA1 Deng the present invention is not intended to limit this.
If comparison result is there are the version identifier of current version in the version identifier of the plug-in version of main program adaptation There are current version in the plug-in version of main program adaptation, it can determine that the already present plug-in unit and main program are suitable in main program Match, without reloading the plug-in unit.If there is no the version of current version in the version identifier of the plug-in version of main program adaptation Then not there is no current version in plug-in version of the comparison result for main program adaptation, the plug-in unit that can be adapted to from main program in mark Any plug-in version is chosen in version, and then corresponding plug-in unit is downloaded according to any plug-in version of selection, and complete in downloading After loaded.Here, there is no the original of the version identifier of current version in the version identifier of the plug-in version of main program adaptation Interface because there are many, such as between main program and plug-in unit is revised;In another example the already present plug-in unit in main program Current version has damage, and current version identifications (such as MD5 value) change, and causes to compare failure;Again for example in main program The current version of the existing plug-in unit is very old, can not meet the normal interaction with main program.At this point it is possible to from main program Any plug-in version is chosen in the plug-in version of adaptation, wherein there are many modes of selection, such as chooses newest plug-in version, again Such as chosen according to the size of plug-in unit, choose according to the user's evaluation information of plug-in unit for another example, etc..
Further, corresponding plug-in unit is downloaded here according to any plug-in version of selection, the present invention provides a kind of excellent The scheme of choosing in this scenario can be (as shown in Table 1 in corresponding relationship of the plug-in version pre-established with plug-in unit URL Corresponding relationship), the corresponding plug-in unit URL of any plug-in version of selection is searched, and then download accordingly according to the plug-in unit URL of lookup Plug-in unit.
In order to improve safety, after the completion of plug-in download, before being loaded, the legitimacy of plug-in unit can also be carried out Verification, if verification pass through, be loaded directly into the plug-in unit of downloading, and if verification do not pass through, output verification failure information.Into One step, it can use version identifier and the plug-in unit of downloading verified, that is, obtain the version identifier of the plug-in unit of downloading, then exist It is compared in the version identifier of the plug-in version of main program adaptation, if in the version identifier of the plug-in version of main program adaptation There are the version identifiers of the plug-in unit of downloading, it is determined that verification passes through, and can load the plug-in unit of downloading, on the contrary, it is determined that verification is not Pass through, the information of output verification failure.Here, after downloading and verifying successfully, such as originally downloaded early version plug-in unit, then it can be with Early version plug-in unit is directly covered using the plug-in unit of downloading.
A variety of implementations of each link in embodiment shown in FIG. 1 are described above, come below by specific embodiment Realization process is discussed in detail.
Fig. 3 shows the flow chart of plug-in loading method in accordance with another embodiment of the present invention.As shown in figure 3, the party Method at least includes the following steps S302 to step S318.
Step S302, in multiple plug-in versions of plug-in unit, after determining that the interface between main program and plug-in unit changes The plug-in version that can be adapted to main program.
Step S304, it when receiving the instruction for loading plug-in unit in main program, obtains already present this in main program and inserts The current version of part.
Step S306, the version identifier of current version and the version identifier for the plug-in version being adapted to main program are obtained.
Step S308, the version identifier for the plug-in version being adapted to according to the version identifier of current version and main program, than To the plug-in version that current version is adapted to main program, if there are current versions in the version identifier of the plug-in version of main program adaptation This version identifier, then continue to execute step S310;If not existing in the version identifier of the plug-in version of main program adaptation current The version identifier of version then continues to execute step S312.
Step S310, determine that there are current versions in plug-in version of the comparison result for main program adaptation, illustrate main program In the already present plug-in unit be adapted to main program, without reloading the plug-in unit.
Step S312, it determines in plug-in version of the comparison result for main program adaptation not there is no current version, needs from master Any plug-in version is chosen in the plug-in version of program adaptation, and then is inserted according to the downloading of any plug-in version of selection is corresponding Part.
Step S314, the plug-in unit of downloading is verified, if verification passes through, continues to execute step S316;If verification is not Pass through, then continues to execute step S318.
Step S316, the plug-in unit of load downloading.
Step S318, the information of output verification failure, returns to step S312.
, can be in multiple plug-in versions of plug-in unit in the embodiment of the present invention, determining can be with master after interface changes The plug-in version of program adaptation.Also, current version is compared with the plug-in version that main program is adapted to, if comparison result is There are current version in the plug-in version of main program adaptation, illustrate that the already present plug-in unit is adapted to main program in main program, nothing The plug-in unit need to be reloaded;If not there is no current version in the plug-in version for main program adaptation in comparison result, can be from main journey Any plug-in version is chosen in the plug-in version of sequence adaptation, and then corresponding plug-in unit is downloaded according to any plug-in version of selection. Further, after the completion of plug-in download, before being loaded, the legitimacy of plug-in unit can be verified, increases system Safety.
It should be noted that above-mentioned all optional embodiments can be any group by the way of combining in practical application It closes, forms alternative embodiment of the invention, this is no longer going to repeat them.
Based on the same inventive concept, the embodiment of the invention also provides a kind of plug-in unit loading devices, are applied in client Main program and plug-in unit between interface the case where changing.Fig. 4 shows plug-in unit according to an embodiment of the invention and adds Carry the structural schematic diagram set.As shown in figure 4, the device at least may include: determining module 410, obtain module 420, compare Module 430 and loading module 440.
Now introduce the company between each composition of the plug-in unit loading device of the embodiment of the present invention or the function and each section of device Connect relationship:
Determining module 410, can be with main program after interface changes suitable for determining in multiple plug-in versions of plug-in unit The plug-in version of adaptation;
Module 420 is obtained, is coupled with determining module 410, suitable for when the instruction for receiving the load plug-in unit in main program When, obtain the current version of the already present plug-in unit in main program;
Comparison module 430 is coupled, suitable for the plug-in version for being adapted to current version with main program with module 420 is obtained It is compared, obtains comparison result;
Loading module 440 is coupled with comparison module 430, is suitable for according to comparison result selectively load plug-in unit.
In one embodiment of the invention, above-mentioned determining module 410 is further adapted for:
Obtain each plug-in version institute of minimum interface version and highest interface version and plug-in unit that main program can be supported The minimum interface version and highest interface version that can be used;
In each plug-in version of plug-in unit, the minimum interface version and highest interface version that it can be used are respectively positioned on master Plug-in version in the interval range of minimum interface version and highest interface version that program can be supported, is determined as interface The plug-in version that can be adapted to main program after variation.
In one embodiment of the invention, above-mentioned comparison module 430 is further adapted for:
Obtain the version identifier of the version identifier of current version and the plug-in version of main program adaptation;
According to the version identifier for the plug-in version that the version identifier of current version and main program are adapted to, current version is compared The plug-in version being adapted to main program.
In one embodiment of the invention, above-mentioned comparison module 430 is further adapted for:
If comparison result is there are the version identifier of current version in the version identifier of the plug-in version of main program adaptation There are current versions in the plug-in version of main program adaptation;
If there is no the version identifier of current version, comparison result in the version identifier of the plug-in version of main program adaptation Not there is no current version in plug-in version for main program adaptation.
In one embodiment of the invention, above-mentioned loading module 440 is further adapted for:
If comparison result is that there are current versions in the plug-in version of main program adaptation, it is determined that already present in main program The plug-in unit is adapted to main program, without reloading the plug-in unit;
If not there is no current version in the plug-in version for main program adaptation in comparison result, the plug-in unit being adapted to from main program Any plug-in version is chosen in version, and then corresponding plug-in unit is downloaded according to any plug-in version of selection, and complete in downloading After loaded.
In one embodiment of the invention, above-mentioned loading module 440 is further adapted for:
In the corresponding relationship of the plug-in version and plug-in unit uniform resource position mark URL that pre-establish, appointing for selection is searched The corresponding plug-in unit URL of plug-in version of anticipating;
Corresponding plug-in unit is downloaded according to the plug-in unit URL of lookup.
In one embodiment of the invention, Fig. 5 shows plug-in unit loading device in accordance with another embodiment of the present invention Structural schematic diagram.As shown in figure 5, the device can also include: correction verification module 510, it is coupled, is suitable for loading module 440 After the download is complete, before being loaded, the plug-in unit of downloading is verified, if verification passes through, loads the plug-in unit of downloading;With And if verification does not pass through, the information of output verification failure.
In one embodiment of the invention, version identifier includes at least one following:
The message digest algorithm MD5 value of version;
The Secure Hash Algorithm SHA1 value of version.
In one embodiment of the invention, above-mentioned determining module 410 is further adapted for: after interface changes, Xiang Yunduan Server sends plug-in unit acquisition request, wherein multiple plug-in versions including being adapted to main program are prestored in cloud server Plug-in unit list;Receive plug-in version that cloud server is returned according to plug-in unit list, being adapted to main program.
In one embodiment of the invention, cloud server returned according to plug-in unit list, be adapted to main program insert Also carry in part version at least one following: what the address URL, plug-in unit name, each plug-in version of plug-in unit can use minimum connects Mouth version and highest interface version.
Based on the same inventive concept, the embodiment of the invention also provides a kind of terminals, including described in any item dresses above It sets.
According to the combination of any one above-mentioned preferred embodiment or multiple preferred embodiments, the embodiment of the present invention can reach It is following the utility model has the advantages that
The case where technical solution provided by the invention can apply the interface between main program and plug-in unit to change, , can be in multiple plug-in versions of plug-in unit in the embodiment of the present invention, determining can be with main program after the interface changes The plug-in version of adaptation.Since the present invention can directly determine the plug-in unit that can be adapted to main program after the interface changes Version, thus after the interface changes, it can still guarantee that plug-in version is adapted to main program version, so as to keep away Exempt from the problems such as collapsing due to the plug-in unit caused by interface changes or main program are not adapted in the prior art.Further, In the embodiment of the present invention, when receiving the instruction for loading plug-in unit in main program, and already present plug-in unit in main program is obtained Current version when, current version can be compared with the plug-in version that main program is adapted to, compared with the prior art in only It is able to use fixed plug-in version, the comparison rate of plug-in version can be improved in the present invention.Further, since in main program adaptation There are when current version in plug-in version, the plug-in unit of current version is adapted to main program, without reloading, and it is suitable in main program When there is no current version in the plug-in version matched, the plug-in version that downloading is adapted to main program is needed further exist for, and downloading It is loaded after the completion, thus, the present invention can reduce the number of downloading in the higher situation of comparison rate of plug-in version, mention The utilization rate of high resource, and improve treatment effeciency.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) come realize some in plug-in unit loading device according to an embodiment of the present invention or The some or all functions of person's whole component.The present invention is also implemented as one for executing method as described herein Point or whole device or device programs (for example, computer program and computer program product).Such this hair of realization Bright program can store on a computer-readable medium, or may be in the form of one or more signals.It is such Signal can be downloaded from an internet website to obtain, and is perhaps provided on the carrier signal or is provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
So far, although those skilled in the art will appreciate that present invention has been shown and described in detail herein multiple shows Example property embodiment still without departing from the spirit and scope of the present invention, still can according to the present disclosure directly Determine or deduce out many other variations or modifications consistent with the principles of the invention.Therefore, the scope of the present invention is understood that and recognizes It is set to and covers all such other variations or modifications.
The invention also discloses: A1, a kind of plug-in loading method, applied between the main program and plug-in unit in client The case where interface changes, comprising:
In multiple plug-in versions of the plug-in unit, determining can be adapted to after the interface changes with the main program Plug-in version;
When receiving the instruction for loading the plug-in unit in the main program, already present in the main program be somebody's turn to do is obtained The current version of plug-in unit;
The current version is compared with the plug-in version that the main program is adapted to, obtains comparison result;
The plug-in unit is selectively loaded according to the comparison result.
A2, method according to a1, wherein in multiple plug-in versions of the plug-in unit, determine that the interface occurs The plug-in version that can be adapted to the main program after variation, comprising:
It obtains minimum interface version and highest interface version that the main program can be supported and each of the plug-in unit inserts The minimum interface version and highest interface version that part version can use;
The minimum interface version that can use it in each plug-in version of the plug-in unit and the equal position of highest interface version Plug-in version in the interval range of minimum interface version and highest interface version that the main program can be supported, is determined as The plug-in version that the interface can be adapted to after changing with the main program.
A3, method according to a1 or a2, wherein the plug-in version for being adapted to the current version with the main program It is compared, comprising:
Obtain the version identifier of the version identifier of the current version and the plug-in version of main program adaptation;
According to the version identifier for the plug-in version that the version identifier of the current version and the main program are adapted to, compare The plug-in version that the current version is adapted to the main program.
A4, method according to a3, wherein be adapted to according to the version identifier of the current version and the main program Plug-in version version identifier, compare the plug-in version that the current version is adapted to the main program, obtain comparison result, Include:
If in the version identifier of the plug-in version of the main program adaptation, there are the version identifier of the current version, institutes State comparison result be the main program adaptation plug-in version in there are the current versions;
If there is no the version identifier of the current version in the version identifier of the plug-in version of the main program adaptation, There is no the current version in plug-in version for main program adaptation in the comparison result.
A5, according to the described in any item methods of A1-A4, wherein the plug-in unit is selectively loaded according to the comparison result, Include:
If the comparison result is that there are the current versions in the plug-in version of main program adaptation, it is determined that described The already present plug-in unit is adapted to the main program in main program, without reloading the plug-in unit;
If the comparison result be main program adaptation plug-in version in there is no the current version, from described Any plug-in version is chosen in the plug-in version of main program adaptation, and then is downloaded accordingly according to any plug-in version of the selection Plug-in unit, and loaded after the download is complete.
A6, method according to a5, wherein corresponding plug-in unit, packet are downloaded according to any plug-in version of the selection It includes:
In the corresponding relationship of the plug-in version and plug-in unit uniform resource position mark URL that pre-establish, the selection is searched The corresponding plug-in unit URL of any plug-in version;
Corresponding plug-in unit is downloaded according to the plug-in unit URL of the lookup.
A7, the method according to A5 or A6, wherein it is described after the download is complete, before being loaded, further includes:
The plug-in unit of downloading is verified, if verification passes through, loads the plug-in unit of the downloading;And
If verification does not pass through, the information of output verification failure.
A8, according to the described in any item methods of A3-A7, wherein the version identifier includes at least one following:
The message digest algorithm MD5 value of version;
The Secure Hash Algorithm SHA1 value of version.
A9, according to the described in any item methods of A1-A8, wherein in multiple plug-in versions of the plug-in unit, determine described in The plug-in version that interface can be adapted to after changing with the main program, comprising:
After the interface changes, plug-in unit acquisition request is sent to cloud server, wherein the cloud server In prestore the plug-in unit lists of multiple plug-in versions including being adapted to the main program;
Receive plug-in version that the cloud server is returned according to the plug-in unit list, being adapted to the main program.
A10, the method according to A9, wherein it is that the cloud server is returned according to the plug-in unit list, with it is described Main program adaptation plug-in version in also carry it is at least one following: the address URL, plug-in unit name, plug-in unit each plug-in version institute The minimum interface version and highest interface version that can be used.
B11, a kind of plug-in unit loading device, it is changed applied to the interface between the main program and plug-in unit in client Situation, comprising:
Determining module, can be with suitable in multiple plug-in versions of the plug-in unit, determining after the interface changes The plug-in version of the main program adaptation;
Module is obtained, suitable for obtaining the main journey when receiving the instruction for loading the plug-in unit in the main program The current version of the already present plug-in unit in sequence;
Comparison module is compared suitable for the current version to be compared with the plug-in version that the main program is adapted to To result;
Loading module is suitable for selectively loading the plug-in unit according to the comparison result.
B12, the device according to B11, wherein the determining module is further adapted for:
It obtains minimum interface version and highest interface version that the main program can be supported and each of the plug-in unit inserts The minimum interface version and highest interface version that part version can use;
The minimum interface version that can use it in each plug-in version of the plug-in unit and the equal position of highest interface version Plug-in version in the interval range of minimum interface version and highest interface version that the main program can be supported, is determined as The plug-in version that the interface can be adapted to after changing with the main program.
B13, the device according to B11 or B12, wherein the comparison module is further adapted for:
Obtain the version identifier of the version identifier of the current version and the plug-in version of main program adaptation;
According to the version identifier for the plug-in version that the version identifier of the current version and the main program are adapted to, compare The plug-in version that the current version is adapted to the main program.
B14, device according to b13, wherein the comparison module is further adapted for:
If in the version identifier of the plug-in version of the main program adaptation, there are the version identifier of the current version, institutes State comparison result be the main program adaptation plug-in version in there are the current versions;
If there is no the version identifier of the current version in the version identifier of the plug-in version of the main program adaptation, There is no the current version in plug-in version for main program adaptation in the comparison result.
B15, according to the described in any item devices of B11-B14, wherein the loading module is further adapted for:
If the comparison result is that there are the current versions in the plug-in version of main program adaptation, it is determined that described The already present plug-in unit is adapted to the main program in main program, without reloading the plug-in unit;
If the comparison result be main program adaptation plug-in version in there is no the current version, from described Any plug-in version is chosen in the plug-in version of main program adaptation, and then is downloaded accordingly according to any plug-in version of the selection Plug-in unit, and loaded after the download is complete.
B16, the device according to B15, wherein the loading module is further adapted for:
In the corresponding relationship of the plug-in version and plug-in unit uniform resource position mark URL that pre-establish, the selection is searched The corresponding plug-in unit URL of any plug-in version;
Corresponding plug-in unit is downloaded according to the plug-in unit URL of the lookup.
B17, the device according to B15 or B16, wherein further include:
Correction verification module is suitable for after the download is complete, before being loaded, verifying the plug-in unit of downloading, if verification is logical It crosses, then loads the plug-in unit of the downloading;And if verification does not pass through, the information of output verification failure.
B18, according to the described in any item devices of B13-B17, wherein the version identifier includes at least one following:
The message digest algorithm MD5 value of version;
The Secure Hash Algorithm SHA1 value of version.
B19, according to the described in any item devices of B11-B18, wherein the determining module is further adapted for:
After the interface changes, plug-in unit acquisition request is sent to cloud server, wherein the cloud server In prestore the plug-in unit lists of multiple plug-in versions including being adapted to the main program;
Receive plug-in version that the cloud server is returned according to the plug-in unit list, being adapted to the main program.
B20, the device according to B19, wherein the cloud server is returned according to the plug-in unit list and institute State main program adaptation plug-in version in also carry it is at least one following: the address URL, plug-in unit name, each plug-in version of plug-in unit The minimum interface version and highest interface version that can be used.
C21, a kind of terminal, comprising: the described in any item devices of B11-B20.

Claims (19)

1. a kind of plug-in loading method, the case where changing applied to the interface between the main program and plug-in unit in client, Include:
In multiple plug-in versions of the plug-in unit, determine that can be adapted to the main program after the interface changes inserts Part version;
When receiving the instruction for loading the plug-in unit in the main program, already present plug-in unit in the main program is obtained Current version;
The current version is compared with the plug-in version that the main program is adapted to, obtains comparison result;
The plug-in unit is selectively loaded according to the comparison result;
Wherein, in multiple plug-in versions of the plug-in unit, determining can be suitable with the main program after the interface changes The plug-in version matched, comprising:
Obtain each plug-in unit version of minimum interface version and highest interface version and the plug-in unit that the main program can be supported The minimum interface version and highest interface version that this institute can use;
In each plug-in version of the plug-in unit, the minimum interface version and highest interface version that it can be used are respectively positioned on institute The plug-in version in the interval range of minimum interface version and highest interface version that main program can be supported is stated, is determined as described The plug-in version that interface can be adapted to after changing with the main program.
2. according to the method described in claim 1, wherein, the plug-in version that the current version is adapted to the main program into Row compares, comprising:
Obtain the version identifier of the version identifier of the current version and the plug-in version of main program adaptation;
According to the version identifier for the plug-in version that the version identifier of the current version and the main program are adapted to, described in comparison The plug-in version that current version is adapted to the main program.
3. according to the method described in claim 2, wherein, being fitted according to the version identifier of the current version and the main program The version identifier for the plug-in version matched compares the plug-in version that the current version is adapted to the main program, obtains comparing knot Fruit, comprising:
If in the version identifier of the plug-in version of the main program adaptation, there are the version identifier of the current version, the ratios To there are the current versions in the plug-in version that result is main program adaptation;
It is described if there is no the version identifier of the current version in the version identifier of the plug-in version of the main program adaptation There is no the current version in plug-in version for main program adaptation in comparison result.
4. method according to claim 1-3, wherein inserted according to the comparison result selectively load is described Part, comprising:
If the comparison result is that there are the current versions in the plug-in version of main program adaptation, it is determined that the main journey The already present plug-in unit is adapted to the main program in sequence, without reloading the plug-in unit;
If there is no the current version in the plug-in version for main program adaptation in the comparison result, from the main journey Any plug-in version is chosen in the plug-in version of sequence adaptation, and then is inserted according to the downloading of any plug-in version of the selection is corresponding Part, and loaded after the download is complete.
5. corresponding plug-in unit is downloaded according to any plug-in version of the selection according to the method described in claim 4, wherein, Include:
In the corresponding relationship of the plug-in version and plug-in unit uniform resource position mark URL that pre-establish, appointing for the selection is searched The corresponding plug-in unit URL of plug-in version of anticipating;
Corresponding plug-in unit is downloaded according to the plug-in unit URL of the lookup.
6. according to the method described in claim 4, wherein, it is described after the download is complete, before being loaded, further includes:
The plug-in unit of downloading is verified, if verification passes through, loads the plug-in unit of the downloading;And
If verification does not pass through, the information of output verification failure.
7. according to the method in claim 2 or 3, wherein the version identifier includes at least one following:
The message digest algorithm MD5 value of version;
The Secure Hash Algorithm SHA1 value of version.
8. method according to claim 1-3, wherein in multiple plug-in versions of the plug-in unit, determine institute State the plug-in version that can be adapted to the main program after interface changes, comprising:
After the interface changes, plug-in unit acquisition request is sent to cloud server, wherein pre- in the cloud server There is the plug-in unit list of multiple plug-in versions including being adapted to the main program;
Receive plug-in version that the cloud server is returned according to the plug-in unit list, being adapted to the main program.
9. according to the method described in claim 8, wherein, the cloud server is returned according to the plug-in unit list and institute State main program adaptation plug-in version in also carry it is at least one following: the address URL, plug-in unit name, each plug-in version of plug-in unit The minimum interface version and highest interface version that can be used.
10. a kind of plug-in unit loading device, the case where changing applied to the interface between the main program and plug-in unit in client, Include:
Determining module, suitable in multiple plug-in versions of the plug-in unit, determine after the interface changes can with it is described The plug-in version of main program adaptation;
Module is obtained, suitable for obtaining in the main program when receiving the instruction for loading the plug-in unit in the main program The current version of the already present plug-in unit;
Comparison module obtains comparing knot suitable for the current version to be compared with the plug-in version that the main program is adapted to Fruit;
Loading module is suitable for selectively loading the plug-in unit according to the comparison result;
The determining module is further adapted for:
Obtain each plug-in unit version of minimum interface version and highest interface version and the plug-in unit that the main program can be supported The minimum interface version and highest interface version that this institute can use;
In each plug-in version of the plug-in unit, the minimum interface version and highest interface version that it can be used are respectively positioned on institute The plug-in version in the interval range of minimum interface version and highest interface version that main program can be supported is stated, is determined as described The plug-in version that interface can be adapted to after changing with the main program.
11. device according to claim 10, wherein the comparison module is further adapted for:
Obtain the version identifier of the version identifier of the current version and the plug-in version of main program adaptation;
According to the version identifier for the plug-in version that the version identifier of the current version and the main program are adapted to, described in comparison The plug-in version that current version is adapted to the main program.
12. device according to claim 11, wherein the comparison module is further adapted for:
If in the version identifier of the plug-in version of the main program adaptation, there are the version identifier of the current version, the ratios To there are the current versions in the plug-in version that result is main program adaptation;
It is described if there is no the version identifier of the current version in the version identifier of the plug-in version of the main program adaptation There is no the current version in plug-in version for main program adaptation in comparison result.
13. the described in any item devices of 0-12 according to claim 1, wherein the loading module is further adapted for:
If the comparison result is that there are the current versions in the plug-in version of main program adaptation, it is determined that the main journey The already present plug-in unit is adapted to the main program in sequence, without reloading the plug-in unit;
If there is no the current version in the plug-in version for main program adaptation in the comparison result, from the main journey Any plug-in version is chosen in the plug-in version of sequence adaptation, and then is inserted according to the downloading of any plug-in version of the selection is corresponding Part, and loaded after the download is complete.
14. device according to claim 13, wherein the loading module is further adapted for:
In the corresponding relationship of the plug-in version and plug-in unit uniform resource position mark URL that pre-establish, appointing for the selection is searched The corresponding plug-in unit URL of plug-in version of anticipating;
Corresponding plug-in unit is downloaded according to the plug-in unit URL of the lookup.
15. device according to claim 13, wherein further include:
Correction verification module is suitable for after the download is complete, before being loaded, verifying the plug-in unit of downloading, if verification passes through, Load the plug-in unit of the downloading;And if verification does not pass through, the information of output verification failure.
16. device according to claim 11 or 12, wherein the version identifier includes at least one following:
The message digest algorithm MD5 value of version;
The Secure Hash Algorithm SHA1 value of version.
17. the described in any item devices of 0-12 according to claim 1, wherein the determining module is further adapted for:
After the interface changes, plug-in unit acquisition request is sent to cloud server, wherein pre- in the cloud server There is the plug-in unit list of multiple plug-in versions including being adapted to the main program;
Receive plug-in version that the cloud server is returned according to the plug-in unit list, being adapted to the main program.
18. device according to claim 17, wherein it is that the cloud server is returned according to the plug-in unit list, with It is also carried in the plug-in version of the main program adaptation at least one following: the address URL, plug-in unit name, each plug-in unit version of plug-in unit The minimum interface version and highest interface version that this institute can use.
19. a kind of terminal, comprising: the described in any item plug-in unit loading devices of claim 10-18.
CN201510134588.4A 2015-03-25 2015-03-25 Plug-in loading method, device and equipment Active CN106155709B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510134588.4A CN106155709B (en) 2015-03-25 2015-03-25 Plug-in loading method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510134588.4A CN106155709B (en) 2015-03-25 2015-03-25 Plug-in loading method, device and equipment

Publications (2)

Publication Number Publication Date
CN106155709A CN106155709A (en) 2016-11-23
CN106155709B true CN106155709B (en) 2019-10-01

Family

ID=57340570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510134588.4A Active CN106155709B (en) 2015-03-25 2015-03-25 Plug-in loading method, device and equipment

Country Status (1)

Country Link
CN (1) CN106155709B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391177B (en) * 2017-06-28 2020-09-08 广州华多网络科技有限公司 Method, equipment and computer system for optimizing logical performance of plug-in download verification
CN109284147B (en) * 2018-09-06 2024-02-09 平安科技(深圳)有限公司 Plug-in adaptation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566954A (en) * 2009-05-31 2009-10-28 珠海金山软件股份有限公司 Method and device for managing plug-in
CN102662703A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Method and device for loading application program plugins
CN102830992A (en) * 2012-07-31 2012-12-19 北京奇虎科技有限公司 Plug-in loading method and system
CN103544013A (en) * 2013-10-25 2014-01-29 优视科技有限公司 Plug-in system and plug-in management method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130188217A1 (en) * 2012-01-20 2013-07-25 Couponcabin Llc System and method for online coupon printing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566954A (en) * 2009-05-31 2009-10-28 珠海金山软件股份有限公司 Method and device for managing plug-in
CN102662703A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Method and device for loading application program plugins
CN102830992A (en) * 2012-07-31 2012-12-19 北京奇虎科技有限公司 Plug-in loading method and system
CN103544013A (en) * 2013-10-25 2014-01-29 优视科技有限公司 Plug-in system and plug-in management method

Also Published As

Publication number Publication date
CN106155709A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
US11606677B2 (en) Method for sharing application between terminals, and terminal
CN104714827B (en) Update of plug-in method and device
CN104699511B (en) Plug-in unit upgrade method and device
CN104731623B (en) Mastery routine starts the method and device of plug-in unit
CN105867973A (en) Loading method and system for so file in application program
CN103281325A (en) Method and device for processing file based on cloud security
CN102982258A (en) System for conducting original-edition check to mobile application program
CN105718268A (en) Method and device for verifying OTA multi-pack upgrading
US11374766B2 (en) Devices and methods for key attestation with multiple device certificates
CN104866293B (en) A kind of method and device to Android application extensions for Microsoft Internet Explorer & Microsoft Office
CN106815049B (en) Method and device for upgrading feature library
CN106886437B (en) Application program updating method and device
CN106919843A (en) Leak repair system, method and apparatus
CN105373747A (en) File generation method, file verification method and systems for preventing system from being tampered
US20170177316A1 (en) Mobile application deployment for distributed computing environments
CN110765394A (en) So file loading method and device, storage medium and terminal equipment
CN109542462B (en) System environment deployment method, storage medium and server
CN106155709B (en) Plug-in loading method, device and equipment
CN110532016B (en) Version management method, version updating method and version management system
CN109831779B (en) Upgrade package downloading method, device, server, terminal and system
CN111176685A (en) Upgrading method and device
JP7257554B2 (en) Model file distribution method, platform, system, terminal and readable storage medium
CN107528713B (en) A kind of upgrade method and device of data transfer SDK
CN110493644B (en) Television application upgrading method, television terminal and server
CN111679850B (en) Application program hot update processing method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20190906

Address after: Room 201, 2nd floor, Building 2, Xijingkou No. 2, Shijingshan District, Beijing 100041

Applicant after: Beijing Shijie Xinghui Science and Technology Co., Ltd.

Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant before: Beijing Qihu Technology Co., Ltd.

Applicant before: Qizhi Software (Beijing) Co., Ltd.

GR01 Patent grant
GR01 Patent grant