[go: up one dir, main page]

WO2018103217A1 - Method for upgrading application, and server and user equipment - Google Patents

Method for upgrading application, and server and user equipment Download PDF

Info

Publication number
WO2018103217A1
WO2018103217A1 PCT/CN2017/075738 CN2017075738W WO2018103217A1 WO 2018103217 A1 WO2018103217 A1 WO 2018103217A1 CN 2017075738 W CN2017075738 W CN 2017075738W WO 2018103217 A1 WO2018103217 A1 WO 2018103217A1
Authority
WO
WIPO (PCT)
Prior art keywords
upgrade
application
target
parameter
target application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2017/075738
Other languages
French (fr)
Chinese (zh)
Inventor
汪刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Publication of WO2018103217A1 publication Critical patent/WO2018103217A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a method, a server, and a user equipment for upgrading an application.
  • the server In order to increase the functionality of the application and to uniformly fix the vulnerabilities in the application, the server notifies the UE (User Equipment) to upgrade the application.
  • the server has two ways for the UE to upgrade the application: one is a forced upgrade, that is, forcing all UEs to upgrade uniformly, and the UE that refuses to upgrade cannot run the application; the other is a normal upgrade, that is, all users select themselves. Whether to upgrade, and whether the upgrade or not, the UE can run the UE normally.
  • server unified forced upgrade or general upgrade of all UE applications does not take into account that different UE installed applications are different.
  • the embodiments of the present invention provide a method, a server, and a user equipment for upgrading an application, which are used to implement a differentiated upgrade application and enhance the pertinence of the application upgrade.
  • the present invention provides a method of upgrading an application, comprising:
  • the server receives a request sent by the user equipment to request to obtain application upgrade information of the target application
  • the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application predetermined version link, so that the The user equipment is configured to upgrade the target application in a target upgrade mode, where the target upgrade mode is a forced upgrade mode or a normal upgrade mode, based on the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade.
  • the target upgrade mode is a forced upgrade mode or a normal upgrade mode, based on the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade.
  • the request includes a device type parameter that is a type of the user equipment, and the application upgrade information of the target application is sent to the user equipment, including:
  • the present invention provides a method for upgrading an application, comprising:
  • the user equipment sends an application upgrade information indicating that the user equipment requests to acquire the target application to the server. Request
  • the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application predetermined version link;
  • the normal upgrade mode is the target upgrade mode.
  • the request includes a device type parameter indicating the user equipment type, where the application upgrade information is specifically the first application upgrade information, and the user equipment sends a request to the server to indicate that the user equipment requests to obtain the application upgrade information of the target application.
  • the target application After the target application is started, generating the request based on the device type parameter, so that the server determines, according to the device type parameter in the request, the identifier of the target application corresponding to the device type parameter First application upgrade information.
  • the present invention provides a server, including:
  • a first receiving module configured to receive a request sent by the user equipment to request to obtain application upgrade information of the target application
  • a first sending module configured to send, according to the request, application upgrade information of the target application to the user equipment, where the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application schedule
  • the version link is configured to enable the user equipment to upgrade the target application in a target upgrade manner based on the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade, where the target upgrade mode is mandatory
  • the target application predetermined version is obtained based on the target application predetermined version link, and the target application is upgraded according to the target upgrade mode.
  • the request includes a device type parameter indicating the type of the user equipment, where the first The sending module is configured to determine, according to the device type parameter in the request, first application upgrade information of the target application corresponding to the device type parameter.
  • the present invention provides a user equipment, including:
  • a second sending module configured to send, to the server, a request that the user equipment requests to obtain application upgrade information of the target application
  • a second receiving module configured to receive application upgrade information of the target application that is sent by the server according to the request, where the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a predetermined version of the target application. link;
  • a determining module configured to: according to the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade, determine that the user equipment upgrades the target application in a target upgrade manner, where the target upgrade mode is a forced upgrade mode or an ordinary Upgrade method;
  • an upgrade module configured to acquire a target application predetermined version based on the target application predetermined version link, and upgrade the target application according to the target upgrade manner.
  • the determining module is configured to obtain a current version parameter of the target application installed by the user equipment, and determine the forced upgrade mode when the current version parameter is lower than the minimum version parameter of the forced upgrade. For the target upgrade mode, when the current version parameter is equal to or higher than the minimum version parameter of the forced upgrade, and is lower than the highest version parameter of the normal upgrade, it is determined that the normal upgrade mode is the target upgrade mode.
  • the request includes a device type parameter indicating the type of the user equipment, where the application upgrade information is specifically the first application upgrade information, and the user equipment further includes:
  • a generating module configured to acquire the device type parameter, and after the target application is started, generate the request according to the device type parameter, so that the server determines, according to the device type parameter in the request, The first application upgrade information of the target application corresponding to the device type parameter.
  • the server receives, by the user equipment, a request for obtaining the application upgrade information of the target application, and sends the application upgrade information of the target application to the user equipment, according to the request,
  • the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application predetermined version link, and the user equipment determines the location based on the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade.
  • the user equipment upgrades the target application in a target upgrade mode, where the target upgrade mode is a forced upgrade mode or a normal upgrade mode, and the target application subscription version is obtained based on the target application subscription version link, and the target upgrade mode is upgraded according to the target upgrade mode.
  • the target application is a forced upgrade mode or a normal upgrade mode
  • the server sends the application upgrade information including the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade to the user equipment, and further
  • the user equipment can determine whether the application should be upgraded in the forced upgrade mode or the normal upgrade mode according to the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade, and the actual situation of the target application installed by the user. Therefore, the technical problem that only the unified upgrade of all user equipments or the general upgrade target application can be unified in the prior art is realized, the differentiated upgrade application is realized, and the targeted application upgrade is enhanced.
  • FIG. 1 is a flowchart of a method for upgrading an application on a server side according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for upgrading an application on a UE side according to an embodiment of the present invention
  • FIG. 3 is a logic flow chart of determining a target upgrade mode according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a UE according to an embodiment of the present invention.
  • the embodiments of the present invention provide a method, a server, and a user equipment for upgrading an application, which are used to implement a differentiated upgrade application and enhance the pertinence of the application upgrade.
  • the server receives, by the user equipment, a request for obtaining the application upgrade information of the target application, and sends the application upgrade information of the target application to the user equipment, according to the request,
  • the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application predetermined version link, and the user equipment determines the location based on the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade.
  • the user equipment upgrades the target application in a target upgrade mode, where the target upgrade mode is a forced upgrade mode or a normal upgrade mode, and the target application subscription version is obtained based on the target application subscription version link, and the target upgrade mode is upgraded according to the target upgrade mode.
  • the target application is a forced upgrade mode or a normal upgrade mode
  • the server sends the application upgrade information including the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade to the user equipment, and the user equipment can be combined according to the minimum version parameter of the forced upgrade and the highest version parameter of the ordinary upgrade.
  • the actual situation of the target application installed by the user determines whether the application should be upgraded in the forced upgrade mode or the normal upgrade mode. Therefore, the technical problem that only the unified upgrade of all user equipments or the general upgrade target application can be unified in the prior art is realized, the differentiated upgrade application is realized, and the targeted application upgrade is enhanced.
  • a first aspect of the present invention provides a method for upgrading an application.
  • FIG. 1 it is a flowchart of a method for upgrading an application on a server side according to an embodiment of the present invention. The method includes:
  • S101 The server receives a request sent by the user equipment to request to obtain application upgrade information of the target application.
  • S102 Send, according to the request, application upgrade information of the target application to the user equipment.
  • the target application in the embodiment of the present invention may be any application that can be upgraded, such as a webcast application, a shopping application, a chat application, or a reader application, and the present invention is not specifically limited.
  • the server is a network-side device that provides a target application installation package, an upgrade package, and a target application.
  • the user device is a user-side device that installs any version of the target application.
  • the server receives a request sent by the UE indicating that the application upgrade information of the target application is requested to be acquired.
  • the UE may send a request to the server at any time, for example, sending a request to the server after each startup of the target application, or sending a request to the server after receiving an operation input by the user for detecting the upgraded version. Or send a request to the server every preset time, for example, 7 days.
  • a person of ordinary skill in the art can make a selection according to the actual situation, and the present invention does not specifically limit it.
  • the server After receiving the request sent by the UE, the server sends the application upgrade information of the target application to the UE according to the request in S102.
  • the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application predetermined version link.
  • the minimum version parameter of the forced upgrade is the parameter of the lowest version that needs to be forced to upgrade.
  • the highest version parameter of a normal upgrade is the highest version of the parameter that can be achieved by a normal upgrade.
  • the target application subscription version links to a link to an upgrade package or installation package for a predetermined version of the target application.
  • the application upgrade information may further include a mandatory upgrade prompt information and a general upgrade prompt information, and the present invention does not specifically limit.
  • UEs of different device types have different target application versions.
  • the target application corresponding to the UE of the Android type is specifically the target application of the Android version
  • the device type is the UE of the Apple mobile terminal operating system ios
  • the corresponding target application is specifically the target application of the ios version.
  • the application upgrade information sent by the server to the UE may be an application upgrade information including each version, and then, after receiving the application upgrade information, the UE according to its own device class. Type, filter out the application upgrade information adapted to its own version, and upgrade the target application accordingly.
  • the device type parameter of the UE device type may be included in the request, and the S102 may specifically include:
  • the device type parameter in the embodiment of the present invention may be the device type itself, such as Android, iOS, or Windows.
  • the device type parameter may also be a corresponding code of the device type.
  • the corresponding code of the device type ios is 0, and the corresponding code of the device type Android is 1.
  • a person of ordinary skill in the art to which the present invention pertains may make selections according to actual conditions, and the present invention is not specifically limited.
  • the device type parameter when the UE sends a request, the device type parameter is acquired. After the target application is started, the UE generates a startup completion function and sends the startup completion function to the server. Therefore, in the embodiment of the present invention, the startup completion function can be used as a request, and the device type parameter is included in the startup completion function. Further, the server receives the startup completion function and parses out the device type parameters included in the startup completion function. Then, the first application upgrade information corresponding to the device type parameter is sent to the UE from the application upgrade information of the multiple versions.
  • the device type parameter is specifically type, represented by the corresponding code of the device type, the corresponding code of ios is 0, and the corresponding code of Android is 1.
  • the minimum version parameter of the forced upgrade of the Android version is represented by minAndroidVersion
  • the highest version parameter of the normal upgrade is represented by maxAndroidVersion
  • the target application predetermined version link is represented by androidDownloadLink.
  • the application upgrade information of the Android version further includes a forced upgrade prompt information minAndroidVersionTips and a normal upgrade prompt information maxAndroidVersionTips.
  • the minimum version parameter of the forced upgrade of the ios version is represented by minlosVersion
  • the highest version parameter of the normal upgrade is represented by maxlosVersion
  • the target application predetermined version link is represented by losDownloadLink.
  • the application upgrade information of the ios version further includes a forced upgrade prompt information minlosVersionTips and a normal upgrade prompt information maxlosVersionTips.
  • FIG. 2 is a flowchart of a method for upgrading an application on a UE side according to an embodiment of the present invention.
  • the method includes:
  • S201 The user equipment sends a request to the server to indicate that the user equipment requests to obtain application upgrade information of the target application.
  • S202 Receive application upgrade information of the target application that is sent by the server according to the request.
  • S203 Determine, according to the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade, that the user equipment upgrades the target application in a target upgrade manner;
  • S204 Acquire a target application predetermined version based on the target application predetermined version link, and upgrade the target application according to the target upgrade manner.
  • the UE receives the application upgrade information sent by the server in S202. Further, if the server is to package the application upgrade information of each version in the application upgrade information, the UE further needs to filter the application upgrade information adapted to its own version according to the type of the device.
  • the application upgrade information sent by the server includes application upgrade information (minAndroidVersion, maxAndroidVersion, androidDownloadLink, minAndroidVersionTips, and maxAndroidVersionTips) of the Android version and application upgrade information (minlosVersion, maxlosVersion, losDownloadLink, minlosVersionTips, and maxlosVersionTips) of the ios version, and the UE is an ios device type. Then the UE filters out minlosVersion, maxlosVersion, losDownloadLink, minlosVersionTips and maxlosVersionTips.
  • the UE may also perform the following operations before S201:
  • the target application After the target application is started, generating the request based on the device type parameter, so that the server determines, according to the device type parameter in the request, the identifier of the target application corresponding to the device type parameter First application upgrade information.
  • the server will directly send the first application upgrade information that matches the UE device type to the UE based on the device type parameter.
  • the implementation of the above generation request is described above, and the details are not repeated here.
  • a person of ordinary skill in the art may choose to send or not send a device type parameter type to the UE, and the present invention does not specifically limit the present invention.
  • the target upgrade mode in the embodiment of the present invention includes a forced upgrade mode and a normal upgrade mode. S203 can be implemented by the following process:
  • the normal upgrade mode is the target upgrade mode.
  • the UE reads the current version parameter of the target application currently installed in the UE, and then compares the current version parameter with the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade, thereby determining whether the target application needs to be upgraded. And if you want to upgrade the target application, the specific target upgrade method.
  • the server sends the application upgrade information of each version to the UE or the first application upgrade information corresponding to the UE, the current version parameter and the minimum version parameter of the forced upgrade and the highest version of the normal upgrade are compared.
  • the parameters are compared, they are compared with the minimum version parameter of the forced upgrade of the same version and the highest version parameter of the normal upgrade.
  • FIG. 3 is a logic flow chart for determining a target upgrade mode according to an embodiment of the present invention.
  • Android type UE The UE receives the minAndroidVersion, maxAndroidVersion, androidDownloadLink, minAndroidVersionTips and maxAndroidVersionTips sent by the server. Get the current version parameter AndroidCurrentVersion.
  • AndroidCurrentVersion When the AndroidCurrentVersion is smaller than the minAndroidVersion, it indicates that the target application version currently installed by the UE is too low, and the forced upgrade is required to allow the user to continue to use. Therefore, it is determined that the target application needs to be upgraded, and the target upgrade mode is determined to be the forced upgrade mode.
  • androidDownloadLink to obtain a predetermined version higher than minAndroidVersion, and then upgrade the target application.
  • call the Android system's bullet box and output minAndroidVersionTips to prompt the user that the target application will perform a forced upgrade.
  • AndroidCurrentVersion is equal to or higher than minAndroidVersion, and AndroidCurrentVersion is lower than maxAndroidVersion, it indicates that the target application version currently installed in the UE is higher, but not the highest version, so it can be allowed to continue to be used regardless of whether it is upgraded or not. Therefore, it is determined that the target application needs to be upgraded at this time, but the target upgrade mode is the normal upgrade mode.
  • call the Android system's bullet box, output maxAndroidVersionTips prompt the user to choose to upgrade or not upgrade. If the user chooses to upgrade, the predetermined version is further obtained based on androidDownloadLink, thereby upgrading the target application.
  • the AndroidCurrentVersion is equal to or higher than the maxAndroidVersion, it means that the target application version currently installed in the UE is already the highest, so it is determined that the target application does not need to be upgraded.
  • ios type UE The UE receives the minlosVersion, maxlosVersion, losDownloadLink, minlosVersionTips and maxlosVersionTips sent by the server. Get the current version The parameter losCurrentVersion.
  • losCurrentVersion When the losCurrentVersion is smaller than the minlosVersion, it indicates that the target application version currently installed by the UE is too low, and the forced upgrade is required to allow the user to continue to use. Therefore, it is determined that the target application needs to be upgraded, and the target upgrade mode is determined to be the forced upgrade mode. Then, based on losDownloadLink, a predetermined version higher than minlosVersion is obtained, thereby upgrading the target application. At the same time, call the ios system's bullet box and output minlosVersionTips to prompt the user that the target application will perform a forced upgrade.
  • losCurrentVersion is equal to or higher than minlosVersion, and losCurrentVersion is lower than maxlosVersion, it means that the target application version currently installed in the UE is higher, but not the highest version, so it can be allowed to continue to be used regardless of whether it is upgraded or not. Therefore, it is determined that the target application needs to be upgraded at this time, but the target upgrade mode is the normal upgrade mode.
  • call the ios system's bullet box, output maxlosVersionTips prompt the user to choose to upgrade or not upgrade. If the user chooses to upgrade, the predetermined version is further obtained based on losDownloadLink, thereby upgrading the target application.
  • losCurrentVersion is equal to or higher than maxlosVersion, it means that the target application version currently installed in the UE is already the highest, so it is determined that the target application does not need to be upgraded.
  • the server receives a request sent by the user equipment to request to obtain application upgrade information of the target application, and sends the target application to the user equipment based on the request.
  • Application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application predetermined version link, and the user equipment is based on the minimum version parameter of the forced upgrade and the normal upgrade.
  • the highest version parameter, the user equipment is upgraded in the target upgrade mode, and the target upgrade mode is a forced upgrade mode or a normal upgrade mode, and the target application subscription version is obtained based on the target application predetermined version link, and is followed.
  • the target upgrade mode upgrades the target application.
  • the server sends the application upgrade information including the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade to the user equipment, and the user equipment can be combined according to the minimum version parameter of the forced upgrade and the highest version parameter of the ordinary upgrade.
  • the actual situation of the target application installed by the user determines whether the application should be upgraded in the forced upgrade mode or the normal upgrade mode. Therefore, the technical problem that only the unified upgrade of all user equipments or the general upgrade target application can be unified in the prior art is realized, the differentiated upgrade application is realized, and the targeted application upgrade is enhanced.
  • the present invention further provides a server, as shown in FIG. 4, comprising:
  • the first receiving module 101 is configured to receive, by the user equipment, a request for requesting to obtain application upgrade information of the target application;
  • the first sending module 102 is configured to send the target response to the user equipment based on the request Application upgrade information
  • the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application predetermined version link, so that the user equipment is based on the minimum version parameter of the forced upgrade and the The highest version of the normal upgrade parameter, the user equipment is upgraded in the target upgrade mode, and the target upgrade mode is a forced upgrade mode or a normal upgrade mode, and the target application subscription version is obtained based on the target application predetermined version link. And upgrading the target application according to the target upgrade mode.
  • the first sending module 102 is configured to determine, according to the device type parameter in the request, a first application of the target application corresponding to the device type parameter, where the request includes a device type parameter indicating a user equipment type. Upgrade information.
  • the present invention further provides a UE, as shown in FIG. 5, including:
  • a second sending module 201 configured to send, to the server, a request that the user equipment requests to obtain application upgrade information of the target application
  • the second receiving module 202 is configured to receive application upgrade information of the target application that is sent by the server according to the request, where the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application reservation. Version link
  • the determining module 203 is configured to determine, according to the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade, that the user equipment upgrades the target application in a target upgrade manner, where the target upgrade mode is a forced upgrade mode or Ordinary upgrade method;
  • the upgrade module 204 is configured to acquire a target application predetermined version based on the target application predetermined version link, and upgrade the target application according to the target upgrade manner.
  • the determining module 203 is configured to obtain a current version parameter of the target application installed by the user equipment, and when the current version parameter is lower than the minimum version parameter of the forced upgrade, determine that the forced upgrade mode is The target upgrade mode is determined. When the current version parameter is equal to or higher than the minimum version parameter of the forced upgrade, and is lower than the highest version parameter of the normal upgrade, the normal upgrade mode is determined to be the target upgrade mode.
  • the user equipment further includes:
  • a generating module configured to acquire the device type parameter, and after the target application is started, generate the request according to the device type parameter, so that the server determines, according to the device type parameter in the request, The first application upgrade information of the target application corresponding to the device type parameter.
  • the server receives a request sent by the user equipment to request to obtain application upgrade information of the target application, and sends the target application to the user equipment based on the request.
  • Application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application predetermined version link, and the user equipment is based on the minimum version parameter of the forced upgrade and the normal upgrade.
  • the highest version parameter, the user equipment is upgraded in the target upgrade mode, and the target upgrade mode is a forced upgrade mode or a normal upgrade mode, and the target application subscription version is obtained based on the target application predetermined version link, and is followed.
  • the target upgrade mode upgrades the target application.
  • the server sends the application upgrade information including the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade to the user equipment, and the user equipment can be combined according to the minimum version parameter of the forced upgrade and the highest version parameter of the ordinary upgrade.
  • the actual situation of the target application installed by the user determines whether the application should be upgraded in the forced upgrade mode or the normal upgrade mode. Therefore, the technical problem that only the unified upgrade of all user equipments or the general upgrade target application can be unified in the prior art is realized, the differentiated upgrade application is realized, and the targeted application upgrade is enhanced.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that it is stored in the computer readable memory.
  • the instructions produce an article of manufacture comprising an instruction device that implements the functions specified in a block or blocks of a flow or a flow and/or a block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

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

Abstract

A method for upgrading an application, and a server and a user equipment, which are used for realizing differential upgrading of an application.The method comprises: a server receiving a request which is sent by a user equipment and indicates the request for obtaining application upgrade information about a target application (S101); based on the request, sending the application upgrade information about the target application to the user equipment (S102), the application upgrade information comprising a parameter for the minimum version of a mandatory upgrade, a parameter for the maximum version of an ordinary upgrade and a link for a predetermined version of the target application, so that the user equipment determines, based on the parameter for the minimum version of the mandatory upgrade and the parameter for the highest version of the ordinary upgrade, that the user equipment upgrades the target application in a target upgrade manner (S203), the target upgrade manner being a mandatory upgrade manner or a regular upgrade manner; and acquiring the predetermined version of the target application based on the link for the predetermined version of the target application, and upgrading the target application according to the target upgrade manner (S204).

Description

一种升级应用的方法、服务器和用户设备Method, server and user equipment for upgrading an application 技术领域Technical field

本发明涉及计算机技术领域,尤其涉及一种升级应用的方法、服务器和用户设备。The present invention relates to the field of computer technologies, and in particular, to a method, a server, and a user equipment for upgrading an application.

背景技术Background technique

为了增加应用的功能,以及对应用存在的漏洞进行统一修复,服务器通知UE(用户设备,User Equipment)升级应用。在相关技术中,服务器有两种方式使UE升级应用:一种是强制升级,即强制所有UE统一升级,拒绝升级的UE将无法运行应用;另一种是普通升级,即所有用户都自行选择是否升级,且无论是否升级,UE都可正常运行UE。In order to increase the functionality of the application and to uniformly fix the vulnerabilities in the application, the server notifies the UE (User Equipment) to upgrade the application. In the related art, the server has two ways for the UE to upgrade the application: one is a forced upgrade, that is, forcing all UEs to upgrade uniformly, and the UE that refuses to upgrade cannot run the application; the other is a normal upgrade, that is, all users select themselves. Whether to upgrade, and whether the upgrade or not, the UE can run the UE normally.

然而,服务器统一强制升级或普通升级所有UE的应用,并没有考虑到不同UE安装的应用是有差异的。However, the server unified forced upgrade or general upgrade of all UE applications does not take into account that different UE installed applications are different.

发明内容Summary of the invention

本发明实施例提供了一种升级应用的方法、服务器和用户设备,用于实现差异化升级应用,增强应用升级的针对性。The embodiments of the present invention provide a method, a server, and a user equipment for upgrading an application, which are used to implement a differentiated upgrade application and enhance the pertinence of the application upgrade.

第一方面,本发明提供了一种升级应用的方法,包括:In a first aspect, the present invention provides a method of upgrading an application, comprising:

服务器接收用户设备发送的表示请求获取目标应用的应用升级信息的请求;The server receives a request sent by the user equipment to request to obtain application upgrade information of the target application;

基于所述请求,向所述用户设备发送所述目标应用的应用升级信息,所述应用升级信息包括强制升级的最低版本参数、普通升级的最高版本参数和目标应用预定版本链接,以使所述用户设备基于所述强制升级的最低版本参数和所述普通升级的最高版本参数,确定所述用户设备以目标升级方式升级所述目标应用,所述目标升级方式为强制升级方式或普通升级方式,基于所述目标应用预定版本链接获取目标应用预定版本,并按照所述目标升级方式升级所述目标应用。Sending, according to the request, application upgrade information of the target application to the user equipment, where the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application predetermined version link, so that the The user equipment is configured to upgrade the target application in a target upgrade mode, where the target upgrade mode is a forced upgrade mode or a normal upgrade mode, based on the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade. Obtaining a target application predetermined version based on the target application predetermined version link, and upgrading the target application according to the target upgrade manner.

可选的,所述请求包括表示所述用户设备类型的设备类型参数,基于所述请求,向所述用户设备发送所述目标应用的应用升级信息,包括:Optionally, the request includes a device type parameter that is a type of the user equipment, and the application upgrade information of the target application is sent to the user equipment, including:

基于所述请求中的所述设备类型参数,确定与所述设备类型参数对应的所述目标应用的第一应用升级信息。Determining, according to the device type parameter in the request, first application upgrade information of the target application corresponding to the device type parameter.

第二方面,本发明提供了一种升级应用的方法,包括:In a second aspect, the present invention provides a method for upgrading an application, comprising:

用户设备向服务器发送表示用户设备请求获取目标应用的应用升级信息 的请求;The user equipment sends an application upgrade information indicating that the user equipment requests to acquire the target application to the server. Request

接收所述服务器基于所述请求发送的所述目标应用的应用升级信息,所述应用升级信息包括强制升级的最低版本参数、普通升级的最高版本参数和目标应用预定版本链接;Receiving application upgrade information of the target application that is sent by the server according to the request, where the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application predetermined version link;

基于所述强制升级的最低版本参数和所述普通升级的最高版本参数,确定所述用户设备以目标升级方式升级所述目标应用,所述目标升级方式为强制升级方式或普通升级方式;And determining, according to the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade, that the user equipment upgrades the target application in a target upgrade mode, where the target upgrade mode is a forced upgrade mode or a normal upgrade mode;

基于所述目标应用预定版本链接获取目标应用预定版本,并按照所述目标升级方式升级所述目标应用。Obtaining a target application predetermined version based on the target application predetermined version link, and upgrading the target application according to the target upgrade manner.

可选的,基于所述强制升级的最低版本参数和所述普通升级的最高版本参数,包括:Optionally, based on the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade, including:

获得所述用户设备安装的所述目标应用的当前版本参数;Obtaining a current version parameter of the target application installed by the user equipment;

当所述当前版本参数低于所述强制升级的最低版本参数时,确定所述强制升级方式为所述目标升级方式;When the current version parameter is lower than the minimum version parameter of the forced upgrade, determining that the forced upgrade mode is the target upgrade mode;

当所述当前版本参数等于或高于所述强制升级的最低版本参数,且低于普通升级的最高版本参数时,确定所述普通升级方式为所述目标升级方式。When the current version parameter is equal to or higher than the minimum version parameter of the forced upgrade, and is lower than the highest version parameter of the normal upgrade, it is determined that the normal upgrade mode is the target upgrade mode.

可选的,所述请求包括表示所述用户设备类型的设备类型参数,所述应用升级信息具体为第一应用升级信息,用户设备向服务器发送表示用户设备请求获取目标应用的应用升级信息的请求,包括:Optionally, the request includes a device type parameter indicating the user equipment type, where the application upgrade information is specifically the first application upgrade information, and the user equipment sends a request to the server to indicate that the user equipment requests to obtain the application upgrade information of the target application. ,include:

获取所述设备类型参数;Obtaining the device type parameter;

在所述目标应用启动后,基于所述设备类型参数生成所述请求,以使服务器基于所述请求中的所述设备类型参数,确定与所述设备类型参数对应的所述目标应用的所述第一应用升级信息。After the target application is started, generating the request based on the device type parameter, so that the server determines, according to the device type parameter in the request, the identifier of the target application corresponding to the device type parameter First application upgrade information.

第三方面,本发明提供了一种服务器,包括:In a third aspect, the present invention provides a server, including:

第一接收模块,用于接收用户设备发送的表示请求获取目标应用的应用升级信息的请求;a first receiving module, configured to receive a request sent by the user equipment to request to obtain application upgrade information of the target application;

第一发送模块,用于基于所述请求,向所述用户设备发送所述目标应用的应用升级信息,所述应用升级信息包括强制升级的最低版本参数、普通升级的最高版本参数和目标应用预定版本链接,以使所述用户设备基于所述强制升级的最低版本参数和所述普通升级的最高版本参数,确定所述用户设备以目标升级方式升级所述目标应用,所述目标升级方式为强制升级方式或普通升级方式,基于所述目标应用预定版本链接获取目标应用预定版本,并按照所述目标升级方式升级所述目标应用。a first sending module, configured to send, according to the request, application upgrade information of the target application to the user equipment, where the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application schedule The version link is configured to enable the user equipment to upgrade the target application in a target upgrade manner based on the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade, where the target upgrade mode is mandatory In the upgrade mode or the normal upgrade mode, the target application predetermined version is obtained based on the target application predetermined version link, and the target application is upgraded according to the target upgrade mode.

可选的,所述请求包括表示所述用户设备类型的设备类型参数,所述第一 发送模块用于基于所述请求中的所述设备类型参数,确定与所述设备类型参数对应的所述目标应用的第一应用升级信息。Optionally, the request includes a device type parameter indicating the type of the user equipment, where the first The sending module is configured to determine, according to the device type parameter in the request, first application upgrade information of the target application corresponding to the device type parameter.

第四方面,本发明提供了一种用户设备,包括:In a fourth aspect, the present invention provides a user equipment, including:

第二发送模块,用于向服务器发送表示用户设备请求获取目标应用的应用升级信息的请求;a second sending module, configured to send, to the server, a request that the user equipment requests to obtain application upgrade information of the target application;

第二接收模块,用于接收所述服务器基于所述请求发送的所述目标应用的应用升级信息,所述应用升级信息包括强制升级的最低版本参数、普通升级的最高版本参数和目标应用预定版本链接;a second receiving module, configured to receive application upgrade information of the target application that is sent by the server according to the request, where the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a predetermined version of the target application. link;

确定模块,用于基于所述强制升级的最低版本参数和所述普通升级的最高版本参数,确定所述用户设备以目标升级方式升级所述目标应用,所述目标升级方式为强制升级方式或普通升级方式;a determining module, configured to: according to the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade, determine that the user equipment upgrades the target application in a target upgrade manner, where the target upgrade mode is a forced upgrade mode or an ordinary Upgrade method;

升级模块,用于基于所述目标应用预定版本链接获取目标应用预定版本,并按照所述目标升级方式升级所述目标应用。And an upgrade module, configured to acquire a target application predetermined version based on the target application predetermined version link, and upgrade the target application according to the target upgrade manner.

可选的,所述确定模块用于获得所述用户设备安装的所述目标应用的当前版本参数;当所述当前版本参数低于所述强制升级的最低版本参数时,确定所述强制升级方式为所述目标升级方式;当所述当前版本参数等于或高于所述强制升级的最低版本参数,且低于普通升级的最高版本参数时,确定所述普通升级方式为所述目标升级方式。Optionally, the determining module is configured to obtain a current version parameter of the target application installed by the user equipment, and determine the forced upgrade mode when the current version parameter is lower than the minimum version parameter of the forced upgrade. For the target upgrade mode, when the current version parameter is equal to or higher than the minimum version parameter of the forced upgrade, and is lower than the highest version parameter of the normal upgrade, it is determined that the normal upgrade mode is the target upgrade mode.

可选的,所述请求包括表示所述用户设备类型的设备类型参数,所述应用升级信息具体为第一应用升级信息,所述用户设备还包括:Optionally, the request includes a device type parameter indicating the type of the user equipment, where the application upgrade information is specifically the first application upgrade information, and the user equipment further includes:

生成模块,用于获取所述设备类型参数;在所述目标应用启动后,基于所述设备类型参数生成所述请求,以使服务器基于所述请求中的所述设备类型参数,确定与所述设备类型参数对应的所述目标应用的所述第一应用升级信息。a generating module, configured to acquire the device type parameter, and after the target application is started, generate the request according to the device type parameter, so that the server determines, according to the device type parameter in the request, The first application upgrade information of the target application corresponding to the device type parameter.

本申请实施例中的上述一个或多个技术方案,至少具有如下一种或多种技术效果:The above one or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:

在本发明实施例的技术方案中,服务器接收用户设备发送的表示请求获取目标应用的应用升级信息的请求,基于所述请求,向所述用户设备发送所述目标应用的应用升级信息,所述应用升级信息包括强制升级的最低版本参数、普通升级的最高版本参数和目标应用预定版本链接,进而所述用户设备基于所述强制升级的最低版本参数和所述普通升级的最高版本参数,确定所述用户设备以目标升级方式升级所述目标应用,所述目标升级方式为强制升级方式或普通升级方式,基于所述目标应用预定版本链接获取目标应用预定版本,并按照所述目标升级方式升级所述目标应用。由此可见,服务器通过向用户设备发送包括强制升级的最低版本参数和普通升级的最高版本参数的应用升级信息,进而 用户设备可以根据强制升级的最低版本参数和普通升级的最高版本参数,并结合自身所安装的目标应用的实际情况,确定出应该以强制升级方式或者普通升级方式升级应用。所以,解决了现有技术中只能统一所有用户设备强制升级或者普通升级目标应用的技术问题,实现了差异化升级应用,增强应用升级的针对性。In the technical solution of the embodiment of the present invention, the server receives, by the user equipment, a request for obtaining the application upgrade information of the target application, and sends the application upgrade information of the target application to the user equipment, according to the request, The application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application predetermined version link, and the user equipment determines the location based on the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade. The user equipment upgrades the target application in a target upgrade mode, where the target upgrade mode is a forced upgrade mode or a normal upgrade mode, and the target application subscription version is obtained based on the target application subscription version link, and the target upgrade mode is upgraded according to the target upgrade mode. The target application. It can be seen that the server sends the application upgrade information including the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade to the user equipment, and further The user equipment can determine whether the application should be upgraded in the forced upgrade mode or the normal upgrade mode according to the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade, and the actual situation of the target application installed by the user. Therefore, the technical problem that only the unified upgrade of all user equipments or the general upgrade target application can be unified in the prior art is realized, the differentiated upgrade application is realized, and the targeted application upgrade is enhanced.

附图说明DRAWINGS

图1为本发明实施例中服务器侧升级应用的方法流程图;1 is a flowchart of a method for upgrading an application on a server side according to an embodiment of the present invention;

图2为本发明实施例中UE侧升级应用的方法流程图;2 is a flowchart of a method for upgrading an application on a UE side according to an embodiment of the present invention;

图3为本发明实施例中确定目标升级方式的逻辑流程图;FIG. 3 is a logic flow chart of determining a target upgrade mode according to an embodiment of the present invention;

图4为本发明实施例中服务器的结构示意图;4 is a schematic structural diagram of a server according to an embodiment of the present invention;

图5为本发明实施例中UE的结构示意图。FIG. 5 is a schematic structural diagram of a UE according to an embodiment of the present invention.

具体实施方式detailed description

本发明实施例提供了一种升级应用的方法、服务器和用户设备,用于实现差异化升级应用,增强应用升级的针对性。The embodiments of the present invention provide a method, a server, and a user equipment for upgrading an application, which are used to implement a differentiated upgrade application and enhance the pertinence of the application upgrade.

为了解决上述技术问题,本发明提供的技术方案总体思路如下:In order to solve the above technical problem, the general idea of the technical solution provided by the present invention is as follows:

在本发明实施例的技术方案中,服务器接收用户设备发送的表示请求获取目标应用的应用升级信息的请求,基于所述请求,向所述用户设备发送所述目标应用的应用升级信息,所述应用升级信息包括强制升级的最低版本参数、普通升级的最高版本参数和目标应用预定版本链接,进而所述用户设备基于所述强制升级的最低版本参数和所述普通升级的最高版本参数,确定所述用户设备以目标升级方式升级所述目标应用,所述目标升级方式为强制升级方式或普通升级方式,基于所述目标应用预定版本链接获取目标应用预定版本,并按照所述目标升级方式升级所述目标应用。由此可见,服务器通过向用户设备发送包括强制升级的最低版本参数和普通升级的最高版本参数的应用升级信息,进而用户设备可以根据强制升级的最低版本参数和普通升级的最高版本参数,并结合自身所安装的目标应用的实际情况,确定出应该以强制升级方式或者普通升级方式升级应用。所以,解决了现有技术中只能统一所有用户设备强制升级或者普通升级目标应用的技术问题,实现了差异化升级应用,增强应用升级的针对性。In the technical solution of the embodiment of the present invention, the server receives, by the user equipment, a request for obtaining the application upgrade information of the target application, and sends the application upgrade information of the target application to the user equipment, according to the request, The application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application predetermined version link, and the user equipment determines the location based on the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade. The user equipment upgrades the target application in a target upgrade mode, where the target upgrade mode is a forced upgrade mode or a normal upgrade mode, and the target application subscription version is obtained based on the target application subscription version link, and the target upgrade mode is upgraded according to the target upgrade mode. The target application. Therefore, the server sends the application upgrade information including the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade to the user equipment, and the user equipment can be combined according to the minimum version parameter of the forced upgrade and the highest version parameter of the ordinary upgrade. The actual situation of the target application installed by the user determines whether the application should be upgraded in the forced upgrade mode or the normal upgrade mode. Therefore, the technical problem that only the unified upgrade of all user equipments or the general upgrade target application can be unified in the prior art is realized, the differentiated upgrade application is realized, and the targeted application upgrade is enhanced.

下面通过附图以及具体实施例对本发明技术方案做详细的说明,应当理解本申请实施例以及实施例中的具体特征是对本申请技术方案的详细的说明,而不是对本申请技术方案的限定,在不冲突的情况下,本申请实施例以及实施例 中的技术特征可以相互组合。The technical solutions of the present invention are described in detail below with reference to the accompanying drawings and specific embodiments. It is understood that the specific features of the embodiments and the embodiments of the present application are the detailed description of the technical solutions of the present application, and are not limited to the technical solutions of the present application. Embodiments and embodiments of the present application in the case of no conflict The technical features in the art can be combined with each other.

本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。The term "and/or" in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and / or B, which may indicate that A exists separately, and both A and B exist, respectively. B these three situations. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.

本发明第一方面提供了一种升级应用的方法,请参考图1,为本发明实施例中服务器侧升级应用的方法流程图。该方法包括:A first aspect of the present invention provides a method for upgrading an application. Referring to FIG. 1 , it is a flowchart of a method for upgrading an application on a server side according to an embodiment of the present invention. The method includes:

S101:服务器接收用户设备发送的表示请求获取目标应用的应用升级信息的请求;S101: The server receives a request sent by the user equipment to request to obtain application upgrade information of the target application.

S102:基于所述请求,向所述用户设备发送所述目标应用的应用升级信息。S102: Send, according to the request, application upgrade information of the target application to the user equipment.

具体来讲,本发明实施例中的目标应用可以为任意能够进行升级的应用,例如网络直播应用、购物应用、聊天应用或阅读器应用等,本发明不做具体限制。服务器为提供目标应用安装包、升级包并维护目标应用的网络侧设备。用户设备为安装任意版本的目标应用的用户侧设备。Specifically, the target application in the embodiment of the present invention may be any application that can be upgraded, such as a webcast application, a shopping application, a chat application, or a reader application, and the present invention is not specifically limited. The server is a network-side device that provides a target application installation package, an upgrade package, and a target application. The user device is a user-side device that installs any version of the target application.

首先,在S101中,服务器接收UE发送的表示请求获取目标应用的应用升级信息的请求。在本发明实施例中,UE可以在任意时刻向服务器发送请求,例如在每次启动目标应用之后向服务器发送请求,或者在接收到用户输入的用于检测升级版本的操作之后向服务器发送请求,或者每隔预设时长,例如7天向服务器发送一次请求。本发明所属领域普通技术人员可以根据实际进行选择,本发明不做具体限制。First, in S101, the server receives a request sent by the UE indicating that the application upgrade information of the target application is requested to be acquired. In the embodiment of the present invention, the UE may send a request to the server at any time, for example, sending a request to the server after each startup of the target application, or sending a request to the server after receiving an operation input by the user for detecting the upgraded version. Or send a request to the server every preset time, for example, 7 days. A person of ordinary skill in the art can make a selection according to the actual situation, and the present invention does not specifically limit it.

服务器接收UE发送的请求后,在S102中,基于请求,向UE发送目标应用的应用升级信息。在本发明实施例中,应用升级信息包括强制升级的最低版本参数、普通升级的最高版本参数和目标应用预定版本链接。其中,强制升级的最低版本参数为需要强制升级的最低版本的参数。普通升级的最高版本参数为通过普通升级能够达到的最高版本的参数。目标应用预定版本链接为目标应用的预定版本的升级包或安装包的链接。在具体实现过程中,应用升级信息还可以进一步包括强制升级提示信息和普通升级提示信息等,本本发明不做具体限制。After receiving the request sent by the UE, the server sends the application upgrade information of the target application to the UE according to the request in S102. In the embodiment of the present invention, the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application predetermined version link. Among them, the minimum version parameter of the forced upgrade is the parameter of the lowest version that needs to be forced to upgrade. The highest version parameter of a normal upgrade is the highest version of the parameter that can be achieved by a normal upgrade. The target application subscription version links to a link to an upgrade package or installation package for a predetermined version of the target application. In the specific implementation process, the application upgrade information may further include a mandatory upgrade prompt information and a general upgrade prompt information, and the present invention does not specifically limit.

在具体实现过程中,不同设备类型的UE对应的目标应用版本有所不同。举例来说,设备类型为安卓Android的UE对应的目标应用具体为Android版本的目标应用,设备类型为苹果移动终端操作系统ios的UE,对应的目标应用具体为ios版本的目标应用。In a specific implementation process, UEs of different device types have different target application versions. For example, the target application corresponding to the UE of the Android type is specifically the target application of the Android version, and the device type is the UE of the Apple mobile terminal operating system ios, and the corresponding target application is specifically the target application of the ios version.

因此,在本发明实施例中,服务器向UE发送的应用升级信息,可以为包括各个版本的应用升级信息,然后,UE在接收应用升级信息后,根据自身设备类 型,筛选出适应于自身版本的应用升级信息,并据此升级目标应用。或者,在一种可选的实施例中,还可以在请求中包括UE设备类型的设备类型参数,进而S102则具体可以包括:Therefore, in the embodiment of the present invention, the application upgrade information sent by the server to the UE may be an application upgrade information including each version, and then, after receiving the application upgrade information, the UE according to its own device class. Type, filter out the application upgrade information adapted to its own version, and upgrade the target application accordingly. Alternatively, in an optional embodiment, the device type parameter of the UE device type may be included in the request, and the S102 may specifically include:

基于所述请求中的所述设备类型参数,确定与所述设备类型参数对应的所述目标应用的第一应用升级信息。Determining, according to the device type parameter in the request, first application upgrade information of the target application corresponding to the device type parameter.

具体来讲,本发明实施例中的设备类型参数可以为设备类型本身,例如Android、ios或Windows等。或者,设备类型参数也可以为设备类型的对应码,例如设备类型ios的对应码为0,设备类型Android的对应码为1。本发明所属领域的普通技术人员可以根据实际进行选择,本发明不做具体限制。Specifically, the device type parameter in the embodiment of the present invention may be the device type itself, such as Android, iOS, or Windows. Alternatively, the device type parameter may also be a corresponding code of the device type. For example, the corresponding code of the device type ios is 0, and the corresponding code of the device type Android is 1. A person of ordinary skill in the art to which the present invention pertains may make selections according to actual conditions, and the present invention is not specifically limited.

在本发明实施例中,UE发送请求时,获取设备类型参数。UE在目标应用启动后会生成启动完毕函数,并将启动完毕函数发送给服务器。因此,本发明实施例中可以将启动完毕函数作为请求,并将设备类型参数包含在启动完毕函数中。进而,服务器接收启动完毕函数,并解析出启动完毕函数包含的设备类型参数。然后,从多个不同版本的应用升级信息中确定出设备类型参数对应的第一应用升级信息发送给UE。In the embodiment of the present invention, when the UE sends a request, the device type parameter is acquired. After the target application is started, the UE generates a startup completion function and sends the startup completion function to the server. Therefore, in the embodiment of the present invention, the startup completion function can be used as a request, and the device type parameter is included in the startup completion function. Further, the server receives the startup completion function and parses out the device type parameters included in the startup completion function. Then, the first application upgrade information corresponding to the device type parameter is sent to the UE from the application upgrade information of the multiple versions.

举例来说,假设设备类型参数具体为type,以设备类型的对应码表示,ios的对应码为0,Android的对应码为1。Android版本的强制升级的最低版本参数以minAndroidVersion表示,普通升级的最高版本参数以maxAndroidVersion表示,目标应用预定版本链接以androidDownloadLink表示。进一步,假设Android版本的应用升级信息中还包括强制升级提示信息minAndroidVersionTips和普通升级提示信息maxAndroidVersionTips。ios版本的强制升级的最低版本参数以minlosVersion表示,普通升级的最高版本参数以maxlosVersion表示,目标应用预定版本链接以losDownloadLink表示。进一步,假设ios版本的应用升级信息中还包括强制升级提示信息minlosVersionTips和普通升级提示信息maxlosVersionTips。For example, suppose the device type parameter is specifically type, represented by the corresponding code of the device type, the corresponding code of ios is 0, and the corresponding code of Android is 1. The minimum version parameter of the forced upgrade of the Android version is represented by minAndroidVersion, the highest version parameter of the normal upgrade is represented by maxAndroidVersion, and the target application predetermined version link is represented by androidDownloadLink. Further, it is assumed that the application upgrade information of the Android version further includes a forced upgrade prompt information minAndroidVersionTips and a normal upgrade prompt information maxAndroidVersionTips. The minimum version parameter of the forced upgrade of the ios version is represented by minlosVersion, the highest version parameter of the normal upgrade is represented by maxlosVersion, and the target application predetermined version link is represented by losDownloadLink. Further, it is assumed that the application upgrade information of the ios version further includes a forced upgrade prompt information minlosVersionTips and a normal upgrade prompt information maxlosVersionTips.

UE完成目标应用启动后,读取自身设备类型,如果为ios设备类型,则令type=0,如果为Android设备类型,则令type=1。然后将type=1或者type=0包含到启动完毕函数中发送给服务器。After the UE completes the target application startup, it reads its own device type. If it is an ios device type, let type=0. If it is an Android device type, let type=1. Then type=1 or type=0 is included in the startup function and sent to the server.

服务器接收启动完毕函数并进行解析。如果解析出type=1,则获取Android版本的应用升级信息“minAndroidVersion,maxAndroidVersion,androidDownloadLink,minAndroidVersionTips和maxAndroidVersionTips”,并将Android版本的应用升级信息发送给UE。如果解析出type=0,则获取ios版本的应用升级信息“minlosVersion,maxlosVersion,losDownloadLink,minlosVersionTips和maxlosVersionTips”,并将ios版本的应用升级信息发 送给UE。The server receives the startup completion function and parses it. If the type=1 is parsed, the application upgrade information "minAndroidVersion, maxAndroidVersion, androidDownloadLink, minAndroidVersionTips, and maxAndroidVersionTips" of the Android version is obtained, and the application upgrade information of the Android version is sent to the UE. If type=0 is parsed, the application upgrade information "minlosVersion, maxlosVersion, losDownloadLink, minlosVersionTips, and maxlosVersionTips" of the ios version is obtained, and the application upgrade information of the ios version is sent. Send it to the UE.

接下来,请参考图2,为本发明实施例中UE侧升级应用的方法流程图。该方法包括:Next, please refer to FIG. 2, which is a flowchart of a method for upgrading an application on a UE side according to an embodiment of the present invention. The method includes:

S201:用户设备向服务器发送表示用户设备请求获取目标应用的应用升级信息的请求;S201: The user equipment sends a request to the server to indicate that the user equipment requests to obtain application upgrade information of the target application.

S202:接收所述服务器基于所述请求发送的所述目标应用的应用升级信息;S202: Receive application upgrade information of the target application that is sent by the server according to the request.

S203:基于所述强制升级的最低版本参数和所述普通升级的最高版本参数,确定所述用户设备以目标升级方式升级所述目标应用;S203: Determine, according to the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade, that the user equipment upgrades the target application in a target upgrade manner;

S204:基于所述目标应用预定版本链接获取目标应用预定版本,并按照所述目标升级方式升级所述目标应用。S204: Acquire a target application predetermined version based on the target application predetermined version link, and upgrade the target application according to the target upgrade manner.

具体来讲,UE在S202中接收服务器发送的应用升级信息。进一步,如果服务器是将各个版本的应用升级信息均打包在应用升级信息中,则UE进一步还需要根据自身设备类型,筛选出适应于自身版本的应用升级信息。例如服务器发送的应用升级信息包括Android版本的应用升级信息(minAndroidVersion,maxAndroidVersion,androidDownloadLink,minAndroidVersionTips和maxAndroidVersionTips)和ios版本的应用升级信息(minlosVersion,maxlosVersion,losDownloadLink,minlosVersionTips和maxlosVersionTips),UE为ios设备类型,则UE自行筛选出minlosVersion,maxlosVersion,losDownloadLink,minlosVersionTips和maxlosVersionTips。Specifically, the UE receives the application upgrade information sent by the server in S202. Further, if the server is to package the application upgrade information of each version in the application upgrade information, the UE further needs to filter the application upgrade information adapted to its own version according to the type of the device. For example, the application upgrade information sent by the server includes application upgrade information (minAndroidVersion, maxAndroidVersion, androidDownloadLink, minAndroidVersionTips, and maxAndroidVersionTips) of the Android version and application upgrade information (minlosVersion, maxlosVersion, losDownloadLink, minlosVersionTips, and maxlosVersionTips) of the ios version, and the UE is an ios device type. Then the UE filters out minlosVersion, maxlosVersion, losDownloadLink, minlosVersionTips and maxlosVersionTips.

或者,UE也可以通过在S201之前,执行如下操作:Alternatively, the UE may also perform the following operations before S201:

获取所述设备类型参数;Obtaining the device type parameter;

在所述目标应用启动后,基于所述设备类型参数生成所述请求,以使服务器基于所述请求中的所述设备类型参数,确定与所述设备类型参数对应的所述目标应用的所述第一应用升级信息。After the target application is started, generating the request based on the device type parameter, so that the server determines, according to the device type parameter in the request, the identifier of the target application corresponding to the device type parameter First application upgrade information.

那么服务器将基于设备类型参数直接向UE发送与UE设备类型匹配的第一应用升级信息。上述生成请求的实现方式在上文已有介绍,此处就不再重复赘述了。在具体实现过程中,本发明所属领域的普通技术人员可以选择向UE发送或者不发送设备类型参数type,本发明不做具体限制。Then the server will directly send the first application upgrade information that matches the UE device type to the UE based on the device type parameter. The implementation of the above generation request is described above, and the details are not repeated here. In a specific implementation process, a person of ordinary skill in the art may choose to send or not send a device type parameter type to the UE, and the present invention does not specifically limit the present invention.

然后,S203中基于应用升级信息中的强制升级的最低版本参数和普通升级的最高版本参数,确定是否升级应用,以及确定如果需要升级应用,则具体以目标升级方式升级应用。本发明实施例中的目标升级方式包括强制升级方式和普通升级方式。S203可以通过如下过程实现:Then, in S203, based on the minimum version parameter of the forced upgrade in the application upgrade information and the highest version parameter of the normal upgrade, it is determined whether to upgrade the application, and if it is determined that the application needs to be upgraded, the application is specifically upgraded in the target upgrade manner. The target upgrade mode in the embodiment of the present invention includes a forced upgrade mode and a normal upgrade mode. S203 can be implemented by the following process:

获得所述用户设备安装的所述目标应用的当前版本参数; Obtaining a current version parameter of the target application installed by the user equipment;

当所述当前版本参数低于所述强制升级的最低版本参数时,确定所述强制升级方式为所述目标升级方式;When the current version parameter is lower than the minimum version parameter of the forced upgrade, determining that the forced upgrade mode is the target upgrade mode;

当所述当前版本参数等于或高于所述强制升级的最低版本参数,且低于普通升级的最高版本参数时,确定所述普通升级方式为所述目标升级方式。When the current version parameter is equal to or higher than the minimum version parameter of the forced upgrade, and is lower than the highest version parameter of the normal upgrade, it is determined that the normal upgrade mode is the target upgrade mode.

具体来讲,UE读取当前安装于UE中的目标应用的当前版本参数,然后将当前版本参数与强制升级的最低版本参数和普通升级的最高版本参数进行比较,进而确定是否需要升级目标应用,以及如果要升级目标应用,具体的目标升级方式。Specifically, the UE reads the current version parameter of the target application currently installed in the UE, and then compares the current version parameter with the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade, thereby determining whether the target application needs to be upgraded. And if you want to upgrade the target application, the specific target upgrade method.

在本发明实施例中,无论服务器向UE发送的是各个版本的应用升级信息,还是对应于UE的第一应用升级信息,在比较当前版本参数与强制升级的最低版本参数和普通升级的最高版本参数时,均为与同一版本的强制升级的最低版本参数和普通升级的最高版本参数进行比较。In the embodiment of the present invention, whether the server sends the application upgrade information of each version to the UE or the first application upgrade information corresponding to the UE, the current version parameter and the minimum version parameter of the forced upgrade and the highest version of the normal upgrade are compared. When the parameters are compared, they are compared with the minimum version parameter of the forced upgrade of the same version and the highest version parameter of the normal upgrade.

为了方便说明,本发明以Android版本和ios版本为例进行说明。请参考图3,为本发明实施例中确定目标升级方式的逻辑流程图。For convenience of description, the present invention is described by taking an Android version and an ios version as an example. Please refer to FIG. 3, which is a logic flow chart for determining a target upgrade mode according to an embodiment of the present invention.

1、Android类型的UE:UE接收服务器发送的minAndroidVersion,maxAndroidVersion,androidDownloadLink,minAndroidVersionTips和maxAndroidVersionTips。获取当前版本参数AndroidCurrentVersion。当AndroidCurrentVersion小于minAndroidVersion时,表示UE当前安装的目标应用版本过低,需要进行强制升级才允许用户继续使用,所以确定需要升级目标应用,且确定目标升级方式为强制升级方式。然后,基于androidDownloadLink获取高于minAndroidVersion的预定版本,进而升级目标应用。同时,调用Android系统的弹框,输出minAndroidVersionTips,以提示用户目标应用将要执行强制升级。1. Android type UE: The UE receives the minAndroidVersion, maxAndroidVersion, androidDownloadLink, minAndroidVersionTips and maxAndroidVersionTips sent by the server. Get the current version parameter AndroidCurrentVersion. When the AndroidCurrentVersion is smaller than the minAndroidVersion, it indicates that the target application version currently installed by the UE is too low, and the forced upgrade is required to allow the user to continue to use. Therefore, it is determined that the target application needs to be upgraded, and the target upgrade mode is determined to be the forced upgrade mode. Then, based on androidDownloadLink to obtain a predetermined version higher than minAndroidVersion, and then upgrade the target application. At the same time, call the Android system's bullet box and output minAndroidVersionTips to prompt the user that the target application will perform a forced upgrade.

而当AndroidCurrentVersion等于或高于minAndroidVersion,且AndroidCurrentVersion低于maxAndroidVersion时,表示UE中当前安装的目标应用版本较高,但并不是最高版本,因此无论是否升级都可以允许用于继续使用。所以此时确定需要升级目标应用,但是目标升级方式则为普通升级方式。接下来,调用Android系统的弹框,输出maxAndroidVersionTips,提示用户选择升级或者不升级。如果用户选择升级,则进一步基于androidDownloadLink获取预定版本,进而升级目标应用。When AndroidCurrentVersion is equal to or higher than minAndroidVersion, and AndroidCurrentVersion is lower than maxAndroidVersion, it indicates that the target application version currently installed in the UE is higher, but not the highest version, so it can be allowed to continue to be used regardless of whether it is upgraded or not. Therefore, it is determined that the target application needs to be upgraded at this time, but the target upgrade mode is the normal upgrade mode. Next, call the Android system's bullet box, output maxAndroidVersionTips, prompt the user to choose to upgrade or not upgrade. If the user chooses to upgrade, the predetermined version is further obtained based on androidDownloadLink, thereby upgrading the target application.

而如果AndroidCurrentVersion等于或高于maxAndroidVersion,则表示UE中当前安装的目标应用版本已经为最高,所以确定不需要升级目标应用。If the AndroidCurrentVersion is equal to or higher than the maxAndroidVersion, it means that the target application version currently installed in the UE is already the highest, so it is determined that the target application does not need to be upgraded.

2、ios类型的UE:UE接收服务器发送的minlosVersion,maxlosVersion,losDownloadLink,minlosVersionTips和maxlosVersionTips。获取当前版本 参数losCurrentVersion。当losCurrentVersion小于minlosVersion时,表示UE当前安装的目标应用版本过低,需要进行强制升级才允许用户继续使用,所以确定需要升级目标应用,且确定目标升级方式为强制升级方式。然后,基于losDownloadLink获取高于minlosVersion的预定版本,进而升级目标应用。同时,调用ios系统的弹框,输出minlosVersionTips,以提示用户目标应用将要执行强制升级。2. ios type UE: The UE receives the minlosVersion, maxlosVersion, losDownloadLink, minlosVersionTips and maxlosVersionTips sent by the server. Get the current version The parameter losCurrentVersion. When the losCurrentVersion is smaller than the minlosVersion, it indicates that the target application version currently installed by the UE is too low, and the forced upgrade is required to allow the user to continue to use. Therefore, it is determined that the target application needs to be upgraded, and the target upgrade mode is determined to be the forced upgrade mode. Then, based on losDownloadLink, a predetermined version higher than minlosVersion is obtained, thereby upgrading the target application. At the same time, call the ios system's bullet box and output minlosVersionTips to prompt the user that the target application will perform a forced upgrade.

而当losCurrentVersion等于或高于minlosVersion,且losCurrentVersion低于maxlosVersion时,表示UE中当前安装的目标应用版本较高,但并不是最高版本,因此无论是否升级都可以允许用于继续使用。所以此时确定需要升级目标应用,但是目标升级方式则为普通升级方式。接下来,调用ios系统的弹框,输出maxlosVersionTips,提示用户选择升级或者不升级。如果用户选择升级,则进一步基于losDownloadLink获取预定版本,进而升级目标应用。When losCurrentVersion is equal to or higher than minlosVersion, and losCurrentVersion is lower than maxlosVersion, it means that the target application version currently installed in the UE is higher, but not the highest version, so it can be allowed to continue to be used regardless of whether it is upgraded or not. Therefore, it is determined that the target application needs to be upgraded at this time, but the target upgrade mode is the normal upgrade mode. Next, call the ios system's bullet box, output maxlosVersionTips, prompt the user to choose to upgrade or not upgrade. If the user chooses to upgrade, the predetermined version is further obtained based on losDownloadLink, thereby upgrading the target application.

而如果losCurrentVersion等于或高于maxlosVersion,则表示UE中当前安装的目标应用版本已经为最高,所以确定不需要升级目标应用。If losCurrentVersion is equal to or higher than maxlosVersion, it means that the target application version currently installed in the UE is already the highest, so it is determined that the target application does not need to be upgraded.

由上述描述可以看出,在本发明实施例的技术方案中,服务器接收用户设备发送的表示请求获取目标应用的应用升级信息的请求,基于所述请求,向所述用户设备发送所述目标应用的应用升级信息,所述应用升级信息包括强制升级的最低版本参数、普通升级的最高版本参数和目标应用预定版本链接,进而所述用户设备基于所述强制升级的最低版本参数和所述普通升级的最高版本参数,确定所述用户设备以目标升级方式升级所述目标应用,所述目标升级方式为强制升级方式或普通升级方式,基于所述目标应用预定版本链接获取目标应用预定版本,并按照所述目标升级方式升级所述目标应用。由此可见,服务器通过向用户设备发送包括强制升级的最低版本参数和普通升级的最高版本参数的应用升级信息,进而用户设备可以根据强制升级的最低版本参数和普通升级的最高版本参数,并结合自身所安装的目标应用的实际情况,确定出应该以强制升级方式或者普通升级方式升级应用。所以,解决了现有技术中只能统一所有用户设备强制升级或者普通升级目标应用的技术问题,实现了差异化升级应用,增强应用升级的针对性。It can be seen from the above description that, in the technical solution of the embodiment of the present invention, the server receives a request sent by the user equipment to request to obtain application upgrade information of the target application, and sends the target application to the user equipment based on the request. Application upgrade information, the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application predetermined version link, and the user equipment is based on the minimum version parameter of the forced upgrade and the normal upgrade. The highest version parameter, the user equipment is upgraded in the target upgrade mode, and the target upgrade mode is a forced upgrade mode or a normal upgrade mode, and the target application subscription version is obtained based on the target application predetermined version link, and is followed. The target upgrade mode upgrades the target application. Therefore, the server sends the application upgrade information including the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade to the user equipment, and the user equipment can be combined according to the minimum version parameter of the forced upgrade and the highest version parameter of the ordinary upgrade. The actual situation of the target application installed by the user determines whether the application should be upgraded in the forced upgrade mode or the normal upgrade mode. Therefore, the technical problem that only the unified upgrade of all user equipments or the general upgrade target application can be unified in the prior art is realized, the differentiated upgrade application is realized, and the targeted application upgrade is enhanced.

基于与前述实施例中升级应用的方法同样的发明构思,本发明还提供一种服务器,如图4所示,包括:Based on the same inventive concept as the method for upgrading an application in the foregoing embodiment, the present invention further provides a server, as shown in FIG. 4, comprising:

第一接收模块101,用于接收用户设备发送的表示请求获取目标应用的应用升级信息的请求;The first receiving module 101 is configured to receive, by the user equipment, a request for requesting to obtain application upgrade information of the target application;

第一发送模块102,用于基于所述请求,向所述用户设备发送所述目标应 用的应用升级信息,所述应用升级信息包括强制升级的最低版本参数、普通升级的最高版本参数和目标应用预定版本链接,以使所述用户设备基于所述强制升级的最低版本参数和所述普通升级的最高版本参数,确定所述用户设备以目标升级方式升级所述目标应用,所述目标升级方式为强制升级方式或普通升级方式,基于所述目标应用预定版本链接获取目标应用预定版本,并按照所述目标升级方式升级所述目标应用。The first sending module 102 is configured to send the target response to the user equipment based on the request Application upgrade information, the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application predetermined version link, so that the user equipment is based on the minimum version parameter of the forced upgrade and the The highest version of the normal upgrade parameter, the user equipment is upgraded in the target upgrade mode, and the target upgrade mode is a forced upgrade mode or a normal upgrade mode, and the target application subscription version is obtained based on the target application predetermined version link. And upgrading the target application according to the target upgrade mode.

其中,请求包括表示用户设备类型的设备类型参数,则第一发送模块102用于基于所述请求中的所述设备类型参数,确定与所述设备类型参数对应的所述目标应用的第一应用升级信息。The first sending module 102 is configured to determine, according to the device type parameter in the request, a first application of the target application corresponding to the device type parameter, where the request includes a device type parameter indicating a user equipment type. Upgrade information.

前述图1-图3实施例中的升级应用的方法的各种变化方式和具体实例同样适用于本实施例的服务器,通过前述对升级应用的方法的详细描述,本领域技术人员可以清楚的知道本实施例中服务器的实施方法,所以为了说明书的简洁,在此不再详述。The various changes and specific examples of the method for upgrading the application in the foregoing embodiments of FIG. 1 to FIG. 3 are also applicable to the server of the embodiment. The foregoing detailed description of the method for upgrading the application can be clearly known by those skilled in the art. The implementation method of the server in this embodiment is not detailed here for the sake of brevity of the description.

基于与前述实施例中升级应用的方法同样的发明构思,本发明还提供一种UE,如图5所示,包括:Based on the same inventive concept as the method for upgrading an application in the foregoing embodiment, the present invention further provides a UE, as shown in FIG. 5, including:

第二发送模块201,用于向服务器发送表示用户设备请求获取目标应用的应用升级信息的请求;a second sending module 201, configured to send, to the server, a request that the user equipment requests to obtain application upgrade information of the target application;

第二接收模块202,用于接收所述服务器基于所述请求发送的所述目标应用的应用升级信息,所述应用升级信息包括强制升级的最低版本参数、普通升级的最高版本参数和目标应用预定版本链接;The second receiving module 202 is configured to receive application upgrade information of the target application that is sent by the server according to the request, where the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application reservation. Version link

确定模块203,用于基于所述强制升级的最低版本参数和所述普通升级的最高版本参数,确定所述用户设备以目标升级方式升级所述目标应用,所述目标升级方式为强制升级方式或普通升级方式;The determining module 203 is configured to determine, according to the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade, that the user equipment upgrades the target application in a target upgrade manner, where the target upgrade mode is a forced upgrade mode or Ordinary upgrade method;

升级模块204,用于基于所述目标应用预定版本链接获取目标应用预定版本,并按照所述目标升级方式升级所述目标应用。The upgrade module 204 is configured to acquire a target application predetermined version based on the target application predetermined version link, and upgrade the target application according to the target upgrade manner.

具体来讲,确定模块203用于获得所述用户设备安装的所述目标应用的当前版本参数;当所述当前版本参数低于所述强制升级的最低版本参数时,确定所述强制升级方式为所述目标升级方式;当所述当前版本参数等于或高于所述强制升级的最低版本参数,且低于普通升级的最高版本参数时,确定所述普通升级方式为所述目标升级方式。Specifically, the determining module 203 is configured to obtain a current version parameter of the target application installed by the user equipment, and when the current version parameter is lower than the minimum version parameter of the forced upgrade, determine that the forced upgrade mode is The target upgrade mode is determined. When the current version parameter is equal to or higher than the minimum version parameter of the forced upgrade, and is lower than the highest version parameter of the normal upgrade, the normal upgrade mode is determined to be the target upgrade mode.

进一步,用户设备还包括:Further, the user equipment further includes:

生成模块,用于获取所述设备类型参数;在所述目标应用启动后,基于所述设备类型参数生成所述请求,以使服务器基于所述请求中的所述设备类型参数,确定与所述设备类型参数对应的所述目标应用的所述第一应用升级信息。 a generating module, configured to acquire the device type parameter, and after the target application is started, generate the request according to the device type parameter, so that the server determines, according to the device type parameter in the request, The first application upgrade information of the target application corresponding to the device type parameter.

前述图1-图3实施例中的升级应用的方法的各种变化方式和具体实例同样适用于本实施例的UE,通过前述对升级应用的方法的详细描述,本领域技术人员可以清楚的知道本实施例中UE的实施方法,所以为了说明书的简洁,在此不再详述。The various changes and specific examples of the method for upgrading an application in the foregoing embodiments of FIG. 1 to FIG. 3 are also applicable to the UE in this embodiment. The foregoing detailed description of the method for upgrading the application can be clearly known by those skilled in the art. The implementation method of the UE in this embodiment, so for the sake of brevity of the description, it will not be described in detail herein.

本申请实施例中的上述一个或多个技术方案,至少具有如下一种或多种技术效果:The above one or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:

由上述描述可以看出,在本发明实施例的技术方案中,服务器接收用户设备发送的表示请求获取目标应用的应用升级信息的请求,基于所述请求,向所述用户设备发送所述目标应用的应用升级信息,所述应用升级信息包括强制升级的最低版本参数、普通升级的最高版本参数和目标应用预定版本链接,进而所述用户设备基于所述强制升级的最低版本参数和所述普通升级的最高版本参数,确定所述用户设备以目标升级方式升级所述目标应用,所述目标升级方式为强制升级方式或普通升级方式,基于所述目标应用预定版本链接获取目标应用预定版本,并按照所述目标升级方式升级所述目标应用。由此可见,服务器通过向用户设备发送包括强制升级的最低版本参数和普通升级的最高版本参数的应用升级信息,进而用户设备可以根据强制升级的最低版本参数和普通升级的最高版本参数,并结合自身所安装的目标应用的实际情况,确定出应该以强制升级方式或者普通升级方式升级应用。所以,解决了现有技术中只能统一所有用户设备强制升级或者普通升级目标应用的技术问题,实现了差异化升级应用,增强应用升级的针对性。It can be seen from the above description that, in the technical solution of the embodiment of the present invention, the server receives a request sent by the user equipment to request to obtain application upgrade information of the target application, and sends the target application to the user equipment based on the request. Application upgrade information, the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application predetermined version link, and the user equipment is based on the minimum version parameter of the forced upgrade and the normal upgrade. The highest version parameter, the user equipment is upgraded in the target upgrade mode, and the target upgrade mode is a forced upgrade mode or a normal upgrade mode, and the target application subscription version is obtained based on the target application predetermined version link, and is followed. The target upgrade mode upgrades the target application. Therefore, the server sends the application upgrade information including the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade to the user equipment, and the user equipment can be combined according to the minimum version parameter of the forced upgrade and the highest version parameter of the ordinary upgrade. The actual situation of the target application installed by the user determines whether the application should be upgraded in the forced upgrade mode or the normal upgrade mode. Therefore, the technical problem that only the unified upgrade of all user equipments or the general upgrade target application can be unified in the prior art is realized, the differentiated upgrade application is realized, and the targeted application upgrade is enhanced.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中 的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that it is stored in the computer readable memory. The instructions produce an article of manufacture comprising an instruction device that implements the functions specified in a block or blocks of a flow or a flow and/or a block diagram of the flowchart.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内 It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and variations of the invention

Claims (10)

一种升级应用的方法,其特征在于,包括:A method for upgrading an application, comprising: 服务器接收用户设备发送的表示请求获取目标应用的应用升级信息的请求;The server receives a request sent by the user equipment to request to obtain application upgrade information of the target application; 基于所述请求,向所述用户设备发送所述目标应用的应用升级信息,所述应用升级信息包括强制升级的最低版本参数、普通升级的最高版本参数和目标应用预定版本链接,以使所述用户设备基于所述强制升级的最低版本参数和所述普通升级的最高版本参数,确定所述用户设备以目标升级方式升级所述目标应用,所述目标升级方式为强制升级方式或普通升级方式,基于所述目标应用预定版本链接获取目标应用预定版本,并按照所述目标升级方式升级所述目标应用。Sending, according to the request, application upgrade information of the target application to the user equipment, where the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application predetermined version link, so that the The user equipment is configured to upgrade the target application in a target upgrade mode, where the target upgrade mode is a forced upgrade mode or a normal upgrade mode, based on the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade. Obtaining a target application predetermined version based on the target application predetermined version link, and upgrading the target application according to the target upgrade manner. 如权利要求1所述的方法,其特征在于,所述请求包括表示所述用户设备类型的设备类型参数,基于所述请求,向所述用户设备发送所述目标应用的应用升级信息,包括:The method according to claim 1, wherein the request includes a device type parameter indicating the type of the user equipment, and the application upgrade information of the target application is sent to the user equipment based on the request, including: 基于所述请求中的所述设备类型参数,确定与所述设备类型参数对应的所述目标应用的第一应用升级信息。Determining, according to the device type parameter in the request, first application upgrade information of the target application corresponding to the device type parameter. 一种升级应用的方法,其特征在于,包括:A method for upgrading an application, comprising: 用户设备向服务器发送表示用户设备请求获取目标应用的应用升级信息的请求;The user equipment sends a request to the server to indicate that the user equipment requests to obtain application upgrade information of the target application; 接收所述服务器基于所述请求发送的所述目标应用的应用升级信息,所述应用升级信息包括强制升级的最低版本参数、普通升级的最高版本参数和目标应用预定版本链接;Receiving application upgrade information of the target application that is sent by the server according to the request, where the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application predetermined version link; 基于所述强制升级的最低版本参数和所述普通升级的最高版本参数,确定所述用户设备以目标升级方式升级所述目标应用,所述目标升级方式为强制升级方式或普通升级方式;And determining, according to the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade, that the user equipment upgrades the target application in a target upgrade mode, where the target upgrade mode is a forced upgrade mode or a normal upgrade mode; 基于所述目标应用预定版本链接获取目标应用预定版本,并按照所述目标升级方式升级所述目标应用。Obtaining a target application predetermined version based on the target application predetermined version link, and upgrading the target application according to the target upgrade manner. 如权利要求3所述的方法,其特征在于,基于所述强制升级的最低版本参数和所述普通升级的最高版本参数,包括:The method of claim 3, wherein the lowest version parameter based on the forced upgrade and the highest version parameter of the normal upgrade include: 获得所述用户设备安装的所述目标应用的当前版本参数;Obtaining a current version parameter of the target application installed by the user equipment; 当所述当前版本参数低于所述强制升级的最低版本参数时,确定所述强制升级方式为所述目标升级方式;When the current version parameter is lower than the minimum version parameter of the forced upgrade, determining that the forced upgrade mode is the target upgrade mode; 当所述当前版本参数等于或高于所述强制升级的最低版本参数,且低于普通升级的最高版本参数时,确定所述普通升级方式为所述目标升级方式。 When the current version parameter is equal to or higher than the minimum version parameter of the forced upgrade, and is lower than the highest version parameter of the normal upgrade, it is determined that the normal upgrade mode is the target upgrade mode. 如权利要求4所述的方法,其特征在于,所述请求包括表示所述用户设备类型的设备类型参数,所述应用升级信息具体为第一应用升级信息,在用户设备向服务器发送表示用户设备请求获取目标应用的应用升级信息的请求之前,还包括:The method according to claim 4, wherein the request includes a device type parameter indicating the type of the user equipment, and the application upgrade information is specifically the first application upgrade information, and the user equipment sends the user equipment to the server. Before requesting a request for application upgrade information for a target app, it also includes: 获取所述设备类型参数;Obtaining the device type parameter; 在所述目标应用启动后,基于所述设备类型参数生成所述请求,以使服务器基于所述请求中的所述设备类型参数,确定与所述设备类型参数对应的所述目标应用的所述第一应用升级信息。After the target application is started, generating the request based on the device type parameter, so that the server determines, according to the device type parameter in the request, the identifier of the target application corresponding to the device type parameter First application upgrade information. 一种服务器,其特征在于,包括:A server, comprising: 第一接收模块,用于接收用户设备发送的表示请求获取目标应用的应用升级信息的请求;a first receiving module, configured to receive a request sent by the user equipment to request to obtain application upgrade information of the target application; 第一发送模块,用于基于所述请求,向所述用户设备发送所述目标应用的应用升级信息,所述应用升级信息包括强制升级的最低版本参数、普通升级的最高版本参数和目标应用预定版本链接,以使所述用户设备基于所述强制升级的最低版本参数和所述普通升级的最高版本参数,确定所述用户设备以目标升级方式升级所述目标应用,所述目标升级方式为强制升级方式或普通升级方式,基于所述目标应用预定版本链接获取目标应用预定版本,并按照所述目标升级方式升级所述目标应用。a first sending module, configured to send, according to the request, application upgrade information of the target application to the user equipment, where the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a target application schedule The version link is configured to enable the user equipment to upgrade the target application in a target upgrade manner based on the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade, where the target upgrade mode is mandatory In the upgrade mode or the normal upgrade mode, the target application predetermined version is obtained based on the target application predetermined version link, and the target application is upgraded according to the target upgrade mode. 如权利要求6所述的服务器,其特征在于,所述请求包括表示所述用户设备类型的设备类型参数,所述第一发送模块用于基于所述请求中的所述设备类型参数,确定与所述设备类型参数对应的所述目标应用的第一应用升级信息。The server according to claim 6, wherein the request includes a device type parameter indicating the type of the user equipment, and the first sending module is configured to determine, based on the device type parameter in the request, The first application upgrade information of the target application corresponding to the device type parameter. 一种用户设备,其特征在于,包括:A user equipment, comprising: 第二发送模块,用于向服务器发送表示用户设备请求获取目标应用的应用升级信息的请求;a second sending module, configured to send, to the server, a request that the user equipment requests to obtain application upgrade information of the target application; 第二接收模块,用于接收所述服务器基于所述请求发送的所述目标应用的应用升级信息,所述应用升级信息包括强制升级的最低版本参数、普通升级的最高版本参数和目标应用预定版本链接;a second receiving module, configured to receive application upgrade information of the target application that is sent by the server according to the request, where the application upgrade information includes a minimum version parameter of the forced upgrade, a highest version parameter of the normal upgrade, and a predetermined version of the target application. link; 确定模块,用于基于所述强制升级的最低版本参数和所述普通升级的最高版本参数,确定所述用户设备以目标升级方式升级所述目标应用,所述目标升级方式为强制升级方式或普通升级方式;a determining module, configured to: according to the minimum version parameter of the forced upgrade and the highest version parameter of the normal upgrade, determine that the user equipment upgrades the target application in a target upgrade manner, where the target upgrade mode is a forced upgrade mode or an ordinary Upgrade method; 升级模块,用于基于所述目标应用预定版本链接获取目标应用预定版本,并按照所述目标升级方式升级所述目标应用。And an upgrade module, configured to acquire a target application predetermined version based on the target application predetermined version link, and upgrade the target application according to the target upgrade manner. 如权利要求8所述的用户设备,其特征在于,所述确定模块用于获得所 述用户设备安装的所述目标应用的当前版本参数;当所述当前版本参数低于所述强制升级的最低版本参数时,确定所述强制升级方式为所述目标升级方式;当所述当前版本参数等于或高于所述强制升级的最低版本参数,且低于普通升级的最高版本参数时,确定所述普通升级方式为所述目标升级方式。The user equipment according to claim 8, wherein said determining module is configured to obtain a The current version parameter of the target application installed by the user equipment; when the current version parameter is lower than the minimum version parameter of the forced upgrade, determining that the forced upgrade mode is the target upgrade mode; when the current version is When the parameter is equal to or higher than the minimum version parameter of the forced upgrade, and is lower than the highest version parameter of the normal upgrade, it is determined that the normal upgrade mode is the target upgrade mode. 如权利要求9所述的用户设备,其特征在于,所述请求包括表示所述用户设备类型的设备类型参数,所述应用升级信息具体为第一应用升级信息,所述用户设备还包括:The user equipment according to claim 9, wherein the request includes a device type parameter indicating the type of the user equipment, and the application upgrade information is specifically the first application upgrade information, and the user equipment further includes: 生成模块,用于获取所述设备类型参数;在所述目标应用启动后,基于所述设备类型参数生成所述请求,以使服务器基于所述请求中的所述设备类型参数,确定与所述设备类型参数对应的所述目标应用的所述第一应用升级信息。 a generating module, configured to acquire the device type parameter, and after the target application is started, generate the request according to the device type parameter, so that the server determines, according to the device type parameter in the request, The first application upgrade information of the target application corresponding to the device type parameter.
PCT/CN2017/075738 2016-12-09 2017-03-06 Method for upgrading application, and server and user equipment Ceased WO2018103217A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611130139.3A CN106648769A (en) 2016-12-09 2016-12-09 Application upgrading method, server and user device
CN201611130139.3 2016-12-09

Publications (1)

Publication Number Publication Date
WO2018103217A1 true WO2018103217A1 (en) 2018-06-14

Family

ID=58824806

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/075738 Ceased WO2018103217A1 (en) 2016-12-09 2017-03-06 Method for upgrading application, and server and user equipment

Country Status (2)

Country Link
CN (1) CN106648769A (en)
WO (1) WO2018103217A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608689B (en) * 2017-08-07 2020-01-21 阿里巴巴集团控股有限公司 Method and device for updating application program on client and electronic equipment
CN107678759A (en) * 2017-09-11 2018-02-09 上海斐讯数据通信技术有限公司 A kind of method and system of upgrade applications
CN110308914B (en) * 2018-03-27 2023-08-22 阿里巴巴(中国)有限公司 Upgrade processing method, device, equipment, system and computer readable storage medium
CN109739540B (en) * 2019-01-03 2022-03-18 中国联合网络通信集团有限公司 Data update method, data update device and data update system of eUICC module
CN111209018B (en) * 2019-12-20 2023-09-19 上海淇玥信息技术有限公司 Method, device and electronic equipment for processing application upgrade prompt information

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946564A (en) * 2012-11-29 2013-02-27 乐视致新电子科技(天津)有限公司 Video service system automatic update method
CN103731815A (en) * 2012-10-11 2014-04-16 北京新媒传信科技有限公司 Method and device for achieving mobile phone client software upgrading
CN105354043A (en) * 2014-08-20 2016-02-24 中兴通讯股份有限公司 Terminal upgrade method and device
CN105549998A (en) * 2015-12-15 2016-05-04 Tcl集团股份有限公司 Dynamic association upgrading method and system of terminal application program
CN105893070A (en) * 2015-11-25 2016-08-24 乐视云计算有限公司 Application SDK upgrading method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731815A (en) * 2012-10-11 2014-04-16 北京新媒传信科技有限公司 Method and device for achieving mobile phone client software upgrading
CN102946564A (en) * 2012-11-29 2013-02-27 乐视致新电子科技(天津)有限公司 Video service system automatic update method
CN105354043A (en) * 2014-08-20 2016-02-24 中兴通讯股份有限公司 Terminal upgrade method and device
CN105893070A (en) * 2015-11-25 2016-08-24 乐视云计算有限公司 Application SDK upgrading method and system
CN105549998A (en) * 2015-12-15 2016-05-04 Tcl集团股份有限公司 Dynamic association upgrading method and system of terminal application program

Also Published As

Publication number Publication date
CN106648769A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
JP6752969B2 (en) Methods, devices and servers for account login
TWI640923B (en) Application processing method and device
CN106664544B (en) Method and apparatus for embedded SIM provisioning
JP5830102B2 (en) Reputation check of acquired file
WO2018103217A1 (en) Method for upgrading application, and server and user equipment
TWI622933B (en) Client update method and device
KR102087478B1 (en) Method and apparatus of downloading and installing a client
JP6633059B2 (en) Rating files
US9830169B2 (en) Method and apparatus for remotely delivering software
WO2016000544A1 (en) Method of processing application cpu usage rate anomaly, and device and mobile terminal
US9351105B2 (en) Location based applications
WO2015192608A1 (en) Method for updating app in android system, terminal and storage medium
EP3289504A1 (en) Digital rights list for device groups
WO2021121407A1 (en) Capacity changing method and apparatus for virtual machine
JP6793667B2 (en) Application download method and equipment
CN106790252A (en) Log-on message sharing method and device
CN106909406A (en) A kind of method and device of the APK plug-in units of loading application programs
CN103916846A (en) Terminal application updating method, system and device
KR102124330B1 (en) Method for updating of application and apparatus for the same
CN111522567A (en) Program upgrading method, device, system and medium
CN104751046B (en) A kind of user authen method and mobile terminal device of application program
US10520929B2 (en) Techniques for implementing universal commands in a welding or cutting system
CN111381978A (en) A method for accessing an application program, a storage medium and a smart TV
CN110737524A (en) task rule management method, device, equipment and medium
US20150143333A1 (en) Native Application Variation

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: 17878047

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17878047

Country of ref document: EP

Kind code of ref document: A1