A kind of upgrade method and device of APP applications
Technical field
The present invention relates to computer software fields, and in particular to a kind of upgrade method and device of APP applications.
Background technology
With the high speed development of mobile Internet, APP apply comprising function it is also more and more, a super APP
Multiple functions are usually contained, and the change of each function just needs to issue a new version, it may which results in an APP
It needs frequently to update upgrading.
In the prior art, to the following method of upgrading scheme generally use of APP:I.e. user asks service after opening APP
The upgrade logic at end carries out upgrade tip, then selects updating operation according to upgrade tip.
However, this mode does not have the verifying logic by permission, sub-module, upgrade logic granularity is thicker.Namely
It says, also uniform requirement is upgraded permission of the user without a certain module, leads to developer whenever one new version of publication, institute
Have user that will receive upgrade tip when in use, but the content upgraded may be the user completely without concern, cause
User experience is poor.
Invention content
In view of this, the object of the present invention is to provide the upgrade method and device of a kind of APP applications, to reach to specific use
Family and the technical purpose for being capable of sub-module upgrading.
The technical scheme is that provide a kind of upgrade method of APP applications, the installation of each version of the APP applications
Packet has installation kit permission code, and each of the installation kit is can determine according to the installation kit permission code of any installation kit
Whether module is updated, the method includes:
When user performs the active client version of the APP applications, the upgrading authority of the user is verified, and work as
There are the user upgrading authority when, it is determined that the user right code of the user determines institute according to the user right code
State whether user has access right to each module of the installation kit;
Determined according to the installation kit permission code of the installation kit of the user right code and the APP latest edition applied be
It is no to the active client edition upgrading, wherein, when the user have access right module updated, it is determined that it is right
The upgrading of the active client version.
Optionally, verify that the upgrading authority of the user includes:If the information of the user is present in authority list,
The user right code of the user is obtained from the authority list;
If the information of the user is not present in the authority list, reflected by operation system to the user
Power, if the authentication is passed, generates the user right code of the user, and obtain the user's in the authority list
The user right code.
Optionally, it is automatic immediately to perform to the active client when determining to the active client edition upgrading
The upgrading of version.
Optionally, when determining to the active client edition upgrading, prompting and corresponding installation are sent out to the user
Path is wrapped, is downloaded by the user and the installation kit is installed, complete the upgrading to the active client version.
Optionally, each module of each installation kit has been respectively allocated module permission code, and to each institute
State installation kit, according to it includes the module permission code of each module form the installation kit permission code of the installation kit.
Optionally, the module permission code binary number representation, the length of the binary number are equal to the installation kit
The quantity of middle module, the position that the module serial number is corresponded in the module permission code of each module is 1, remaining position is 0, and each mould
The module permission code or operation result of block is the installation kit permission code of corresponding installation kit.
The present invention also provides a kind of update device of APP applications, the installation kit of each version of the APP applications has installation
Packet permission code, according to the installation kit permission code of any installation kit can determine the installation kit each module whether by
Update, described device include:
Authority Verification module, for when user performs the active client version that the APP is applied, verifying the user
Upgrading authority, and when there are during the upgrading authority of the user, it is determined that the user right code of the user, according to described
User right code determines whether the user has access right to each module of the installation kit;
Upgraded module, for the installation according to the user right code and the installation kit of the latest edition of APP applications
Packet permission code determined whether to the active client edition upgrading, wherein, when the module that the user has access right occurs
Update, it is determined that upgrading to the active client version.
Optionally, the Authority Verification module includes:Enquiry module, if the information of the user is present in authority list
In, then from the user right code of the authority list acquisition user;
Authentication module, if the information of the user is not present in the authority list, by operation system to described
User is authenticated, if the authentication is passed, the user right code of the user is generated in the authority list, and obtain
The user right code of the user.
Optionally, the upgraded module is additionally operable to:When determining to the active client edition upgrading, hold automatically immediately
Upgrading of the row to the active client version.
Optionally, the upgraded module is additionally operable to:When determining to the active client edition upgrading, to the user
Prompting and corresponding installation kit path are sent out, is downloaded by the user and the installation kit is installed, completed to the active client
The upgrading of version.
Optionally, which further includes:Authority distribution module is distinguished for each module to each installation kit
Be assigned module permission code, and to each installation kit, according to it includes each module the module permission code
Form the installation kit permission code of the installation kit.
Optionally, the module permission code binary number representation, the length of the binary number are equal to the installation kit
The quantity of middle module, the position that the module serial number is corresponded in the module permission code of each module is 1, remaining position is 0, and each mould
The module permission code or operation result of block is the installation kit permission code of corresponding installation kit.
By the APP provided by the invention upgrade methods applied and device, specific function module or spy can be directed to
Determine the installation kit that user issues new version APP, can not only effectively reduce the maintenance cost of APP, and due to towards specific use
Family carries out the upgrading of function module, reduces the application risk of new version APP, improves user experience.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, for
For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings
Attached drawing.In the accompanying drawings:
Fig. 1 is the flow diagram of upgrade method that the APP of one embodiment of the invention is applied;
Fig. 2 is the structure diagram of update device that the APP of one embodiment of the invention is applied.
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are more clearly understood, below in conjunction with the accompanying drawings to this hair
Bright embodiment is described in further details.Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but simultaneously
It is not as a limitation of the invention.
Art technology technical staff knows, embodiments of the present invention can be implemented as a kind of system, device, equipment,
Method or computer program product.Therefore, the present invention can be with specific implementation is as follows, i.e.,:It is complete hardware, complete soft
The form that part (including firmware, resident software, microcode etc.) or hardware and software combine.
The APP of the exemplary embodiment of the invention flow diagrams of upgrade method applied are carried out below with reference to Fig. 1
It introduces, the installation kit of each version of the APP applications has installation kit permission code, according to the installation of any installation kit
Packet permission code can determine whether each module of the installation kit is updated, wherein, this method includes:
Step S101:When user performs the active client version of the APP applications, the upgrading power of the user is verified
Limit, and when there are during the upgrading authority of the user, it is determined that the user right code of the user, according to the user right
Code determines whether the user has access right to each module of the installation kit;
Step S102:It is weighed according to the user right code and the APP installation kit of the installation kit of latest edition applied
Code is limited to determine whether to the active client edition upgrading, wherein, when the module that the user has access right has occurred more
Newly, it is determined that the upgrading to the active client version.
Optionally, verify that the upgrading authority of the user includes:If the information of the user is present in authority list,
The user right code of the user is obtained from the authority list;
If the information of the user is not present in the authority list, reflected by operation system to the user
Power, if the authentication is passed, generates the user right code of the user, and obtain the user's in the authority list
The user right code.
Optionally, it is automatic immediately to perform to the active client when determining to the active client edition upgrading
The upgrading of version.
Optionally, when determining to the active client edition upgrading, prompting and corresponding installation are sent out to the user
Path is wrapped, is downloaded by the user and the installation kit is installed, complete the upgrading to the active client version.
Optionally, each module of each installation kit has been respectively allocated module permission code, and to each institute
State installation kit, according to it includes the module permission code of each module form the installation kit permission code of the installation kit.
Optionally, the module permission code binary number representation, the length of the binary number are equal to the installation kit
The quantity of middle module, the position that the module serial number is corresponded in the module permission code of each module is 1, remaining position is 0, and each mould
The module permission code or operation result of block is the installation kit permission code of corresponding installation kit.
Further effect adds hereinafter in conjunction with specific embodiment possessed by above-mentioned non-usual optional mode
With explanation.
Embodiment
The present invention is specifically described with reference to a specific embodiment, however, it should be noted that the specific implementation
Example merely to preferably description the present invention, do not constitute improper limitations of the present invention.
Developer needs the modules in the installation kit to new version APP to distribute permission when issuing new version APP
Code, is then uploaded to cloud storage service device by the installation kit of new version APP.
It is noted that the mark of the permission code uses binary number representation, and the length of the binary number is equal to
The quantity of module in the installation kit, the position that the module serial number is corresponded in the permission code of each module is 1, remaining position is 0, and
The permission code of modules carries out permission code of the result of logic or operation for the installation kit.
When user is when active client performs APP, client can be to the backstage Authority Verification service interface hair of server-side
Request is sent, Authority Verification is carried out to the user, if there are the user informations of the user in authority list, is obtained from the authority list
Take the user right code of the user.
If the user information of the user is not present in the authority list, being sent to operation system rights interface if client please
It asks, verifies the user information of the user, if the verification passes, then the user information of the user is generated in the authority list, and obtain
Take the user right code of the user.
After the user right code is obtained, according to parameters such as the packet names of installation kit (for example, version, operating system, formal
Version or trial edition) version list of installation kit more than active client APP version numbers is obtained, and will be by the version of the installation kit
This is arranged according to inverted order, is just able to confirm that the installation kit of latest edition at this time.
Then, determine that the user is to the modules in the installation kit of latest edition according to the user right code of the user
It is no that there is access right, and weighed according to the installation kit of the user right code and the installation kit of the latest edition of active client APP
Limit code determines whether to upgrade active client version.
When the module that the user has access right is updated, it is determined that carry out upgrading behaviour to active client version
Make.
In an embodiment of the present invention, the permission code of the installation kit of APP in the permission code of user and version list is carried out
Logic and operation.
If result is more than 0, the installation kit for confirming the APP of current version is version to be upgraded;
Below the modules in any installation kit are carried out with piecemeal upgrading and carries out citing description.
For example, there are four function module be respectively modules A, module B, module C and module D in the installation kit of a APP, and
And this corresponding permission code of four function modules is 0001,0010,0100,1000.
If the installation kit permission code that current issued new version APP is selected is 1100, then it represents that for new edition
This APP is the upgrading carried out for function module C and function module D, and function module A and function module B is without rising
Grade operation.
In addition, it assume that the permission code of the user is 0100 according to the above, then it represents that the user has function mould
The access rights of block C, and when function module C updates, the user should be prompted to be updated.
Specifically, the installation kit permission code 1100 of the user right code 0100 and APP of the user is performed step-by-step to patrol
It is 0100 to collect with operation and operation result, it is known that the result is more than 0, then prompts the user to the function in active client version
Module C carries out updating operation.
Finally, after current version is upgraded to version to be upgraded by confirmation, cloud storage service device is then sent to the user
The installation kit path of version to be upgraded, the mobile terminal where the user then download according to the path and install the version to be upgraded
Installation kit is so far fully completed the upgrading to active client version.
Fig. 2 is the structure diagram of update device that the APP of one embodiment of the invention is applied, wherein, the APP applications
The installation kit of each version has installation kit permission code, and institute is can determine according to the installation kit permission code of any installation kit
Whether each module for stating installation kit is updated, which includes:
Authority Verification module 21, for when user performs the active client version that the APP is applied, verifying the use
The upgrading authority at family, and when there are during the upgrading authority of the user, it is determined that the user right code of the user, according to institute
It states user right code and determines whether the user has access right to each module of the installation kit;
Upgraded module 22, for the peace according to the user right code and the installation kit of the latest edition of APP applications
Packet permission code is filled to determine whether to the active client edition upgrading, wherein, when the module that the user has access right is sent out
Update is given birth to, it is determined that the upgrading to the active client version.
Optionally, the Authority Verification module 21 includes:Enquiry module, if the information of the user is present in authority list
In, then from the user right code of the authority list acquisition user;
Authentication module, if the information of the user is not present in the authority list, by operation system to described
User is authenticated, if the authentication is passed, the user right code of the user is generated in the authority list, and obtain
The user right code of the user.
Optionally, the upgraded module 22 is additionally operable to:When determining to the active client edition upgrading, immediately automatically
Perform the upgrading to the active client version.
Optionally, the upgraded module is additionally operable to:When determining to the active client edition upgrading, to the user
Prompting and corresponding installation kit path are sent out, is downloaded by the user and the installation kit is installed, completed to the active client
The upgrading of version.
Optionally, which further includes:Authority distribution module, for each module of each installation kit point
Be not assigned module permission code, and to each installation kit, according to it includes each module the module permission
Code forms the installation kit permission code of the installation kit.
Optionally, the module permission code binary number representation, the length of the binary number are equal to the installation kit
The quantity of middle module, the position that the module serial number is corresponded in the module permission code of each module is 1, remaining position is 0, and each mould
The module permission code or operation result of block is the installation kit permission code of corresponding installation kit.
Since the update device of APP provided by the invention applications is the corresponding device of the above method, therefore do not repeat herein.
By the APP provided by the invention upgrade methods applied and device, specific function module or spy can be directed to
Determine the installation kit that user issues new version APP, can not only effectively reduce the maintenance cost of APP, and due to towards specific use
Family carries out the upgrading of function module, reduces the application risk of new version APP, improves user experience.
In addition, although the operation of the method for the present invention is described with particular order in the accompanying drawings, this do not require that or
Imply that the operation having to carry out shown in whole could realize desired result.Additionally or alternatively, it is convenient to omit certain steps,
Multiple steps are merged into a step execution and/or a step is decomposed into execution of multiple steps.
Particular embodiments described above has carried out the purpose of the present invention, technical solution and advantageous effect further in detail
Describe in detail it is bright, it should be understood that the above is only a specific embodiment of the present invention, the guarantor being not intended to limit the present invention
Range is protected, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should be included in this
Within the protection domain of invention.