CN112559018A - HTML 5-based APP hot updating method - Google Patents

HTML 5-based APP hot updating method Download PDF

Info

Publication number
CN112559018A
CN112559018A CN201910917239.8A CN201910917239A CN112559018A CN 112559018 A CN112559018 A CN 112559018A CN 201910917239 A CN201910917239 A CN 201910917239A CN 112559018 A CN112559018 A CN 112559018A
Authority
CN
China
Prior art keywords
app
version
layer
client
updating
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
CN201910917239.8A
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.)
China Telecom Wanwei Information Technology Co Ltd
Original Assignee
China Telecom Wanwei Information 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 China Telecom Wanwei Information Technology Co Ltd filed Critical China Telecom Wanwei Information Technology Co Ltd
Priority to CN201910917239.8A priority Critical patent/CN112559018A/en
Publication of CN112559018A publication Critical patent/CN112559018A/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
    • G06F8/656Updates while running

Abstract

The invention discloses an APP hot updating method based on HTML5, and relates to the technical field of APP updating; the application layer comprises an APP client and an APP background management platform; the application layer is associated with the service logic layer, and an APP client version check module and an APP update package management module are arranged in the service logic layer; the service logic layer is associated with the data abstraction layer; an APP version library module is arranged in the data abstraction layer; the data abstraction layer is correlated with the data access layer; the data access layer adopts a SpringBoot + MyBatis data access technology; the data access layer is associated with the data storage layer; and a database module is arranged in the data storage layer. When the client APP detects version updating, the client version number is sent to the server, the server receives the client version number and compares the client version number with the latest version number in the version library, checking of an application store can be skipped, the APP can be directly updated and updated, and the cost for updating and releasing the APP is greatly saved.

Description

HTML 5-based APP hot updating method
Technical Field
The invention belongs to the technical field of APP updating, and particularly relates to an APP hot updating method based on HTML 5.
Background
APP is an abbreviation of APPlication, and generally refers to APPlication software on a mobile phone, or a mobile phone client. The mobile internet era is a nationwide mobile internet era, an era of every person, and an era of every enterprise. APP makes people live conveniently, and APP development enables each enterprise to start a mobile information process. The APP is released to the mobile phone application market through a series of auditing processes, the APP store of the apple audits an application for about a week, and the audits of all android markets are generally quick and generally about 3 days. In APP operation, there are some requirements that will force us to go online quickly in a short time, such as a requirement flow error and a program bug (flash back, main function cannot be used). Once you APP the problem, want to repair a new version may need several days or longer, repair untimely, user experience is poor, the user directly uninstalls after losing patience when running away, it is unacceptable to APP company side.
Disclosure of Invention
Aiming at solving the problems in the prior art; the invention aims to provide an APP hot updating method based on HTML 5.
The invention relates to an APP hot update method based on HTML 5.A hot update system of the method comprises an application layer, a business logic layer, a data abstraction layer, a data access layer and data storage; the application layer comprises an APP client and an APP background management platform; the application layer is associated with the service logic layer, and an APP client version check module and an APP update package management module are arranged in the service logic layer; the service logic layer is associated with the data abstraction layer; an APP version library module is arranged in the data abstraction layer; the data abstraction layer is correlated with the data access layer; the data access layer adopts a SpringBoot + MyBatis data access technology and an object-oriented technology to package a database access object; the data access layer is associated with the data storage layer; and a database module is arranged in the data storage layer.
Preferably, the application layer is divided into two
A. And the client application layer is an APP mobile phone application developed by HTML 5.
B. And the APP background management application layer is a web system used by an APP administrator to release a new version.
Preferably, the business logic layer checks whether the version of the APP client needs to be updated and issues the logic of the APP update package, which is the core of the system, and simultaneously, the management function of all APP update packages is also realized.
Preferably, the APP version base module defines an APP version base class, and the class encapsulates base operations on the database and performs access and management work on wgt update package base data, so that the acquisition of the version number of the latest update package and the operation of adding, deleting, modifying and checking the update package by an APP administrator are realized.
Preferably, the data access layer encapsulates the database access object by adopting a SpringBoot + MyBatis data access technology and an object-oriented technology, so that the access operation on the database is facilitated.
Preferably, the data storage layer adopts Oracle for data management, and provides data storage and reading services, such as returning of client new version data and storing of APP new version information data;
preferably, the operation flow of the APP hot updating method based on the HTML5 is as follows:
1. an administrator releases versions, and after the related version resource files are generated, a server generates a difference upgrading packet between the versions and a corresponding version code value;
2. completing the differential quantity upgrading packet information on the basis of the step 1 and generating a downloading address;
3. storing the difference upgrading package information in the step 2 in an APP version library module, and simultaneously generating a new version number;
4. starting the APP, acquiring a client version number and sending the client version number to the server;
5. the server takes out the version number of the latest upgrade package from the database and compares the version number with the received client version number;
6. comparing whether the version number of the update package is higher than that of the client side;
7. if yes, prompting a user that the APP needs to be updated, and simultaneously acquiring a download address of an update package through the APP version library module to finish updating;
8. if not, the updating is directly carried out in the step 6.
In the operation process of the invention, the resource file package of each version of APP is uploaded to a server, a historical version database is established, and the version number, the storage path and other information of the resource file package are stored in the version database; and running a BSDiff delta algorithm on the server side to obtain a delta file and generate a delta upgrade package each time a version of the resource package file is uploaded, and then generating a unique code value by the MD5 algorithm for the historical version number and the latest version number. And establishing a version updating library, and storing the code values between the differential upgrading packet download addresses and the version numbers in the version updating library in a one-to-one correspondence manner. When the client APP detects version updating, the client version number is sent to the server, the server receives the client version number and compares the client version number with the latest version number in the version library, if the two version numbers are not equal, a code value is generated by using the two version numbers through an MD5 algorithm, and the code value is used for finding out a download address of a corresponding differential quantity updating packet in the version updating library and sending the download address to the corresponding client. And downloading the differential updating packet at the client through a downloading address returned by the server, decompressing the differential updating packet and merging the old files in the month.
The invention aims to solve the problem that the release of the new APP version needs to pass through a complicated auditing process, and can be upgraded without submitting to an application market, so that the capabilities of repairing the bug and endowing new functions of the APP are greatly improved.
Compared with the prior art, the invention has the beneficial effects that:
1. can skip the audit of application shop and directly upgrade the APP and update, greatly save the cost of updating the release APP.
2. The software is automatically updated on line, the user does not need to download the whole client from the application market for reinstallation, and the flow and time consumed by the user for downloading the new installation package are saved.
3. The cross-platform method can be used for updating the APP by both android and apples.
Drawings
For ease of illustration, the invention is described in detail by the following detailed description and the accompanying drawings.
FIG. 1 is a system architecture framework of the present invention;
FIG. 2 is a flow chart of the present invention;
in the figure: the system comprises an application layer 1, a service logic layer 2, a data abstraction layer 3, a data access layer 4 and a data storage layer 5;
the system comprises an APP client 11 and an APP background management platform 12;
an APP client version checking module 21 and an APP update package management module 22;
APP version library module 31 and database module 51.
Detailed Description
In order that the objects, aspects and advantages of the invention will become more apparent, the invention will be described by way of example only, and in connection with the accompanying drawings. It is to be understood that such description is merely illustrative and not intended to limit the scope of the present invention. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present invention.
It should be noted that, in order to avoid obscuring the present invention with unnecessary details, only the structures and/or processing steps closely related to the scheme according to the present invention are shown in the drawings, and other details not so relevant to the present invention are omitted.
As shown in fig. 1, the following technical solutions are adopted in the present embodiment: the hot updating system comprises an application layer 1, a service logic layer 2, a data abstraction layer 3, a data access layer 4 and a data storage layer 5;
the application layer 1 comprises an APP client 11 and an APP background management platform 12;
the application layer 1 is divided into two types:
A. and the client application layer is an APP mobile phone application developed by HTML 5.
B. And the APP background management application layer is a web system used by an APP administrator to release a new version.
The application layer 1 and the service logic layer 2 are associated with each other, and an APP client version check module 21 and an APP update package management module 22 are arranged in the service logic layer 2;
the business logic layer 2 checks whether the version of the APP client needs to be updated and issues the logic of the APP update package, which is the core of the system, and simultaneously realizes the management function of all the APP update packages.
The service logic layer 2 and the data abstraction layer 3 are associated with each other; an APP version library module 31 is arranged in the data abstraction layer 3; the APP version base module 31 defines an APP version base class, which encapsulates the base operation of the database and performs access and management work on the wgt update package base data, thereby realizing the acquisition of the version number of the latest update package and the operation of increasing, deleting, modifying and checking the update package by an APP administrator.
The data abstraction layer 3 and the data access layer 4 are correlated; the data access layer 4 adopts a SpringBoot + MyBatis data access technology and an object-oriented technology to package a database access object; the data access layer 4 is associated with the data storage layer 5; the data storage layer 5 is provided with a database module 51.
Further, the data access layer 4 encapsulates the database access object by adopting a SpringBoot + MyBatis data access technology and an object-oriented technology, so that the access operation on the database is facilitated.
Further, the data storage layer 5 adopts Oracle to perform data management, and provides data storage and reading services, such as returning to a client new version data and storing APP new version information data;
as shown in fig. 2, in the APP hot-update method based on HTML5 of the present embodiment, the operation flow is as follows:
1. an administrator releases versions, and after the related version resource files are generated, a server generates a difference upgrading packet between the versions and a corresponding version code value;
2. completing the differential quantity upgrading packet information on the basis of the step 1 and generating a downloading address;
3. storing the residual quantity upgrade package information in the step 2 in an APP version library module 31, and generating a new version number at the same time;
4. starting the APP, acquiring a client version number and sending the client version number to the server;
5. the server takes out the version number of the latest upgrade package from the database and compares the version number with the received client version number;
6. comparing whether the version number of the update package is higher than that of the client side;
7. if yes, prompting a user that the APP needs to be updated, and simultaneously acquiring a download address of an update package through the APP version library module 31 to finish updating;
8. if not, the updating is directly carried out in the step 6.
In the operation process of the specific embodiment, the resource file package of each version of the APP is uploaded to the server, a historical version database is established, and information such as the version number, the storage path and the like of the resource file package is stored in the version database; and running a BSDiff delta algorithm on the server side to obtain a delta file and generate a delta upgrade package each time a version of the resource package file is uploaded, and then generating a unique code value by the MD5 algorithm for the historical version number and the latest version number. And establishing a version updating library, and storing the code values between the differential upgrading packet download addresses and the version numbers in the version updating library in a one-to-one correspondence manner. When the client APP detects version updating, the client version number is sent to the server, the server receives the client version number and compares the client version number with the latest version number in the version library, if the two version numbers are not equal, a code value is generated by using the two version numbers through an MD5 algorithm, and the code value is used for finding out a download address of a corresponding differential quantity updating packet in the version updating library and sending the download address to the corresponding client. And downloading the differential updating packet at the client through a downloading address returned by the server, decompressing the differential updating packet and merging the old files in the month.
In the specific embodiment, a BSDiff differential quantity updating algorithm is used for generating a differential quantity upgrading packet in the server, a BSPatch algorithm is operated at the client, and the old file and the upgrading packet are combined into a new file. The delta upgrade package is a delta from a certain history version to a new version, so it is necessary for the upgrade server to keep all history versions and generate a delta upgrade package from each history version to a new version, respectively.
The invention aims to solve the problem that the release of the new APP version needs to pass through a complicated auditing process, and can be upgraded without submitting to an application market, so that the capabilities of repairing the bug and endowing new functions of the APP are greatly improved. The version difference thermal updating refers to a differentiated part of software online updating, the whole client does not need to be downloaded for reinstallation, only the upgrade package needs to be downloaded, and the software updating is completed with the minimum downloading amount.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (8)

1. An APP hot updating method based on HTML5 is characterized in that: the hot updating system comprises an application layer, a service logic layer, a data abstraction layer, a data access layer and a data storage; the application layer comprises an APP client and an APP background management platform; the application layer is associated with the service logic layer, and an APP client version check module and an APP update package management module are arranged in the service logic layer; the service logic layer is associated with the data abstraction layer; an APP version library module is arranged in the data abstraction layer; the data abstraction layer is correlated with the data access layer; the data access layer adopts a SpringBoot + MyBatis data access technology; the data access layer is associated with the data storage layer; and a database module is arranged in the data storage layer.
2. The APP hot-update method based on HTML5, according to claim 1, wherein: the application layer is divided into two types:
A. a client application layer, namely an APP mobile phone application developed by HTML 5;
B. and the APP background management application layer is a web system used by an APP administrator to release a new version.
3. The APP hot-update method based on HTML5, according to claim 1, wherein: the business logic layer checks whether the APP client version needs to be updated or not and issues the logic of the APP update package, which is the core of the system, and simultaneously realizes the management function of all the APP update packages.
4. The APP hot-update method based on HTML5, according to claim 1, wherein: the APP version base module defines an APP version base class which encapsulates base operation on a database and accesses and manages basic data of the wgt update package, so that the acquisition of the version number of the latest update package and the operation of increasing, deleting, modifying and checking the update package by an APP administrator are realized.
5. The APP hot-update method based on HTML5, according to claim 1, wherein: the data access layer adopts a SpringBoot + MyBatis data access technology and an object-oriented technology to package a database access object.
6. The APP hot-update method based on HTML5, according to claim 1, wherein: the data storage layer adopts Oracle to manage data and provide data storage and reading services.
7. The APP hot-update method based on HTML5, according to claim 1, wherein: the operation flow of the hot updating method is as follows:
(1) after the administrator releases the versions and the related version resource files are generated, the server generates a difference upgrading packet between the versions and a corresponding version code value;
(2) completing the differential quantity upgrading packet information on the basis of the step 1 and generating a downloading address;
(3) storing the difference upgrading package information in the step (2) into an APP version library module, and simultaneously generating a new version number;
(4) starting the APP, acquiring the version number of the client and sending the version number to the server;
(5) the server takes out the version number of the latest upgrade package from the database and compares the version number with the received client version number;
(6) comparing whether the version number of the update package is higher than that of the client side;
(7) if yes, prompting a user that the APP needs to be updated, and simultaneously acquiring a download address of an update package through the APP version library module to finish updating;
(8) and (step 6) if not, directly updating.
8. The APP hot-update method based on HTML5, according to claim 1, wherein: in the operation process of the hot updating method, the resource file package of each version of the APP is uploaded to the server, a historical version database is established, and information such as the version number, the storage path and the like of the resource file package is stored in the version database; running a BSDiff differential algorithm on a server side to obtain a differential file and generate a differential upgrade package each time a version of a resource package file is uploaded, and then generating a unique code value by a history version number and a latest version number through an MD5 algorithm; establishing a version updating library, and storing code values between differential upgrading packet download addresses and version numbers in the version updating library in a one-to-one correspondence manner; when a client APP detects version updating, a client version number is sent to a server, the server receives the client version number and compares the client version number with the latest version number in a version library, if the two version numbers are not equal, a code value is generated by using the two version numbers through an MD5 algorithm, and the code value is used for finding a download address of a corresponding differential quantity updating packet in the version updating library and sending the download address to the corresponding client; and downloading the differential updating packet at the client through a downloading address returned by the server, decompressing the differential updating packet and merging the old files in the month.
CN201910917239.8A 2019-09-26 2019-09-26 HTML 5-based APP hot updating method Pending CN112559018A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910917239.8A CN112559018A (en) 2019-09-26 2019-09-26 HTML 5-based APP hot updating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910917239.8A CN112559018A (en) 2019-09-26 2019-09-26 HTML 5-based APP hot updating method

Publications (1)

Publication Number Publication Date
CN112559018A true CN112559018A (en) 2021-03-26

Family

ID=75029950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910917239.8A Pending CN112559018A (en) 2019-09-26 2019-09-26 HTML 5-based APP hot updating method

Country Status (1)

Country Link
CN (1) CN112559018A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973475A (en) * 2013-02-05 2014-08-06 腾讯科技(深圳)有限公司 Difference service pack generating method, difference service pack downloading method, server and client-side
CN108647041A (en) * 2018-04-02 2018-10-12 金证财富南京科技有限公司 A kind of hot update mechanism of the locals mixed type APP web resource
CN108733400A (en) * 2018-04-27 2018-11-02 新光互联投资管理有限公司 A kind of hot update method of App increments and service system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973475A (en) * 2013-02-05 2014-08-06 腾讯科技(深圳)有限公司 Difference service pack generating method, difference service pack downloading method, server and client-side
CN108647041A (en) * 2018-04-02 2018-10-12 金证财富南京科技有限公司 A kind of hot update mechanism of the locals mixed type APP web resource
CN108733400A (en) * 2018-04-27 2018-11-02 新光互联投资管理有限公司 A kind of hot update method of App increments and service system

Similar Documents

Publication Publication Date Title
US6996818B2 (en) Update system for facilitating software update and data conversion in an electronic device
CN102622241B (en) A kind of method for upgrading software and device
CN110058873B (en) Application page updating method, device, equipment and storage medium
CN107391104B (en) Client and reactive native code update dependence management method, device and system
US7984435B2 (en) Update system employing reference software to reduce number of update packages
CN108984224A (en) A kind of plug-in management method, computer readable storage medium and terminal device
CN104793946A (en) Application deployment method and system based on cloud computing platform
US20160378458A1 (en) Method and device for system application installation package, and terminal
US20130332916A1 (en) System and method for updating application archive files
US20050257023A1 (en) Device memory management during electronic file updating
CN106921731B (en) Vulnerability repair method and device
CN102195804A (en) Automatic updating method of software and system thereof
CN106648724B (en) Application program hot repair method and terminal
CN105743984A (en) Method, device and system for automatically updating mobile application
CN111158674A (en) Component management method, system, device and storage medium
US11922146B2 (en) Systems and method for creating enterprise software
CN104750528A (en) Management method and device for components in Android program
CN107220074A (en) To the access of supporting layer software function, upgrade method and device
CN104932887A (en) Plug-in management method of platform system and platform system
CN109918113A (en) Multiple/hot update method of IOS application hot repair, server and storage medium
CN110851151B (en) Method, device, terminal, server and storage medium for pre-installing application
US8122101B2 (en) Methods and systems for distributing software
CN102541593A (en) Rapid comparison method of versions of remote files
CN113077260A (en) Data access method and device based on block chain and electronic equipment
CN112559018A (en) HTML 5-based APP hot updating method

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