WO2019201039A1 - Method and system for updating application and application server - Google Patents

Method and system for updating application and application server Download PDF

Info

Publication number
WO2019201039A1
WO2019201039A1 PCT/CN2019/078170 CN2019078170W WO2019201039A1 WO 2019201039 A1 WO2019201039 A1 WO 2019201039A1 CN 2019078170 W CN2019078170 W CN 2019078170W WO 2019201039 A1 WO2019201039 A1 WO 2019201039A1
Authority
WO
WIPO (PCT)
Prior art keywords
update
information
file
terminal
application
Prior art date
Application number
PCT/CN2019/078170
Other languages
French (fr)
Chinese (zh)
Inventor
唐永坚
唐永警
彭双全
Original Assignee
深圳思为科技有限公司
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 深圳思为科技有限公司 filed Critical 深圳思为科技有限公司
Publication of WO2019201039A1 publication Critical patent/WO2019201039A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Definitions

  • the present invention belongs to the field of communications technologies, and in particular, to a method, system, and application server for updating an application.
  • the embodiments of the present invention provide a method, a system, and an application server for updating an application, so as to solve the problem that the application update step in the prior art leads to low update efficiency and high user time cost.
  • a first aspect of the embodiments of the present invention provides a method for updating an application, which is applied to an application server, where the method for updating an application includes:
  • the generated update prompt information is sent to the push server, where the update prompt information is used to instruct the push server to send the update file download address to the first terminal.
  • a second aspect of the embodiments of the present invention provides a system for updating an application, which is applied to an application server, where the system for updating the application includes:
  • the installation information obtaining module is configured to obtain software installation information of the first terminal.
  • the update information obtaining module is configured to obtain update information of the update file corresponding to the software installation information.
  • an update file determining module configured to determine, according to the software installation information and the update information, whether the update file is installed by the first terminal.
  • an update prompt sending module configured to send the update prompt information to the push server if the first terminal does not install the update file, where the update prompt information is used to instruct the push server to send the update file download address to The first terminal.
  • a third aspect of an embodiment of the present invention provides an application server including a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program The steps of the method as described above are implemented.
  • a fourth aspect of an embodiment of the present invention provides a computer readable storage medium storing a computer program that, when executed by a processor, implements the steps of the method as described above.
  • the embodiment of the present invention has the beneficial effects that: the embodiment obtains the update information of the update file corresponding to the software installation information by acquiring the software installation information of the first terminal, and determines the first according to the software installation information and the update information. If an update file is installed in a terminal, if it is determined that the first terminal does not install the update file, the generated update prompt information is sent to the push server, and the update prompt information is used to instruct the push server to send the update file download address to the first terminal.
  • the update file download address is sent to the corresponding first terminal through the push server, and the first terminal may directly download the update file according to the update file.
  • the file is updated to avoid the situation where the first terminal needs to download the update file from the application store after receiving the update message, and the step of updating is reduced, thereby improving the efficiency of the update and reducing the time cost of the user.
  • FIG. 1 is a schematic flowchart of an implementation of a method for updating an application according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of an implementation of a method for updating an application according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a system for updating an application according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an installation information acquiring module of FIG. 3 according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an application server according to an embodiment of the present invention.
  • Figure 1 shows an implementation flow of an update application method provided by an embodiment of the present invention.
  • the process execution subject of the embodiment of the present invention is an application server, and the process is as follows:
  • step S101 software installation information of the first terminal is acquired.
  • the application server is configured to provide business logic for the client to perform data interaction with the client application.
  • the first terminal refers to a client that is installed with an application corresponding to the application server.
  • the application is WeChat
  • the application server is a WeChat server
  • the first terminal is a terminal that installs WeChat.
  • step S102 update information of the update file corresponding to the software installation information is acquired.
  • the software installation information includes an application identification
  • the update information includes the latest version information
  • the latest version information of the update file corresponding to the application identifier is found.
  • the application identifier (Bundle Identifie, Bundle) ID) is the unique identifier of the application.
  • the application and the application ID are uniquely related. When the application is newly created, the application ID cannot be modified.
  • the software installation information includes an application identifier corresponding to the application currently installed by the first terminal, where the application currently installed by the first terminal specifically refers to an application corresponding to the application server, for example, the application server is micro For the Bo server, the application corresponding to the Weibo server is Weibo, and the software installation information includes the application identifier corresponding to the Weibo.
  • the application identifier corresponding to the update file and the software installation information include the same application identifier.
  • step S103 it is determined whether the first terminal has an update file installed based on the software installation information and the update information.
  • the software installation information also includes current version information.
  • step S103 includes:
  • the current version information refers to the current version number of the application
  • the latest version information refers to the latest version number of the application.
  • step S104 if it is determined that the first terminal does not install the update file, the generated update prompt information is sent to the push server, and the update prompt information is used to instruct the push server to send the update file download address to the first terminal.
  • the update prompt information includes the update file download address.
  • the push server is configured to push the message sent by the application server to the corresponding client, that is, the first terminal.
  • the push server can be an Apple server that provides APNS services.
  • the terminal identifier sent by the first terminal is obtained.
  • the first terminal wants to provide the UDID (Unique Device Identifier) and the application identifier of the Apple server that provides the APNS service, and the Apple server encrypts the UDID and the application identifier to obtain the corresponding terminal identifier (Device Token).
  • UDID Unique Device Identifier
  • the Apple server encrypts the UDID and the application identifier to obtain the corresponding terminal identifier (Device Token).
  • the first terminal sends its own terminal identifier to the corresponding application server, and the application server saves the terminal identifier in the cache to improve the speed of subsequent reading of the terminal identifier.
  • the update prompt information is generated according to the preset format and sent to the push server, where the update prompt information includes the terminal identifier and the update file download address, and the push server pushes the update file download address. And corresponding to the first terminal corresponding to the terminal identifier, so that the first terminal can update according to the update file download address.
  • the update file contains the application installation package and sub-resource files.
  • Application installation package can be IPA (iPhone Application, Apple Application File Format) installation package.
  • the sub-resource file is automatically downloaded according to the resource file link address included in the application installation package, so the sub-resource file download address does not need to be sent to the first terminal.
  • the sub-resource file can be automatically downloaded. Therefore, the update file download address only needs to include the sub-resource file download address.
  • the update file download address is sent to the corresponding first terminal through the push server, and the first terminal may download according to the update file.
  • the address directly downloads the update file, avoiding the situation that the first terminal needs to download the update file from the application store after receiving the update message, and reduces the step of updating, thereby improving the efficiency of the update and reducing the time cost of the user.
  • the method for updating an application in the embodiment corresponding to FIG. 2 further includes:
  • step 201 a resource file sent by the second terminal is received.
  • the second terminal is a development terminal
  • the open terminal refers to a terminal device used by an application developer.
  • the resource file can be a picture, a JS (JavaScript) static resource file, and CSS (Cascading Style). Sheets, Cascading Style Sheets) Static resource files, sequence frame resource files, DAE files, SCN files, and more.
  • JS JavaScript
  • CSS CSS
  • step 202 the resource file is decomposed into sub-files of a predetermined size.
  • the resource file size is 300 MB (MByte, megabytes), and the preset size is 1 MB, and the resource file is decomposed into 300 1 MB subfiles.
  • step 203 the subfile is backed up to obtain a backup file.
  • all the subfiles are backed up to obtain a backup file.
  • step 204 the message digest of the subfile is extracted, and the message digest is used as the name of the backup file to obtain the subresource file.
  • the sub-resource file is a backup file whose name is replaced with a message digest.
  • the subfile is used as an input parameter, and a preset hash function is executed to generate a fixed length output, and the output is a message digest of the subfile.
  • the default hash function can be MD5 (Message Digest) Algorithm 5, message digest algorithm fifth edition) algorithm or SHA1 (Secure Hash Algorithm) algorithm.
  • the message digest of the A subfile is extracted by the MD5 algorithm, and the backup file corresponding to the A subfile is the A backup file, and a string of 128 characters is obtained, and the string is used as the A subfile.
  • the name of the A backup file replacing the name with the A backup file of the string as a child resource file.
  • the message digest of the subfile is extracted, and the message digest is used as the name of the backup file corresponding to the subfile, and the name is replaced with the backup file of the message digest as the subresource file, because the generated message digest is unique. Therefore, it is ensured that the name of each sub-resource file is unique, and it is avoided that when the sub-resource file is sent, the sub-resource file is repeatedly sent due to the same sub-resource file name, and the integrity of the sub-resource file is ensured. At the same time, the waste of network resources caused by repeatedly downloading or uploading sub-resource files is avoided because the sub-resource file names are the same.
  • step 205 the child resource file is sent to the storage server.
  • the storage server is configured to store the update file
  • the first terminal may download the update file from the storage server.
  • the storage server may be a CDN (Content Delivery Network, Content Distribution Network) technology server.
  • CDN Content Delivery Network, Content Distribution Network
  • the CDN provides a mechanism for selecting an optimal server according to the connection information of each server, the load status, and the distance of the user when the user requests the sub-resource file or the application installation package, so that the optimal server provides the user with the sub-server.
  • the resource file download service enables users to get the required content nearby, reduce network congestion, and improve user access response speed and hit rate.
  • the storage server to provide a file download service for the user without using the application server to provide a file download service for the user, the burden on the application server is reduced, and the access speed of the user and the download speed of the file are improved.
  • step S205 includes:
  • the sub-resource files are sorted according to the name of the sub-resource file, the sorted sub-resource files are grouped, the sub-resource file set is obtained, and the first sub-resource file included in the sub-resource file set is obtained.
  • the first sub-resource file name is used as the corresponding sub-resource file collection name, thereby ensuring the uniqueness of the sub-resource file collection name, and the sub-resource file collection includes a preset number of sub-resource files.
  • the sorted file is a sub-resource file, b sub-resource file, c sub-resource file and d sub-resource file, and the preset number is 2, that is, one sub-resource file set contains 2 sub-resource files, according to the sub-resource
  • the order of the resource files is grouped into sub-resource files, and the a sub-resource file and the b-sub-resource file are combined into one sub-resource file set, and the sub-resource file set name is A, and the c sub-resource file and the d sub-resource file are Groups a collection of child resource files, and the name of the child resource file collection is C.
  • the sending the different sets of sub-resource files to the corresponding storage server in the preset order includes:
  • the sub-resource file set is sent to the storage server corresponding to the corresponding domain name information according to the order of the sub-resource file set and the sorting of the domain name information.
  • the domain name information refers to a name of a server composed of a series of names separated by dots, and the domain name information list includes domain name information that has been sorted.
  • the domain name information is sequentially selected as the domain name information corresponding to the storage server to be sent by the child resource file set.
  • the domain name information list includes three domain name information, and the order is the first domain name information, the second domain name information, and the third domain name information, and there are two sub-resource file sets, and the sub-resource file sets are arranged in an order.
  • a sub-resource file set and a B-sub-resource file set are respectively arranged, and the sub-resource file set is sorted to the storage server corresponding to the first domain name information according to the sort order of the sub-resource file set and the domain name information, and the B sub-resource file set is sent.
  • the storage server corresponding to the second domain name information.
  • the domain name information corresponding to the sub-resource file is recorded, the file domain name comparison table is generated, and the file domain name comparison table is sent to the second terminal, where the file domain name comparison table is used to indicate that the second terminal includes the application installation package.
  • the link address of the child resource file is replaced with the corresponding domain name information, wherein the link address of the child resource file is the download address of the child resource file.
  • the application installation package includes a link address of the resource file, that is, a download address of the resource file.
  • a link address of the resource file that is, a download address of the resource file.
  • the domain name information is selected by the application server, and the child resource file is sent to the storage server corresponding to the domain name information, thereby reducing the workload of the second terminal, that is, the development terminal.
  • the problem that the application update fails is avoided due to the missing files, for example, if the resources are not The file is updated.
  • the first terminal directly downloads the entire resource file.
  • the entire resource file size is 1000M.
  • the downloaded resource file is not complete and 400M is lost, which may cause the application update to fail.
  • a resource file is broken down into several files, even if a file is lost, it will only cause a page or image to not display properly, and there will be no application update failure.
  • the first terminal by sending the set of the sub-resource files to the storage server corresponding to the different domain name information, the first terminal can simultaneously download the sub-resource files from different storage servers, thereby improving the download speed and reducing the storage server. burden.
  • the method further includes:
  • the developer since there are more than one developer, the developer uses more than one application server, so the second terminal that sends the application installation package and the second terminal that sends the sub-resource file may be the same application server. Can be different application servers.
  • the second terminal sends the application installation package to the application server, and the link address of the resource file included in the application installation package has been replaced with the corresponding domain name information.
  • the application server selects a domain name information from the domain name information list as the target domain name information, and sends the application installation package to the storage server corresponding to the target domain name information, and the first terminal can download the application from the storage server.
  • Program installation package After receiving the application installation package, the application server selects a domain name information from the domain name information list as the target domain name information, and sends the application installation package to the storage server corresponding to the target domain name information, and the first terminal can download the application from the storage server. Program installation package.
  • FIG. 3 shows a system 100 for updating an application provided by an embodiment of the present invention for performing the method steps in the embodiment corresponding to FIG. 1.
  • the system 100 for updating the application is applied to an application server, which includes :
  • the installation information obtaining module 110 is configured to acquire software installation information of the first terminal.
  • the update information obtaining module 120 is configured to obtain update information of the update file corresponding to the software installation information.
  • the update file judging module 130 is configured to judge whether the first terminal installs the update file according to the software installation information and the update information.
  • the update prompt sending module 140 is configured to: if the first terminal does not install the update file, generate the update prompt information and send the update prompt information to the push server, where the update prompt information is used to instruct the push server to send the update file download address to the first terminal.
  • the software installation information includes an application identification
  • the update information includes the latest version information
  • the update information obtaining module 120 is configured to:
  • the software installation information also includes current version information.
  • the update file judging module 130 includes:
  • the version information determining unit is configured to determine whether the current version information is consistent with the latest version information.
  • the first processing unit is configured to determine that the first terminal has installed the update file if the current version information is consistent with the latest version information.
  • the second processing unit is configured to determine that the first terminal does not install the update file if the current version information is inconsistent with the latest version information.
  • the installation information acquiring module 110 in the embodiment corresponding to FIG. 3 includes:
  • the resource file receiving unit 111 is configured to receive the resource file sent by the second terminal.
  • the resource file decomposition unit 112 is configured to decompose the resource file into a plurality of sub-files of a preset size.
  • the file backup unit 113 is configured to back up the subfiles to obtain a backup file.
  • the message digest extraction unit 114 is configured to extract a message digest of the subfile, and use the message digest as the name of the backup file to obtain the sub resource file.
  • the sub-resource file sending unit 115 is configured to send the sub-resource file to the storage server.
  • the sub-resource file sending unit 115 includes:
  • a grouping sub-unit is configured to group a plurality of sub-resource files to obtain a preset number of sub-resource file sets.
  • the file sending subunit is configured to sequentially send different sets of sub resource files to corresponding storage servers in a preset order.
  • the installation information acquiring module 110 further includes:
  • An application installation package obtaining unit is configured to receive an application installation package sent by the second terminal.
  • the application installation package sending unit is configured to send the application installation package to the storage server corresponding to the target domain name information.
  • system 100 for updating an application further includes other functional modules/units for implementing the method steps in the various embodiments of Embodiment 1.
  • FIG. 5 is a schematic diagram of an application server according to an embodiment of the present invention.
  • the application server 5 of this embodiment includes a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and operable on the processor 50.
  • the processor 50 when executing the computer program 52, implements the steps of the various embodiments as described in embodiment 1, such as steps S101 through S104 shown in FIG.
  • the processor 50 executes the computer program 52, the functions of the modules/units in the various system embodiments as described in Embodiment 2 are implemented, such as the functions of the modules 110 to 140 shown in FIG.
  • the computer program 52 can be partitioned into one or more modules/units that are stored in the memory 51 and executed by the processor 50 to complete this invention.
  • the one or more modules/units may be a series of computer program instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer program 52 in the application server 5.
  • the computer program 52 can be divided into an installation information acquisition module, an update information acquisition module, an update file determination module, and an update prompt transmission module. The specific functions of each module are as follows:
  • the parameter setting module is configured to set process parameters and corresponding process parameter numbers, the process parameters include production process parameters and air-burn parameters, and the process parameter numbers include a first process parameter number and a second process parameter number.
  • the installation information obtaining module is configured to obtain software installation information of the first terminal.
  • the update information obtaining module is configured to obtain update information of the update file corresponding to the software installation information.
  • the update file judging module is configured to judge whether the first terminal installs the update file according to the software installation information and the update information.
  • an update prompt sending module configured to send the update prompt information to the push server if the first terminal does not install the update file, and the update prompt information is used to instruct the push server to send the update file download address to the first terminal.
  • the application server 5 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the application server 5 may include, but is not limited to, a processor 50 and a memory 51. It will be understood by those skilled in the art that FIG. 5 is only an example of the application server 5, and does not constitute a limitation of the application server 5, and may include more or less components than those illustrated, or combine some components or different components.
  • the application server may further include an input/output device, a network access device, a bus, and the like.
  • the so-called processor 50 can be a central processing unit (Central Processing Unit, CPU), can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 51 may be an internal storage unit of the application server 5, such as a hard disk or a memory of the application server 5.
  • the memory 51 may also be an external storage device of the application server 5, such as a plug-in hard disk equipped on the application server 5, a smart memory card (SMC), and a secure digital (SD). Card, flash card (Flash Card) and so on.
  • the memory 51 may also include both an internal storage unit of the application server 5 and an external storage device.
  • the memory 51 is used to store the computer program and other programs and data required by the application server.
  • the memory 51 can also be used to temporarily store data that has been output or is about to be output.
  • the embodiment of the present invention further provides a computer readable storage medium storing a computer program.
  • the steps in the embodiments as described in Embodiment 1 are implemented, for example, Steps S101 to S104 shown in Fig. 1.
  • the computer program is executed by the processor to implement the functions of the modules/units in the various system embodiments as described in Embodiment 2, such as the functions of the modules 110 to 140 shown in FIG.
  • the computer program can be stored in a computer readable storage medium, which, when executed by a processor, can implement the steps of the various method embodiments described above.
  • the computer program comprises computer program code, which may be in the form of source code, object code form, executable file or some intermediate form.
  • the computer readable medium can include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard drive, a magnetic disk, an optical disk, a computer memory, a read only memory (ROM, Read-Only) Memory), random access memory (RAM, Random) Access Memory), electrical carrier signals, telecommunications signals, and software distribution media.
  • the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media It does not include electrical carrier signals and telecommunication signals.
  • modules or units in the system of the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
  • the disclosed apparatus/application server and method may be implemented in other manners.
  • the device/application server embodiment described above is merely illustrative.
  • the division of the module or unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units. Or components may be combined or integrated into another system, or some features may be omitted or not performed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.

Abstract

The present invention is applicable to the technical field of communication and provides a method and system for updating an application and an application server. The method comprises: obtaining software installation information of a first terminal, obtaining update information of an update file corresponding to the software installation information, determining whether or not the first terminal is installed with the update file based on the software installation information and the update information, and generating update prompt information and sending the update prompt information to a push server if it is determined that the first terminal is not installed with the update file, wherein the update prompt information is used to instruct the push server to send an update file download address to the first terminal. According to the present invention, by sending the update file download address to the corresponding first terminal through the push server, the first terminal can directly download the update file according to the update file download address, avoiding a situation in which the update file is downloaded from an application store after the first terminal receives an update message, reducing update steps, improving update efficiency, and reducing user time costs.

Description

一种更新应用程序的方法、系统及应用服务器Method, system and application server for updating application 技术领域Technical field
本发明属于通信技术领域,尤其涉及一种更新应用程序的的方法、系统及应用服务器。The present invention belongs to the field of communications technologies, and in particular, to a method, system, and application server for updating an application.
背景技术Background technique
随着社会的发展和进步,移动终端(例如,手机)的普及率越来越高,应用程序(例如,微信)的种类也越来越多。当应用程序需要进行更新时,开发人员需要将更新文件提交到应用商店(例如,App Store),然后提醒用户终端去应用商店进行下载。With the development and progress of society, the popularity of mobile terminals (for example, mobile phones) is increasing, and the types of applications (for example, WeChat) are also increasing. When an application needs to be updated, the developer needs to submit the update file to the app store (for example, App Store), then remind the user terminal to go to the app store to download.
技术问题technical problem
现有技术中存在应用程序更新步骤多导致更新效率低且用户时间成本高的问题。There are many problems in the prior art that the application update step leads to low update efficiency and high user time cost.
技术解决方案Technical solution
有鉴于此,本发明实施例提供了一种识更新应用程序的方法、系统及应用服务器,以解决现有技术中应用程序更新步骤多导致更新效率低且用户时间成本高的问题。In view of this, the embodiments of the present invention provide a method, a system, and an application server for updating an application, so as to solve the problem that the application update step in the prior art leads to low update efficiency and high user time cost.
本发明实施例的第一方面提供了一种更新应用程序的方法,应用于应用服务器,所述更新应用程序的方法包括:A first aspect of the embodiments of the present invention provides a method for updating an application, which is applied to an application server, where the method for updating an application includes:
获取第一终端的软件安装信息。Obtain the software installation information of the first terminal.
获取所述软件安装信息对应的更新文件的更新信息。Obtaining update information of the update file corresponding to the software installation information.
根据所述软件安装信息和所述更新信息判断所述第一终端是否安装有所述更新文件。Determining, according to the software installation information and the update information, whether the update file is installed by the first terminal.
若判定所述第一终端未安装所述更新文件,则生成更新提示信息发送至推送服务器,所述更新提示信息用于指示所述推送服务器将更新文件下载地址发送至所述第一终端。If it is determined that the update file is not installed by the first terminal, the generated update prompt information is sent to the push server, where the update prompt information is used to instruct the push server to send the update file download address to the first terminal.
本发明实施例的第二方面提供了一种更新应用程序的系统,应用于应用服务器,所述更新应用程序的系统包括:A second aspect of the embodiments of the present invention provides a system for updating an application, which is applied to an application server, where the system for updating the application includes:
安装信息获取模块,用于获取第一终端的软件安装信息。The installation information obtaining module is configured to obtain software installation information of the first terminal.
更新信息获取模块,用于获取所述软件安装信息对应的更新文件的更新信息。The update information obtaining module is configured to obtain update information of the update file corresponding to the software installation information.
更新文件判断模块,用于根据所述软件安装信息和所述更新信息判断所述第一终端是否安装有所述更新文件。And an update file determining module, configured to determine, according to the software installation information and the update information, whether the update file is installed by the first terminal.
更新提示发送模块,用于若判定所述第一终端未安装所述更新文件,则生成更新提示信息发送至推送服务器,所述更新提示信息用于指示所述推送服务器将更新文件下载地址发送至所述第一终端。And an update prompt sending module, configured to send the update prompt information to the push server if the first terminal does not install the update file, where the update prompt information is used to instruct the push server to send the update file download address to The first terminal.
本发明实施例的第三方面提供了一种应用服务器,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上所述方法的步骤。A third aspect of an embodiment of the present invention provides an application server including a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program The steps of the method as described above are implemented.
本发明实施例的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上所述方法的步骤。A fourth aspect of an embodiment of the present invention provides a computer readable storage medium storing a computer program that, when executed by a processor, implements the steps of the method as described above.
有益效果Beneficial effect
本发明实施例与现有技术相比存在的有益效果是:本实施例通过获取第一终端的软件安装信息,获取软件安装信息对应的更新文件的更新信息,根据软件安装信息和更新信息判断第一终端是否安装有更新文件,若判定第一终端未安装更新文件,则生成更新提示信息发送至推送服务器,更新提示信息用于指示推送服务器将更新文件下载地址发送至第一终端。本实施例通过判断第一终端是否安装更新文件,若第一终端没有安装更新文件,则将更新文件下载地址通过推送服务器发送到对应的第一终端,第一终端可以根据更新文件下载地址直接下载更新文件,避免出现第一终端在收到更新消息后还需从应用商店进行下载更新文件的情况,减少更新的步骤,从而提高了更新的效率和减少了用户的时间成本。Compared with the prior art, the embodiment of the present invention has the beneficial effects that: the embodiment obtains the update information of the update file corresponding to the software installation information by acquiring the software installation information of the first terminal, and determines the first according to the software installation information and the update information. If an update file is installed in a terminal, if it is determined that the first terminal does not install the update file, the generated update prompt information is sent to the push server, and the update prompt information is used to instruct the push server to send the update file download address to the first terminal. In this embodiment, by determining whether the first terminal installs the update file, if the first terminal does not install the update file, the update file download address is sent to the corresponding first terminal through the push server, and the first terminal may directly download the update file according to the update file. The file is updated to avoid the situation where the first terminal needs to download the update file from the application store after receiving the update message, and the step of updating is reduced, thereby improving the efficiency of the update and reducing the time cost of the user.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments or the description of the prior art will be briefly described below. It is obvious that the drawings in the following description are only the present invention. For some embodiments, other drawings may be obtained from those of ordinary skill in the art in light of the inventive workability.
图1是本发明一个实施例提供的更新应用程序的方法的实现流程示意图;1 is a schematic flowchart of an implementation of a method for updating an application according to an embodiment of the present invention;
图2是本发明一个实施例提供的更新应用程序的方法的实现流程示意图;2 is a schematic flowchart of an implementation of a method for updating an application according to an embodiment of the present invention;
图3是本发明一个实施例提供的更新应用程序的系统的结构示意图;3 is a schematic structural diagram of a system for updating an application according to an embodiment of the present invention;
图4是本发明一个实施例提供的图3中安装信息获取模块的结构示意图;4 is a schematic structural diagram of an installation information acquiring module of FIG. 3 according to an embodiment of the present invention;
图5是本发明一个实施例提供的应用服务器的示意图。FIG. 5 is a schematic diagram of an application server according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本发明实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, for purposes of illustration and description However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the invention.
为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to explain the technical solution described in the present invention, the following description will be made by way of specific embodiments.
实施例Example 11 :
图1示出了本发明的一个实施例提供的更新应用程序方法的实现流程,本发明实施例的流程执行主体是应用服务器,其过程详述如下:Figure 1 shows an implementation flow of an update application method provided by an embodiment of the present invention. The process execution subject of the embodiment of the present invention is an application server, and the process is as follows:
在步骤S101中,获取第一终端的软件安装信息。In step S101, software installation information of the first terminal is acquired.
在本实施例中,应用服务器用于为客户端提供商业逻辑,与客户端应用程序进行数据交互。In this embodiment, the application server is configured to provide business logic for the client to perform data interaction with the client application.
在本实施例中,第一终端是指安装有应用服务器对应的应用程序的客户端,例如,应用程序为微信,应用服务器为微信服务器,第一终端是安装微信的终端。In this embodiment, the first terminal refers to a client that is installed with an application corresponding to the application server. For example, the application is WeChat, the application server is a WeChat server, and the first terminal is a terminal that installs WeChat.
在步骤S102中,获取软件安装信息对应的更新文件的更新信息。In step S102, update information of the update file corresponding to the software installation information is acquired.
在本发明的一个实施例中,软件安装信息包括应用程序标识,更新信息包括最新版本信息。In one embodiment of the invention, the software installation information includes an application identification, and the update information includes the latest version information.
在本发明的一个实施例中,查找应用程序标识对应的更新文件的最新版本信息。In one embodiment of the present invention, the latest version information of the update file corresponding to the application identifier is found.
在本实施例中,应用程序标识(Bundle Identifie,Bundle ID)是应用程序唯一的标识,应用程序与应用程序标识是唯一对应的关系,当应用程序新建成功后,应用程序标识便不能进行修改。In this embodiment, the application identifier (Bundle Identifie, Bundle) ID) is the unique identifier of the application. The application and the application ID are uniquely related. When the application is newly created, the application ID cannot be modified.
在本实施例中,软件安装信息包含第一终端当前安装的应用程序对应的应用程序标识,在这里,第一终端当前安装的应用程序特指应用服务器对应的应用程序,例如,应用服务器为微博服务器,则微博服务器对应的应用程序为微博,软件安装信息包含微博对应的应用程序标识。In this embodiment, the software installation information includes an application identifier corresponding to the application currently installed by the first terminal, where the application currently installed by the first terminal specifically refers to an application corresponding to the application server, for example, the application server is micro For the Bo server, the application corresponding to the Weibo server is Weibo, and the software installation information includes the application identifier corresponding to the Weibo.
在本实施例中,更新文件对应的应用程序标识与软件安装信息包括应用程序标识相同。In this embodiment, the application identifier corresponding to the update file and the software installation information include the same application identifier.
在步骤S103中,根据软件安装信息和更新信息判断第一终端是否安装有更新文件。In step S103, it is determined whether the first terminal has an update file installed based on the software installation information and the update information.
在本发明的一个实施例中,软件安装信息还包括当前版本信息。In one embodiment of the invention, the software installation information also includes current version information.
在本发明的一个实施例中,步骤S103包括:In an embodiment of the present invention, step S103 includes:
1)判断当前版本信息与最新版本信息是否一致。1) Determine whether the current version information is consistent with the latest version information.
2)若当前版本信息与最新版本信息一致,则判定第一终端已安装更新文件。2) If the current version information is consistent with the latest version information, it is determined that the first terminal has installed the update file.
3)若当前版本信息与最新版本信息不一致,则判定第一终端未安装更新文件。3) If the current version information does not match the latest version information, it is determined that the first terminal does not install the update file.
在本实施例中,当前版本信息是指应用程序的当前版本号,最新版本信息是指应用程序的最新版本号。In this embodiment, the current version information refers to the current version number of the application, and the latest version information refers to the latest version number of the application.
在本实施例中,判断第一终端安装的应用程序的当前版本号是否与最新版本号一致,若当前版本号与最新版本号一致,则表示第一终端安装的应用程序是最新版本的,无需进行更新,若当前版本号与最新版本号不一致,则表示第一终端安装的应用程序不是最新版本的,需要进行更新。In this embodiment, it is determined whether the current version number of the application installed by the first terminal is consistent with the latest version number. If the current version number is consistent with the latest version number, it indicates that the application installed by the first terminal is the latest version, and If the current version number does not match the latest version number, it means that the application installed on the first terminal is not the latest version and needs to be updated.
在步骤S104中,若判定第一终端未安装更新文件,则生成更新提示信息发送至推送服务器,更新提示信息用于指示推送服务器将更新文件下载地址发送至第一终端。In step S104, if it is determined that the first terminal does not install the update file, the generated update prompt information is sent to the push server, and the update prompt information is used to instruct the push server to send the update file download address to the first terminal.
在本实施例中,所述更新提示信息包括所述更新文件下载地址。推送服务器用于将应用服务器发送的消息推送到对应的客户端,即,第一终端。推送服务器可以是提供APNS服务的苹果服务器。In this embodiment, the update prompt information includes the update file download address. The push server is configured to push the message sent by the application server to the corresponding client, that is, the first terminal. The push server can be an Apple server that provides APNS services.
在本实施例中,若判定第一终端安装有更新文件,则无需进行更新,以使第一终端进行更新。In this embodiment, if it is determined that the first terminal is installed with the update file, no update is needed to enable the first terminal to update.
在一个实施例中,获取第一终端发送的终端标识。In an embodiment, the terminal identifier sent by the first terminal is obtained.
在本实施例中,第一终端想提供APNS服务的苹果服务器发送UDID(Unique Device Identifier,设备唯一识别符)和应用程序标识,苹果服务器对UDID和应用程序标识进行加密得到对应的终端标识(Device Token)。In this embodiment, the first terminal wants to provide the UDID (Unique Device Identifier) and the application identifier of the Apple server that provides the APNS service, and the Apple server encrypts the UDID and the application identifier to obtain the corresponding terminal identifier (Device Token).
在本实施例中,第一终端将自己的终端标识发送至对应的应用服务器,应用服务器将终端标识保存在缓存中,以提高后续读取终端标识的速度。In this embodiment, the first terminal sends its own terminal identifier to the corresponding application server, and the application server saves the terminal identifier in the cache to improve the speed of subsequent reading of the terminal identifier.
在一个实施例中,当判断第一终端需要进行更新时,则按照预设格式生成更新提示信息发送至推送服务器,更新提示信息包括终端标识和更新文件下载地址,推送服务器将更新文件下载地址推送到终端标识对应的第一终端,以使第一终端可以根据更新文件下载地址进行更新。In an embodiment, when it is determined that the first terminal needs to be updated, the update prompt information is generated according to the preset format and sent to the push server, where the update prompt information includes the terminal identifier and the update file download address, and the push server pushes the update file download address. And corresponding to the first terminal corresponding to the terminal identifier, so that the first terminal can update according to the update file download address.
其中,更新文件包含应用程序安装包和子资源文件。Among them, the update file contains the application installation package and sub-resource files.
应用程序安装包可以为IPA(iPhone Application,苹果应用程序文件格式)安装包。Application installation package can be IPA (iPhone Application, Apple Application File Format) installation package.
在本实施例中,当第一终端安装应用程序安装包成功后,会自动根据应用程序安装包包含的资源文件链接地址进行下载子资源文件,所以无需将子资源文件下载地址发送到第一终端,当应用程序安装包安装成功后,便可自动进行下载子资源文件,因此,更新文件下载地址只需包含子资源文件下载地址。In this embodiment, after the first terminal installs the application installation package successfully, the sub-resource file is automatically downloaded according to the resource file link address included in the application installation package, so the sub-resource file download address does not need to be sent to the first terminal. When the application installation package is successfully installed, the sub-resource file can be automatically downloaded. Therefore, the update file download address only needs to include the sub-resource file download address.
在本实施例中,通过判断第一终端是否安装更新文件,若第一终端没有安装更新文件,则将更新文件下载地址通过推送服务器发送到对应的第一终端,第一终端可以根据更新文件下载地址直接下载更新文件,避免出现第一终端在收到更新消息后还需从应用商店进行下载更新文件的情况,减少更新的步骤,从而提高了更新的效率和减少了用户的时间成本。In this embodiment, by determining whether the first terminal installs the update file, if the first terminal does not install the update file, the update file download address is sent to the corresponding first terminal through the push server, and the first terminal may download according to the update file. The address directly downloads the update file, avoiding the situation that the first terminal needs to download the update file from the application store after receiving the update message, and reduces the step of updating, thereby improving the efficiency of the update and reducing the time cost of the user.
如图2所示,在本发明的一个实施例中,图2所对应的实施例中的更新应用程序的方法还包括:As shown in FIG. 2, in an embodiment of the present invention, the method for updating an application in the embodiment corresponding to FIG. 2 further includes:
在步骤201中,接收第二终端发送的资源文件。In step 201, a resource file sent by the second terminal is received.
在本实施例中,第二终端为开发终端,开放终端是指开发应用程序人员使用的终端设备。In this embodiment, the second terminal is a development terminal, and the open terminal refers to a terminal device used by an application developer.
在本实施例中,资源文件可以为图片、JS(JavaScript)静态资源文件和CSS(Cascading Style Sheets,层叠样式表)静态资源文件、序列帧资源文件、DAE文件和SCN文件等等。In this embodiment, the resource file can be a picture, a JS (JavaScript) static resource file, and CSS (Cascading Style). Sheets, Cascading Style Sheets) Static resource files, sequence frame resource files, DAE files, SCN files, and more.
在步骤202中,将资源文件分解成若干预设大小的子文件。In step 202, the resource file is decomposed into sub-files of a predetermined size.
以一个具体应用场景为例,资源文件大小为300MB(MByte,兆),预设大小为1MB,则将资源文件分解成300个1MB的子文件。Taking a specific application scenario as an example, the resource file size is 300 MB (MByte, megabytes), and the preset size is 1 MB, and the resource file is decomposed into 300 1 MB subfiles.
在步骤203中,将子文件备份,得到备份文件。In step 203, the subfile is backed up to obtain a backup file.
在本实施例中,将全部的子文件进行备份,得到备份文件。In this embodiment, all the subfiles are backed up to obtain a backup file.
在步骤204中,提取子文件的消息摘要,并将消息摘要作为备份文件的名称,得到子资源文件。In step 204, the message digest of the subfile is extracted, and the message digest is used as the name of the backup file to obtain the subresource file.
在本实施例中,子资源文件为名称替换为消息摘要(Message Digest)的备份文件。In this embodiment, the sub-resource file is a backup file whose name is replaced with a message digest.
在本实施例中,将子文件作为输入参数,运行预设的散列(Hash)函数,生成固定长度的输出,这个输出就是该子文件的消息摘要。In this embodiment, the subfile is used as an input parameter, and a preset hash function is executed to generate a fixed length output, and the output is a message digest of the subfile.
其中,预设的散列函数可以为MD5(Message Digest Algorithm 5,消息摘要算法第五版)算法或SHA1(Secure Hash Algorithm,安全哈希算法)算法。Among them, the default hash function can be MD5 (Message Digest) Algorithm 5, message digest algorithm fifth edition) algorithm or SHA1 (Secure Hash Algorithm) algorithm.
以一个具体应用场景为例,通过MD5算法提取A子文件的消息摘要,,A子文件对应的备份文件为A备份文件,得到一个长度为128位字符串,将该字符串作为A子文件对应的A备份文件的名称,将名称替换为该字符串的A备份文件作为一个子资源文件。Taking a specific application scenario as an example, the message digest of the A subfile is extracted by the MD5 algorithm, and the backup file corresponding to the A subfile is the A backup file, and a string of 128 characters is obtained, and the string is used as the A subfile. The name of the A backup file, replacing the name with the A backup file of the string as a child resource file.
在本实施例中,通过提取子文件的消息摘要,并将消息摘要作为子文件对应的备份文件的名称,并将名称替换为消息摘要的备份文件作为子资源文件,由于生成的消息摘要是唯一的,因此,保证了每个子资源文件的名称是唯一的,避免出现在发送子资源文件时,由于子资源文件名称相同而导致重复发送子资源文件的情况,保证了子资源文件的完整性,同时有效避免了由于子资源文件名称相同,重复下载或上传子资源文件造成的网络资源的浪费。In this embodiment, the message digest of the subfile is extracted, and the message digest is used as the name of the backup file corresponding to the subfile, and the name is replaced with the backup file of the message digest as the subresource file, because the generated message digest is unique. Therefore, it is ensured that the name of each sub-resource file is unique, and it is avoided that when the sub-resource file is sent, the sub-resource file is repeatedly sent due to the same sub-resource file name, and the integrity of the sub-resource file is ensured. At the same time, the waste of network resources caused by repeatedly downloading or uploading sub-resource files is avoided because the sub-resource file names are the same.
在步骤205中,将子资源文件发送至存储服务器。In step 205, the child resource file is sent to the storage server.
在本实施例中,存储服务器用于存储更新文件,第一终端可以从存储服务器下载更新文件。In this embodiment, the storage server is configured to store the update file, and the first terminal may download the update file from the storage server.
在本实施例中,存储服务器可以是采用CDN(Content Delivery Network,内容分发网络)技术的服务器。In this embodiment, the storage server may be a CDN (Content Delivery Network, Content Distribution Network) technology server.
其中,CDN提供一种机制,当用户请求子资源文件或应用程序安装包时,根据各服务器的连接、负载状况、用户的距离等综合信息选出最优服务器,使最优服务器为用户提供子资源文件下载服务,从而使用户就近获取所需内容,降低网络拥塞,提高用户访问响应速度和命中率。The CDN provides a mechanism for selecting an optimal server according to the connection information of each server, the load status, and the distance of the user when the user requests the sub-resource file or the application installation package, so that the optimal server provides the user with the sub-server. The resource file download service enables users to get the required content nearby, reduce network congestion, and improve user access response speed and hit rate.
在本实施例中,通过使用存储服务器为用户提供文件下载服务,而没有使用应用服务器为用户提供文件下载服务,减轻了应用服务器的负担,提高了用户的访问速度和文件的下载速度。In this embodiment, by using the storage server to provide a file download service for the user without using the application server to provide a file download service for the user, the burden on the application server is reduced, and the access speed of the user and the download speed of the file are improved.
在本发明的一个实施例中,步骤S205包括:In an embodiment of the present invention, step S205 includes:
1)对若干的子资源文件进行分组,得到预设数量的子资源文件集合。1) Grouping a number of sub-resource files to obtain a preset number of sub-resource file sets.
2)按照预设顺序依次将不同的子资源文件集合分别发送至对应的存储服务器。2) sequentially send different sets of sub-resource files to the corresponding storage servers in a preset order.
在本实施例中,按照子资源文件的名称对子资源文件进行排序,将进行排序后的子资源文件进行分组,得到子资源文件集合,获取子资源文件集合中包含的第一个子资源文件名称,将第一个子资源文件名称作为对应的子资源文件集合名称,从而保证了子资源文件集合名称的唯一性,子资源文件集合中包含预设数量的子资源文件。In this embodiment, the sub-resource files are sorted according to the name of the sub-resource file, the sorted sub-resource files are grouped, the sub-resource file set is obtained, and the first sub-resource file included in the sub-resource file set is obtained. Name, the first sub-resource file name is used as the corresponding sub-resource file collection name, thereby ensuring the uniqueness of the sub-resource file collection name, and the sub-resource file collection includes a preset number of sub-resource files.
以一个具体应用场景为例,一共有b子资源文件,a子资源文件,c子资源文件和d子资源文件,且它们的名称分别为A,B,C,D,按照名称对子资源文件进行排序后,则排序后文件为a子资源文件,b子资源文件,c子资源文件和d子资源文件,预设数量为2,即一个子资源文件集合中包含2个子资源文件,按照子资源文件的排列顺序对子资源文件进行分组,将a子资源文件和b子资源文件组合成一个子资源文件集合,且该子资源文件集合名称为A,将c子资源文件和d子资源文件组合成一个子资源文件集合,且该子资源文件集合名称为C。Take a specific application scenario as an example. There are a total of b sub-resource files, a sub-resource files, c sub-resource files, and d sub-resource files, and their names are A, B, C, and D, respectively. After sorting, the sorted file is a sub-resource file, b sub-resource file, c sub-resource file and d sub-resource file, and the preset number is 2, that is, one sub-resource file set contains 2 sub-resource files, according to the sub-resource The order of the resource files is grouped into sub-resource files, and the a sub-resource file and the b-sub-resource file are combined into one sub-resource file set, and the sub-resource file set name is A, and the c sub-resource file and the d sub-resource file are Groups a collection of child resource files, and the name of the child resource file collection is C.
在一个实施例中,所述按照预设顺序依次将不同的子资源文件集合分别发送至对应的存储服务器具体包括:In an embodiment, the sending the different sets of sub-resource files to the corresponding storage server in the preset order includes:
1)按照子资源文件集合名称对子资源文件集合进行排序,得到子资源文件集合的排列顺序。1) Sort the sub-resource file collection according to the sub-resource file collection name, and obtain the order of the sub-resource file collection.
2)获取域名信息列表,域名信息列表包含已经进行排序的域名信息;2) Obtain a domain name information list, and the domain name information list includes domain name information that has been sorted;
3)按照子资源文件集合的排列顺序和域名信息的排序分别发送子资源文件集合至对应的域名信息对应的存储服务器。3) The sub-resource file set is sent to the storage server corresponding to the corresponding domain name information according to the order of the sub-resource file set and the sorting of the domain name information.
在本实施例中,域名信息时是指由一串用点分隔的名字组成的服务器的名称,域名信息列表包含已经进行排序的域名信息。In this embodiment, the domain name information refers to a name of a server composed of a series of names separated by dots, and the domain name information list includes domain name information that has been sorted.
在本实施例中,按照域名信息的排序,依次选取域名信息作为子资源文件集合要发送的存储服务器对应的域名信息。In this embodiment, according to the sorting of the domain name information, the domain name information is sequentially selected as the domain name information corresponding to the storage server to be sent by the child resource file set.
以一个具体应用场景为例,域名信息列表中包含3个域名信息,排序分别是第一域名信息,第二域名信息和第三域名信息,有两个子资源文件集合,子资源文件集合的排列顺序分别为A子资源文件集合和B子资源文件集合,按照子资源文件集合的排列顺序和域名信息的排序分别发生A子资源文件集合到第一域名信息对应的存储服务器,发送B子资源文件集合到第二域名信息对应的存储服务器。Taking a specific application scenario as an example, the domain name information list includes three domain name information, and the order is the first domain name information, the second domain name information, and the third domain name information, and there are two sub-resource file sets, and the sub-resource file sets are arranged in an order. A sub-resource file set and a B-sub-resource file set are respectively arranged, and the sub-resource file set is sorted to the storage server corresponding to the first domain name information according to the sort order of the sub-resource file set and the domain name information, and the B sub-resource file set is sent. The storage server corresponding to the second domain name information.
在一个实施例中,记录子资源文件对应的域名信息,生成文件域名对照表,并将文件域名对照表发送给第二终端,文件域名对照表用于指示第二终端将应用程序安装包中包含子资源文件的链接地址替换为对应的域名信息,其中,子子资源文件的链接地址为子资源文件的下载地址。In an embodiment, the domain name information corresponding to the sub-resource file is recorded, the file domain name comparison table is generated, and the file domain name comparison table is sent to the second terminal, where the file domain name comparison table is used to indicate that the second terminal includes the application installation package. The link address of the child resource file is replaced with the corresponding domain name information, wherein the link address of the child resource file is the download address of the child resource file.
在本实施例中,应用程序安装包包含资源文件的链接地址,即,资源文件的下载地址,当应用程序安装包在第一终端安装成功后,会自动根据子资源文件的链接地址下载所需要的资源文件,当子资源文件的链接地址改变后,需要将应用程序安装包包含的子资源文件的链接地址替换为改变后的链接地址,生成新的应用程序安装包,否则,应用程序可能无法达到预期运行效果,例如,无法显示某张图片。In this embodiment, the application installation package includes a link address of the resource file, that is, a download address of the resource file. When the application installation package is successfully installed on the first terminal, it is automatically downloaded according to the link address of the sub-resource file. Resource file, when the link address of the sub-resource file is changed, you need to replace the link address of the sub-resource file included in the application installation package with the changed link address to generate a new application installation package. Otherwise, the application may not be able to. The desired performance is achieved, for example, an image cannot be displayed.
在本实施例中,通过应用服务器进行选择域名信息,并将子资源文件发送至域名信息对应的存储服务器,减少了第二终端,即开发终端的工作量。In this embodiment, the domain name information is selected by the application server, and the child resource file is sent to the storage server corresponding to the domain name information, thereby reducing the workload of the second terminal, that is, the development terminal.
在本实施例中,通过将资源文件进行分解成若干个较小的文件,并根据分解后的文件得到子资源文件,避免出现丢失文件而导致应用程序更新失败的问题,例如,若不将资源文件进行更新,第一终端直接下载是整个资源文件,整个资源文件大小为1000M,但由于网络传输出现问题,下载的资源文件不是完整的,且丢失了400M,可能会导致应用程序更新失败,而当资源文件进行分解成若干个文件后,即使丢失了某个文件,也只会导致某个页面或图片无法正常显示,而不会出现应用程序更新失败的问题。In this embodiment, by decomposing the resource file into a plurality of smaller files and obtaining the sub-resource files according to the decomposed files, the problem that the application update fails is avoided due to the missing files, for example, if the resources are not The file is updated. The first terminal directly downloads the entire resource file. The entire resource file size is 1000M. However, due to network transmission problems, the downloaded resource file is not complete and 400M is lost, which may cause the application update to fail. When a resource file is broken down into several files, even if a file is lost, it will only cause a page or image to not display properly, and there will be no application update failure.
在本实施例中,通过将子资源文件集合发送到不同的域名信息对应的存储服务器,第一终端可以同时从不同的存储服务器进行下载子资源文件,提高了下载速度,并减轻了存储服务器的负担。In this embodiment, by sending the set of the sub-resource files to the storage server corresponding to the different domain name information, the first terminal can simultaneously download the sub-resource files from different storage servers, thereby improving the download speed and reducing the storage server. burden.
在步骤S101之前,还包括:Before step S101, the method further includes:
1)接收第二终端发送的应用程序安装包;1) receiving an application installation package sent by the second terminal;
2)将应用程序安装包发送至目标域名信息对应的存储服务器。2) Send the application installation package to the storage server corresponding to the target domain name information.
在本实施例中,由于开发人员不止一个,开发人员使用的应用服务器也不止一台,因此发送应用程序安装包的第二终端和发送子资源文件的第二终端可以是同一台应用服务器,也可以是不同的应用服务器。In this embodiment, since there are more than one developer, the developer uses more than one application server, so the second terminal that sends the application installation package and the second terminal that sends the sub-resource file may be the same application server. Can be different application servers.
在本实施例中,第二终端将应用程序安装包发送给应用服务器,该应用程序安装包包含的资源文件的链接地址已经替换为对应的域名信息。应用服务器接收到应用程序安装包后,从域名信息列表中选取一个域名信息作为目标域名信息,将应用程序安装包发送给目标域名信息对应的存储服务器,第一终端可以从该存储服务器进行下载应用程序安装包。In this embodiment, the second terminal sends the application installation package to the application server, and the link address of the resource file included in the application installation package has been replaced with the corresponding domain name information. After receiving the application installation package, the application server selects a domain name information from the domain name information list as the target domain name information, and sends the application installation package to the storage server corresponding to the target domain name information, and the first terminal can download the application from the storage server. Program installation package.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the size of the sequence of the steps in the above embodiments does not imply a sequence of executions, and the order of execution of the processes should be determined by its function and internal logic, and should not be construed as limiting the implementation of the embodiments of the present invention.
实施例Example 22 :
图3示出了本发明的一个实施例提供的更新应用程序的系统100,用于执行图1所对应的实施例中的方法步骤,所述更新应用程序的系统100应用于应用服务器,其包括:FIG. 3 shows a system 100 for updating an application provided by an embodiment of the present invention for performing the method steps in the embodiment corresponding to FIG. 1. The system 100 for updating the application is applied to an application server, which includes :
安装信息获取模块110,用于获取第一终端的软件安装信息。The installation information obtaining module 110 is configured to acquire software installation information of the first terminal.
更新信息获取模块120,用于获取软件安装信息对应的更新文件的更新信息。The update information obtaining module 120 is configured to obtain update information of the update file corresponding to the software installation information.
更新文件判断模块130,用于根据软件安装信息和更新信息判断第一终端是否安装有更新文件。The update file judging module 130 is configured to judge whether the first terminal installs the update file according to the software installation information and the update information.
更新提示发送模块140,用于若判定第一终端未安装更新文件,则生成更新提示信息发送至推送服务器,更新提示信息用于指示推送服务器将更新文件下载地址发送至第一终端。The update prompt sending module 140 is configured to: if the first terminal does not install the update file, generate the update prompt information and send the update prompt information to the push server, where the update prompt information is used to instruct the push server to send the update file download address to the first terminal.
在本发明的一个实施例中,软件安装信息包括应用程序标识,更新信息包括最新版本信息。In one embodiment of the invention, the software installation information includes an application identification, and the update information includes the latest version information.
在本发明的一个实施例中,更新信息获取模块120用于:In an embodiment of the present invention, the update information obtaining module 120 is configured to:
查找应用程序标识对应的更新文件的最新版本信息。Find the latest version information of the update file corresponding to the application ID.
在本发明的一个实施例中,软件安装信息还包括当前版本信息。In one embodiment of the invention, the software installation information also includes current version information.
在本发明的一个实施例中,更新文件判断模块130包括:In an embodiment of the present invention, the update file judging module 130 includes:
版本信息判断单元,用于判断当前版本信息与最新版本信息是否一致。The version information determining unit is configured to determine whether the current version information is consistent with the latest version information.
第一处理单元,用于若当前版本信息与最新版本信息一致,则判定第一终端已安装更新文件。The first processing unit is configured to determine that the first terminal has installed the update file if the current version information is consistent with the latest version information.
第二处理单元,用于若当前版本信息与最新版本信息不一致,则判定第一终端未安装更新文件。The second processing unit is configured to determine that the first terminal does not install the update file if the current version information is inconsistent with the latest version information.
如图4所示,在本发明的一个实施例中,图3所对应的实施例中安装信息获取模块110包括:As shown in FIG. 4, in an embodiment of the present invention, the installation information acquiring module 110 in the embodiment corresponding to FIG. 3 includes:
资源文件接收单元111,用于接收第二终端发送的资源文件。The resource file receiving unit 111 is configured to receive the resource file sent by the second terminal.
资源文件分解单元112,用于将资源文件分解成若干预设大小的子文件。The resource file decomposition unit 112 is configured to decompose the resource file into a plurality of sub-files of a preset size.
文件备份单元113,用于将子文件备份,得到备份文件。The file backup unit 113 is configured to back up the subfiles to obtain a backup file.
消息摘要提取单元114,用于提取子文件的消息摘要,并将消息摘要作为备份文件的名称,得到子资源文件。The message digest extraction unit 114 is configured to extract a message digest of the subfile, and use the message digest as the name of the backup file to obtain the sub resource file.
子资源文件发送单元115,用于将所述子资源文件发送至存储服务器。The sub-resource file sending unit 115 is configured to send the sub-resource file to the storage server.
在本发明的一个实施例中,子资源文件发送单元115包括:In an embodiment of the present invention, the sub-resource file sending unit 115 includes:
分组子单元,用于对若干的子资源文件进行分组,得到预设数量的子资源文件集合。A grouping sub-unit is configured to group a plurality of sub-resource files to obtain a preset number of sub-resource file sets.
文件发送子单元,用于按照预设顺序依次将不同的子资源文件集合分别发送至对应的存储服务器。The file sending subunit is configured to sequentially send different sets of sub resource files to corresponding storage servers in a preset order.
在本发明的一个实施例中,安装信息获取模块110还包括:In an embodiment of the present invention, the installation information acquiring module 110 further includes:
应用程序安装包获取单元,用于接收第二终端发送的应用程序安装包。An application installation package obtaining unit is configured to receive an application installation package sent by the second terminal.
应用程序安装包发送单元,用于将应用程序安装包发送至目标域名信息对应的存储服务器。The application installation package sending unit is configured to send the application installation package to the storage server corresponding to the target domain name information.
在一个实施例中,更新应用程序的系统100还包括其他功能模块/单元,用于实现实施例1中各实施例中的方法步骤。In one embodiment, the system 100 for updating an application further includes other functional modules/units for implementing the method steps in the various embodiments of Embodiment 1.
实施例Example 33 :
图5是本发明一实施例提供的应用服务器的示意图。如图5所示,该实施例的应用服务器5包括:处理器50、存储器51以及存储在所述存储器51中并可在所述处理器50上运行的计算机程序52。所述处理器50执行所述计算机程序52时实现如实施例1中所述的各实施例的步骤,例如图1所示的步骤S101至步骤S104。或者,所述处理器50执行所述计算机程序52时实现如实施例2中所述的各系统实施例中的各模块/单元的功能,例如图3所示模块110至140的功能。FIG. 5 is a schematic diagram of an application server according to an embodiment of the present invention. As shown in FIG. 5, the application server 5 of this embodiment includes a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and operable on the processor 50. The processor 50, when executing the computer program 52, implements the steps of the various embodiments as described in embodiment 1, such as steps S101 through S104 shown in FIG. Alternatively, when the processor 50 executes the computer program 52, the functions of the modules/units in the various system embodiments as described in Embodiment 2 are implemented, such as the functions of the modules 110 to 140 shown in FIG.
示例性的,所述计算机程序52可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器51中,并由所述处理器50执行,以完成本发明。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序52在所述应用服务器5中的执行过程。例如,所述计算机程序52可以被分割成安装信息获取模块、更新信息获取模块、更新文件判断模块和更新提示发送模块。各模块具体功能如下:Illustratively, the computer program 52 can be partitioned into one or more modules/units that are stored in the memory 51 and executed by the processor 50 to complete this invention. The one or more modules/units may be a series of computer program instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer program 52 in the application server 5. For example, the computer program 52 can be divided into an installation information acquisition module, an update information acquisition module, an update file determination module, and an update prompt transmission module. The specific functions of each module are as follows:
参数设置模块,用于设置工艺参数以及对应的工艺参数编号,工艺参数包括生产工艺参数和空烧参数,工艺参数编号包括第一工艺参数编号和第二工艺参数编号。The parameter setting module is configured to set process parameters and corresponding process parameter numbers, the process parameters include production process parameters and air-burn parameters, and the process parameter numbers include a first process parameter number and a second process parameter number.
安装信息获取模块,用于获取第一终端的软件安装信息。The installation information obtaining module is configured to obtain software installation information of the first terminal.
更新信息获取模块,用于获取软件安装信息对应的更新文件的更新信息。The update information obtaining module is configured to obtain update information of the update file corresponding to the software installation information.
更新文件判断模块,用于根据软件安装信息和更新信息判断第一终端是否安装有更新文件。The update file judging module is configured to judge whether the first terminal installs the update file according to the software installation information and the update information.
更新提示发送模块,用于若判定第一终端未安装更新文件,则生成更新提示信息发送至推送服务器,更新提示信息用于指示推送服务器将更新文件下载地址发送至第一终端。And an update prompt sending module, configured to send the update prompt information to the push server if the first terminal does not install the update file, and the update prompt information is used to instruct the push server to send the update file download address to the first terminal.
所述应用服务器5可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述应用服务器5可包括,但不仅限于,处理器50、存储器51。本领域技术人员可以理解,图5仅仅是应用服务器5的示例,并不构成对应用服务器5的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述应用服务器还可以包括输入输出设备、网络接入设备、总线等。The application server 5 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The application server 5 may include, but is not limited to, a processor 50 and a memory 51. It will be understood by those skilled in the art that FIG. 5 is only an example of the application server 5, and does not constitute a limitation of the application server 5, and may include more or less components than those illustrated, or combine some components or different components. For example, the application server may further include an input/output device, a network access device, a bus, and the like.
所称处理器50可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现场可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 50 can be a central processing unit (Central Processing Unit, CPU), can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
所述存储器51可以是所述应用服务器5的内部存储单元,例如应用服务器5的硬盘或内存。所述存储器51也可以是所述应用服务器5的外部存储设备,例如所述应用服务器5上配备的插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器51还可以既包括所述应用服务器5的内部存储单元也包括外部存储设备。所述存储器51用于存储所述计算机程序以及所述应用服务器所需的其他程序和数据。所述存储器51还可以用于暂时地存储已经输出或者将要输出的数据。The memory 51 may be an internal storage unit of the application server 5, such as a hard disk or a memory of the application server 5. The memory 51 may also be an external storage device of the application server 5, such as a plug-in hard disk equipped on the application server 5, a smart memory card (SMC), and a secure digital (SD). Card, flash card (Flash Card) and so on. Further, the memory 51 may also include both an internal storage unit of the application server 5 and an external storage device. The memory 51 is used to store the computer program and other programs and data required by the application server. The memory 51 can also be used to temporarily store data that has been output or is about to be output.
实施例Example 44 :
本发明实施例还提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现如实施例1中所述的各实施例中的步骤,例如图1所示的步骤S101至步骤S104。或者,所述计算机程序被处理器执行时实现如实施例2中所述的各系统实施例中的各模块/单元的功能,例如图3所示的模块110至140的功能。The embodiment of the present invention further provides a computer readable storage medium storing a computer program. When the computer program is executed by the processor, the steps in the embodiments as described in Embodiment 1 are implemented, for example, Steps S101 to S104 shown in Fig. 1. Alternatively, the computer program is executed by the processor to implement the functions of the modules/units in the various system embodiments as described in Embodiment 2, such as the functions of the modules 110 to 140 shown in FIG.
所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括是电载波信号和电信信号。The computer program can be stored in a computer readable storage medium, which, when executed by a processor, can implement the steps of the various method embodiments described above. Wherein, the computer program comprises computer program code, which may be in the form of source code, object code form, executable file or some intermediate form. The computer readable medium can include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard drive, a magnetic disk, an optical disk, a computer memory, a read only memory (ROM, Read-Only) Memory), random access memory (RAM, Random) Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media It does not include electrical carrier signals and telecommunication signals.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the parts that are not detailed or described in a certain embodiment can be referred to the related descriptions of other embodiments.
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the method of the embodiment of the present invention may be sequentially adjusted, merged, and deleted according to actual needs.
本发明实施例系统中的模块或单元可以根据实际需要进行合并、划分和删减。The modules or units in the system of the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
在本发明所提供的实施例中,应该理解到,所揭露的装置/应用服务器和方法,可以通过其它的方式实现。例如,以上所描述的装置/应用服务器实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided by the present invention, it should be understood that the disclosed apparatus/application server and method may be implemented in other manners. For example, the device/application server embodiment described above is merely illustrative. For example, the division of the module or unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units. Or components may be combined or integrated into another system, or some features may be omitted or not performed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
以上所述实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围,均应包含在本发明的保护范围之内。The embodiments described above are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in Within the scope of protection of the present invention.

Claims (10)

  1. 一种更新应用程序的方法,其特征在于,应用于应用服务器,所述更新应用程序的方法包括:A method for updating an application, which is applied to an application server, and the method for updating an application includes:
    获取第一终端的软件安装信息;Obtaining software installation information of the first terminal;
    获取所述软件安装信息对应的更新文件的更新信息;Obtaining update information of the update file corresponding to the software installation information;
    根据所述软件安装信息和所述更新信息判断所述第一终端是否安装有所述更新文件;Determining, according to the software installation information and the update information, whether the update file is installed by the first terminal;
    若判定所述第一终端未安装所述更新文件,则生成更新提示信息发送至推送服务器,所述更新提示信息用于指示所述推送服务器将更新文件下载地址发送至所述第一终端。If it is determined that the update file is not installed by the first terminal, the generated update prompt information is sent to the push server, where the update prompt information is used to instruct the push server to send the update file download address to the first terminal.
  2. 如权利要求1所述的更新应用程序的方法,其特征在于,所述获取预设终端的软件安装信息之前,包括:The method of updating an application according to claim 1, wherein before the obtaining the software installation information of the preset terminal, the method includes:
    接收第二终端发送的资源文件;Receiving a resource file sent by the second terminal;
    将所述资源文件分解成若干预设大小的子文件;Decomposing the resource file into a plurality of sub-files of a preset size;
    将所述子文件备份,得到备份文件;Backing up the subfile to obtain a backup file;
    提取所述子文件的消息摘要,并将所述消息摘要作为所述备份文件的名称,得到子资源文件;Extracting a message digest of the subfile, and using the message digest as a name of the backup file to obtain a sub-resource file;
    将所述子资源文件发送至存储服务器。Send the sub-resource file to the storage server.
  3. 如权利要求2所述的更新应用程序的方法,其特征在于,所述将所述子资源文件发送至存储服务器,包括:The method of updating an application according to claim 2, wherein the sending the sub-resource file to a storage server comprises:
    对所述若干的所述子资源文件进行分组,得到预设数量的子资源文件集合;And grouping the plurality of the sub-resource files to obtain a preset number of sub-resource file sets;
    按照预设顺序依次将不同的子资源文件集合分别发送至对应的存储服务器。The different sub-resource file sets are sequentially sent to the corresponding storage servers in a preset order.
  4. 如权利要求1所述的更新应用程序的方法,其特征在于,所述获取预设终端的软件安装信息之前,还包括:The method of updating an application according to claim 1, wherein before the obtaining the software installation information of the preset terminal, the method further includes:
    接收第二终端发送的应用程序安装包;Receiving an application installation package sent by the second terminal;
    将所述应用程序安装包发送至目标域名信息对应的存储服务器。The application installation package is sent to a storage server corresponding to the target domain name information.
  5. 如权利要求1所述的管理更新文件的方法,其特征在于,所述软件安装信息包括应用程序标识,所述更新信息包括最新版本信息;The method of managing an update file according to claim 1, wherein the software installation information comprises an application identifier, and the update information includes latest version information;
    所述根据所述软件安装信息获取对应的更新文件的更新信息,包括:And obtaining the update information of the corresponding update file according to the software installation information, including:
    查找所述应用程序标识对应的更新文件的最新版本信息。Find the latest version information of the update file corresponding to the application identifier.
  6. 如权利要求5所述的管理更新文件的方法,其特征在于,所述软件安装信息还包括当前版本信息;The method of managing an update file according to claim 5, wherein the software installation information further includes current version information;
    所述根据所述软件安装信息和所述更新信息判断所述第一终端是否安装有所述更新文件,包括:Determining, according to the software installation information and the update information, whether the first terminal is installed with the update file, includes:
    判断所述当前版本信息与所述最新版本信息是否一致;Determining whether the current version information is consistent with the latest version information;
    若所述当前版本信息与所述最新版本信息一致,则判定所述第一终端已安装所述更新文件;If the current version information is consistent with the latest version information, determining that the first terminal has installed the update file;
    若所述当前版本信息与所述最新版本信息不一致,则判定所述第一终端未安装所述更新文件。If the current version information is inconsistent with the latest version information, it is determined that the update file is not installed by the first terminal.
  7. 一种更新应用程序的系统,其特征在于,应用于应用服务器,所述更新应用程序的系统包括:A system for updating an application, characterized in that it is applied to an application server, and the system for updating the application includes:
    安装信息获取模块,用于获取第一终端的软件安装信息;The installation information obtaining module is configured to obtain software installation information of the first terminal;
    更新信息获取模块,用于获取所述软件安装信息对应的更新文件的更新信息;An update information obtaining module, configured to obtain update information of an update file corresponding to the software installation information;
    更新文件判断模块,用于根据所述软件安装信息和所述更新信息判断所述第一终端是否安装有所述更新文件;An update file determining module, configured to determine, according to the software installation information and the update information, whether the update file is installed by the first terminal;
    更新提示发送模块,用于若判定所述第一终端未安装所述更新文件,则生成更新提示信息发送至推送服务器,所述更新提示信息用于指示所述推送服务器将更新文件下载地址发送至所述第一终端。And an update prompt sending module, configured to send the update prompt information to the push server if the first terminal does not install the update file, where the update prompt information is used to instruct the push server to send the update file download address to The first terminal.
  8. 如权利要求7所述的更新应用程序的系统,其特征在于,所述安装信息获取模块,包括:The system for updating an application according to claim 7, wherein the installation information acquisition module comprises:
    资源文件接收单元,用于接收第二终端发送的资源文件;a resource file receiving unit, configured to receive a resource file sent by the second terminal;
    资源文件分解单元,用于将所述资源文件分解成若干预设大小的子文件;a resource file decomposition unit, configured to decompose the resource file into a plurality of sub-files of a preset size;
    文件备份单元,用于将所述子文件备份,得到备份文件;a file backup unit, configured to back up the subfile to obtain a backup file;
    消息摘要提取单元,用于提取所述子文件的消息摘要,并将所述消息摘要作为所述备份文件的名称,得到子资源文件;a message digest extraction unit, configured to extract a message digest of the subfile, and use the message digest as a name of the backup file to obtain a sub-resource file;
    子资源文件发送单元,用于将所述子资源文件发送至存储服务器。a sub-resource file sending unit, configured to send the sub-resource file to a storage server.
  9. 一种应用服务器,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至6任一项所述方法的步骤。An application server comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor executes the computer program as claimed in claim 1 6 The steps of any of the methods described.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至6任一项所述方法的步骤。A computer readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the steps of the method of any one of claims 1 to 6.
PCT/CN2019/078170 2018-04-16 2019-03-14 Method and system for updating application and application server WO2019201039A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810338407.3A CN109391509A (en) 2018-04-16 2018-04-16 A kind of method, system and the application server of more new application
CN201810338407.3 2018-04-16

Publications (1)

Publication Number Publication Date
WO2019201039A1 true WO2019201039A1 (en) 2019-10-24

Family

ID=65416589

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/078170 WO2019201039A1 (en) 2018-04-16 2019-03-14 Method and system for updating application and application server

Country Status (2)

Country Link
CN (1) CN109391509A (en)
WO (1) WO2019201039A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990039A (en) * 2019-11-29 2020-04-10 北京金山云网络技术有限公司 Application program updating method, device and system and computer readable storage medium
CN111352632A (en) * 2020-03-02 2020-06-30 北京字节跳动网络技术有限公司 Software product detection device, system, method and storage medium
CN111782248A (en) * 2020-07-10 2020-10-16 上海淇毓信息科技有限公司 Terminal application updating method and device and electronic equipment
CN111831350A (en) * 2020-06-02 2020-10-27 深圳木成林科技有限公司 Application process configuration updating method, system, terminal device and storage medium
CN113238777A (en) * 2021-05-20 2021-08-10 网易(杭州)网络有限公司 Application program updating method, device, equipment and storage medium
CN113568644A (en) * 2021-08-06 2021-10-29 上海中通吉网络技术有限公司 Updating method of mobile terminal application
CN113625641A (en) * 2021-08-17 2021-11-09 华帝股份有限公司 Kitchen electrical equipment-based control terminal dynamic updating method, system, equipment and medium
CN114928645A (en) * 2022-04-26 2022-08-19 青岛海尔科技有限公司 Resource package processing method and device, storage medium and electronic device
CN114928645B (en) * 2022-04-26 2024-04-19 青岛海尔科技有限公司 Resource package processing method and device, storage medium and electronic device

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109391509A (en) * 2018-04-16 2019-02-26 深圳思为科技有限公司 A kind of method, system and the application server of more new application
CN110502248A (en) * 2019-07-01 2019-11-26 维沃移动通信有限公司 A kind of application program installation method and terminal
CN111045747A (en) * 2019-11-06 2020-04-21 用友网络科技股份有限公司 H5 mobile application rapid loading method, system, terminal and storage medium
CN112865956B (en) * 2019-11-26 2022-10-18 华为技术有限公司 Certificate updating method and device, terminal equipment and server
CN112947981A (en) * 2020-04-03 2021-06-11 深圳市明源云客电子商务有限公司 Application program resource updating method and device, terminal equipment and server
CN111666091B (en) * 2020-06-12 2023-08-29 成都极米科技股份有限公司 System updating method, device, electronic equipment and computer readable storage medium
CN112445498B (en) * 2020-11-27 2024-03-05 杭州海康威视数字技术股份有限公司 Program installation method and device, electronic equipment and storage medium
CN113596123A (en) * 2021-07-19 2021-11-02 深圳市元征未来汽车技术有限公司 Software downloading method, communication device and storage medium
CN115080068A (en) * 2022-05-24 2022-09-20 北京快乐茄信息技术有限公司 Resource file transmission method, device, equipment and storage medium
CN115348254B (en) * 2022-07-21 2023-05-30 昆仑数智科技有限责任公司 File packing and downloading method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724308A (en) * 2012-06-13 2012-10-10 腾讯科技(深圳)有限公司 Software update method and software update system
CN103455343A (en) * 2013-07-22 2013-12-18 小米科技有限责任公司 Method and device for updating application programs
US9098450B2 (en) * 2012-03-20 2015-08-04 Google Inc. Automated application update checks based on unexpected errors and crashes
CN109391509A (en) * 2018-04-16 2019-02-26 深圳思为科技有限公司 A kind of method, system and the application server of more new application

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9098450B2 (en) * 2012-03-20 2015-08-04 Google Inc. Automated application update checks based on unexpected errors and crashes
CN102724308A (en) * 2012-06-13 2012-10-10 腾讯科技(深圳)有限公司 Software update method and software update system
CN103455343A (en) * 2013-07-22 2013-12-18 小米科技有限责任公司 Method and device for updating application programs
CN109391509A (en) * 2018-04-16 2019-02-26 深圳思为科技有限公司 A kind of method, system and the application server of more new application

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990039B (en) * 2019-11-29 2023-09-05 北京金山云网络技术有限公司 Application program updating method, device and system and computer readable storage medium
CN110990039A (en) * 2019-11-29 2020-04-10 北京金山云网络技术有限公司 Application program updating method, device and system and computer readable storage medium
CN111352632B (en) * 2020-03-02 2023-07-04 抖音视界有限公司 Software product detection device, system, method and storage medium
CN111352632A (en) * 2020-03-02 2020-06-30 北京字节跳动网络技术有限公司 Software product detection device, system, method and storage medium
CN111831350A (en) * 2020-06-02 2020-10-27 深圳木成林科技有限公司 Application process configuration updating method, system, terminal device and storage medium
CN111782248A (en) * 2020-07-10 2020-10-16 上海淇毓信息科技有限公司 Terminal application updating method and device and electronic equipment
CN111782248B (en) * 2020-07-10 2023-09-19 上海淇毓信息科技有限公司 Updating method and device of terminal application and electronic equipment
CN113238777B (en) * 2021-05-20 2023-08-22 网易(杭州)网络有限公司 Application program updating method, device, equipment and storage medium
CN113238777A (en) * 2021-05-20 2021-08-10 网易(杭州)网络有限公司 Application program updating method, device, equipment and storage medium
CN113568644A (en) * 2021-08-06 2021-10-29 上海中通吉网络技术有限公司 Updating method of mobile terminal application
CN113625641A (en) * 2021-08-17 2021-11-09 华帝股份有限公司 Kitchen electrical equipment-based control terminal dynamic updating method, system, equipment and medium
CN114928645A (en) * 2022-04-26 2022-08-19 青岛海尔科技有限公司 Resource package processing method and device, storage medium and electronic device
CN114928645B (en) * 2022-04-26 2024-04-19 青岛海尔科技有限公司 Resource package processing method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN109391509A (en) 2019-02-26

Similar Documents

Publication Publication Date Title
WO2019201039A1 (en) Method and system for updating application and application server
US20150154224A1 (en) Method, device, processing center and system for desktop synchronization
EP2919440B1 (en) Advertisement processing method and device
US9244960B2 (en) Metadata-driven version management service in pervasive environment
CN106843978B (en) SDK access method and system
CN109032796B (en) Data processing method and device
US10917484B2 (en) Identifying and managing redundant digital content transfers
CN110572422A (en) Data downloading method and device
CN111880967A (en) File backup method, device, medium and electronic equipment in cloud scene
CN110928912A (en) Method and device for generating unique identifier
WO2019029451A1 (en) Method for publishing mobile applications and electronic apparatus
CN113411404A (en) File downloading method, device, server and storage medium
US10938773B2 (en) Method and apparatus for synchronizing contact information and medium
CN110928571A (en) Business program development method and device
CN114020689A (en) Data processing method, data processing device, electronic device, and storage medium
WO2022156087A1 (en) Data blood relationship establishing method and apparatus, computer device, and storage medium
CN113343312A (en) Page tamper-proofing method and system based on front-end point burying technology
CN111327680B (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN110505289B (en) File downloading method and device, computer readable medium and wireless communication equipment
WO2022171190A1 (en) Fixed execution sequence transaction method, and apparatus
CN115695416A (en) File downloading method, device, medium and equipment based on cloud storage service
CN112783514B (en) Method and system for deployment management of web front-end project
CN112241332B (en) Interface compensation method and device
CN113779122A (en) Method and apparatus for exporting data
CN113760861A (en) Data migration method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19788954

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25.01.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19788954

Country of ref document: EP

Kind code of ref document: A1