A method, device and storage medium for downloading application upgrade files
During the application upgrade process, only the upgrade files of the functional modules to be upgraded are downloaded, and the sub-functional module configuration is used to solve the problems of high error rate and long upgrade installation caused by multiple file changes in the existing technology, and realize the minimum granularity upgrade of the application. and reduce error rates.
Patent Information
- Application Number
- CN202011398585.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-02
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-12-02
AI Technical Summary
During the application upgrade process, the existing technology requires downloading the entire upgrade file, resulting in more file changes, the greater the possibility of problems, a high error rate, and a long upgrade installation process.
By sending the current version information to the upgrade server when the target application starts, receiving and generating download-related information containing the functional modules to be upgraded according to the pre-configured upgrade strategy, only the upgrade files of the functional modules to be upgraded are downloaded, and the functional module configuration is adopted to reduce the cost. File changes and resource consumption.
It achieves the smallest granularity upgrade of applications, reduces file downloads, reduces application error rates, and improves upgrade efficiency and reliability.
Smart Images

Figure CN114579167B_ABST
Abstract
Description
Background Art
[0002] With the development of technology, more and more functions are included in applications. When the functions in an application are updated, it is necessary to release a new version for the application, that is, to upgrade the version, which leads to the need for frequent upgrades of the application.
[0003] Currently, during the application upgrade process, you need to download the entire upgrade file corresponding to the application. The specific upgrade method is as follows:
[0004] When the application is started, it initiates an upgrade request to the upgrade server; after the upgrade server determines that the upgrade strategy is hit based on the upgrade request, it returns an upgrade response message containing upgrade configuration information such as the upgrade method and the target download address corresponding to the entire upgrade file; the application uses the upgrade method in the upgrade response message to send a download request to the upgrade file download server corresponding to the target download address to download the entire upgrade file corresponding to the application; after receiving the entire upgrade file, the application verifies the entire upgrade file and installs it after the verification passes.
[0005] During the application upgrade process, the entire upgrade file corresponding to the application needs to be installed, and the greater the changes to the upgrade file, the greater the possibility of problems. Summary of the invention
[0006] The present application provides a method, device and storage medium for downloading application upgrade files, so as to reduce file downloading, ensure application upgrade with minimum granularity and reduce application error rate.
[0007] In a first aspect, an embodiment of the present application provides a method for downloading an application upgrade file, the method comprising:
[0008] When the target application is started, an upgrade request message is sent to the upgrade server, where the upgrade request message carries at least the current version information of the target application;
[0009] Receive an upgrade response message returned by the upgrade server, wherein the upgrade response message is determined by the upgrade server based on the current version information and according to a pre-configured upgrade policy, and the upgrade response message includes at least one download-related information, each download-related information corresponding to a functional module to be upgraded in the target application;
[0010] Based on at least one download related information, the upgrade files associated with the corresponding functional modules are downloaded respectively.
[0011] In a second aspect, an embodiment of the present application provides a method for downloading an application upgrade file, the method comprising:
[0012] receiving an upgrade request message sent when the target application is started, where the upgrade request message carries at least current version information of the target application;
[0013] Based on the current version information of the target application carried in the upgrade request message, and according to a pre-configured upgrade strategy, an upgrade response message including at least one download related information is generated, wherein each download related information corresponds to a functional module to be upgraded in the target application;
[0014] An upgrade response message is returned to the client corresponding to the target application, so that the client corresponding to the target application downloads the upgrade files associated with the corresponding functional modules respectively based on at least one download related information in the upgrade response message.
[0015] In a third aspect, an embodiment of the present application provides a device for downloading an application upgrade file, the device comprising:
[0016] A sending unit, configured to send an upgrade request message to an upgrade server when the target application is started, wherein the upgrade request message carries at least current version information of the target application;
[0017] A first receiving unit is configured to receive an upgrade response message returned by the upgrade server, wherein the upgrade response message includes at least one download-related information, the download-related information is determined by the upgrade server based on current version information and according to a pre-configured upgrade strategy, and each download-related information corresponds to a function module to be upgraded in the target application;
[0018] The downloading unit is used to download the upgrade files associated with the corresponding functional modules respectively based on at least one download related information.
[0019] In a possible implementation, the downloading unit is specifically used for:
[0020] Determine a priority order of a function module to be upgraded corresponding to at least one download related information;
[0021] Download the upgrade files associated with the corresponding functional modules in order of priority.
[0022] In a possible implementation, the downloading unit is specifically used for:
[0023] If any of the at least one download-related information is a first download address of an upgrade file associated with the functional module, then based on the first download address, directly sending a download request for downloading the upgrade file to a first server corresponding to the first download address, and downloading the upgrade file associated with the functional module from the first server;
[0024] If any download-related information in at least one download-related information is the second download address of the configuration file associated with the functional module, based on the second download address, a download request for downloading the configuration file is sent to the second server corresponding to the second download address; and the configuration file returned by the second server is parsed to obtain the first download address of the upgrade file associated with the corresponding functional module; and based on the first download address, a download request for downloading the upgrade file is sent to the first server corresponding to the first download address to download the upgrade file associated with the functional module from the first server.
[0025] In a possible implementation, the downloading unit is further configured to:
[0026] After downloading the upgrade files associated with the corresponding functional modules respectively based on at least one download related information, the obtained upgrade files and the corresponding version information are stored in the designated storage area;
[0027] When the target application is started again, each upgrade file is obtained from the designated storage area, and the corresponding functional modules in the target application are upgraded according to each upgrade file.
[0028] In a fourth aspect, an embodiment of the present application provides a device for downloading an application upgrade file, the device comprising:
[0029] A second receiving module is used to receive an upgrade request message sent when the target application is started, where the upgrade request message carries at least current version information of the target application;
[0030] A generating module, configured to generate, based on the current version information of the target application carried in the upgrade request message and according to a pre-configured upgrade strategy, an upgrade response message including at least one download related information, wherein each download related information corresponds to a function module to be upgraded in the target application;
[0031] The return module is used to return an upgrade response message to the client corresponding to the target application, so that the client corresponding to the target application downloads the upgrade file associated with the corresponding functional module based on at least one download related information in the upgrade response message.
[0032] In a possible implementation, the generation module is specifically used for:
[0033] Traverse the pre-configured upgrade strategies;
[0034] When it is determined that the upgrade policy contains the current version information of the target application, the upgrade version information corresponding to the target application is obtained from the upgrade policy;
[0035] When the function modules recorded in the upgraded version information fail to match the function modules recorded in the current version information, at least one function module recorded in the upgraded version information and failing to match is used as at least one function module to be upgraded;
[0036] Based on the download related information corresponding to each functional module recorded in the upgrade version information configured in the upgrade strategy, obtaining the download related information corresponding to at least one functional module to be upgraded;
[0037] At least one download related information is configured into the upgrade response message.
[0038] In a possible implementation, the generation module is specifically used for:
[0039] According to the priority order of at least one functional module to be upgraded, the download related information corresponding to at least one functional module to be upgraded is configured into the upgrade response message.
[0040] In a fifth aspect, an embodiment of the present application provides a device for downloading application upgrade files, comprising: a memory and a processor, wherein the memory is used to store computer instructions; the processor is used to execute computer instructions to implement a method for downloading application upgrade files provided in an embodiment of the present application.
[0041] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed by a processor, a method for downloading an application upgrade file provided in an embodiment of the present application is implemented.
[0042] The beneficial effects of this application are as follows:
[0043] The present application provides a method, device and storage medium for downloading application upgrade files; in the present application, when the target application is started, an upgrade request message carrying the current version information of the target application is sent to the upgrade server, and the upgrade server receives an upgrade response message including at least one download-related information returned in response to the upgrade request message. The upgrade response message is determined by the upgrade server based on the current version information and according to a pre-configured upgrade strategy. Each download-related information corresponds to a functional module to be upgraded in the target application. Further, based on at least one download-related information, the upgrade files associated with the corresponding functional modules are downloaded respectively. In the present application, when performing an application upgrade, there is no need to download the entire upgrade file corresponding to the target application. Only the upgrade file of the functional module to be upgraded is required, which reduces file downloads and saves resources. In addition, the configuration method of sub-functional modules is adopted to ensure the minimum granularity upgrade of the application and reduce the error rate of the application.
[0044] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0046] Figure 1 A flowchart of a method for application upgrade in the related art;
[0047] Figure 2 A schematic diagram of an application scenario provided for an embodiment of the present application;
[0048] Figure 3 A flowchart of an overall method for downloading application upgrade files provided in an embodiment of the present application;
[0049] Figure 4 A management interface diagram of a configuration upgrade strategy provided in an embodiment of the present application;
[0050] Figure 5 A method for generating an upgrade response message provided in an embodiment of the present application;
[0051] Figure 6 A flowchart of another overall method for downloading application upgrade files provided in an embodiment of the present application;
[0052] Figure 7 A flow chart of a method for restarting a target application provided in an embodiment of the present application;
[0053] Figure 8 A flowchart of a method for downloading application upgrade files provided in an embodiment of the present application;
[0054] Fig. 9 A flowchart of another method for downloading application upgrade files provided in an embodiment of the present application;
[0055] Fig.10 A structural diagram of a device for downloading application upgrade files provided in an embodiment of the present application;
[0056] Fig.11 A structural diagram of another device for downloading application upgrade files provided in an embodiment of the present application;
[0057] Fig.12 A structural diagram of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and beneficial effects of this application clearer, the technical solution in the embodiment of this application will be clearly and completely described below in conjunction with the drawings in the embodiment of this application. Obviously, the described embodiment is only a part of the embodiment of this application, not all the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0059] Some of the terms used in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.
[0060] 1. A functional module is a function corresponding to a function in an application. Taking an instant messaging application as an example, the instant messaging application includes voice communication, video communication, text input, location sharing and other functions. At this time, each function corresponds to a functional module.
[0061] 2. Web application (Webapp) is an application accessed through the Internet. It can also refer to computer software hosted in a browser-supported environment or using a browser-supported language and relying on a web browser for rendering. It is generally run on TVs, TV boxes, and mobile phones.
[0062] 3. The number of grayscale limits refers to the number of grayscale launch limits. In simple terms, grayscale launch means extracting core requirements according to product demand priority, quickly capping the product while meeting basic user requirements, and using product usage through traffic restrictions, whitelists and other mechanisms to collect user opinions, thereby extracting user potential needs and forming more targeted design plans for the future. Obviously, the number of grayscale limits and the number of times the design plan is updated based on user opinions are limited.
[0063] 4. Build is a software name. It is mainly used to distinguish versions of different periods in software release. It is a version mark during compilation. Generally, the serial number is incremented. Therefore, Build is mainly used to identify the version of the software. The Build in the version number indicates the result of the nth compilation of this version, and it is usually followed by a number or date.
[0064] 5. A Globally Unique Identifier (GUID) is an alphanumeric identifier used to indicate a unique installation of an application and is used in many popular software applications, such as web browsers and media players.
[0065] 6. Cloud technology refers to a hosting technology that unifies hardware, software, network and other resources within a wide area network or local area network to achieve data computing, storage, processing and sharing.
[0066] Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool, which can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The backend services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the rapid development and application of the Internet industry, in the future, each item may have its own identification mark, which needs to be transmitted to the backend system for logical processing. Data of different levels will be processed separately. All kinds of industry data need strong system backing support, which can only be achieved through cloud computing.
[0067] The following is a brief introduction to the design concept of the embodiments of the present application.
[0068] Applications are increasingly used in users' lives. An application may contain multiple functions. When any function in the application is updated, a new version of the application needs to be released. That is, the application needs to be upgraded every time a function is updated, so an application may need to be upgraded frequently.
[0069] In the related art, the application upgrade solution usually adopts Figure 1 The method shown. Figure 1 An exemplary method for application upgrade in the related art is provided. Specifically:
[0070] When the application is started, the client corresponding to the application sends an upgrade request message to the upgrade server, where the upgrade request carries application-related information such as the user account and the current version information of the application;
[0071] The upgrade server determines whether the application matches the upgrade policy based on the application related information carried in the upgrade request message;
[0072] After determining that the application hits the upgrade strategy, the upgrade server returns an upgrade response message containing upgrade configuration information to the client corresponding to the application, where the upgrade configuration information includes: version number, download address of the entire upgrade file, verification code of the entire upgrade file, upgrade prompt method and prompt information;
[0073] The client corresponding to the application sends a download request message to the upgrade file download server corresponding to the upgrade file download address in the upgrade response information;
[0074] Among them, in the related art, before the client corresponding to the application sends a download request message to the upgrade file download server corresponding to the upgrade file download address in the upgrade configuration information, it is determined whether it is necessary to prompt the user to upgrade the application version according to the upgrade prompt method and prompt information in the upgrade configuration information;
[0075] If the user needs to be prompted to upgrade the version, after receiving the upgrade instruction triggered by the user, a download request message is sent to the upgrade file download server corresponding to the upgrade file download address in the upgrade response message;
[0076] If there is no need to prompt the user to upgrade the version, a download request message is directly sent to the upgrade file download server corresponding to the upgrade file download address.
[0077] After receiving the download request message, the upgrade file download server returns the latest entire upgrade file corresponding to the upgrade file download address to the client corresponding to the application. The client corresponding to the application verifies the entire upgrade file through the upgrade file verification code in the upgrade response information. After the verification passes, the application is upgraded and installed through the entire upgrade file. After the upgrade and installation is completed, the application is restarted.
[0078] At present, the application upgrade method in the related technology is suitable for upgrading the native application version. Compared with webapp, it has the following disadvantages:
[0079] Long upgrade and installation process: The entire upgrade file of the native application is larger than that of the webapp, and the file needs to be compiled. However, the webapp can be run directly on the static page without compilation.
[0080] Unsafe: In related technologies, when upgrading an application, the entire upgrade file of the application needs to be installed. The more files that are modified online, the greater the possibility of problems, resulting in a higher error rate for the application. This problem is not only for webapps, but also for native apps.
[0081] In view of this, the present application provides a method for downloading application upgrade files, which is applicable to the download of upgrade files during the upgrade process of webapp and native app. In the present application, the configuration strategy of sub-functional modules is mainly adopted, and the sub-functional module configuration ensures the minimum granularity upgrade of the application, and in the version upgrade process, only the upgrade files corresponding to the updated functional modules need to be downloaded, that is, only the upgrade files corresponding to the updated functional modules need to be modified, which avoids the situation where the more file changes, the greater the possibility of problems, that is, the error rate of the application is reduced.
[0082] After introducing the design ideas of the embodiments of the present application, the following briefly introduces the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of the present application and are not limited. In the specific implementation process, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.
[0083] Figure 2 An application scenario diagram of an embodiment of the present application is provided as an example, and the application scenario includes a terminal device 20 and a server 21.
[0084] Among them, various applications are installed and run in the terminal device 20. The terminal device 20 is an electronic device used by the user. The electronic device can be a personal computer, a mobile phone, a tablet computer, a notebook, an e-book reader, etc., which has a certain computing power and runs instant messaging software and websites or social software and websites; the terminal device 20 can also be a television (Television, TV) or a TV box, etc.
[0085] Server 21 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.
[0086] In an optional implementation, the terminal device 20 and the server 21 can communicate via a communication network. The communication network is a wired network or a wireless network. The terminal device 20 is indirectly connected to the server 21 via a wireless access point, or the terminal device 20 is directly connected to the server 21 via the Internet, which is not limited in this application.
[0087] In a possible implementation, the server 21 may include a background management server 211, an upgrade server 212, and an upgrade file download server 213; wherein:
[0088] The backend management server 211 is used to provide an upgrade policy configuration interface and store the configured upgrade policies.
[0089] The background management server 211 is connected to the upgrade server 212 so that the upgrade server 212 obtains the upgrade policy in the background management server 211 from the background management server 211 .
[0090] The upgrade server 212 is specifically used to traverse the upgrade policy according to the upgrade request message sent by the client of the started target application, and determine whether to upgrade the target application; and after determining to upgrade the target application, return an upgrade response message including the upgrade configuration information to the client of the target application;
[0091] The upgrade configuration information includes but is not limited to part or all of the following: download related information of the function module to be upgraded, upgrade file verification code, and prompt text.
[0092] The client of the target application sends a download request to the upgrade file download server 213 according to the download related information in the upgrade configuration information to obtain the upgrade file of the function module to be upgraded.
[0093] It should be noted that the corresponding functions of the background management server 211 , the upgrade server 212 , and the upgrade file download server 213 can be set in at least one server 21 .
[0094] Taking the example of setting the corresponding functions of the backend management server 211, the upgrade server 212 and the upgrade file download server 213 in the same server 21, that is, the functions of the backend management server 211, the upgrade server 212 and the upgrade file download server 213 are realized by one server 21. Of course, they can also be set in different servers 21, and this application does not limit this.
[0095] In a possible implementation, the present application uses cloud computing to provide services for the terminal device 20. Cloud computing is a computing model that distributes computing tasks on a resource pool consisting of a large number of computers, each of which can act as a server, so that various application systems can obtain computing power, storage space and information services as needed. The network that provides resources is called a "cloud". The resources in the "cloud" are infinitely expandable in the eyes of users, and can be obtained at any time, used on demand, expanded at any time, and paid for by use.
[0096] Use cloud storage to store data in the server. Cloud storage is a new concept that extends and develops from the concept of cloud computing. Distributed cloud storage system (hereinafter referred to as storage system) refers to a storage system that uses cluster applications, grid technology, and distributed storage file systems to bring together a large number of different types of storage devices (storage devices are also called storage nodes) in the network through application software or application interfaces to work together and provide external data storage and business access functions.
[0097] At present, the storage method of the storage system is: create a logical volume, and when creating a logical volume, allocate physical storage space for each logical volume. The physical storage space may be composed of disks of a storage device or several storage devices. The client stores data on a logical volume, that is, stores the data on the file system. The file system divides the data into many parts, each of which is an object. The object contains not only data but also additional information such as data identification (ID entity, ID). The file system writes each object into the physical storage space of the logical volume, and the file system records the storage location information of each object, so that when the client requests to access the data, the file system can allow the client to access the data according to the storage location information of each object.
[0098] The process of the storage system allocating physical storage space to a logical volume is as follows: based on the estimated capacity of the objects stored in the logical volume (this estimate often has a large margin relative to the actual capacity of the objects to be stored) and the grouping of the Redundant Array of Independent Disks (RAID), the physical storage space is divided into stripes in advance. A logical volume can be understood as a stripe, thereby allocating physical storage space to the logical volume.
[0099] based on Figure 2 In the application scenario, the method for downloading application upgrade files involved in the embodiment of the present application is illustrated below.
[0100] Please refer to Figure 3 , Figure 3 An exemplary method for downloading an application upgrade file in an embodiment of the present application is provided, which is applicable to downloading application upgrade files during the upgrade process of native apps and webapps. The method includes the following steps:
[0101] Step S300: When the target application is started, the client corresponding to the target application sends an upgrade request message to the upgrade server. The upgrade request message carries relevant information of the target application.
[0102] In a possible implementation, when a user starts a target application, a client corresponding to the target application sends an upgrade request message to an upgrade server to determine whether a current version of the target application needs to be upgraded.
[0103] The upgrade request message carries relevant information of the target application, including: current version information, login account, channel number, GUID, Media Access Control (MAC) and other information of the target application.
[0104] Step S301: After receiving an upgrade request message of a target application, the upgrade server generates an upgrade response message including at least one download-related information based on the relevant information of the target application carried in the upgrade request message and a pre-configured upgrade policy.
[0105] Among them, at least one download related information is one of the upgrade configuration information, which is determined by the upgrade server according to the upgrade strategy, and each download related information corresponds to a functional module to be upgraded in the target application.
[0106] In the present application, the upgrade configuration information includes, in addition to at least one download-related information, also information such as an upgrade file verification code and a prompt text.
[0107] It should be noted that, in a possible implementation, it can also be called generating an upgrade response message including upgrade configuration information based on the relevant information of the target application carried in the upgrade request message and the pre-configured upgrade strategy; wherein the upgrade configuration information includes at least one download-related information, an upgrade file verification code, a prompt text and other information.
[0108] In the present application, the functional module to be upgraded is formed by packaging and splitting the front-end code of the target application according to the various functions and code structure relationships of the target application; at this time, the target application is split into at least one functional module, supporting the upgrade of a single functional module or multiple functional modules, and adopting a functional module configuration to ensure the minimum granularity upgrade, reduce the online release risk and the error rate of the target application.
[0109] In this application, the upgrade strategy is updated or configured through the background management server. Figure 4 An exemplary management interface diagram for configuring an upgrade strategy in an embodiment of the present application is provided. The dimensions supported by the upgrade strategy include but are not limited to some or all of the following:
[0110] Upgrade method, operator, grayscale limit times, target version and corresponding target build, minimum version to be upgraded and corresponding build, maximum version to be upgraded and corresponding build, upgrade date range, region, upgrade file verification code, GUID black and white list, MAC black and white list, and prompt text.
[0111] The target version is the version to which the target application needs to be upgraded;
[0112] The minimum version to be upgraded is used as a criterion for determining whether the target application needs to be upgraded;
[0113] The maximum version to be upgraded is consistent with the minimum version to be upgraded, and both are used as criteria for determining whether the target application needs to be upgraded;
[0114] The minimum version to be upgraded and the maximum version to be upgraded form a version range to be upgraded. When the current version of the target application is within the version range to be upgraded, it indicates that the target application needs to be upgraded.
[0115] In the present application, after receiving the upgrade request message, the upgrade server detects whether the target application needs to be upgraded based on the relevant information of the target application carried in the upgrade request message and the pre-configured upgrade policy, and generates a corresponding response message according to the detection result. Figure 5 A method for an upgrade server to generate an upgrade response message in an embodiment of the present application is exemplarily provided, comprising the following steps:
[0116] Step S500: the upgrade server traverses pre-configured upgrade strategies.
[0117] Step S501, the upgrade server determines whether the upgrade policy contains relevant information of the target application, and if so, executes step S502, otherwise, executes step S503.
[0118] Step S502: The upgrade server determines that the target application needs to be upgraded, and generates an upgrade response message for indicating that the target application needs to be upgraded.
[0119] Take the relevant information of the target application as the current version information of the target application as an example.
[0120] The upgrade server traverses the pre-configured upgrade policies to determine whether the version interval to be upgraded formed by the minimum version to be upgraded and the maximum version to be upgraded in the upgrade policy contains the current version information of the target application. When it is determined that the current version information of the target application is included in the upgrade policy, it is determined that the target application needs to be upgraded, and the upgrade version information corresponding to the target application is searched in the upgrade policy.
[0121] Further, matching the function modules recorded in the upgraded version information with the function modules recorded in the current version information, and when it is determined that the matching fails, taking at least one function module recorded in the upgraded version information and failing to match as at least one function module to be upgraded;
[0122] The matching failure occurs when a certain function module is recorded in the upgrade version information but not in the current version information;
[0123] The function module is recorded in both the upgraded version information and the current version information, but the function module recorded in the upgraded version information is updated relative to the function module recorded in the current version information.
[0124] The download related information corresponding to the function modules to be upgraded is determined from the download related information corresponding to each function module recorded in the upgrade version information configured in the upgrade strategy, and then the download related information corresponding to at least one function module to be upgraded is configured in the upgrade response message.
[0125] In a possible implementation, when configuring the download related information corresponding to at least one functional module to be upgraded in the upgrade response message:
[0126] Since at least one functional module to be upgraded needs to be upgraded, in order to resolve the dependency between the functional modules, it is necessary to determine the priority order of at least one functional module to be upgraded, and according to the priority order of at least one functional module to be upgraded, configure the download-related information corresponding to at least one functional module to be upgraded into the upgrade response message.
[0127] It should be noted that in the present application, the upgrade server can also return at least one functional module to be upgraded and corresponding download-related information in the form of an array. The array specifies the priority order of the functional modules to be upgraded. Therefore, when obtaining the upgrade files of the functional modules to be upgraded, the upgrade files of the functional modules to be upgraded can be loaded preferentially according to the array order.
[0128] In this application, the upgrade file verification code, prompt file and other information configured in the upgrade strategy will also be configured in the upgrade response message.
[0129] Therefore, the upgrade response message generated by the upgrade server carries the upgrade configuration information, and the upgrade configuration information includes at least one download-related information, an upgrade file verification code, a prompt file, and other information.
[0130] Step S503, the upgrade server determines whether the upgrade strategy has been traversed, and if so, executes step S505, otherwise, executes step S500.
[0131] In a possible implementation, the upgrade policy also includes information such as grayscale limit times, login account, GUID, etc. When it is determined that the current version information of the target application is not included, the upgrade policy is continued to be traversed to determine whether the login account, GUID, etc. in the relevant information of the target application is included.
[0132] Step S504: the upgrade server determines that the target application does not need to be upgraded, and generates a response message indicating that the target application is not to be upgraded.
[0133] In the present application, when the upgrade server determines that the target application needs to be upgraded, it generates an upgrade response message for indicating the upgrade of the target application, and carries upgrade configuration information such as download-related information for obtaining at least one functional module to be upgraded in the upgrade response message for indicating the upgrade of the target application;
[0134] The upgrade server returns an upgrade response message indicating the upgrade of the target application to the client corresponding to the target application, that is, returns an upgrade response message including at least one download-related information to the client corresponding to the target application; so that the client corresponding to the target application downloads at least one upgrade file associated with the functional module to be upgraded according to the download-related information, and upgrades the functional module to be upgraded according to the downloaded at least one upgrade file, thereby realizing the upgrade of the target application.
[0135] When the upgrade server determines that the target application needs to be upgraded, it generates a response message for indicating that the target application is not to be upgraded, and then returns the response message to the client corresponding to the target application, so that the target application can be started normally.
[0136] Step S302: The upgrade server returns an upgrade response message including at least one download-related information to the client corresponding to the target application.
[0137] In one possible implementation, after the upgrade server determines that the target application does not need to be upgraded, it will generate a response message indicating that the target application is not to be upgraded. At this time, the upgrade server returns a response message indicating that the target application is not to be upgraded to the client corresponding to the target application, so that the client corresponding to the target application does not perform any processing after receiving the response message and executes the program of the target application normally.
[0138] In the present application, any of the at least one download-related information may be a first download address of an upgrade file associated with a functional module, or may be a second download address of a configuration file associated with the functional module. In the present application, when the download-related information is different, the method of obtaining the upgrade file associated with the functional module to be upgraded is different.
[0139] If any of the at least one download-related information is the first download address of the upgrade file associated with the function module, the client corresponding to the target application executes step S303 when acquiring the upgrade file of the function module to be upgraded according to the download-related information;
[0140] If any of the at least one download related information is the second download address of the configuration file associated with the functional module, the client corresponding to the target application executes step S603 when obtaining the upgrade file of the functional module to be upgraded according to the download related information. Figure 6 The embodiment shown.
[0141] Step S303: the client corresponding to the target application sends a download request for downloading the upgrade file to the first server corresponding to the first download address according to the first download address of the upgrade file associated with the at least one functional module.
[0142] Since any of the at least one download-related information included in the upgrade response message obtained by the client corresponding to the target application is the first download address of the upgrade file associated with the functional module, when the client corresponding to the target application obtains the upgrade file associated with the functional module to be upgraded, the client corresponding to the target application can directly send a download request for the upgrade file to the first server corresponding to the first download address based on the first download address, and download the upgrade file associated with the functional module from the first server.
[0143] In a possible implementation, when sending a download request for downloading the upgrade file to a first server corresponding to the first download address according to the first download address of the upgrade file associated with at least one functional module:
[0144] Determine the priority order of the functional modules to be upgraded corresponding to at least one first download address; after determining the priority order of the functional modules to be upgraded, download the upgrade files associated with the corresponding functional modules according to the priority order, so as to solve the problem of mutual dependence between the upgrade files downloaded by each functional module.
[0145] Step S304: After receiving the download request for downloading the upgrade file, the first server determines the upgrade file associated with the corresponding function module to be upgraded according to the first download address.
[0146] Step S305: the first server returns the upgrade files associated with each functional module to be upgraded to the client corresponding to the target application.
[0147] Step S306: the client corresponding to the target application verifies each upgrade file, and after the verification passes, stores the obtained upgrade files associated with each functional module to be upgraded and the corresponding version information in a designated storage area.
[0148] In this application, after receiving the upgrade file of the functional module to be upgraded, the client corresponding to the target application verifies the upgrade file associated with each functional module to be upgraded according to the upgrade file verification code carried in the upgrade response message;
[0149] After the verification is passed, the obtained upgrade files associated with each functional module to be upgraded and the corresponding information are stored in a designated storage area.
[0150] It should be noted that the designated storage area is local storage (Local Storage).
[0151] Please refer to Figure 6 , Figure 6Another method for downloading application upgrade files in an embodiment of the present application is exemplarily provided, which is applicable to downloading application upgrade files during the upgrade process of native apps and webapps. The method includes the following steps:
[0152] Step S600: When the target application is started, the client corresponding to the target application sends an upgrade request message to the upgrade server. The upgrade request message carries relevant information of the target application.
[0153] Step S601: After receiving an upgrade request message of a target application, the upgrade server generates an upgrade response message including at least one download-related information based on the relevant information of the target application carried in the upgrade request message and a pre-configured upgrade policy.
[0154] Step S602: The upgrade server returns an upgrade response message including at least one download-related information to the client corresponding to the target application.
[0155] It should be noted that the specific implementation of steps S600 to S602 is the same as that of steps S300 to S302. For the specific implementation process, please refer to the description of steps S300 to S302, which will not be repeated here.
[0156] Step S603: the client corresponding to the target application sends a download request for downloading the configuration file to a second server corresponding to the second download address according to the second download address of the configuration file associated with at least one functional module in the at least one download related information.
[0157] Because any of the at least one download-related information included in the upgrade response message obtained by the client corresponding to the target application is the second download address of the configuration file associated with the functional module, and does not include the first download address of the upgrade file associated with the functional module.
[0158] Therefore, when the client corresponding to the target application obtains the upgrade file associated with the function module to be upgraded, it cannot directly obtain the upgrade file of the function module to be upgraded from the first server corresponding to the first download address of the upgrade file.
[0159] At this time, it is necessary to first send a download request for downloading the configuration file to the second server corresponding to the second download address based on the second download address of the configuration file associated with the functional module to be upgraded, so as to obtain the configuration file associated with the functional module to be upgraded;
[0160] Furthermore, after obtaining the configuration file returned by the second server, the client corresponding to the target application parses the configuration file, and based on the first download address of the upgrade file associated with the functional module to be upgraded configured in the configuration file, sends a download request for the upgrade file associated with the functional module to be upgraded to the first server corresponding to the first download address, and downloads the upgrade file associated with the functional module to be upgraded from the first server.
[0161] In a possible implementation, when sending a download request for downloading a configuration file to a second server corresponding to the second download address according to the second download address of the configuration file associated with at least one functional module to be upgraded:
[0162] Determining a priority order of the function modules to be upgraded corresponding to at least one second download address;
[0163] After determining the priority order of the function modules to be upgraded, download the configuration files associated with the corresponding function modules respectively according to the priority order;
[0164] and parsing the configuration file in the order in which the configuration file is downloaded, and obtaining the first download address of the upgrade file associated with the function module to be upgraded configured in the configuration file;
[0165] According to the first download addresses obtained in the parsing order, the upgrade files associated with the corresponding functional modules are downloaded respectively.
[0166] The upgrade files of the functional modules are loaded according to the priority order of the functional modules, so as to solve the problem that the upgrade files of the functional modules downloaded by the functional modules are mutually dependent.
[0167] Step S604: After receiving the download request for downloading the configuration file, the second server determines the configuration file associated with the corresponding function module to be upgraded according to the second download address.
[0168] Step S605: The second server returns configuration files associated with each to-be-upgraded functional module to the client corresponding to the target application.
[0169] Step S606: The client corresponding to the target application parses the configuration files associated with each functional module to be upgraded, and obtains the first download address of the upgrade file associated with the functional module to be upgraded.
[0170] It should be noted that, during the parsing process, the parsing is performed according to the priority order of the functional modules to be upgraded.
[0171] Step S607: the client corresponding to the target application sends a download request for downloading the upgrade file to the first server corresponding to the first download address according to the first download address obtained by parsing.
[0172] Step S608: After receiving the download request for downloading the upgrade file, the first server determines the upgrade file associated with the corresponding function module to be upgraded according to the first download address.
[0173] Step S609: the first server returns the upgrade files associated with each functional module to be upgraded to the client corresponding to the target application.
[0174] Step S610: the client corresponding to the target application verifies each upgrade file, and after the verification passes, stores the obtained upgrade files associated with each functional module to be upgraded and the corresponding version information in a designated storage area.
[0175] It should be noted that, in the present application, the first server and the second server may be the same server, both being upgrade file download servers.
[0176] In the present application, after receiving the upgrade file of the functional module to be upgraded, the client corresponding to the target application verifies the upgrade files associated with each functional module to be upgraded according to the upgrade file verification code carried in the upgrade response message. After the verification passes, the upgrade files associated with each functional module to be upgraded and the corresponding information are stored in the designated storage area.
[0177] It should be noted that the designated storage area is local storage (Local Storage).
[0178] In the present application, after storing the obtained upgrade files and corresponding version information in the designated storage area, when the target application is started again, each upgrade file is obtained from the designated storage area, and the corresponding functional modules in the target application are upgraded according to each upgrade file. Figure 7 A method for restarting a target application in an embodiment of the present application is exemplarily provided.
[0179] from Figure 7 It can be seen that when the target application is started again, the version number of the target application in the local configuration file is obtained and compared with the version number of the target application stored in the specified storage area, where the local configuration file is a file corresponding to the current version information of the target application.
[0180] If the version number of the target application stored in the designated storage area is new, then loading the upgrade file of the function module to be upgraded from the designated storage area;
[0181] If the version number of the target application in the local configuration file is new, the upgrade file of the function module to be upgraded is loaded from the local configuration file.
[0182] In the present application, after obtaining the upgrade file of the functional module to be upgraded, the verified upgrade file is stored in a designated storage area, and the corresponding version number is stored in the designated storage area, so that when the target application is started again, the upgrade file is loaded from the designated storage area to implement the target application upgrade without restarting the application, so that the user is unaware of the target application upgrade, realizing a silent upgrade method and improving the upgrade timeliness.
[0183] Figure 8 An exemplary method for downloading an application upgrade file in an embodiment of the present application is provided, which is applied to a target application and includes the following steps:
[0184] Step S800: When the target application is started, an upgrade request message is sent to an upgrade server, where the upgrade request message carries at least the current version information of the target application;
[0185] Step S801, receiving an upgrade response message returned by the upgrade server, wherein the upgrade response message is determined by the upgrade server based on current version information and according to a pre-configured upgrade policy, and the upgrade response message includes at least one download-related information, each download-related information corresponding to a functional module to be upgraded in the target application;
[0186] Step S802: based on at least one download related information, download the upgrade files associated with the corresponding functional modules respectively.
[0187] In a possible implementation, based on at least one download-related information, downloading upgrade files associated with corresponding functional modules respectively includes:
[0188] Determine a priority order of a function module to be upgraded corresponding to at least one download related information;
[0189] Download the upgrade files associated with the corresponding functional modules in order of priority.
[0190] In a possible implementation, based on at least one download-related information, downloading upgrade files associated with corresponding functional modules respectively includes:
[0191] If any of the at least one download-related information is a first download address of an upgrade file associated with the functional module, then based on the first download address, directly sending a download request for downloading the upgrade file to a first server corresponding to the first download address, and downloading the upgrade file associated with the functional module from the first server;
[0192] If any download-related information in at least one download-related information is the second download address of the configuration file associated with the functional module, based on the second download address, a download request for downloading the configuration file is sent to the second server corresponding to the second download address; and the configuration file returned by the second server is parsed to obtain the first download address of the upgrade file associated with the corresponding functional module; and based on the first download address, a download request for downloading the upgrade file is sent to the first server corresponding to the first download address to download the upgrade file associated with the functional module from the first server.
[0193] In a possible implementation, after downloading the upgrade files associated with the corresponding functional modules respectively based on at least one download related information, the obtained upgrade files and the corresponding version information are stored in a designated storage area;
[0194] When the target application is started again, each upgrade file is obtained from the designated storage area, and the corresponding functional modules in the target application are upgraded according to each upgrade file.
[0195] Fig. 9 Another method for downloading an application upgrade file in an embodiment of the present application is exemplarily provided, which is applied to an upgrade server and includes the following steps:
[0196] Step S900, receiving an upgrade request message sent when the target application is started, the upgrade request message at least carrying current version information of the target application;
[0197] Step S901, based on the current version information of the target application carried in the upgrade request message and according to a pre-configured upgrade strategy, generating an upgrade response message including at least one download related information, wherein each download related information corresponds to a functional module to be upgraded in the target application;
[0198] Step S902: Return an upgrade response message to the target application, so that the target application downloads the upgrade files associated with the corresponding functional modules based on at least one download related information in the upgrade response message.
[0199] In a possible implementation, based on the current version information of the target application carried in the upgrade request message and according to a preconfigured upgrade strategy, an upgrade response message including at least one download related information is generated, including:
[0200] Traverse the pre-configured upgrade strategies;
[0201] When it is determined that the upgrade policy contains the current version information of the target application, the upgrade version information corresponding to the target application is obtained from the upgrade policy;
[0202] When the function modules recorded in the upgraded version information fail to match the function modules recorded in the current version information, at least one function module recorded in the upgraded version information and failing to match is used as at least one function module to be upgraded;
[0203] Based on the download related information corresponding to each functional module recorded in the upgrade version information configured in the upgrade strategy, obtaining the download related information corresponding to at least one functional module to be upgraded;
[0204] At least one download related information is configured into the upgrade response message.
[0205] In a possible implementation, configuring at least one download related information into the upgrade response message includes:
[0206] According to the priority order of at least one functional module to be upgraded, the download related information corresponding to at least one functional module to be upgraded is configured into the upgrade response message.
[0207] Based on the same inventive concept, the embodiment of the present application also provides a device 1000 for downloading application upgrade files, such as Fig.10 As shown, the device 1000 includes:
[0208] The sending unit 1001 is used to send an upgrade request message to the upgrade server when the target application is started, and the upgrade request message carries at least the current version information of the target application;
[0209] The first receiving unit 1002 is configured to receive an upgrade response message returned by the upgrade server, wherein the upgrade response message includes at least one download-related information, the download-related information is determined by the upgrade server based on the current version information and according to a pre-configured upgrade strategy, and each download-related information corresponds to a functional module to be upgraded in the target application;
[0210] The downloading unit 1003 is used to download the upgrade files associated with the corresponding functional modules based on at least one download related information.
[0211] In a possible implementation, the downloading unit 1003 is specifically configured to:
[0212] Determine a priority order of a function module to be upgraded corresponding to at least one download related information;
[0213] Download the upgrade files associated with the corresponding functional modules in order of priority.
[0214] In a possible implementation, the downloading unit 1003 is specifically configured to:
[0215] If any of the at least one download-related information is a first download address of an upgrade file associated with the functional module, then based on the first download address, directly sending a download request for downloading the upgrade file to a first server corresponding to the first download address, and downloading the upgrade file associated with the functional module from the first server;
[0216] If any download-related information in at least one download-related information is the second download address of the configuration file associated with the functional module, based on the second download address, a download request for downloading the configuration file is sent to the second server corresponding to the second download address; and the configuration file returned by the second server is parsed to obtain the first download address of the upgrade file associated with the corresponding functional module; and based on the first download address, a download request for downloading the upgrade file is sent to the first server corresponding to the first download address to download the upgrade file associated with the functional module from the first server.
[0217] In a possible implementation, the downloading unit 1003 is further configured to: after downloading the upgrade files associated with the corresponding functional modules respectively based on at least one download related information, store the obtained upgrade files and the corresponding version information in the designated storage area;
[0218] When the target application is started again, each upgrade file is obtained from the designated storage area, and the corresponding functional modules in the target application are upgraded according to each upgrade file.
[0219] Based on the same inventive concept, the embodiment of the present application also provides a device 1100 for downloading application upgrade files, such as Fig.11 As shown, the device 1100 includes:
[0220] The second receiving module 1101 is used to receive an upgrade request message sent when the target application is started, where the upgrade request message carries at least current version information of the target application;
[0221] A generating module 1102 is configured to generate an upgrade response message including at least one download related information based on the current version information of the target application carried in the upgrade request message and according to a pre-configured upgrade strategy, wherein each download related information corresponds to a function module to be upgraded in the target application;
[0222] The return module 1103 is used to return an upgrade response message to the target application, so that the target application downloads the upgrade files associated with the corresponding functional modules based on at least one download related information in the upgrade response message.
[0223] In a possible implementation, the generating module 1102 is specifically configured to:
[0224] Traverse the pre-configured upgrade strategies;
[0225] When it is determined that the upgrade policy contains the current version information of the target application, the upgrade version information corresponding to the target application is obtained from the upgrade policy;
[0226] When the function modules recorded in the upgraded version information fail to match the function modules recorded in the current version information, at least one function module recorded in the upgraded version information and failing to match is used as at least one function module to be upgraded;
[0227] Based on the download related information corresponding to each functional module recorded in the upgrade version information configured in the upgrade strategy, obtaining the download related information corresponding to at least one functional module to be upgraded;
[0228] At least one download related information is configured into the upgrade response message.
[0229] In a possible implementation, the generating module 1102 is specifically configured to:
[0230] According to the priority order of at least one functional module to be upgraded, the download related information corresponding to at least one functional module to be upgraded is configured into the upgrade response message.
[0231] For the convenience of description, the above parts are divided into units (or modules) according to their functions and described separately. Of course, when implementing this application, the functions of each unit (or module) can be implemented in the same or multiple software or hardware.
[0232] After introducing the method and apparatus for downloading application upgrade files according to an exemplary embodiment of the present application, a computing device for downloading application upgrade files according to another exemplary embodiment of the present application is introduced next.
[0233] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.
[0234] In a possible implementation, the computing device for downloading application upgrade files provided in the embodiment of the present application may include at least a processor and a memory. The memory stores program code, and when the program code is executed by the processor, the processor executes any step in the method for downloading application upgrade files in various exemplary embodiments of the present application.
[0235] Refer to the following Fig.12 1200 for downloading application upgrade files according to this embodiment of the present application is described. Fig.12 The computing device 1200 for downloading application upgrade files is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0236] like Fig.12 As shown, the components of the computing device 1200 may include but are not limited to: the at least one processor 1201 mentioned above, the at least one memory 1202 mentioned above, and a bus 1203 connecting different system components (including the memory 1202 and the processor 1201).
[0237] Bus 1203 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
[0238] The memory 1202 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 12021 and / or a cache memory 12022 , and may further include a read-only memory (ROM) 12023 .
[0239] Memory 1202 may also include a program / utility 12025 having a set (at least one) of program modules 12024, such program modules 12024 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0240] The computing device 1200 may also communicate with one or more external devices 1204 (e.g., keyboards, pointing devices, etc.), one or more devices that enable a user to interact with the computing device 1200, and / or any device that enables the computing device 1200 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1205. Furthermore, the computing device 1200 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 1206. Fig.12 As shown, the network adapter 1206 communicates with other modules for computing device 1200 via bus 1203. It should be understood that although Fig.12 Not shown, other hardware and / or software modules may be used in conjunction with computing device 1200, including but not limited to microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0241] In some possible implementations, various aspects of the method for downloading application upgrade files provided in the present application may also be implemented in the form of a program product, which includes program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of the method for downloading application upgrade files according to various exemplary implementations of the present application described above in this specification.
[0242] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0243] The program product for controlling the sending of short messages according to the embodiment of the present application may be in the form of a portable compact disk read-only memory (CD-ROM) and include program codes, and may be run on a computing device.
[0244] The readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein the readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with a command execution system, apparatus, or device.
[0245] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0246] The program code for performing the operations of the present application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages.
[0247] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.
[0248] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0249] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for downloading application upgrade files, characterized in that: The method comprises: When the target application is started, an upgrade request message is sent to an upgrade server, wherein the upgrade request message carries at least the current version information of the target application; Receive an upgrade response message returned by the upgrade server, wherein the upgrade response message carries at least one function module to be upgraded and corresponding download related information returned by the upgrade server in an array form; the array specifies the priority order of the function modules to be upgraded; the function module to be upgraded is the function module recorded in the upgrade version information corresponding to the target application found in the upgrade strategy and matched with the function module recorded in the current version information after the upgrade server traverses the pre-configured upgrade strategy and determines that the upgrade version interval formed by the minimum version to be upgraded and the maximum version to be upgraded corresponding to the target application in the upgrade strategy contains the current version information, and determines according to the function module that fails to match; Based on at least one download related information, downloading the upgrade files associated with the corresponding function modules to be upgraded respectively in the priority order; Verify each upgrade file, and after the verification passes, store the obtained upgrade files associated with each functional module to be upgraded and the corresponding version information in the designated storage area; When the target application is started again, the upgrade files are obtained from the designated storage area, and corresponding functional modules in the target application are upgraded according to the upgrade files.
2. The method according to claim 1, characterized in that Based on at least one download related information, downloading the upgrade files associated with the corresponding function modules to be upgraded respectively includes: If any of the at least one download-related information is a first download address of an upgrade file associated with the function module to be upgraded, then based on the first download address, directly sending a download request for downloading the upgrade file to a first server corresponding to the first download address, and downloading the upgrade file associated with the function module to be upgraded from the first server; If any of the at least one download-related information is the second download address of the configuration file associated with the functional module to be upgraded, based on the second download address, a download request for downloading the configuration file is sent to the second server corresponding to the second download address; and the configuration file returned by the second server is parsed to obtain the first download address of the upgrade file associated with the corresponding functional module to be upgraded; and based on the first download address, a download request for downloading the upgrade file is sent to the first server corresponding to the first download address, and the upgrade file associated with the functional module to be upgraded is downloaded from the first server.
3. A method for downloading application upgrade files, characterized in that: The method comprises: Receiving an upgrade request message sent when a target application is started, wherein the upgrade request message carries at least current version information of the target application; Based on the current version information of the target application carried in the upgrade request message, an upgrade response message is generated according to a pre-configured upgrade strategy, wherein the upgrade response message carries at least one function module to be upgraded and corresponding download related information returned by the upgrade server in an array form; the array specifies the priority order of the function modules to be upgraded; the function module to be upgraded is the function module recorded in the upgrade version information corresponding to the target application found in the upgrade strategy and the function module recorded in the current version information after the upgrade server traverses the pre-configured upgrade strategy and determines that the range of versions to be upgraded formed by the minimum version to be upgraded and the maximum version to be upgraded corresponding to the target application in the upgrade strategy contains the current version information, and the function module is determined according to the function module that fails to match; Return the upgrade response message to the client corresponding to the target application, so that the client corresponding to the target application downloads the upgrade files associated with the corresponding functional modules to be upgraded according to the priority order based on at least one download related information in the upgrade response message; and enable the client corresponding to the target application to verify each upgrade file, and after the verification, store the obtained upgrade files associated with each functional module to be upgraded and the corresponding version information in a designated storage area; when the target application is started again, obtain the each upgrade file from the designated storage area, and upgrade the corresponding functional modules in the target application according to the each upgrade file.
4. The method according to claim 3, characterized in that The generating an upgrade response message based on the current version information of the target application carried in the upgrade request message and according to a pre-configured upgrade strategy includes: Traverse the pre-configured upgrade strategies; When it is determined that the upgrade policy contains the current version information of the target application, obtaining the upgrade version information corresponding to the target application from the upgrade policy; When the function modules recorded in the upgraded version information fail to match the function modules recorded in the current version information, at least one function module recorded in the upgraded version information and failing to match is used as at least one function module to be upgraded; Based on the download related information corresponding to each functional module recorded in the upgrade version information configured in the upgrade strategy, obtaining the download related information corresponding to the at least one functional module to be upgraded; The at least one download related information is configured into the upgrade response message.
5. The method according to claim 4, characterized in that The configuring the at least one download related information into the upgrade response message includes: According to the priority order of the at least one functional module to be upgraded, the download related information corresponding to the at least one functional module to be upgraded is configured into the upgrade response message.
6. A device for downloading application upgrade files, characterized in that: The device comprises: A sending unit, configured to send an upgrade request message to an upgrade server when the target application is started, wherein the upgrade request message carries at least current version information of the target application; A first receiving unit is used to receive an upgrade response message returned by the upgrade server, wherein the upgrade response message carries at least one function module to be upgraded and corresponding download related information returned by the upgrade server in an array form; the array specifies the priority order of the function modules to be upgraded; the function module to be upgraded is the function module recorded in the upgrade version information corresponding to the target application found in the upgrade strategy and the function module recorded in the current version information after the upgrade server traverses the pre-configured upgrade strategy and determines that the upgrade version interval formed by the minimum version to be upgraded and the maximum version to be upgraded corresponding to the target application in the upgrade strategy contains the current version information, and determines it according to the function module that fails to match; A downloading unit, configured to download the upgrade files associated with the corresponding function modules to be upgraded respectively according to the priority order based on at least one download related information; Wherein, the downloading unit is also used for: Verify each upgrade file, and after the verification passes, store the obtained upgrade files associated with each functional module to be upgraded and the corresponding version information in the designated storage area; When the target application is started again, the upgrade files are obtained from the designated storage area, and corresponding functional modules in the target application are upgraded according to the upgrade files.
7. A device for downloading application upgrade files, characterized in that: The device comprises: A second receiving module, configured to receive an upgrade request message sent when a target application is started, wherein the upgrade request message carries at least current version information of the target application; A generation module, configured to generate an upgrade response message based on the current version information of the target application carried in the upgrade request message and according to a pre-configured upgrade strategy, wherein the upgrade response message carries at least one function module to be upgraded and corresponding download related information returned by the upgrade server in an array form; the array specifies the priority order of the function modules to be upgraded; the function module to be upgraded is the function module recorded in the upgrade version information corresponding to the target application found in the upgrade strategy and the function module recorded in the current version information after the upgrade server traverses the pre-configured upgrade strategy and determines that the upgrade version interval formed by the minimum version to be upgraded and the maximum version to be upgraded corresponding to the target application in the upgrade strategy contains the current version information, and determines it according to the function module that fails to match; A return module is used to return the upgrade response message to the client corresponding to the target application, so that the client corresponding to the target application can download the upgrade files associated with the corresponding functional modules to be upgraded according to the priority order based on at least one download related information in the upgrade response message; and enable the client corresponding to the target application to verify each upgrade file, and after the verification is passed, store the obtained upgrade files associated with each functional module to be upgraded and the corresponding version information in a designated storage area; so that when the target application is started again, the various upgrade files can be obtained from the designated storage area, and the corresponding functional modules in the target application can be upgraded according to the various upgrade files.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1-2 and the method according to any one of claims 3-5 are implemented.
