CN103763354B - The method and device that a kind of data of upgrading are downloaded - Google Patents
The method and device that a kind of data of upgrading are downloaded Download PDFInfo
- Publication number
- CN103763354B CN103763354B CN201410005607.9A CN201410005607A CN103763354B CN 103763354 B CN103763354 B CN 103763354B CN 201410005607 A CN201410005607 A CN 201410005607A CN 103763354 B CN103763354 B CN 103763354B
- Authority
- CN
- China
- Prior art keywords
- terminal
- information
- configuration information
- data
- upgrade data
- 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.)
- Active
Links
Landscapes
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明公开了一种升级数据下载的方法及装置,所述升级数据存储于服务器中,所述服务器中包括升级数据的配置信息,所述配置信息包括升级数据的版本类型信息及对应的下载地址,所述的方法包括:终端从所述服务器侧下载升级数据的配置信息;所述终端接收目标升级数据的获取请求;所述请求中包括所述目标升级数据的版本类型信息;所述终端采用所述版本类型信息在所述配置信息中查找所述目标升级数据对应的下载地址;所述终端依据所述下载地址从对应的服务器下载目标升级数据。本发明用以避免终端不能及时进行程序升级而产生程序漏洞或者程序功能缺失等问题,同时可以支持多个升级数据下载。
The invention discloses a method and device for downloading upgrade data, the upgrade data is stored in a server, the server includes configuration information of the upgrade data, and the configuration information includes version type information of the upgrade data and a corresponding download address , the method includes: the terminal downloads the configuration information of the upgrade data from the server side; the terminal receives a request for acquiring target upgrade data; the request includes version type information of the target upgrade data; the terminal adopts The version type information searches the configuration information for a download address corresponding to the target upgrade data; the terminal downloads the target upgrade data from the corresponding server according to the download address. The invention is used to avoid problems such as program loopholes or lack of program functions caused by the inability of the terminal to perform program upgrades in time, and can support multiple upgrade data downloads at the same time.
Description
技术领域technical field
本发明涉及数据处理的技术领域,具体涉及一种升级数据下载的方法,以及,一种升级数据下载的装置。The present invention relates to the technical field of data processing, in particular to a method for downloading upgrade data, and a device for downloading upgrade data.
背景技术Background technique
由于安全的原因,部分企业和政府机关的网络都与外部网络隔离,即不能连接互联网。企业终端处于一个局域网内,终端上存储着企业的核心技术、商业机密、客户资料等重要信息,因此对安全有着更高的需求。企业整体安全的水平往往取决于最弱的一环。在复杂的企业网络中,任何一个员工的疏漏、漏洞管理疏漏,都可能给企业安全带来威胁。虽然企业和政府机关的网络都与外部网络隔离,但在其内部仍然需要运行程序,这些程序升级及漏洞修补等问题就变得棘手。Due to security reasons, the networks of some enterprises and government agencies are isolated from external networks, that is, they cannot be connected to the Internet. Enterprise terminals are located in a local area network, and important information such as the company's core technology, business secrets, and customer information are stored on the terminal, so there is a higher demand for security. The overall security of an enterprise is often only as good as its weakest link. In a complex enterprise network, any omission of any employee or vulnerability management may pose a threat to the security of the enterprise. Although the networks of enterprises and government agencies are isolated from the external network, they still need to run programs inside, which makes it difficult to upgrade these programs and fix bugs.
在隔离的网络环境中,主要采用离线升级工具进行终端上产品的升级,例如病毒库、木马库、杀毒程序升级、卫士程序升级、控制中心程序的升级,而目前采用离线升级工具进行升级的方案存在下几方面的不足:In an isolated network environment, offline upgrade tools are mainly used to upgrade products on terminals, such as virus databases, Trojan horse databases, antivirus program upgrades, guard program upgrades, and control center program upgrades. Currently, offline upgrade tools are used for upgrades. There are following deficiencies:
1)控制方面:安装不同控制中心的终端的升级方式不同,操作导入升级数据的方式也不一样的,如果按照传统的方式,每一个安装有不同控制中心的终端都要做一个离线升级工具,那么就需要维护好几个版本的离线升级工具,维护工作量大。1) In terms of control: the upgrade methods of terminals installed with different control centers are different, and the methods of operating and importing upgrade data are also different. If the traditional method is followed, each terminal installed with different control centers must have an offline upgrade tool. Then it is necessary to maintain several versions of offline upgrade tools, and the maintenance workload is heavy.
2)UI界面方面:不同的版本(oem)的控制中心需求不一样,发布的数据无法统一,比如安装第一版本oem1的控制中心,客户只要求杀毒升级,而安装第二版本oem2的控制中心,客户只要求木马库升级,如果分别做两套版本的离线升级工具界面,开发维护代价比较高。2) UI interface: different versions (oem) of the control center have different requirements, and the published data cannot be unified. For example, if the control center of the first version oem1 is installed, the customer only needs to upgrade the antivirus, but the control center of the second version oem2 is installed , the customer only needs to upgrade the Trojan horse library. If two sets of offline upgrade tool interfaces are made separately, the cost of development and maintenance will be relatively high.
3)数据方面:不同版本类型的产品相关升级数据比较难复用,不同系列的数据不能复用,每一个系列的产品要做一套数据升级。3) In terms of data: It is difficult to reuse the upgrade data related to different versions and types of products, and the data of different series cannot be reused. A set of data upgrades is required for each series of products.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种升级数据下载的方法,以及,一种升级数据下载的装置。In view of the above problems, the present invention is proposed to provide a method for upgrading data downloading and an apparatus for upgrading data downloading which overcome the above problems or at least partly solve the above problems.
依据本发明的一个方面,提供了一种升级数据下载的方法,所述升级数据存储于服务器中,所述服务器中包括升级数据的配置信息,所述配置信息包括升级数据的版本类型信息及对应的下载地址,所述的方法包括:According to one aspect of the present invention, a method for downloading upgrade data is provided, the upgrade data is stored in a server, the server includes configuration information of the upgrade data, and the configuration information includes version type information of the upgrade data and corresponding The download address, the methods described include:
终端从所述服务器侧下载升级数据的配置信息;The terminal downloads the configuration information of the upgrade data from the server side;
所述终端接收目标升级数据的获取请求;所述请求中包括所述目标升级数据的版本类型信息;The terminal receives an acquisition request for target upgrade data; the request includes version type information of the target upgrade data;
所述终端采用所述版本类型信息在所述配置信息中查找所述目标升级数据对应的下载地址;The terminal searches the configuration information for a download address corresponding to the target upgrade data by using the version type information;
所述终端依据所述下载地址从对应的服务器下载目标升级数据。The terminal downloads target upgrade data from a corresponding server according to the download address.
可选地,所述终端从所述服务器侧下载升级数据的配置信息的步骤包括:Optionally, the step of the terminal downloading the configuration information of the upgrade data from the server side includes:
终端向所述服务器发送获取升级数据的配置信息的请求;所述请求中包括配置类型信息;The terminal sends a request to the server to obtain configuration information of the upgrade data; the request includes configuration type information;
所述终端接收所述服务器针对所述配置类型信息返回对应的配置信息。The terminal receives corresponding configuration information returned by the server for the configuration type information.
可选地,所述配置信息包括界面信息,在所述终端从所述服务器侧下载升级数据的配置信息的步骤之后,还包括:Optionally, the configuration information includes interface information, and after the terminal downloads the configuration information of the upgrade data from the server side, it further includes:
所述终端从所述配置信息中提取界面信息;所述界面信息包括组件名称,组件版本号,更新日期,下载操作提示,和/或组件大小;The terminal extracts interface information from the configuration information; the interface information includes component name, component version number, update date, download operation prompt, and/or component size;
所述终端展现所述界面信息。The terminal presents the interface information.
可选地,所述配置信息包括最新校验信息,在所述终端依据所述下载地址从对应的服务器下载目标升级数据的步骤之后,还包括:Optionally, the configuration information includes the latest verification information, and after the terminal downloads the target upgrade data from the corresponding server according to the download address, it further includes:
所述终端依据所述目标升级数据计算当前校验信息;The terminal calculates current verification information according to the target upgrade data;
所述终端判断所述最新校验信息与当前校验信息是否一致;The terminal judges whether the latest verification information is consistent with the current verification information;
若是,则所述终端判定所述目标升级数据合法;If so, the terminal determines that the target upgrade data is legal;
若否,则所述终端判定所述目标升级数据不合法。If not, the terminal determines that the target upgrade data is illegal.
可选地,所述配置信息中还包括动作类型信息,所述终端上保存有动作类型信息及对应的动作规则,若判定所述目标升级数据合法,所述的方法还包括:Optionally, the configuration information also includes action type information, and the terminal stores action type information and corresponding action rules. If it is determined that the target upgrade data is legal, the method further includes:
所述终端从所述配置信息中提取所述目标升级数据的动作类型信息;The terminal extracts action type information of the target upgrade data from the configuration information;
所述终端按照所述动作类型信息对应的动作规则进行升级。The terminal performs an upgrade according to an action rule corresponding to the action type information.
根据本发明的另一方面,提供了一种升级数据下载的装置,所述升级数据存储于服务器中,所述服务器中包括升级数据的配置信息,所述配置信息包括升级数据的版本类型信息及对应的下载地址,所述的装置包括:According to another aspect of the present invention, a device for downloading upgrade data is provided, the upgrade data is stored in a server, the server includes configuration information of the upgrade data, and the configuration information includes version type information of the upgrade data and Corresponding to the download address, the device includes:
位于终端的第一下载模块,适于从所述服务器侧下载升级数据的配置信息;The first download module located in the terminal is adapted to download the configuration information of the upgrade data from the server side;
位于终端的接收模块,适于接收目标升级数据的获取请求;所述请求中包括所述目标升级数据的版本类型信息;The receiving module located at the terminal is adapted to receive an acquisition request for target upgrade data; the request includes version type information of the target upgrade data;
位于终端的查找模块,适于采用所述版本类型信息在所述配置信息中查找所述目标升级数据对应的下载地址;A search module located at the terminal, adapted to use the version type information to search for the download address corresponding to the target upgrade data in the configuration information;
位于终端的第二下载模块,适于依据所述下载地址从对应的服务器下载目标升级数据。The second download module located in the terminal is adapted to download target upgrade data from a corresponding server according to the download address.
可选地,所述位于终端的第一下载模块包括:Optionally, the first download module located at the terminal includes:
位于终端的配置信息请求子模块,适于向所述服务器发送获取升级数据的配置信息的请求;所述请求中包括配置类型信息;The configuration information request submodule located at the terminal is adapted to send a request to the server to obtain configuration information of the upgrade data; the request includes configuration type information;
位于终端的配置信息接收子模块,适于接收所述服务器针对所述配置类型信息返回对应的配置信息。The configuration information receiving submodule located in the terminal is adapted to receive corresponding configuration information returned by the server for the configuration type information.
可选地,所述配置信息包括界面信息,还包括:Optionally, the configuration information includes interface information, and further includes:
位于终端的第一提取模块,适于从所述配置信息中提取界面信息;所述界面信息包括组件名称,组件版本号,更新日期,下载操作提示,和/或组件大小;The first extraction module located at the terminal is adapted to extract interface information from the configuration information; the interface information includes component name, component version number, update date, download operation prompt, and/or component size;
位于终端的展现模块,适于展现所述界面信息。The presentation module located at the terminal is suitable for presenting the interface information.
可选地,所述配置信息包括最新校验信息,还包括:Optionally, the configuration information includes the latest verification information, and also includes:
位于终端的计算模块,适于依据所述目标升级数据计算当前校验信息;A calculation module located at the terminal, adapted to calculate current verification information according to the target upgrade data;
位于终端的判断模块,适于判断所述最新校验信息与当前校验信息是否一致;若是,则调用位于终端的合法判定模块,若否,则调用位于终端的不合法判定模块;The judging module located at the terminal is suitable for judging whether the latest verification information is consistent with the current verification information; if so, calls the legal judging module located at the terminal, and if not, calls the illegal judging module located at the terminal;
位于终端的合法判定模块,适于判定所述目标升级数据合法;A legal determination module located at the terminal, adapted to determine that the target upgrade data is legal;
位于终端的不合法判定模块,适于判定所述目标升级数据不合法。The invalidity judging module located in the terminal is suitable for judging that the target upgrade data is illegal.
可选地,所述配置信息中还包括动作类型信息,所述终端上保存有动作类型信息及对应的动作规则,所述的装置还包括:Optionally, the configuration information also includes action type information, and the terminal stores action type information and corresponding action rules, and the device further includes:
位于终端的第二提取模块,适于从所述配置信息中提取所述目标升级数据的动作类型信息;A second extraction module located at the terminal, adapted to extract action type information of the target upgrade data from the configuration information;
位于终端的升级模块,适于按照所述动作类型信息对应的动作规则进行升级。The upgrade module located in the terminal is suitable for upgrading according to the action rules corresponding to the action type information.
本发明实施例可以在服务器中保存升级数据及对应的配置信息,其中,所述配置信息包括升级数据的版本类型信息及对应的下载地址,终端从服务器获取到配置信息,当终端程序需要升级时,可以在配置信息中查找版本类型信息对应的下载地址,终端即可从下载地址对应的服务器中下载升级数据,避免终端不能及时进行程序升级而产生程序漏洞或者程序功能缺失等问题,同时可以支持多个升级数据下载。In the embodiment of the present invention, the upgrade data and corresponding configuration information can be saved in the server, wherein the configuration information includes the version type information of the upgrade data and the corresponding download address, and the terminal obtains the configuration information from the server. When the terminal program needs to be upgraded , you can find the download address corresponding to the version type information in the configuration information, and the terminal can download the upgrade data from the server corresponding to the download address, avoiding problems such as program loopholes or program function loss caused by the terminal not being able to perform program upgrades in time, and supporting Multiple upgrade data downloads.
在本发明实施例中,安装有控制中心的终端可以采用离线升级工具下载配置信息及升级数据。其中,配置信息中可以将不同版本的控制中心的融入到同一套离线升级工具的界面上,就不需要分别做不同版本的离线升级工具界面,减少了开发成本及维护的成本。另外,利用配置信息中还可以复用同一系列的产品的程序升级数据,具体地可以将不同版本的产品中通用的升级数据链接到同一的下载地址中,就不需要额外定制一套升级数据,这样一些通用的升级数据只要发布一份,并且在发布及下载的通用的升级数据也只需要测试一次,有效减少了升级数据的测试时间。In the embodiment of the present invention, the terminal installed with the control center can use an offline upgrade tool to download configuration information and upgrade data. Among them, in the configuration information, different versions of the control center can be integrated into the interface of the same offline upgrade tool, so there is no need to make different versions of the offline upgrade tool interface, which reduces the cost of development and maintenance. In addition, the program upgrade data of the same series of products can be reused by using the configuration information. Specifically, the common upgrade data of different versions of products can be linked to the same download address, so there is no need to customize an additional set of upgrade data. Such general upgrade data only needs to be released once, and the general upgrade data that is released and downloaded only needs to be tested once, which effectively reduces the testing time of the upgrade data.
在本发明实施例中,在实际中安装不同版本的控制中心的终端操作导入的升级方式各不相同,故还可以配置信息中设置有升级数据的动作类型信息,同时在离线升级工具中设置有该动作类型信息相应的动作规则,那么即使有多个采用不同方式升级的产品,也只需要一个离线升级工具就可以完成,有效减少了离线升级工具的开发及维护时间,为终端提供了快速的下载升级支持方式。In the embodiment of the present invention, in practice, different versions of the control center are installed with different upgrade methods for terminal operation import, so the action type information of the upgrade data can also be set in the configuration information, and at the same time, the offline upgrade tool can be set with The corresponding action rules of the action type information, so even if there are multiple products that are upgraded in different ways, only one offline upgrade tool is needed to complete it, which effectively reduces the development and maintenance time of the offline upgrade tool, and provides a fast update for the terminal. Download and upgrade support methods.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:
图1示出了根据本发明一个实施例的一种升级数据下载的方法实施例一的步骤流程图;FIG. 1 shows a flow chart of the steps of Embodiment 1 of a method for downloading upgrade data according to an embodiment of the present invention;
图2示出了根据本发明一个实施例的一种离线升级工具的树形可配置界面示意图;Fig. 2 shows a schematic diagram of a tree-shaped configurable interface of an offline upgrade tool according to an embodiment of the present invention;
图3示出了根据本发明一个实施例的一种升级数据下载的方法实施例二的步骤流程图;FIG. 3 shows a flow chart of steps in Embodiment 2 of a method for upgrading data downloading according to an embodiment of the present invention;
图4示出了根据本发明一个实施例的一种升级数据下载的方法实施例的结构框图。Fig. 4 shows a structural block diagram of an embodiment of a method for upgrading data download according to an embodiment of the present invention.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
参照图1,示出了根据本发明一个实施例的一种升级数据下载的方法实施例一的步骤流程图,所述升级数据可以存储于服务器中,所述服务器中可以包括升级数据的配置信息,所述配置信息可以包括升级数据的版本类型信息及对应的下载地址,所述的方法具体可以包括如下步骤:Referring to FIG. 1 , it shows a flow chart of steps of Embodiment 1 of a method for downloading upgrade data according to an embodiment of the present invention. The upgrade data may be stored in a server, and the server may include configuration information of the upgrade data. , the configuration information may include version type information of the upgrade data and a corresponding download address, and the method may specifically include the following steps:
步骤101,终端从所述服务器侧下载升级数据的配置信息;Step 101, the terminal downloads the configuration information of the upgrade data from the server side;
在本发明实施例中,所述配置信息可以存储在配置文件,具体地,所述配置文件可以为ini(Initialization File,初始化文件)。ini文件是windows的系统配置文件所采用的存储格式,统管windows的各项配置,一般用户使用windows提供的各项图形化管理界面就可实现相同的配置。In this embodiment of the present invention, the configuration information may be stored in a configuration file, specifically, the configuration file may be an ini (Initialization File, initialization file). The ini file is the storage format adopted by the Windows system configuration file, and manages various configurations of Windows. Generally, users can use various graphical management interfaces provided by Windows to achieve the same configuration.
当然,配置信息可以选用xml(Extensive Markup Language,可扩展标示语言)文件或者其他格式的文件进行存储,本发明对此不作限制。Of course, the configuration information can be stored in an xml (Extensive Markup Language) file or a file in other formats, which is not limited in the present invention.
在本发明的一种优选实施例中,所述步骤101可以包括如下子步骤:In a preferred embodiment of the present invention, the step 101 may include the following sub-steps:
子步骤S11,终端向所述服务器发送获取升级数据的配置信息的请求;所述请求中包括配置类型信息;In sub-step S11, the terminal sends a request to the server to obtain the configuration information of the upgrade data; the request includes configuration type information;
子步骤S12,所述终端接收所述服务器针对所述配置类型信息返回的配置信息。In sub-step S12, the terminal receives the configuration information returned by the server regarding the configuration type information.
在具体实现中,不同的客户的终端上安装有不同版本的控制中心,因此对于升级数据的要求很有可能各不相同,例如,有些版本的控制中心只要求杀毒升级,有些版本的控制中心只要求木马库升级。在本发明实施例中可以为离线升级工具设置的配置类型信息,具体而言,配置类型信息可以设置在离线升级工具内部,例如直接打包在离线升级工具里面,或者设置在离线升级工具的外部,例如放置在离线升级工具同一级目录,本发明实施例对此不作限制。In the specific implementation, different versions of the control center are installed on the terminals of different customers, so the requirements for upgrading data may be different. For example, some versions of the control center only Trojan library upgrade is required. In the embodiment of the present invention, the configuration type information can be set for the offline upgrade tool. Specifically, the configuration type information can be set inside the offline upgrade tool, such as directly packaged in the offline upgrade tool, or set outside the offline upgrade tool. For example, it is placed in the directory at the same level as the offline upgrade tool, which is not limited in this embodiment of the present invention.
当终端向服务器发送包括配置类型信息(type,定制类型键值)的请求时,可以在服务器侧的总下载索引下载路径文件360EntUpdUrlIndex.ini中查找该type对应的配置文件。在实际中,每新增一个升级数据都为其相应设置配置文件,就不需要重新开发离线升级工具,只要改一下工具携带的配置即可,节省了开发时间及开发成本。When the terminal sends a request including configuration type information (type, custom type key value) to the server, the configuration file corresponding to the type can be found in the total download index download path file 360EntUpdUrlIndex.ini on the server side. In practice, every time an update data is added, a corresponding configuration file is set for it, so there is no need to re-develop the offline upgrade tool, and only need to change the configuration carried by the tool, which saves development time and cost.
例如,一种本发明实施例的获取当前配置类型信息的对应的配置信息如下所示:For example, the corresponding configuration information for obtaining current configuration type information in an embodiment of the present invention is as follows:
[config][config]
type=orgtype=org
360EntUpdUrlIndex.ini360EntUpdUrlIndex.ini
[list][list]
org=orgorg=org
org_4=org_4org_4=org_4
org_5=org_5org_5=org_5
[org][org]
official_url=http://data.b.360.cn/offline_ep/360EntOffUpd.iniofficial_url=http://data.b.360.cn/offline_ep/360EntOffUpd.ini
cdn_url=http://dl.360safe.com/offline_ep/360EntOffUpd.inicdn_url=http://dl.360safe.com/offline_ep/360EntOffUpd.ini
具体地,终端可以根据字符串type=org到服务器的[list]中查询对应的匹配项org,然后根据org从[org]中获取到type=org对应的配置信息的下载地址,最后可以根据该下载地址获取到对应的配置信息。Specifically, the terminal can query the corresponding matching item org in the [list] of the server according to the string type=org, and then obtain the download address of the configuration information corresponding to type=org from [org] according to org, and finally can according to the The corresponding configuration information is obtained from the download address.
在本发明的一种优选实施例中,所述配置信息可以包括界面信息,在所述终端从所述服务器侧下载升级数据的配置信息的步骤之后,还可以包括如下步骤:In a preferred embodiment of the present invention, the configuration information may include interface information, and after the terminal downloads the configuration information of the upgrade data from the server side, the following steps may also be included:
所述终端从所述配置信息中提取界面信息;所述界面信息可以包括组件名称,组件版本号,更新日期,下载操作提示,和/或组件大小;The terminal extracts interface information from the configuration information; the interface information may include component name, component version number, update date, download operation prompt, and/or component size;
所述终端展现所述界面信息。The terminal presents the interface information.
在配置文件中配置了有了树形可配置界面的界面信息,离线升级工具可以在加载前读取到这些界面信息,动态加载并显示给用户,用户就可以根据在界面中显示的信息执行相应的下载操作。The interface information with the tree-like configurable interface is configured in the configuration file. The offline upgrade tool can read the interface information before loading, dynamically load it and display it to the user, and the user can execute corresponding actions based on the information displayed in the interface. download operation.
为了使本领域技术人员进一步了解本发明实施例,以下采用具体的示例来说明本发明的离线升级工具的界面。参照图2所示的根据本发明一个实施例的一种离线升级工具的树形可配置界面示意图,具体地,所述配置信息如下所示:In order for those skilled in the art to further understand the embodiments of the present invention, specific examples are used below to illustrate the interface of the offline upgrade tool of the present invention. Referring to FIG. 2 , which is a schematic diagram of a tree-shaped configurable interface of an offline upgrade tool according to an embodiment of the present invention, specifically, the configuration information is as follows:
[inc_update_safe][inc_update_safe]
name=卫士升级数据name=guard upgrade data
tooltips=卫士木马库的离线升级数据。tooltips=Offline upgrade data of the guard trojan library.
diff=0diff=0
ver=2013092300ver=2013092300
date=2013-09-23date=2013-09-23
size=679560011size=679560011
child=inc_safe32_group,inc_safe64_groupchild=inc_safe32_group, inc_safe64_group
item_type=1item_type=1
[inc_safe32_group][inc_safe32_group]
name=32位数据name=32-bit data
tooltips=32位操作系统卫士木马库截止至某时间日期的所有数据的合集。tooltips=A collection of all the data of the 32-bit operating system guard Trojan horse library up to a certain time and date.
diff=0diff=0
child=inc_safe32_base,inc_safe32_add,inc_safe32_add001child=inc_safe32_base,inc_safe32_add,inc_safe32_add001
ver=2013092300ver=2013092300
date=2013-09-23date=2013-09-23
size=339488308size=339488308
item_type=1item_type=1
os_type=32os_type=32
childvisible=0childvisible=0
[inc_safe32_base][inc_safe32_base]
name=基准数据name=benchmark data
tooltips=卫士木马库截止至某时间日期的所有数据的合集.tooltips=A collection of all the data of the guard trojan library up to a certain time and date.
ver=2012090801ver=2012090801
date=2013-09-09date=2013-09-09
size=156653148size=156653148
diff=0diff=0
os_type=32os_type=32
md5=d24b82d4e474c0b387f4f85f2a27bca0md5=d24b82d4e474c0b387f4f85f2a27bca0
url=http://dl.360safe.com/offline_ep/inc_safe32_base.caburl=http://dl.360safe.com/offline_ep/inc_safe32_base.cab
path=safepath=safe
item_type=2item_type=2
p2purl=pdown://http://dl.360safe.com/offline_ep/inc_safe32_base.cab|p2=7ECD68E681252671A67128CF8CA391D8AC6AE5DB|b2=156653148|h7=5p2purl=pdown://http://dl.360safe.com/offline_ep/inc_safe32_base.cab|p2=7ECD68E681252671A67128CF8CA391D8AC6AE5DB|b2=156653148|h7=5
其中,在所述配置信息中的界面信息中,设置有父子关系,例如:inc_update_safe的两个分支child=inc_safe32_group及inc_safe64_group,即在图2中的卫士升级数据的32位数据及64位数据。采用树形可配置界面可以较为直观的展示升级数据之间的父子关系,用户可以根据实际情况点选32位数据或者64位数据的卫士升级数据,用户体验效果较好。Wherein, in the interface information in the configuration information, a parent-child relationship is set, for example: two branches of inc_update_safe child=inc_safe32_group and inc_safe64_group, that is, the 32-bit data and 64-bit data of the guard upgrade data in FIG. 2 . The tree-shaped configurable interface can be used to display the parent-child relationship between the upgraded data more intuitively. Users can click on the 32-bit data or 64-bit data to upgrade the guard data according to the actual situation, and the user experience is better.
步骤102,所述终端接收目标升级数据的获取请求;所述请求中包括所述目标升级数据的版本类型信息;Step 102, the terminal receives a request for acquiring target upgrade data; the request includes version type information of the target upgrade data;
步骤103,所述终端采用所述版本类型信息在所述配置信息中查找所述目标升级数据对应的下载地址;Step 103, the terminal searches the configuration information for a download address corresponding to the target upgrade data by using the version type information;
在具体实现中,终端的用户根据离线升级工具界面所展示的下载提示信息点选所需的升级数据,例如,用户可以点选32位数据的卫士升级数据,那么终端就可以接收到32位数据的卫士升级数据的版本类型信息,终端再根据该版本类型信息在配置信息中查找相应的下载地址。In the specific implementation, the user of the terminal selects the required upgrade data according to the download prompt information displayed on the offline upgrade tool interface. For example, the user can click the guard upgrade data of 32-bit data, then the terminal can receive the 32-bit data The version type information of the guard upgrade data, and the terminal searches for the corresponding download address in the configuration information according to the version type information.
步骤104,所述终端依据所述下载地址从对应的服务器下载目标升级数据。Step 104, the terminal downloads target upgrade data from a corresponding server according to the download address.
在具体实现中,有些系列产品发布的某一类升级数据是可以复用的,因此可以在配置信息中将可产品中升级数据中通用数据部分均指向这一类升级数据的下载地址。In the specific implementation, a certain type of upgrade data released by some series of products can be reused, so the general data part of the upgrade data in the products can be pointed to the download address of this type of upgrade data in the configuration information.
具体地,在配置信息中可以将s_item,child设置为系列产品的升级数据需要下载的子项目,其中,每一个child的item都有索引指向最终需要下载的升级数据的下载地址列表。Specifically, in the configuration information, s_item and child can be set as the sub-items to be downloaded for the upgrade data of the series products, wherein each item of the child has an index pointing to a download address list of the upgrade data that needs to be downloaded eventually.
例如,某产品的需要下载的子项目及对应的下载地址如下所示:For example, the sub-items that need to be downloaded and the corresponding download addresses of a product are as follows:
[s_item][s_item]
child=s_installprog,s_incdata,s_offlinesetupchild=s_installprog,s_incdata,s_offlinesetup
[s_installprog][s_installprog]
cdn_url=http://dl.360safe.com/offline_ep/360ent_installprog.inicdn_url=http://dl.360safe.com/offline_ep/360ent_installprog.ini
[s_incdata][s_incdata]
cdn_url=http://dl.360safe.com/offline_ep/360ent_incdata.inicdn_url=http://dl.360safe.com/offline_ep/360ent_incdata.ini
[s_offlinesetup][s_offlinesetup]
cdn_url=http://dl.360safe.com/offline_ep/360ent_offlinesetup.inicdn_url=http://dl.360safe.com/offline_ep/360ent_offlinesetup.ini
在上述的配置信息表示某产品升级数据有三种,每一种都有自己的详细url下载信息列表。如果oem1系列的产品和oem1产品的升级数据部分相同,假设是s_incdata这一类升级数据相同,那么在配置信息中就可以为这两个产品的配置相同下载地址cdn_url。在实际应用中,每次产品的升级数据发布前都要测试数据的准确性,如果产品有某几类升级数据是一样的,那么可以通过配置指向同样的服务器地址去下载,这样相同的升级数据只要测试及发布一次就可以多个让产品复用了,减少了发布前的测试时间。The above configuration information indicates that there are three types of upgrade data for a certain product, each of which has its own detailed url download information list. If the upgrade data of oem1 series products and oem1 products are the same, assuming that the upgrade data of s_incdata is the same, then the same download address cdn_url can be configured for the two products in the configuration information. In practical applications, the accuracy of the data must be tested before the upgrade data of each product is released. If some types of upgrade data of the product are the same, it can be configured to point to the same server address to download, so that the same upgrade data As long as you test and release once, you can reuse multiple products, reducing the testing time before release.
在本发明的一种优选实施例中,所述配置信息可以包括最新校验信息,在所述终端依据所述下载地址从对应的服务器下载目标升级数据的步骤之后,还可以包括如下步骤:In a preferred embodiment of the present invention, the configuration information may include the latest verification information, and after the terminal downloads the target upgrade data from the corresponding server according to the download address, the following steps may also be included:
所述终端依据所述目标升级数据计算当前校验信息;The terminal calculates current verification information according to the target upgrade data;
所述终端判断所述最新校验信息与当前校验信息是否一致;The terminal judges whether the latest verification information is consistent with the current verification information;
若是,则所述终端判定所述目标升级数据合法;If so, the terminal determines that the target upgrade data is legal;
若否,则所述终端判定所述目标升级数据不合法。If not, the terminal determines that the target upgrade data is illegal.
在具体实现中,为了保证下载的升级数据安全,可以对下载的升级数据进行校验。其中,所述校验信息可以为MD5值。所述MD5值可以为采用MD5(信息-摘要算法5,Message-Digest Algorithm5)计算出的数据文件唯一标识。具体而言,可以是利用MD5算法根据升级数据的二进制信息来计算MD5值。In a specific implementation, in order to ensure the security of the downloaded upgrade data, the downloaded upgrade data may be verified. Wherein, the verification information may be an MD5 value. The MD5 value may be a unique identifier of the data file calculated by using MD5 (Message-Digest Algorithm 5, Message-Digest Algorithm 5). Specifically, an MD5 algorithm may be used to calculate the MD5 value according to the binary information of the upgrade data.
MD5算法是计算机广泛使用的杂凑算法之一,其将数据运算为另一固定长度值,将信息压缩成一种保密的格式。MD5具有碰撞率低的特点,使用MD5算法计算升级数据的唯一标识,能够有效防止文件的重复和碰撞。例如,假设数升级数据被病毒或木马入侵了,那么计算到的MD5值将与配置信息中的MD5值不一致,就可以很容易发现该数据有问题了。The MD5 algorithm is one of the hash algorithms widely used by computers. It operates data into another fixed-length value and compresses information into a confidential format. MD5 has the characteristics of low collision rate. Using MD5 algorithm to calculate the unique identifier of the upgrade data can effectively prevent file duplication and collision. For example, if the data upgrade data is invaded by a virus or a Trojan horse, then the calculated MD5 value will be inconsistent with the MD5 value in the configuration information, and it is easy to find that there is a problem with the data.
当然,在实际应用中,不限于MD5算法,本领域技术人员还可以以低碰撞率为原则,选择其它适当的算法生成数据的唯一标识,本发明对此无需加以限制。Of course, in practical applications, it is not limited to the MD5 algorithm, and those skilled in the art can also select other appropriate algorithms to generate the unique identifier of data based on the principle of low collision rate, and the present invention does not need to limit this.
参照图3,示出了根据本发明一个实施例的一种升级数据下载的方法实施例二的步骤流程图,所述升级数据可以存储于服务器中,所述服务器中可以包括升级数据的配置信息,所述配置信息可以包括升级数据的版本类型信息及对应的下载地址,所述的方法具体可以包括如下步骤:Referring to FIG. 3 , it shows a flow chart of the steps of Embodiment 2 of a method for downloading upgrade data according to an embodiment of the present invention. The upgrade data may be stored in a server, and the server may include configuration information of the upgrade data. , the configuration information may include version type information of the upgrade data and a corresponding download address, and the method may specifically include the following steps:
步骤201,终端从所述服务器侧下载升级数据的配置信息;Step 201, the terminal downloads the configuration information of the upgrade data from the server side;
步骤202,所述终端接收目标升级数据的获取请求;所述请求中包括所述目标升级数据的版本类型信息;Step 202, the terminal receives a request for acquiring target upgrade data; the request includes version type information of the target upgrade data;
步骤203,所述终端采用所述版本类型信息在所述配置信息中查找所述目标升级数据对应的下载地址;Step 203, the terminal uses the version type information to search for the download address corresponding to the target upgrade data in the configuration information;
步骤204,所述终端依据所述下载地址从对应的服务器下载目标升级数据;Step 204, the terminal downloads target upgrade data from a corresponding server according to the download address;
步骤205,所述终端从所述配置信息中提取所述目标升级数据的动作类型信息;Step 205, the terminal extracts the action type information of the target upgrade data from the configuration information;
步骤206,所述终端按照所述动作类型信息对应的动作规则进行升级。Step 206, the terminal upgrades according to the action rule corresponding to the action type information.
在具体实现中,不同的升级数据导入动作和其他的升级不一样,因此在本发明实施例中还可以对升级动作进行配置。In a specific implementation, different upgrade data import actions are different from other upgrades, so the upgrade actions can also be configured in the embodiment of the present invention.
在本发明实施例中,通过配置actiontype=数值,即动作类型信息来判断相关下载的升级数据按照什么动作规则进行升级动作。同时可以设置相关动作信息actioninfo=key1:value1;key2:value2,这样通过简单的k/v对信息,就可以一些中间消息升级过程(action)过程使用。In the embodiment of the present invention, by configuring actiontype=value, that is, the action type information, it is judged which action rule the relevant downloaded upgrade data is to be followed for the upgrade action. At the same time, you can set the relevant action information actioninfo=key1:value1; key2:value2, so that through simple k/v pair information, it can be used in some intermediate message upgrade process (action) process.
例如:E.g:
[offlinepackv4.exe][offlinepackv4.exe]
name=卫士升级包name=guard upgrade package
tooltips=终端木马库无法更新时,直接运行此类离线升级包就可以升级木马库版本。tooltips=When the terminal Trojan library cannot be updated, you can directly run this offline upgrade package to upgrade the Trojan library version.
md5=c58e2f40b5895f7a7342fff386c7703bmd5=c58e2f40b5895f7a7342fff386c7703b
size=1977800size=1977800
url=http://dl.360safe.com/offline_ep/offlinepackv4.exeurl=http://dl.360safe.com/offline_ep/offlinepackv4.exe
item_type=2item_type=2
date=2013-09-09date=2013-09-09
topath=installtopath=install
check=0check=0
ver=-ver=-
diff=0diff=0
os_type=0os_type=0
actiontype=4actiontype=4
actioninfo=name:url_ws;actioninfo=name:url_ws;
p2purl=pdown://http://dl.360safe.com/offline_ep/offlinepackv4.exe|p2=A9B89DFDA9DA6E8894CB7FF18A873D315B42F775|b2=1977800|h7=5p2purl=pdown://http://dl.360safe.com/offline_ep/offlinepackv4.exe|p2=A9B89DFDA9DA6E8894CB7FF18A873D315B42F775|b2=1977800|h7=5
从上述的配置信息可以获取到下载的升级数据的动作类型信息:The action type information of the downloaded upgrade data can be obtained from the above configuration information:
actiontype=4actiontype=4
topath=installtopath=install
actioninfo=name:url_ws;actioninfo=name:url_ws;
其中actiontype=4表示导入的升级数据是离线升级安装包,需要执行相关的第四类动作规则(action),即需要将该升级数据导入到特殊的地方和写入配置一些需要的信息。这样以后涉及到这类动作规则都可以复用,只要在服务器中配置相应的actiontype,同时也可以把所有action写在一个离线升级工具内,而无需开分支,减少了维护成本,提高了发布数据的复用率和灵活性。Among them, actiontype=4 means that the imported upgrade data is an offline upgrade installation package, and the relevant fourth type of action rule (action) needs to be executed, that is, the upgrade data needs to be imported to a special place and some required information for configuration needs to be written. In this way, all action rules related to this type can be reused in the future. As long as the corresponding actiontype is configured in the server, all actions can also be written in an offline upgrade tool without branching, which reduces maintenance costs and improves the release data. reusability and flexibility.
在具体实现中,还可以设置其他的动作类型信息及对应的动作规则,例如,actiontype=1:表示下载的升级数据为常规数据,拷贝到指定目录,并促发终端的控制中心进行解压升级动作;actiontype=2:表示下载的升级数据为增量数据,导入对应的类型的数据下;actiontype=3:表示下载的升级数据为漏洞补丁,导入到对应的补丁库中;actiontype=4:表示下载的升级数据为离线升级安装包,拷贝到指定路径并写入一些需要的信息;actiontype=5:表示下载的升级数据是一类需查询的数据,到私有云服务器查询该数据是否安全,并且,用户可以自定义数据的安全等级;actiontype=6:表示下载的升级数据是二类需查询的数据,将该数据导入到离线升级工具的数据库到外网去查询安全等级,并将数据的安全等级写入数据库中。In the specific implementation, other action type information and corresponding action rules can also be set, for example, actiontype=1: indicates that the downloaded upgrade data is regular data, copied to the specified directory, and prompts the control center of the terminal to perform decompression and upgrade actions ;actiontype=2: Indicates that the downloaded upgrade data is incremental data, and import it into the corresponding type of data; actiontype=3: Indicates that the downloaded upgrade data is a vulnerability patch, which is imported into the corresponding patch library; actiontype=4: Indicates download The upgrade data is the offline upgrade installation package, copy it to the specified path and write some required information; actiontype=5: indicates that the downloaded upgrade data is a type of data that needs to be queried, and check whether the data is safe on the private cloud server, and, Users can customize the security level of the data; actiontype=6: Indicates that the downloaded upgrade data is the second type of data that needs to be queried. written into the database.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action order, because according to this According to the invention, certain steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
参照图4,示出了根据本发明一个实施例的一种升级数据下载的装置实施例的结构框图,所述升级数据可以存储于服务器中,所述服务器中可以包括升级数据的配置信息,所述配置信息可以包括升级数据的版本类型信息及对应的下载地址,所述的装置具体可以包括如下模块:Referring to FIG. 4 , it shows a structural block diagram of an embodiment of an apparatus for downloading upgrade data according to an embodiment of the present invention. The upgrade data may be stored in a server, and the server may include configuration information of the upgrade data, so The configuration information may include version type information of the upgrade data and a corresponding download address, and the device may specifically include the following modules:
位于终端的第一下载模块301,适于从所述服务器侧下载升级数据的配置信息;The first download module 301 located in the terminal is adapted to download the configuration information of the upgrade data from the server side;
在本发明的一种优选实施例中,所述位于终端的第一下载模块301可以包括:In a preferred embodiment of the present invention, the first download module 301 located at the terminal may include:
位于终端的配置信息请求子模块,适于向所述服务器发送获取升级数据的配置信息的请求;所述请求中包括配置类型信息;The configuration information request submodule located at the terminal is adapted to send a request to the server to obtain configuration information of the upgrade data; the request includes configuration type information;
位于终端的配置信息接收子模块,适于接收所述服务器针对所述配置类型信息返回对应的配置信息。The configuration information receiving submodule located in the terminal is adapted to receive corresponding configuration information returned by the server for the configuration type information.
在本发明的一种优选实施例中,所述配置信息包括可以界面信息,还可以包括:In a preferred embodiment of the present invention, the configuration information includes interface information, and may also include:
位于终端的第一提取模块,适于从所述配置信息中提取界面信息;所述界面信息包括组件名称,组件版本号,更新日期,下载操作提示,和/或组件大小;The first extraction module located at the terminal is adapted to extract interface information from the configuration information; the interface information includes component name, component version number, update date, download operation prompt, and/or component size;
位于终端的展现模块,适于展现所述界面信息。The presentation module located at the terminal is suitable for presenting the interface information.
位于终端的接收模块302,适于接收目标升级数据的获取请求;所述请求中包括所述目标升级数据的版本类型信息;The receiving module 302 located at the terminal is adapted to receive a request for acquiring target upgrade data; the request includes version type information of the target upgrade data;
位于终端的查找模块303,适于采用所述版本类型信息在所述配置信息中查找所述目标升级数据对应的下载地址;The search module 303 located at the terminal is adapted to use the version type information to find the download address corresponding to the target upgrade data in the configuration information;
位于终端的第二下载模块304,适于依据所述下载地址从对应的服务器下载目标升级数据。The second download module 304 located in the terminal is adapted to download target upgrade data from a corresponding server according to the download address.
在本发明的一种优选实施例中,所述配置信息可以包括最新校验信息,还可以包括:In a preferred embodiment of the present invention, the configuration information may include the latest verification information, and may also include:
位于终端的计算模块,适于依据所述目标升级数据计算当前校验信息;A calculation module located at the terminal, adapted to calculate current verification information according to the target upgrade data;
位于终端的判断模块,适于判断所述最新校验信息与当前校验信息是否一致;若是,则调用位于终端的合法判定模块,若否,则调用位于终端的不合法判定模块;The judging module located at the terminal is suitable for judging whether the latest verification information is consistent with the current verification information; if so, calls the legal judging module located at the terminal, and if not, calls the illegal judging module located at the terminal;
位于终端的合法判定模块,适于判定所述目标升级数据合法;A legal determination module located at the terminal, adapted to determine that the target upgrade data is legal;
位于终端的不合法判定模块,适于判定所述目标升级数据不合法。The invalidity judging module located in the terminal is suitable for judging that the target upgrade data is illegal.
在本发明的一种优选实施例中,所述配置信息中还可以包括动作类型信息,所述终端上可以保存有动作类型信息及对应的动作规则,所述的装置还可以包括:In a preferred embodiment of the present invention, the configuration information may also include action type information, and the terminal may store action type information and corresponding action rules, and the device may also include:
位于终端的第二提取模块,适于从所述配置信息中提取所述目标升级数据的动作类型信息;A second extraction module located at the terminal, adapted to extract action type information of the target upgrade data from the configuration information;
位于终端的升级模块,适于按照所述动作类型信息对应的动作规则进行升级。The upgrade module located in the terminal is suitable for upgrading according to the action rule corresponding to the action type information.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings), as well as any method or method so disclosed, may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的升级数据下载设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the upgrade data downloading device according to the embodiment of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
本发明公开了A1、一种升级数据下载的方法,所述升级数据存储于服务器中,所述服务器中包括升级数据的配置信息,所述配置信息包括升级数据的版本类型信息及对应的下载地址,所述的方法包括:The present invention discloses A1. A method for downloading upgrade data, the upgrade data is stored in a server, the server includes configuration information of the upgrade data, and the configuration information includes version type information of the upgrade data and a corresponding download address , the method includes:
终端从所述服务器侧下载升级数据的配置信息;The terminal downloads the configuration information of the upgrade data from the server side;
所述终端接收目标升级数据的获取请求;所述请求中包括所述目标升级数据的版本类型信息;The terminal receives an acquisition request for target upgrade data; the request includes version type information of the target upgrade data;
所述终端采用所述版本类型信息在所述配置信息中查找所述目标升级数据对应的下载地址;The terminal searches the configuration information for a download address corresponding to the target upgrade data by using the version type information;
所述终端依据所述下载地址从对应的服务器下载目标升级数据。The terminal downloads target upgrade data from a corresponding server according to the download address.
A2、如权利要求A1所述的方法,其特征在于,所述终端从所述服务器侧下载升级数据的配置信息的步骤包括:A2. The method according to claim A1, wherein the step of downloading the configuration information of the upgrade data by the terminal from the server side comprises:
终端向所述服务器发送获取升级数据的配置信息的请求;所述请求中包括配置类型信息;The terminal sends a request to the server to obtain configuration information of the upgrade data; the request includes configuration type information;
所述终端接收所述服务器针对所述配置类型信息返回对应的配置信息。The terminal receives corresponding configuration information returned by the server for the configuration type information.
A3、如权利要求A1或A2所述的方法,其特征在于,所述配置信息包括界面信息,在所述终端从所述服务器侧下载升级数据的配置信息的步骤之后,还包括:A3. The method according to claim A1 or A2, wherein the configuration information includes interface information, and after the terminal downloads the configuration information of the upgrade data from the server side, it further includes:
所述终端从所述配置信息中提取界面信息;所述界面信息包括组件名称,组件版本号,更新日期,下载操作提示,和/或组件大小;The terminal extracts interface information from the configuration information; the interface information includes component name, component version number, update date, download operation prompt, and/or component size;
所述终端展现所述界面信息。The terminal presents the interface information.
A4、如权利要求A1所述的方法,其特征在于,所述配置信息包括最新校验信息,在所述终端依据所述下载地址从对应的服务器下载目标升级数据的步骤之后,还包括:A4. The method according to claim A1, wherein the configuration information includes the latest verification information, and after the terminal downloads the target upgrade data from the corresponding server according to the download address, it further includes:
所述终端依据所述目标升级数据计算当前校验信息;The terminal calculates current verification information according to the target upgrade data;
所述终端判断所述最新校验信息与当前校验信息是否一致;The terminal judges whether the latest verification information is consistent with the current verification information;
若是,则所述终端判定所述目标升级数据合法;If so, the terminal determines that the target upgrade data is legal;
若否,则所述终端判定所述目标升级数据不合法。If not, the terminal determines that the target upgrade data is illegal.
A5、如权利要求A1或A4所述的方法,其特征在于,所述配置信息中还包括动作类型信息,所述终端上保存有动作类型信息及对应的动作规则,若判定所述目标升级数据合法,所述的方法还包括:A5. The method according to claim A1 or A4, wherein the configuration information also includes action type information, and the terminal stores action type information and corresponding action rules. If it is determined that the target upgrade data Legally, the methods described also include:
所述终端从所述配置信息中提取所述目标升级数据的动作类型信息;The terminal extracts action type information of the target upgrade data from the configuration information;
所述终端按照所述动作类型信息对应的动作规则进行升级。The terminal performs an upgrade according to an action rule corresponding to the action type information.
本发明还公开了B6、一种升级数据下载的装置,所述升级数据存储于服务器中,所述服务器中包括升级数据的配置信息,所述配置信息包括升级数据的版本类型信息及对应的下载地址,所述的装置包括:The present invention also discloses B6, a device for downloading upgrade data, the upgrade data is stored in a server, the server includes configuration information of the upgrade data, and the configuration information includes version type information of the upgrade data and the corresponding download address, the device includes:
位于终端的第一下载模块,适于从所述服务器侧下载升级数据的配置信息;The first download module located in the terminal is adapted to download the configuration information of the upgrade data from the server side;
位于终端的接收模块,适于接收目标升级数据的获取请求;所述请求中包括所述目标升级数据的版本类型信息;The receiving module located at the terminal is adapted to receive an acquisition request for target upgrade data; the request includes version type information of the target upgrade data;
位于终端的查找模块,适于采用所述版本类型信息在所述配置信息中查找所述目标升级数据对应的下载地址;A search module located at the terminal, adapted to use the version type information to search for the download address corresponding to the target upgrade data in the configuration information;
位于终端的第二下载模块,适于依据所述下载地址从对应的服务器下载目标升级数据。The second download module located in the terminal is adapted to download target upgrade data from a corresponding server according to the download address.
B7、如权利要求B1所述的装置,其特征在于,所述位于终端的第一下载模块包括:B7. The device according to claim B1, wherein the first download module located at the terminal comprises:
位于终端的配置信息请求子模块,适于向所述服务器发送获取升级数据的配置信息的请求;所述请求中包括配置类型信息;The configuration information request submodule located at the terminal is adapted to send a request to the server to obtain configuration information of the upgrade data; the request includes configuration type information;
位于终端的配置信息接收子模块,适于接收所述服务器针对所述配置类型信息返回对应的配置信息。The configuration information receiving submodule located in the terminal is adapted to receive corresponding configuration information returned by the server for the configuration type information.
B8、如权利要求B7或B8所述的装置,其特征在于,所述配置信息包括界面信息,还包括:B8. The device according to claim B7 or B8, wherein the configuration information includes interface information, and also includes:
位于终端的第一提取模块,适于从所述配置信息中提取界面信息;所述界面信息包括组件名称,组件版本号,更新日期,下载操作提示,和/或组件大小;The first extraction module located at the terminal is adapted to extract interface information from the configuration information; the interface information includes component name, component version number, update date, download operation prompt, and/or component size;
位于终端的展现模块,适于展现所述界面信息。The presentation module located at the terminal is suitable for presenting the interface information.
B9、如权利要求B8所述的装置,其特征在于,所述配置信息包括最新校验信息,还包括:B9. The device according to claim B8, wherein the configuration information includes the latest verification information, and also includes:
位于终端的计算模块,适于依据所述目标升级数据计算当前校验信息;A calculation module located at the terminal, adapted to calculate current verification information according to the target upgrade data;
位于终端的判断模块,适于判断所述最新校验信息与当前校验信息是否一致;若是,则调用位于终端的合法判定模块,若否,则调用位于终端的不合法判定模块;The judgment module located at the terminal is suitable for judging whether the latest verification information is consistent with the current verification information; if so, then call the legal judgment module located at the terminal, if not, then call the illegal judgment module located at the terminal;
位于终端的合法判定模块,适于判定所述目标升级数据合法;A legal determination module located at the terminal, adapted to determine that the target upgrade data is legal;
位于终端的不合法判定模块,适于判定所述目标升级数据不合法。The invalidity judging module located in the terminal is suitable for judging that the target upgrade data is illegal.
B10、如权利要求B6或B9所述的装置,其特征在于,所述配置信息中还包括动作类型信息,所述终端上保存有动作类型信息及对应的动作规则,所述的装置还包括:B10. The device according to claim B6 or B9, wherein the configuration information also includes action type information, and the terminal stores action type information and corresponding action rules, and the device also includes:
位于终端的第二提取模块,适于从所述配置信息中提取所述目标升级数据的动作类型信息;A second extraction module located at the terminal, adapted to extract action type information of the target upgrade data from the configuration information;
位于终端的升级模块,适于按照所述动作类型信息对应的动作规则进行升级。The upgrade module located in the terminal is suitable for upgrading according to the action rule corresponding to the action type information.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410005607.9A CN103763354B (en) | 2014-01-06 | 2014-01-06 | The method and device that a kind of data of upgrading are downloaded |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410005607.9A CN103763354B (en) | 2014-01-06 | 2014-01-06 | The method and device that a kind of data of upgrading are downloaded |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103763354A CN103763354A (en) | 2014-04-30 |
CN103763354B true CN103763354B (en) | 2017-07-28 |
Family
ID=50530513
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410005607.9A Active CN103763354B (en) | 2014-01-06 | 2014-01-06 | The method and device that a kind of data of upgrading are downloaded |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103763354B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105740137B (en) * | 2014-12-08 | 2018-07-31 | 阿里巴巴集团控股有限公司 | Divide bucket test method and the method, apparatus and system of configuration information are provided |
CN106709281B (en) * | 2015-07-14 | 2019-09-17 | 阿里巴巴集团控股有限公司 | Patch granting and acquisition methods, device |
CN105389191B (en) * | 2015-12-11 | 2018-11-02 | 北京奇虎科技有限公司 | A kind of method for upgrading software based on LAN, device and system |
CN107015819B (en) * | 2016-01-27 | 2020-11-13 | 阿里巴巴集团控股有限公司 | Method and device for updating HTML (Hypertext markup language) template at server side |
CN107402773A (en) * | 2016-05-18 | 2017-11-28 | 环旭电子股份有限公司 | Distributed software update method |
CN107544991B (en) * | 2016-06-23 | 2020-10-23 | 滴滴(中国)科技有限公司 | Method and device for processing access request by server |
CN106371881B (en) * | 2016-09-08 | 2020-01-03 | 武汉斗鱼网络科技有限公司 | Method and system for updating program version in server |
CN108965570B (en) * | 2017-05-17 | 2020-05-26 | 北京博瑞彤芸文化传播股份有限公司 | Method for downloading ring data |
CN108958762A (en) * | 2017-08-02 | 2018-12-07 | 北京视联动力国际信息技术有限公司 | A kind of upgrade method and device of software |
CN111640342B (en) * | 2018-09-04 | 2022-03-25 | 北京猿力教育科技有限公司 | Online examination method and device, computing device and storage medium |
CN109800007A (en) * | 2018-12-28 | 2019-05-24 | 航天信息股份有限公司 | Dsp chip online upgrading method and device |
CN111324363A (en) * | 2019-11-14 | 2020-06-23 | 杭州海康威视系统技术有限公司 | Equipment upgrading method, upgrading terminal, equipment and storage medium |
CN112783534A (en) * | 2021-02-09 | 2021-05-11 | 山东英信计算机技术有限公司 | Power supply equipment system upgrading method, system, terminal and storage medium |
CN113535209B (en) * | 2021-09-13 | 2022-02-25 | 长沙朗源电子科技有限公司 | Interactive electronic whiteboard upgrading method and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101383842A (en) * | 2007-09-07 | 2009-03-11 | 北京首都在线网络技术有限公司 | System and method for displaying network information by computer background screen |
CN101674590A (en) * | 2009-09-29 | 2010-03-17 | 中兴通讯股份有限公司 | Client device and remote updating method and remote updating service system thereof |
CN101968741A (en) * | 2009-07-27 | 2011-02-09 | 阿里巴巴集团控股有限公司 | Method, server and system for data update |
CN102830992A (en) * | 2012-07-31 | 2012-12-19 | 北京奇虎科技有限公司 | Plug-in loading method and system |
CN103034512A (en) * | 2012-11-28 | 2013-04-10 | 北京奇虎科技有限公司 | Method and device for updating programs |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6690654B2 (en) * | 1996-11-18 | 2004-02-10 | Mci Communications Corporation | Method and system for multi-media collaboration between remote parties |
-
2014
- 2014-01-06 CN CN201410005607.9A patent/CN103763354B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101383842A (en) * | 2007-09-07 | 2009-03-11 | 北京首都在线网络技术有限公司 | System and method for displaying network information by computer background screen |
CN101968741A (en) * | 2009-07-27 | 2011-02-09 | 阿里巴巴集团控股有限公司 | Method, server and system for data update |
CN101674590A (en) * | 2009-09-29 | 2010-03-17 | 中兴通讯股份有限公司 | Client device and remote updating method and remote updating service system thereof |
CN102830992A (en) * | 2012-07-31 | 2012-12-19 | 北京奇虎科技有限公司 | Plug-in loading method and system |
CN103034512A (en) * | 2012-11-28 | 2013-04-10 | 北京奇虎科技有限公司 | Method and device for updating programs |
Also Published As
Publication number | Publication date |
---|---|
CN103763354A (en) | 2014-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103763354B (en) | The method and device that a kind of data of upgrading are downloaded | |
US11093377B2 (en) | Systems and methods for testing source code | |
US10614208B1 (en) | Management of login information affected by a data breach | |
CN103646082B (en) | A kind of method and device of file verification | |
CN103034512B (en) | The method and apparatus of more new procedures | |
CN103390130B (en) | Based on the method for the rogue program killing of cloud security, device and server | |
WO2018129509A1 (en) | Managing, using, and updating application resources | |
US11621974B2 (en) | Managing supersedence of solutions for security issues among assets of an enterprise network | |
JP6030566B2 (en) | Unauthorized application detection system and method | |
US11503070B2 (en) | Techniques for classifying a web page based upon functions used to render the web page | |
US9747449B2 (en) | Method and device for preventing application in an operating system from being uninstalled | |
CN103745158A (en) | Method and device for repairing system bugs | |
CN102722439B (en) | Method, device and system for improving running stability of FLASH assembly | |
US8677346B1 (en) | Providing installer package information to a user | |
CN103152327A (en) | Configuration method, client and system for plug-in unit compressing and uncompressing | |
US20240303058A1 (en) | Method and Device for Installing Program | |
CN107656750A (en) | Update of plug-in method and device | |
US12261874B2 (en) | Library security methods and systems using a web application firewall | |
CN102156650B (en) | Method and device capable of implementing automatic analysis of patch | |
US10389743B1 (en) | Tracking of software executables that come from untrusted locations | |
CN102156651B (en) | Method and device for realizing installation of patches | |
CN104572145B (en) | File edition management method and system | |
CN103530155A (en) | Method and device for installing application program | |
CN111782244A (en) | Configuration file update method, device, computer equipment and storage medium | |
CN113791795A (en) | Plug-in installation method, device, system, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C41 | Transfer of patent application or patent right or utility model | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20161213 Address after: 100015 Jiuxianqiao Chaoyang District Beijing Road No. 10, building 15, floor 17, layer 1701-26, 3 Applicant after: BEIJING QIANXIN TECHNOLOGY Co.,Ltd. Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park) Applicant before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Applicant before: Qizhi software (Beijing) Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: 100015 15, 17 floor 1701-26, 3 building, 10 Jiuxianqiao Road, Chaoyang District, Beijing. Patentee after: QAX Technology Group Inc. Address before: 100015 15, 17 floor 1701-26, 3 building, 10 Jiuxianqiao Road, Chaoyang District, Beijing. Patentee before: BEIJING QIANXIN TECHNOLOGY Co.,Ltd. |