CN113495738A - Method and device for updating service logic of application program - Google Patents

Method and device for updating service logic of application program Download PDF

Info

Publication number
CN113495738A
CN113495738A CN202010264463.4A CN202010264463A CN113495738A CN 113495738 A CN113495738 A CN 113495738A CN 202010264463 A CN202010264463 A CN 202010264463A CN 113495738 A CN113495738 A CN 113495738A
Authority
CN
China
Prior art keywords
interface
updating
module
client
service
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.)
Pending
Application number
CN202010264463.4A
Other languages
Chinese (zh)
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.)
Mobility Asia Smart Technology Co Ltd
Original Assignee
Mobility Asia Smart 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 Mobility Asia Smart Technology Co Ltd filed Critical Mobility Asia Smart Technology Co Ltd
Priority to CN202010264463.4A priority Critical patent/CN113495738A/en
Publication of CN113495738A publication Critical patent/CN113495738A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

The invention provides an updating method and a device for business logic of an application program generated by using a static compiling language, wherein a business module which is used for the application program and comprises the business logic is deployed at a service end, and the application program is downloaded at a client of a user, the updating method comprises the following steps: interface definition step: defining an interface for executing business logic in an application program; the interface implementation step: the interface is realized by calling a dynamically executable script language engine to load a dynamically executable script language; and a downloading and updating step: and when the service logic in the application program of the client needs to be updated, directly downloading the service logic part needing to be updated from the service module to the application program of the client through the interface. The updating method and the updating device can quickly repair the bugs existing in the application program or update the business logic therein, and have short updating time and simple processing flow.

Description

Method and device for updating service logic of application program
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for updating a service logic of an Application program, and in particular, to a method and an apparatus for updating a service logic of an Android native Application (APP).
[ background of the invention ]
With the development of mobile internet software technology, Application programs generated by using a static compiling language, in particular, Android native Applications (APPs), become the most popular way of intelligent Application software. However, the conventional android APP update process needs to be updated in an APK package manner, so that the user experience is poor, the user cannot be forced to update, and the compatibility problem of multi-version coexistence is easily caused.
For example, after an Android APP developer issues an Android APP, the Android APP developer discovers that there is a serious bug (bug), which may affect the experience or promotion activity of the Android APP user, and thus needs to modify some business logic in the Android APP. The traditional processing flow is that the android App software needs to be subjected to code modification, recompilation and packaging, update packages are uploaded to various application markets and channels, market auditing is waited, user upgrading, user downloading and coverage installation are prompted, the series of flows are time-consuming and labor-consuming, the best update opportunity is often missed, and the users cannot be guaranteed to download and upgrade. Sometimes, only one line of code is modified, and the package is changed and the code is reissued at a great cost.
Therefore, various hot-patch dynamic repairing technical methods are proposed in the prior art later, the code execution logic is dynamically modified in a patch mode, the android App does not need to be reissued, and the problem is solved in a hot-update mode at the client.
At present, the mainstream thermal update scheme is to issue a dex file, and dynamically load the dex file by using a reflection technology to achieve the purpose of local thermal update without updating android APP, specifically including WeChat Tinker, Nuwa in a QQ space, hungry Amigo, Robust in Mei Tuo, and the like.
Due to the serious system fragmentation problem of the android mobile phone, the method for dynamically loading the dex file has the problem of adaptation of a plurality of models, so that the development adaptation workload is large, or the android mobile phone cannot normally work on certain models.
Moreover, as the Android itself has increasingly strict restrictions on interfaces such as reflection, many hot update schemes cannot be supported after 9.0 Android.
Moreover, the patch package used for hot update needs to compile the APK for differentiation, and the processing flow is troublesome, which is inconvenient for realizing the function of customizing different service logics for different users.
[ summary of the invention ]
In view of the foregoing problems in the prior art, an object of the present invention is to provide a method and an apparatus for updating service logic of an application program generated using a static compilation language, which can quickly repair bugs existing in the application program or update service logic in the application program, and have short update time and simple processing flow.
Another object of the present invention is to provide a flexible method for updating an android native application service logic, which can quickly repair a bug existing in an android APP or update a service logic in the android APP without perception without restarting the android APP when performing a hot update on the android APP of a client, and has the advantages of short update time, simple processing flow, good user experience, and no adaptation problem caused by dynamic loading dex.
To achieve the above object, according to a first aspect of the present invention, there is provided an updating method for business logic of an application generated using a static compilation language, wherein a business module for the application and including the business logic is deployed at a service end, and the application is loaded under a client of a user, the updating method comprising the steps of: interface definition step: defining an interface for executing business logic in the application; the interface implementation step: the interface is realized by calling a dynamically executable script language engine to load a dynamically executable script language; and a downloading and updating step: and when the service logic in the application program of the client needs to be updated, directly downloading the service logic part needing to be updated from the service module to the application program of the client through the interface.
In one embodiment, the application is an android APP and the dynamically executable scripting language is JavaScript.
In an embodiment, an update determining step is further included between the interface implementing step and the downloading and updating step: when the client of the user is in a starting state, whether hot update needs to be carried out on the service logic in the application program of the client is automatically judged.
In one embodiment, the interface implementing step includes the following steps: and service class implementation steps: implementing the interface in the implementation service class of the application program; and a signature matching step: and matching the function of the dynamically executable script language to be called through the interface signature so as to realize the matching between the business module and the interface.
In one embodiment, the interface is defined by using an existing interface in the application by means of inheritance or implementation.
In one embodiment, the interface defining step and the interface implementing step are performed using a design mode that separates the service and the interface.
In one embodiment, the design mode separating the service and the interface is an MVP, MVVM or MVC design mode.
In an embodiment, when the application is an android APP and the dynamically executable scripting language is JavaScript, the interface implementing step includes the following steps: an initialization step: initializing a JavaScript engine; a content loading step: loading the content of JavaScript through a local file or a network file; the content operation step: running the content of the JavaScript and obtaining a result based on interface definition by using an execution interface of the JavaScript engine; and a result deployment step: deploying the result within the android APP to implement the interface.
In one embodiment, the JavaScript script engine is the Google V8 JS script engine.
In an embodiment, the execution interface of the JavaScript script engine is jsengine.
In one embodiment, the updating step includes the following steps: and comparing version numbers: comparing the version number A of the service module deployed by the server side with the version number B of the application program downloaded from the client side of the user; and a judging and executing step: if the version number A is larger than the version number B, judging to execute the hot update; or if the version number A is not greater than the version number B, judging not to execute the hot updating.
In an embodiment, in the case that the application program is an android APP, the updating determining step includes the following steps: and a content comparison step: judging whether the content of the android APP in the client of the user is consistent with the content of the service module deployed by the server through a hash algorithm; and a judging and executing step: if the comparison result is not consistent, judging to execute the hot update; or if the comparison result is consistent, judging not to execute the hot updating.
In an embodiment, in the content comparison step, a hash value is calculated for each service module deployed by the server, the client calculates a hash value of each local module in the android APP in the client when starting, and simultaneously the server requests the server to compare the hash value of each service module of the server end with the hash value of each corresponding local module in the android APP in the client, so as to determine whether the content of the android APP in the client of the user is consistent with the content of the service module deployed by the server.
In an embodiment, after the downloading and updating step, the method further comprises a step of verifying downloading: after the downloading of the service logic part needing to be updated is completed, verifying whether the downloaded content is complete; if the verification result shows that the downloaded content is complete, the updating method is ended; and if the verification result shows that the downloaded content is incomplete, re-executing the downloading updating step to download the service logic part needing to be updated.
To achieve the above object, according to a second aspect of the present invention, there is provided an updating apparatus for business logic of an application generated using a static compilation language, wherein a business module for the application and including the business logic is deployed at a service end, a client of a user downloads the application, and the updating apparatus is included in the application, and the updating apparatus includes the following modules: the interface definition module is used for defining an interface for executing business logic in the application program; the interface implementation module is used for implementing the interface by calling a dynamically executable script language engine to load a dynamically executable script language; and the download updating module is used for directly downloading the service logic part needing to be updated from the service module of the server side to the application program of the client side through the interface when the service logic part in the application program of the client side needs to be updated in a hot mode.
In one embodiment, the application is an android APP and the dynamically executable scripting language is JavaScript.
In an embodiment, the updating apparatus further includes an update determining module, configured to automatically determine whether a hot update needs to be performed on the service logic in the application program of the client when the client of the user is in a start state;
in one embodiment, the interface implementation module includes: the service class realization module is used for realizing the interface in the realization service class of the application program; and the signature matching module is used for matching the function of the dynamically executable script language to be called through the interface signature so as to realize the matching between the service module and the interface.
In one embodiment, the interface is defined by using an existing interface in the application by means of inheritance or implementation.
In one embodiment, the interface definition module and the interface implementation module are implemented in a design mode that separates services from interfaces.
In one embodiment, the design mode separating the service and the interface is an MVP, MVVM or MVC design mode.
In one embodiment, the interface implementation module includes: the initialization module is used for initializing a JavaScript engine; the content loading module is used for loading the JavaScript content through a local file or a network file; the content running module is used for running the JavaScript content and obtaining a result based on interface definition by using the execution interface of the JavaScript engine; and a result deployment module for deploying the result within the application, thereby implementing the interface.
In one embodiment, the JavaScript script engine is the Google V8 JS script engine.
In an embodiment, the execution interface of the JavaScript script engine is jsengine.
In one embodiment, the update determining module includes: the version number comparison module is used for comparing the version number A of the service module deployed by the server side with the version number B of the application program downloaded from the client side of the user; and a judging execution module for judging to execute the hot update if the version number A is larger than the version number B, or judging not to execute the hot update if the version number A is not larger than the version number B.
In an embodiment, in a case that the application is an android APP, the update determining module includes: the content comparison module is used for judging whether the content of the android APP in the client of the user is consistent with the content of the service module deployed by the server through a hash algorithm; and a judgment execution module for judging to execute the hot update if the content comparison result is inconsistent, or judging not to execute the hot update if the content comparison result is consistent.
In an embodiment, the content comparison module is configured to calculate a hash value for each service module deployed by the server, calculate a hash value for each local module in the android APP in the client when the client is started, and simultaneously request the server to compare the hash value of each service module of the server end with the hash value of each corresponding local module in the android APP in the client through a network, so as to determine whether the content of the android APP in the client of the user is consistent with the content of the service module deployed by the server.
In one embodiment, the updating apparatus further includes: the verification module is used for verifying whether the downloaded content is complete or not after the downloading of the service logic part needing to be updated is completed; if the verification result shows that the downloaded content is complete, the downloading and updating are finished; or if the verification result shows that the downloaded content is incomplete, the download updating module is enabled to re-execute the download updating to download the business logic part needing updating.
The invention provides the method and the device for updating the business logic of the application program generated by using the static compiling language, which can quickly repair bugs existing in the application program or update the business logic in the application program, and have short updating time and simple processing flow.
Under the condition that the application program is an android APP and the dynamically executable scripting language is JavaScript, compared with a hot updating method mainly depending on reflection loading dex in the prior art, the method disclosed by the invention can realize the following beneficial technical effects:
1. the update need not be done by restarting the android APP.
2. Not subject to the limitations of the android version, like the more stringent limitations of android 9.0 on reflection.
3. There is no need to pay attention to whether the android APP employs a Delvik virtual machine or an ART virtual machine.
4. In the face of various android mobile phone types and customized systems of numerous brands, the problem of mobile phone type adaptation does not need to be considered.
5. The Google V8 JavaScript engine is adopted, so that the stability is strong, and various compatibility problems caused by dynamic loading dex do not exist.
6. H5 and applet code may be conveniently used.
7. Different business logics can be conveniently customized for different users, and differential dex files do not need to be packed during hot updating
[ description of the drawings ]
Fig. 1 is a flowchart of a service logic updating method in a case where an application generated using a static compilation language is an android APP according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating interface implementation steps in an application scenario according to the embodiment shown in FIG. 1;
FIG. 3 is a flowchart illustrating the steps of an interface according to another application scenario in the embodiment shown in FIG. 1;
FIG. 4 is a flowchart illustrating steps involved in verifying a download according to an application scenario of the embodiment shown in FIG. 1;
fig. 5 is a block diagram illustrating a structure of a business logic updating apparatus in a case where an application generated using a static compilation language is an android APP according to an embodiment of the present invention;
FIG. 6 is a block diagram illustrating an interface implementation module according to an application scenario in the embodiment shown in FIG. 5;
fig. 7 is a block diagram of an interface implementation module in another application scenario in the embodiment shown in fig. 5.
[ detailed description ] embodiments
Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the invention are shown in the drawings, it is to be understood that the invention may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, which are provided for a more complete and thorough understanding of the invention, as embodiments may be utilized in various applications, both separately and in various combinations, under various embodiments. In other words, the drawings and the embodiments of the present invention are only for illustrative purposes and are not used to limit the scope of the present invention.
Fig. 1 shows a flow of a business logic updating method 100 in a case where an application generated by using a static compilation language is an android APP, where before the android APP is released, a business module which is used for the android APP and includes business logic written by a dynamic executable scripting language JavaScript is deployed at a service end, and the android APP is loaded under a client of a user, according to an embodiment of the present invention, the updating method 100 includes the following steps:
interface definition step 110: defining an interface for executing business logic in the android APP;
interface implementation step 120: the interface is realized by calling a JavaScript engine to load JavaScript;
update determination step 130: when the client of the user is in a starting state, automatically judging whether hot update needs to be carried out on business logic in an android APP of the client; and
download update step 140: and under the condition that the hot update is needed, directly downloading the service logic part needing to be updated from the android APP service module of the server to the android APP of the client through the interface.
As shown in fig. 2, in an application scenario of this embodiment, in step 110, the interface is defined by a java interface definition, and the interface implementation step 120 includes the following steps:
service class implementation step 1201': implementing (instance) the java interface in the implementation business class of the android APP; and
signature matching step 1202': matching a function corresponding to JavaScript to be called through the Java interface signature to realize matching between the service module and the Java interface.
In another application scenario of this embodiment, in step 110, the interface is defined by using an existing interface in the android APP (e.g. the following interfaces) by means of inheritance or implementation:
public void onBackPressed () function of ComponentActivity
As shown in fig. 3, in another application scenario of this embodiment, the interface implementing step 120 includes the following steps:
an initialization step 1201: initializing the JavaScript engine;
content loading step 1202: loading the content of JavaScript through a local file or a network file;
content execution step 1203: running the content of the JavaScript and obtaining a result based on interface definition by using an execution interface of the JavaScript engine; and
a result deployment step 1204: the results are used to deploy within the android APP to implement the interface.
In an application scenario of the embodiment, the JavaScript script engine is a Google V8 JS script engine.
In an application scenario of this embodiment, the execution interface of the JavaScript script engine is jsengine.
In an application scenario of this embodiment, the updating determining step 130 includes the following steps:
and comparing version numbers: comparing the version number A of the service plate deployed by the server with the version number B of the android APP downloaded from the client of the user;
and a judging and executing step: if the version number A is larger than the version number B, judging to execute the hot update; or if the version number A is not greater than the version number B, judging not to execute the hot updating.
In another application scenario of this embodiment, the update determining step 130 includes the following steps:
and a content comparison step: judging whether the content of the android APP of the client of the user is consistent with the content of the service module deployed by the server through a hash algorithm;
and a judging and executing step: if not, judging to execute the hot update; or if the comparison result is consistent, judging not to execute the hot updating.
In another application scenario of this embodiment, in the content comparison step, a hash value is calculated for each service module deployed by the server, the client calculates a hash value of each local module in the android APP in the client when starting, and simultaneously the server requests the server to compare the hash value of each service module of the server with the hash value of each corresponding local module in the android APP in the client, so as to determine whether the content of the android APP in the client of the user is consistent with the content of the service module deployed by the server.
As shown in fig. 4, in an application scenario of the embodiment, after the downloading and updating step 140, a verification downloading step 150 is further included: after the downloading of the service logic part needing to be updated is completed, verifying whether the downloaded content is complete through a hash algorithm; if the verification result indicates that the downloaded content is complete, the update method 100 ends; if the verification result indicates that the downloaded content is incomplete, the download update step 140 is re-executed to download the service logic portion to be updated.
In an application scenario of this embodiment, the update method 100 is implemented using H5 and applet code.
Fig. 5 shows a structure of an updating apparatus 4 for business logic in a case where an application generated using a static compilation language is an android APP, where before the android APP is released, a business module 2 for the android APP and including business logic written by a dynamically executable scripting language JavaScript is deployed at a server 1, and the android APP is downloaded at a client 3 of a user, the updating apparatus 4 is included in the android APP, and the updating apparatus 4 includes the following modules:
an interface definition module 41, configured to define an interface for executing a service logic in the android APP;
an interface implementation module 42, configured to implement the interface by invoking a JavaScript script engine to load JavaScript;
an update determining module 43, configured to automatically determine whether a service logic in an android APP of the client 3 needs to be updated when the client 3 of the user is in a start state; and
and the downloading and updating module 44 is configured to, under the condition that it is determined that hot updating is required, directly download the service logic portion to be updated from the service module 2 of the android APP of the server 1 to the android APP of the client 3 through the interface.
As shown in fig. 6, in an application scenario of the embodiment, the interface is defined by a java interface definition, and the interface implementation module 42 includes:
a service class implementation module 421' configured to implement the java interface in the implementation service class of the android APP; and
the signature matching module 422' is used for matching a function corresponding to the JavaScript to be invoked through the Java interface signature to realize matching between the service module and the Java interface.
In another application scenario of this embodiment, the interface is defined by using an existing interface in the android APP (e.g., the following interfaces) by means of inheritance or implementation:
public void onBackPressed () function of ComponentActivity
In another application scenario of this embodiment, the interface definition module 41 is implemented by a design mode, such as an MVP, MVVM, or MVC design mode, which separates services from interfaces.
As shown in fig. 7, in another application scenario of this embodiment, the interface implementation module 42 includes:
an initialization module 421, configured to initialize the JavaScript script engine;
a content loading module 422, configured to load content of JavaScript through a local file or a network file;
a content running module 423, configured to run the JavaScript content and obtain a result defined based on the interface by using the execution interface of the JavaScript script engine; and
a result deployment module 424, configured to deploy the result within the android APP, thereby implementing the interface.
In an application scenario of the embodiment, the JavaScript script engine is a Google V8 JS script engine.
In an application scenario of this embodiment, the execution interface of the JavaScript script engine is jsengine.
In an application scenario of this embodiment, the update determining module 43 includes:
a version number comparison module, configured to compare the version number a of the service module deployed by the server 1 with the version number B of the android APP downloaded in the client 3 of the user;
and the judging and executing module is used for judging to execute the hot update if the version number A is greater than the version number B, or judging not to execute the hot update if the version number A is not greater than the version number B.
In another application scenario of this embodiment, the update determining module 43 includes:
a content comparison module, configured to determine, through a hash algorithm, whether the content of the android APP downloaded in the client 3 of the user is consistent with the content of the service module deployed by the server 1;
and the judging and executing module is used for judging to execute the hot update if the content comparison result is inconsistent, or judging not to execute the hot update if the content comparison result is consistent.
In another application scenario of this embodiment, the content comparison module is configured to calculate a hash value for each service module deployed by the server 1, where the client calculates a hash value for each local module in the android APP in the client 3 when starting, and simultaneously requests the server 1 to compare the hash value of each service module in the server 1 with the hash value of each corresponding local module in the android APP in the client 3 through a network, so as to determine whether the content of the android APP in the client 3 of the user is consistent with the content of the service module deployed by the server 1.
In an application scenario of this embodiment, the updating device 42 further includes a verification module (not shown) for verifying whether the downloaded content is complete through a hash algorithm after the downloading of the service logic portion to be updated is completed; if the verification result shows that the downloaded content is complete, the downloading and updating are finished; or cause the download update module 44 to re-execute the download update if the verification result indicates that the downloaded content is incomplete.
In an application scenario of this embodiment, H5 and the applet code are used to implement the relevant modules in the updating apparatus 4.
In the above embodiments (including various application scenarios) described for the case where the application program is an android APP, the following beneficial technical effects can be achieved by using the updating method 100 or the updating apparatus 4 according to the embodiments of the present invention:
1. the update need not be done by restarting the android APP.
2. Not subject to the limitations of the android version, like the more stringent limitations of android 9.0 on reflection.
3. There is no need to pay attention to whether the android APP employs a Delvik virtual machine or an ART virtual machine.
4. In the face of various android mobile phone types and customized systems of numerous brands, the problem of mobile phone type adaptation does not need to be considered.
5. The Google V8 JavaScript engine is adopted, so that the stability is strong, and various compatibility problems caused by dynamic loading dex do not exist.
6. H5 and applet code may be conveniently used.
7. Different business logics can be conveniently customized for different users, and the differential dex files do not need to be packaged during hot updating.
The above embodiments are described in the context of an application program being an android APP, and those skilled in the art will understand that the scope of the present invention is not limited thereto, and the present invention may be applied to various application situations of an application program generated using a static compilation language.
The foregoing disclosure discloses and describes merely exemplary embodiments of the present invention. One skilled in the art will readily recognize from such discussion, and from the accompanying drawings and claims, that various changes, modifications and variations can be made therein without departing from the spirit and scope of the invention as defined in the following claims.

Claims (17)

1. An updating method for business logic of an application generated using a static compilation language, wherein a business module for the application and including the business logic is deployed at a service end and the application is downloaded at a client of a user, the updating method comprising the steps of:
interface definition step: defining an interface for executing business logic in the application program;
the interface implementation step: the interface is realized by calling a dynamically executable script language engine to load a dynamically executable script language; and
and a downloading and updating step: and when the service logic in the application program of the client needs to be updated, directly downloading a service logic part needing to be updated from the service module to the application program of the client through the interface.
2. The update method of claim 1, wherein the application is an android APP and the dynamically executable scripting language is JavaScript.
3. The updating method according to claim 1 or 2, wherein an updating judgment step is further included between the interface implementing step and the downloading updating step: and when the client of the user is in a starting state, automatically judging whether hot update is needed to be carried out on the service logic in the application program of the client.
4. The updating method of claim 1 or 2, wherein the interface implementing step comprises the steps of:
and service class implementation steps: implementing the interface in an implementation service class of the application program; and
signature matching: and matching a function of the dynamically executable script language to be called through the interface signature so as to realize the matching between the service module and the interface.
5. The updating method according to claim 1 or 2, wherein the interface is defined by using an existing interface in the application by means of inheritance or implementation.
6. The updating method according to claim 1 or 2, wherein the interface defining step and the interface implementing step are performed in a design mode in which a service and an interface are separated.
7. The updating method of claim 6, wherein the design pattern separating services and interfaces is an MVP, MVVM, or MVC design pattern.
8. The updating method of claim 2, wherein the interface implementing step comprises the steps of:
an initialization step: initializing a JavaScript engine;
a content loading step: loading the content of JavaScript through a local file or a network file;
the content operation step: running the content of the JavaScript by using an execution interface of the JavaScript engine and obtaining a result based on interface definition; and
and a result deployment step: deploying the results within the android APP to implement the interface.
9. The updating method of claim 8, wherein the JavaScript script engine is a Google V8 JS script engine.
10. The update method of claim 9, wherein the execution interface of the JavaScript script engine is jsengine.
11. The updating method according to claim 3, wherein the updating judging step includes the steps of:
and comparing version numbers: comparing the version number A of the service module deployed by the server side with the version number B of the application program downloaded from the client side of the user;
and a judging and executing step: if the version number A is larger than the version number B, judging to execute the hot update; or if the version number A is not greater than the version number B, judging not to execute the hot update.
12. The updating method according to claim 3, wherein, in the case that the application program is an android APP, the updating determining step includes the steps of:
and a content comparison step: judging whether the content of the android APP in the client of the user is consistent with the content of the service module deployed by the server through a hash algorithm; and
and a judging and executing step: if the comparison result is inconsistent, judging to execute the hot update; or if the comparison result is consistent, judging not to execute the hot updating.
13. The updating method according to claim 12, wherein in the content comparison step, a hash value is calculated for each service module deployed by the server, the client calculates a hash value of each local module in the android APP in the client at startup, and simultaneously requests the server to compare the hash value of each service module of the server with the hash value of each corresponding local module in the android APP in the client through a network, so as to determine whether the content of the android APP in the client of the user is consistent with the content of the service module deployed by the server.
14. The updating method according to claim 1 or 2, wherein the downloading updating step is further followed by
And (3) verification downloading step: after the downloading of the service logic part needing to be updated is completed, verifying whether the downloaded content is complete; if the verification result shows that the downloaded content is complete, the updating method is ended; and if the verification result shows that the downloaded content is incomplete, re-executing the downloading and updating step to download the service logic part needing to be updated.
15. An updating apparatus for executing the updating method according to any one of claims 1-14, wherein a business module for the application and including business logic is deployed at a service end, the application is downloaded by a client of a user, and the updating apparatus is included in the application, the updating apparatus includes the following modules:
an interface definition module for performing the interface definition steps in the method of any one of claims 1-2 and 5-7;
an interface implementation module for performing the interface implementation steps in the method of any one of claims 1-2, 4 and 6-10; and
a download update module for performing the download update step in the method of any of claims 1 to 2.
16. The updating apparatus according to claim 15, further comprising an updating determination module for performing the updating determination step in the method according to any one of claims 3 and 11 to 13.
17. The updating apparatus according to claim 15 or 16, further comprising:
an authentication module for performing the authentication download step of the method of claim 14.
CN202010264463.4A 2020-04-07 2020-04-07 Method and device for updating service logic of application program Pending CN113495738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010264463.4A CN113495738A (en) 2020-04-07 2020-04-07 Method and device for updating service logic of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010264463.4A CN113495738A (en) 2020-04-07 2020-04-07 Method and device for updating service logic of application program

Publications (1)

Publication Number Publication Date
CN113495738A true CN113495738A (en) 2021-10-12

Family

ID=77995282

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010264463.4A Pending CN113495738A (en) 2020-04-07 2020-04-07 Method and device for updating service logic of application program

Country Status (1)

Country Link
CN (1) CN113495738A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117539521A (en) * 2024-01-10 2024-02-09 中航国际金网(北京)科技有限公司 Application program upgrading method and device, nonvolatile storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117539521A (en) * 2024-01-10 2024-02-09 中航国际金网(北京)科技有限公司 Application program upgrading method and device, nonvolatile storage medium and electronic equipment
CN117539521B (en) * 2024-01-10 2024-05-07 中航国际金网(北京)科技有限公司 Application program upgrading method and device, nonvolatile storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US10296323B2 (en) System and method for fast initial and incremental deployment of apps
EP3128421B1 (en) Method, device, and system for achieving java application installation by cloud compilation
US9513891B2 (en) Method and device for publishing and implementing wireless application
CN103530156B (en) Dynamic load and the method and device of caller
CN106020873B (en) Patch package loading method and device
US20190129733A1 (en) Android dynamic framework and a method thereof
CN111309451A (en) Method for realizing cross compilation of Docker mirror images
US8667486B2 (en) Automatic provisioning of a software platform to a device ecosystem
CN102915247A (en) APK (Android Package) plug-in management method
CN108874437B (en) Online cloud updating method for android application program
WO2020029967A1 (en) Method and apparatus for repairing fault in operating system
CN113703813A (en) Kernel upgrading method, device, equipment and computer readable storage medium
CN113495738A (en) Method and device for updating service logic of application program
CN110837383B (en) Application installation-free upgrading method and device
CN111338708A (en) Application program processing method, client and system based on android plug-in
CN112882733B (en) Application updating method and device, electronic equipment and storage medium
CN112286568A (en) Multi-version compatible method for Android system
KR20110108143A (en) Embeded system based on script programming language and operation method thereof
CN109144605A (en) A kind of applied program processing method and device
US20240168732A1 (en) Method for generating driver package, method for deploying driver, electronic device, and computer readable storage medium
CN111708567B (en) Application processing method and device
CN112685065A (en) Method and device for issuing OTA upgrade package by android platform device and storage medium
CN113377400A (en) Software upgrading method and device, storage medium and electronic equipment
CN118170431A (en) Cross-operating system service migration method and device and electronic equipment
CN114237649A (en) Code detection method and device, electronic equipment and program product

Legal Events

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