[go: up one dir, main page]

CN104038520B - A kind of multi version distributive resource managing method and system - Google Patents

A kind of multi version distributive resource managing method and system Download PDF

Info

Publication number
CN104038520B
CN104038520B CN201310070313.XA CN201310070313A CN104038520B CN 104038520 B CN104038520 B CN 104038520B CN 201310070313 A CN201310070313 A CN 201310070313A CN 104038520 B CN104038520 B CN 104038520B
Authority
CN
China
Prior art keywords
resource
download path
file
resource file
client
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.)
Expired - Fee Related
Application number
CN201310070313.XA
Other languages
Chinese (zh)
Other versions
CN104038520A (en
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.)
Beijing Changyou Tianxia Network Technologies Co Ltd
Original Assignee
Beijing Changyou Tianxia Network Technologies 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 Beijing Changyou Tianxia Network Technologies Co Ltd filed Critical Beijing Changyou Tianxia Network Technologies Co Ltd
Priority to CN201310070313.XA priority Critical patent/CN104038520B/en
Publication of CN104038520A publication Critical patent/CN104038520A/en
Application granted granted Critical
Publication of CN104038520B publication Critical patent/CN104038520B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

本发明实施例提供了一种多版本分布式资源管理方法和系统,以解决目前的方法工作量大、成本高,并且大量消耗用户磁盘资源的问题。方法包括:依据当前制作的资源文件判断原有版本的资源文件是否变更;当变更时,生成新的版本号;依据新的版本号将当前制作的资源文件部署至资源服务器,并对客户端的资源下载路径进行修改;当更新服务器接收到客户端的版本切换请求时,根据客户端切换的新的版本号对应的运营服务器向客户端发送包括修改后的资源下载路径的配置文件;客户端依据修改后的资源下载路径下载资源文件。本发明实施例通过修改资源版本对应的资源下载路径,使得客户端可以自动在所述路径下下载新版本的资源文件,从而降低工作量和成本。

Embodiments of the present invention provide a multi-version distributed resource management method and system to solve the problems of heavy workload, high cost, and large consumption of user disk resources in the current method. The method includes: judging whether the resource file of the original version is changed according to the resource file currently made; when changed, generating a new version number; deploying the resource file currently made to the resource server according to the new version number, and updating the resource file of the client The download path is modified; when the update server receives the version switching request from the client, the operation server corresponding to the new version number switched by the client sends the configuration file including the modified resource download path to the client; Resource download path to download resource files. In the embodiment of the present invention, by modifying the resource download path corresponding to the resource version, the client can automatically download the resource file of the new version under the path, thereby reducing the workload and cost.

Description

一种多版本分布式资源管理方法和系统A multi-version distributed resource management method and system

技术领域technical field

本发明实施例涉及网络数据处理技术领域,特别是涉及一种多版本分布式资源管理方法和系统。The embodiments of the present invention relate to the technical field of network data processing, in particular to a multi-version distributed resource management method and system.

背景技术Background technique

分布式资源管理是指通过将资源进行拆分,部分集成至客户端中,部分放置在资源服务器中以提供用户在使用时进行下载,实现了客户端资源的分布式管理,以此控制客户端的磁盘占用量。Distributed resource management refers to the distributed management of client resources by splitting resources, integrating part of them into the client, and placing part in the resource server for users to download when using, so as to control the resources of the client. Disk usage.

用户从网络上下载的存储在系统缓存文件夹中的资源,可以统称为IE资源。用户浏览网页中所显示的图片、flash播放器所产生的内容、网页游戏中的图形图像资源,均可算作IE资源。在windows的IE资源管理规则中,任何存储在系统缓存中的文件均具有文件的唯一性:当文件的文件名没有产生变化、文件的地址路径没有产生变化时,该文件将会被IE内核直接作为资源文件进行调用,否则将会与服务器通信来下载新的文件。The resources downloaded by the user from the Internet and stored in the system cache folder may be collectively referred to as IE resources. Pictures displayed on webpages browsed by users, content generated by flash players, and graphics and image resources in web games can all be counted as IE resources. In the IE resource management rules of Windows, any file stored in the system cache has the uniqueness of the file: when the file name of the file and the address path of the file do not change, the file will be directly accessed by the IE kernel. Called as a resource file, otherwise it will communicate with the server to download a new file.

以游戏的图形图像资源为例,可以将部分集成至客户端中,部分资源放置在资源服务器中以提供用户在使用时进行下载,以实现游戏资源的分布式管理。Taking the graphics and image resources of the game as an example, some of them can be integrated into the client, and some of the resources can be placed in the resource server for users to download when using, so as to realize the distributed management of game resources.

游戏运营过程中,会由于运营以及宣传的需要而在不同的运营服务器上运行不同的游戏版本。游戏客户端与运营服务器之间需要处在相同的版本,以确保用户在游戏过程中的游戏内容、后台逻辑、通信协议等的一致性。用户在游戏过程中会根据自己的游戏喜好,随意的在选择运营服务器的过程中选择自己想要游戏的版本。客户端会基于版本一致性的原因在切换运营服务器的时候,从资源服务器中下载新的对应运营服务器的版本文件,以确保运行时客户端与服务器的版本一致性。During the operation of the game, different game versions will be run on different operation servers due to the needs of operation and publicity. The game client and the operation server need to be at the same version to ensure the consistency of game content, background logic, communication protocols, etc. during the game. During the game, users will choose the version of the game they want in the process of selecting and operating the server at will according to their own game preferences. The client will download the new version file corresponding to the operating server from the resource server when switching the operating server based on version consistency, so as to ensure the version consistency between the client and the server during runtime.

但是,当游戏运营过程中,根据游戏开发需要变更游戏中资源的解析规则时,游戏整体资源会根据新的解析规则进行调整。基于IE资源管理规则,在游戏版本更新之后,如果资源的名称、下载路径不能够动态变更,则会造成客户端所读取的缓存资源的版本与运营服务器上存储的客户端资源解析规则以及运营服务器版本不一致,进而可能造成显示错误、客户端崩溃、逻辑异常等问题。However, when the analysis rules of resources in the game are changed according to the needs of game development during the operation of the game, the overall resources of the game will be adjusted according to the new analysis rules. Based on the IE resource management rules, after the game version is updated, if the name and download path of the resource cannot be changed dynamically, the version of the cached resource read by the client will be inconsistent with the client resource resolution rules and operation rules stored on the operation server. Inconsistent server versions may cause problems such as display errors, client crashes, and logic exceptions.

对于常规的解决方式,可以在每一个版本制作过程中重命名所有的资源,从而在游戏时可以下载新的资源文件。但是上述方式所带来的工作量以及游戏维护成本都会陡然增加;同时,由于对新的资源文件进行了重命名,因此客户端中会同时保存原有的资源文件以及新的资源文件,从而大量消耗用户的磁盘资源。For a conventional solution, all resources can be renamed during each version making process, so that new resource files can be downloaded during game play. However, the workload and game maintenance costs brought by the above method will increase suddenly; at the same time, because the new resource file is renamed, the original resource file and the new resource file will be saved in the client at the same time, so that a large number of Consumes the user's disk resources.

发明内容Contents of the invention

本发明实施例所要解决的技术问题是提供一种多版本分布式资源管理方法和系统,以解决目前的方法工作量大、成本高,并且大量消耗用户磁盘资源的问题。The technical problem to be solved by the embodiments of the present invention is to provide a multi-version distributed resource management method and system to solve the problems of heavy workload, high cost and large consumption of user disk resources in the current method.

为了解决上述问题,本发明公开了一种多版本分布式资源管理方法,其特征在于,包括:In order to solve the above problems, the present invention discloses a multi-version distributed resource management method, which is characterized in that it includes:

在资源版本的制作过程中,依据当前制作的资源文件判断原有版本的资源文件是否变更;During the production process of the resource version, judge whether the resource file of the original version is changed according to the resource file currently produced;

当原有版本的资源文件变更时,生成新的版本号;When the resource file of the original version is changed, a new version number is generated;

依据所述新的版本号将当前制作的资源文件部署至资源服务器;Deploying the currently produced resource file to the resource server according to the new version number;

依据所述新的版本号对客户端的资源下载路径进行修改;Modify the resource download path of the client according to the new version number;

当更新服务器接收到客户端的版本切换请求时,根据客户端切换的所述新的版本号对应的运营服务器向所述客户端发送配置文件,所述配置文件中包括依据所述新的版本号修改后的资源下载路径;客户端依据所述修改后的资源下载路径从资源服务器中下载所述资源文件。When the update server receives the version switching request from the client, the operation server corresponding to the new version number switched by the client sends a configuration file to the client, and the configuration file includes the configuration file modified according to the new version number. The modified resource download path; the client downloads the resource file from the resource server according to the modified resource download path.

可选地,所述资源下载路径包括固定下载路径与可变下载路径,其中,所述固定下载路径为所述资源服务器的下载路径,所述可变下载路径为版本号。Optionally, the resource download path includes a fixed download path and a variable download path, wherein the fixed download path is a download path of the resource server, and the variable download path is a version number.

可选地,所述依据所述新的版本号对客户端的资源下载路径进行修改,包括:Optionally, the modifying the resource download path of the client according to the new version number includes:

将所述资源下载路径中的可变下载路径修改为所述新的版本号。Modify the variable download path in the resource download path to the new version number.

可选地,所述依据所述新的版本号将当前制作的资源文件部署至资源服务器,包括:Optionally, the deploying the currently produced resource file to the resource server according to the new version number includes:

将当前制作的资源文件压缩成资源文件压缩包,所述资源文件压缩包以所述新的版本号为文件名;compressing the currently produced resource file into a resource file compression package, the resource file compression package takes the new version number as the file name;

将所述资源文件压缩包解压至所述资源服务器的固定下载路径下。Decompressing the resource file compression package to the fixed download path of the resource server.

可选地,所述依据当前制作的资源文件判断原有版本的资源文件是否变更,包括:Optionally, the judging whether the original version of the resource file is changed according to the currently produced resource file includes:

将当前制作的资源文件与原有版本的资源文件进行对比;Compare the currently produced resource file with the original version of the resource file;

当所述当前制作的资源文件与原有版本的资源文件相同,或者当前制作的资源文件为增量变更时,确定原有版本的资源文件没有变更;When the resource file currently produced is the same as the resource file of the original version, or the resource file currently produced is an incremental change, it is determined that the resource file of the original version has not been changed;

当所述当前制作的资源文件为资源解析规则变更时,确定原有版本的资源文件变更。When the currently produced resource file is a resource resolution rule change, it is determined that the original version of the resource file is changed.

另一方面,本发明还公开了一种多版本分布式资源管理系统,其特征在于,包括:On the other hand, the present invention also discloses a multi-version distributed resource management system, which is characterized in that it includes:

判断模块,用于在资源版本的制作过程中,依据当前制作的资源文件判断原有版本的资源文件是否变更;The judging module is used for judging whether the resource file of the original version is changed according to the resource file currently made during the production process of the resource version;

生成模块,用于当原有版本的资源文件变更时,生成新的版本号;A generation module is used to generate a new version number when the resource file of the original version is changed;

部署模块,用于依据所述新的版本号将当前制作的资源文件部署至资源服务器;a deployment module, configured to deploy the currently produced resource file to the resource server according to the new version number;

修改模块,用于依据所述新的版本号对客户端的资源下载路径进行修改;A modification module, configured to modify the resource download path of the client according to the new version number;

发送模块,用于当更新服务器接收到客户端的版本切换请求时,根据客户端切换的所述新的版本号对应的运营服务器向所述客户端发送配置文件,所述配置文件中包括依据所述新的版本号修改后的资源下载路径;客户端依据所述修改后的资源下载路径从资源服务器中下载所述资源文件。A sending module, configured to send a configuration file to the client according to the operation server corresponding to the new version number switched by the client when the update server receives the version switching request from the client, and the configuration file includes The resource download path modified by the new version number; the client downloads the resource file from the resource server according to the modified resource download path.

可选地,所述资源下载路径包括固定下载路径与可变下载路径,其中,所述固定下载路径为所述资源服务器的下载路径,所述可变下载路径为版本号。Optionally, the resource download path includes a fixed download path and a variable download path, wherein the fixed download path is a download path of the resource server, and the variable download path is a version number.

可选地,所述修改模块将所述资源下载路径中的可变下载路径修改为所述新的版本号。Optionally, the modification module modifies the variable download path in the resource download path to the new version number.

可选地,所述部署模块包括:Optionally, the deployment module includes:

压缩子模块,用于将当前制作的资源文件压缩成资源文件压缩包,所述资源文件压缩包以所述新的版本号为文件名;The compression submodule is used to compress the currently produced resource file into a resource file compression package, and the resource file compression package uses the new version number as the file name;

解压子模块,用于将所述资源文件压缩包解压至所述资源服务器的固定下载路径下。The decompression submodule is used to decompress the resource file compression package to the fixed download path of the resource server.

可选地,所述判断模块包括:Optionally, the judging module includes:

对比子模块,用于将当前制作的资源文件与原有版本的资源文件进行对比;The comparison sub-module is used to compare the resource file currently produced with the resource file of the original version;

确定子模块,用于当所述当前制作的资源文件与原有版本的资源文件相同,或者当前制作的资源文件为增量变更时,确定原有版本的资源文件没有变更;当所述当前制作的资源文件为资源解析规则变更时,确定原有版本的资源文件变更。A determination submodule is used to determine that the resource file of the original version has not changed when the resource file currently produced is the same as the resource file of the original version, or the resource file currently produced is an incremental change; When the resource file is a resource parsing rule change, it is determined that the original version of the resource file is changed.

与背景技术相比,本发明实施例包括以下优点:Compared with the background technology, the embodiments of the present invention include the following advantages:

本发明实施例可以在资源版本的制作过程中,依据当前制作的资源文件判断原有版本的资源文件是否变更;当原有版本的资源文件变更时,生成新的版本号;并依据所述新的版本号将当前制作的资源文件部署至资源服务器,以及对客户端的资源下载路径进行修改;当更新服务器接收到客户端的版本切换请求时,根据客户端切换的所述新的版本号对应的运营服务器将依据所述新的版本号修改后的资源下载路径发送给客户端,客户端即可依据所述修改后的资源下载路径从资源服务器中下载所述资源文件。In the embodiment of the present invention, during the production process of the resource version, it is possible to judge whether the resource file of the original version is changed according to the resource file currently produced; when the resource file of the original version is changed, a new version number is generated; and according to the new The version number of the currently produced resource file is deployed to the resource server, and the resource download path of the client is modified; when the update server receives the client’s version switching request, the operation The server sends the modified resource download path according to the new version number to the client, and the client can download the resource file from the resource server according to the modified resource download path.

本发明实施例中并没有对所有的资源进行重命名,而是通过修改资源版本对应的资源下载路径,使得客户端可以自动在所述路径下下载新版本的资源文件,从而可以降低工作量和成本;并且下载之后即可直接替换客户端本地原有的资源文件,从而可以节省用户的磁盘资源。In the embodiment of the present invention, all resources are not renamed, but by modifying the resource download path corresponding to the resource version, the client can automatically download the resource file of the new version under the path, thereby reducing the workload and cost; and after downloading, the original local resource files of the client can be directly replaced, thereby saving the user's disk resources.

附图说明Description of drawings

图1是目前技术中客户端切换游戏版本的示意图;FIG. 1 is a schematic diagram of client switching game versions in the current technology;

图2是本发明实施例一中所述的游戏版本制作过程的流程图;Fig. 2 is a flowchart of the game version production process described in Embodiment 1 of the present invention;

图3是本发明实施例一中所述的一种多版本分布式资源管理方法的流程图;FIG. 3 is a flow chart of a multi-version distributed resource management method described in Embodiment 1 of the present invention;

图4是本发明实施例二所述的一种多版本分布式资源管理系统的结构框图。Fig. 4 is a structural block diagram of a multi-version distributed resource management system according to Embodiment 2 of the present invention.

具体实施方式detailed description

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

本文中的各实施例主要是以游戏资源为例进行的介绍,但是,需要说明的是,本发明实施例并不限定于游戏资源,其他IE资源(例如网页图片资源等),也可以用本发明实施例所提出的技术方案解决。The embodiments in this article are mainly introduced by taking game resources as an example. However, it should be noted that the embodiments of the present invention are not limited to game resources. Other IE resources (such as web page image resources, etc.) can also use this The technical solutions proposed by the embodiments of the invention solve the problem.

实施例一:Embodiment one:

游戏运营过程中,会由于运营以及宣传的需要而在不同的运营服务器上运行不同的游戏版本。游戏客户端与运营服务器之间需要处在相同的版本,以确保用户在游戏过程中的游戏内容、后台逻辑、通信协议等的一致性。用户在游戏过程中会根据自己的游戏喜好,随意的在选择运营服务器的过程中选择自己想要游戏的版本。客户端会基于版本一致性的原因在切换运营服务器的时候,从资源服务器中下载新的对应运营服务器的版本文件,以确保运行时客户端与服务器的版本一致性。During the operation of the game, different game versions will be run on different operation servers due to the needs of operation and publicity. The game client and the operation server need to be at the same version to ensure the consistency of game content, background logic, communication protocols, etc. during the game. During the game, users will choose the version of the game they want in the process of selecting and operating the server at will according to their own game preferences. The client will download the new version file corresponding to the operating server from the resource server when switching the operating server based on version consistency, so as to ensure the version consistency between the client and the server during runtime.

版本切换即指使用同一个游戏客户端,在登录不同运营服务器时根据服务器版本,自动进行客户端文件修改,实现用户使用同一个客户端登录不同版本的运营服务器进行游戏。Version switching refers to using the same game client to automatically modify client files according to the server version when logging in to different operating servers, so that users can use the same client to log in to operating servers of different versions to play games.

如图1所示,为目前技术中客户端切换游戏版本的示意图。As shown in FIG. 1 , it is a schematic diagram of client switching game versions in the current technology.

客户端C在登录运营服务器时,更新服务器S1可以将运营服务器的列表提供给客户端,客户端可以选择想要登录的运营服务器(例如,客户端C可以选择登录运营服务器S21)。当客户端C请求切换游戏版本,即切换运营服务器时(例如,客户端C请求切换到运营服务器S22),如果在运营服务器S21上的游戏版本为1.0,在运营服务器S22上的游戏版本为2.0,则更新服务器S1在检测出游戏资源变更时,可以向客户端C发送配置文件,引导客户端C去资源服务器S3中下载版本2.0对应的资源。When the client C logs in to the operation server, the update server S1 can provide the client with a list of operation servers, and the client can select the operation server to log in to (for example, the client C can choose to log in to the operation server S21). When client C requests to switch the game version, that is, to switch the operation server (for example, client C requests to switch to the operation server S22), if the game version on the operation server S21 is 1.0, the game version on the operation server S22 is 2.0 , when the update server S1 detects the change of game resources, it can send the configuration file to the client C, and guide the client C to download the resources corresponding to version 2.0 from the resource server S3.

基于IE资源管理规则,在游戏版本更新之后,如果资源的名称、下载路径不能够动态变更,则会造成客户端所读取的缓存资源的版本与运营服务器上存储的客户端资源解析规则以及运营服务器版本不一致,进而可能造成显示错误、客户端崩溃、逻辑异常等问题。Based on the IE resource management rules, after the game version is updated, if the name and download path of the resource cannot be changed dynamically, the version of the cached resource read by the client will be inconsistent with the client resource resolution rules and operation rules stored on the operation server. Inconsistent server versions may cause problems such as display errors, client crashes, and logic exceptions.

对于常规的解决方式,可以在每一个版本制作过程中重命名所有的资源,从而在游戏时可以下载新的资源文件。但是上述方式所带来的工作量以及游戏维护成本都会陡然增加;同时,由于对新的资源文件进行了重命名,因此客户端中会同时保存原有的资源文件以及新的资源文件,从而大量消耗用户的磁盘资源。For a conventional solution, all resources can be renamed during each version making process, so that new resource files can be downloaded during game play. However, the workload and game maintenance costs brought by the above method will increase suddenly; at the same time, because the new resource file is renamed, the original resource file and the new resource file will be saved in the client at the same time, so that a large number of Consumes the user's disk resources.

为了解决上述问题,本发明实施例提出了一种多版本分布式资源管理方法,该方法可以降低工作量和维护成本,并且可以节省用户的磁盘资源。In order to solve the above problems, an embodiment of the present invention proposes a multi-version distributed resource management method, which can reduce workload and maintenance costs, and can save disk resources of users.

首先,说明一下本发明实施例的版本制作过程。本发明实施例中在资源版本的制作过程中,可以通过特殊的游戏版本制作工具进行。如图2所示,为本发明实施例一中游戏版本制作过程的流程图,该制作过程可以包括:First, the version making process of the embodiment of the present invention will be explained. In the embodiment of the present invention, during the production process of the resource version, a special game version production tool can be used. As shown in Figure 2, it is a flow chart of the game version production process in Embodiment 1 of the present invention, and the production process may include:

步骤200,开始游戏版本制作。Step 200, start making the game version.

步骤201,判断资源是否变更。Step 201, judging whether the resource is changed.

如果判断出资源变更,则可以进入版本制作工具自动逻辑;如果判断出资源没有变更,则本发明实施例中不做处理。If it is determined that the resource has changed, it can enter the automatic logic of the version creation tool; if it is determined that the resource has not changed, no processing will be performed in the embodiment of the present invention.

以下步骤202-步骤204即为所述版本制作工具自动逻辑。The following steps 202 to 204 are the automatic logic of the version creation tool.

步骤202,确定资源变更。Step 202, determining resource changes.

步骤203,自动生成客户端的资源下载路径。Step 203, automatically generating a resource download path of the client.

步骤204,自动生成可部署资源文件。Step 204, automatically generating deployable resource files.

本发明实施例中,在可下载资源的制作过程中,可以通过版本制作工具对所有的资源文件进行自动检索,判断其中文件的变化,当文件出现变化时,可以自动生成新的版本号,并进行以下两部分操作:In the embodiment of the present invention, in the production process of downloadable resources, all resource files can be automatically retrieved through the version creation tool, and changes in the files can be judged. When a file changes, a new version number can be automatically generated, and Do the following two-part operation:

(1)根据新的版本号自动修改客户端资源下载路径(即上述步骤203);(1) Automatically modify the resource download path of the client according to the new version number (that is, step 203 above);

(2)根据新的版本号将所有制作的资源文件压缩至新的资源文件压缩包(即上述步骤204)。(2) Compress all produced resource files into a new resource file compressed package according to the new version number (that is, step 204 above).

后续在运维人员进行服务器资源部署时,仅需要将新的资源文件压缩包解压缩至资源服务器的下载路径即可。Later, when the operation and maintenance personnel deploy server resources, they only need to decompress the new resource file compression package to the download path of the resource server.

对于本发明实施例所述的多版本分布式资源管理方法的具体过程,将在下面对图3的描述中详细论述。The specific process of the multi-version distributed resource management method described in the embodiment of the present invention will be discussed in detail in the description of FIG. 3 below.

参照图3,示出了本发明实施例一中所述的一种多版本分布式资源管理方法的流程图,所述方法可以包括:Referring to FIG. 3 , it shows a flowchart of a multi-version distributed resource management method described in Embodiment 1 of the present invention. The method may include:

步骤300,在资源版本的制作过程中,依据当前制作的资源文件判断原有版本的资源文件是否变更。Step 300, in the process of making the resource version, judge whether the resource file of the original version is changed according to the resource file currently being made.

本发明实施例中,可以通过资源文件之间的对比判断原有版本的资源文件是否变更。具体的,该步骤300可以包括:In the embodiment of the present invention, it can be judged whether the resource file of the original version has been changed through the comparison between the resource files. Specifically, this step 300 may include:

a1,将当前制作的资源文件与原有版本的资源文件进行对比。a1, compare the currently produced resource file with the resource file of the original version.

本发明实施例中,可以通过代码方式自动进行当前制作的资源文件与原有版本的资源文件之间的对比。对于具体的对比过程,本领域技术人员根据实际情况进行相关处理即可,本发明实施例在此不再详细论述。In the embodiment of the present invention, the comparison between the currently produced resource file and the resource file of the original version can be automatically performed by means of code. For the specific comparison process, those skilled in the art may perform relevant processing according to the actual situation, and the embodiments of the present invention will not be discussed in detail here.

a2,当所述当前制作的资源文件与原有版本的资源文件相同,或者当前制作的资源文件为增量变更时,确定原有版本的资源文件没有变更。a2. When the currently produced resource file is the same as the original version of the resource file, or the currently produced resource file is an incremental change, it is determined that the original version of the resource file has not been changed.

a3,当所述当前制作的资源文件为资源解析规则变更时,确定原有版本的资源文件变更。a3. When the currently produced resource file is a resource analysis rule change, determine that the original version of the resource file is changed.

进行对比之后,如果当前制作的资源文件与原有版本的资源文件相同,则说明原有版本的资源文件没有变更;另外,如果与原有版本的资源文件相比,当前制作的资源文件只是增加了一些内容,则本发明实施例中也认为原有版本的资源文件没有变更。针对上述两种原有版本的资源文件没有变更的情况,本发明实施例中可以不对其进行处理。After comparison, if the resource file currently produced is the same as the resource file of the original version, it means that the resource file of the original version has not changed; in addition, if compared with the resource file of the original version, the resource file currently produced only increases If some content is changed, then in the embodiment of the present invention, it is also considered that the resource file of the original version has not been changed. For the situation that the resource files of the above two original versions have not been changed, they may not be processed in the embodiment of the present invention.

如果与原有版本的资源文件相比,当前制作的资源文件为资源解析规则变更时,则本发明实施例中认为原有版本的资源文件变更。此时,即可按照本发明实施例所述的方法进行资源管理。If compared with the resource file of the original version, when the resource resolution rule of the currently produced resource file is changed, the embodiment of the present invention considers that the resource file of the original version is changed. At this point, resource management can be performed according to the method described in the embodiment of the present invention.

步骤301,当原有版本的资源文件变更时,生成新的版本号。Step 301, when the resource file of the original version is changed, a new version number is generated.

本发明实施例中,当步骤300判断出原有版本的资源文件变更时,即可自动生成一个新的版本号,通过所述新的版本号表示当前制作的资源文件的版本。In the embodiment of the present invention, when it is determined in step 300 that the original version of the resource file is changed, a new version number can be automatically generated, and the new version number indicates the version of the currently produced resource file.

步骤302,依据所述新的版本号将当前制作的资源文件部署至资源服务器。Step 302, deploying the currently produced resource file to the resource server according to the new version number.

本发明实施例中,对于资源服务器,可以设置一个固定下载路径,例如,可以设置资源服务器的固定下载路径为10.1.1.123/pets/,在生成新的版本号之后,即可将所述新的版本号对应的资源文件部署至资源服务器中。In the embodiment of the present invention, a fixed download path can be set for the resource server, for example, the fixed download path of the resource server can be set to 10.1.1.123/pets/, and after a new version number is generated, the new The resource file corresponding to the version number is deployed to the resource server.

具体的,该步骤302可以包括:Specifically, this step 302 may include:

b1,将当前制作的资源文件压缩成资源文件压缩包,所述资源文件压缩包以所述新的版本号为文件名。b1, compressing the currently produced resource file into a resource file compression package, and the resource file compression package uses the new version number as the file name.

在版本制作过程中,当确定原有版本的资源文件变更,生成新的版本号之后,即可将当前制作的资源文件压缩成资源文件压缩包,并以所述新的版本号作为所述资源文件压缩包的文件名。In the version making process, when the resource file of the original version is determined to be changed and a new version number is generated, the resource file currently being made can be compressed into a resource file compression package, and the new version number is used as the resource The filename of the compressed file.

b2,将所述资源文件压缩包解压至所述资源服务器的固定下载路径下。b2. Decompress the resource file compression package to the fixed download path of the resource server.

版本制作之后。在运维人员进行资源部署时,即可由运维人员将所述资源文件压缩包解压至所述资源服务器的固定下载路径下(例如,解压至固定下载路径10.1.1.123/pets/),此时,即可完成将当前制作的资源文件部署至资源服务器,后续客户端即可从资源服务器中下载这些资源文件。After the version is made. When the operation and maintenance personnel deploy resources, the operation and maintenance personnel can decompress the resource file compression package to the fixed download path of the resource server (for example, decompress to the fixed download path 10.1.1.123/pets/), at this time , to complete the deployment of the currently produced resource files to the resource server, and subsequent clients can download these resource files from the resource server.

步骤303,依据所述新的版本号对客户端的资源下载路径进行修改。Step 303, modify the resource download path of the client according to the new version number.

本发明实施例中,所述客户端的资源下载路径可以包括固定下载路径与可变下载路径,其中,所述固定下载路径可以为所述资源服务器的下载路径,所述可变下载路径可以为版本号。通过将运营服务器的版本号作为资源下载路径的一部分,可以保证客户端的资源下载路径配置与运营服务器的版本号相对应。例如,所述客户端的资源下载路径可以为10.1.1.123/pets/100,其中,10.1.1.123/pets/即为资源服务器的固定下载路径,100即为版本号。In the embodiment of the present invention, the resource download path of the client may include a fixed download path and a variable download path, wherein the fixed download path may be the download path of the resource server, and the variable download path may be the version No. By using the version number of the operation server as a part of the resource download path, it can be ensured that the resource download path configuration of the client corresponds to the version number of the operation server. For example, the resource download path of the client may be 10.1.1.123/pets/100, wherein 10.1.1.123/pets/ is the fixed download path of the resource server, and 100 is the version number.

在原有版本的资源文件变更,生成新的版本号之后,还可以依据所述新的版本号对客户端的资源下载路径进行修改,以保证客户端可以从资源服务器中下载正确的资源版本。After the resource file of the original version is changed and a new version number is generated, the resource download path of the client can also be modified according to the new version number, so as to ensure that the client can download the correct resource version from the resource server.

本发明实施例中,由于客户端的资源下载路径为固定下载路径加上可变下载路径(即版本号),因此,通过修改资源下载路径中的版本号,即可调整客户端所指向的运营服务器。In the embodiment of the present invention, since the resource download path of the client is a fixed download path plus a variable download path (that is, the version number), the operating server pointed to by the client can be adjusted by modifying the version number in the resource download path .

因此,该步骤303中依据所述新的版本号对客户端的资源下载路径进行修改,具体可以为将所述资源下载路径中的可变下载路径修改为所述新的版本号,因此客户端即可从资源服务器中下载所述新的版本号对应的资源版本。Therefore, in step 303, the resource download path of the client is modified according to the new version number. Specifically, the variable download path in the resource download path can be modified to the new version number, so the client is The resource version corresponding to the new version number may be downloaded from the resource server.

例如,所述新的版本号为101,此时即可将客户端的资源下载路径修改为10.1.1.123/pets/101,客户端即可在该路径下下载版本101的资源文件。For example, if the new version number is 101, the resource download path of the client can be modified to 10.1.1.123/pets/101, and the client can download the resource file of version 101 under this path.

步骤304,当更新服务器接收到客户端的版本切换请求时,根据客户端切换的所述新的版本号对应的运营服务器向所述客户端发送配置文件,所述配置文件中包括依据所述新的版本号修改后的资源下载路径。Step 304, when the update server receives the client's version switching request, the operation server corresponding to the new version number switched by the client sends a configuration file to the client, the configuration file includes Resource download path after version number modification.

当用户想要切换版本时,用户客户端可以向更新服务器发送版本切换请求,更新服务器可以根据客户端切换的运营服务器向所述客户端发送配置文件。When the user wants to switch the version, the user client can send a version switching request to the update server, and the update server can send the configuration file to the client according to the operation server switched by the client.

本发明实施例中,当用户想要切换到上述新的版本号对应的资源版本(即用户请求切换到所述新的版本号对应的运营服务器)时,可以向更新服务器发送版本切换请求。例如,客户端可以通过从更新服务器提供的运营服务器列表中选择所述新的版本号对应的运营服务器来触发版本切换请求。In the embodiment of the present invention, when the user wants to switch to the resource version corresponding to the new version number (that is, the user requests to switch to the operation server corresponding to the new version number), a version switching request may be sent to the update server. For example, the client may trigger the version switching request by selecting the operation server corresponding to the new version number from the operation server list provided by the update server.

更新服务器在接收到客户端的版本切换请求时,可以根据客户端切换的所述新的版本号对应的运营服务器向所述客户端发送配置文件,其中,所述配置文件中可以包括依据所述新的版本号修改后的资源下载路径。When the update server receives the version switching request from the client, it may send a configuration file to the client according to the operation server corresponding to the new version number switched by the client, wherein the configuration file may include The resource download path after the version number is modified.

步骤305,客户端依据所述修改后的资源下载路径从资源服务器中下载所述资源文件。Step 305, the client downloads the resource file from the resource server according to the modified resource download path.

当用户进入到游戏中后,即可直接从所述资源下载路径获得对应用户所登录的运营服务器版本的资源文件,并且会用下载的资源文件直接替换本地原有的资源文件,完成资源更新操作。When the user enters the game, he can directly obtain the resource file of the operation server version corresponding to the user's login from the resource download path, and directly replace the original local resource file with the downloaded resource file to complete the resource update operation .

例如,用户切换的运营服务器中的新的版本号为101,则更新服务器向客户端发送的配置文件中可以包括资源下载路径10.1.1.123/pets/101,客户端根据配置文件中的该资源下载路径即可从资源服务器中下载版本号为101的资源文件。For example, if the new version number in the operation server switched by the user is 101, the configuration file sent by the update server to the client may include the resource download path 10.1.1.123/pets/101, and the client downloads the resource according to the resource in the configuration file. path to download the resource file with version number 101 from the resource server.

本发明实施例中,将客户端的资源下载路径设置为固定下载路径加可变下载路径的方式。在新版本的制作过程中,并不是对所有的资源进行重命名,而是在版本制作过程中,自动生成新的版本号,并根据新的版本号修改资源下载路径中的可变下载路径。从而使得客户端可以自动在所述资源下载路径下下载新版本的资源文件,避免了由于对所有资源文件重命名而导致的工作量大、成本高的问题;并且,由于没有对资源文件进行重命名,因此在下载之后即可用下载的新的版本号对应的资源文件直接替换客户端本地原有的资源文件,从而可以节省用户的磁盘资源。In the embodiment of the present invention, the resource download path of the client is set as a fixed download path plus a variable download path. In the process of making a new version, instead of renaming all resources, a new version number is automatically generated during the version making process, and the variable download path in the resource download path is modified according to the new version number. In this way, the client can automatically download new versions of resource files under the resource download path, avoiding the problems of heavy workload and high cost caused by renaming all resource files; and, since resource files are not renamed Named, so after downloading, the resource file corresponding to the downloaded new version number can be used to directly replace the original local resource file of the client, thereby saving the user's disk resources.

实施例二:Embodiment two:

参照图4,示出了本发明实施例二所述的一种多版本分布式资源管理系统的结构框图。Referring to FIG. 4 , it shows a structural block diagram of a multi-version distributed resource management system according to Embodiment 2 of the present invention.

所述系统可以包括:版本制作工具40、更新服务器41、资源服务器42、客户端43、第一运营服务器44和第二运营服务器45,还可以包括部署模块402。其中,版本制作工具40可以包括判断模块400和生成模块401,更新服务器41可以包括修改模块403和发送模块404。The system may include: a version creation tool 40 , an update server 41 , a resource server 42 , a client 43 , a first operation server 44 and a second operation server 45 , and may also include a deployment module 402 . Wherein, the version creation tool 40 may include a judgment module 400 and a generation module 401 , and the update server 41 may include a modification module 403 and a sending module 404 .

其中,in,

判断模块400,用于在资源版本的制作过程中,依据当前制作的资源文件判断原有版本的资源文件是否变更;The judging module 400 is used for judging whether the resource file of the original version has been changed according to the resource file currently made during the production process of the resource version;

所述判断模块400可以包括:The judging module 400 may include:

对比子模块,用于将当前制作的资源文件与原有版本的资源文件进行对比;The comparison sub-module is used to compare the resource file currently produced with the resource file of the original version;

确定子模块,用于当所述当前制作的资源文件与原有版本的资源文件相同,或者当前制作的资源文件为增量变更时,确定原有版本的资源文件没有变更;当所述当前制作的资源文件为资源解析规则变更时,确定原有版本的资源文件变更。A determination submodule is used to determine that the resource file of the original version has not changed when the resource file currently produced is the same as the resource file of the original version, or the resource file currently produced is an incremental change; When the resource file is a resource parsing rule change, it is determined that the original version of the resource file is changed.

生成模块401,用于当原有版本的资源文件变更时,生成新的版本号;A generating module 401, configured to generate a new version number when the resource file of the original version is changed;

部署模块402,用于依据所述新的版本号将当前制作的资源文件部署至资源服务器42;Deployment module 402, for deploying the resource file currently produced to the resource server 42 according to the new version number;

所述部署模块402可以包括:The deployment module 402 may include:

压缩子模块,用于将当前制作的资源文件压缩成资源文件压缩包,所述资源文件压缩包以所述新的版本号为文件名;The compression submodule is used to compress the currently produced resource file into a resource file compression package, and the resource file compression package uses the new version number as the file name;

解压子模块,用于将所述资源文件压缩包解压至所述资源服务器的固定下载路径下。The decompression submodule is used to decompress the resource file compression package to the fixed download path of the resource server.

修改模块403,用于依据所述新的版本号对客户端的资源下载路径进行修改;A modification module 403, configured to modify the resource download path of the client according to the new version number;

其中,所述资源下载路径包括固定下载路径与可变下载路径,所述固定下载路径为所述资源服务器的下载路径,所述可变下载路径为版本号。Wherein, the resource download path includes a fixed download path and a variable download path, the fixed download path is a download path of the resource server, and the variable download path is a version number.

所述修改模块403具体可以将所述资源下载路径中的可变下载路径修改为所述新的版本号。The modification module 403 may specifically modify the variable download path in the resource download path to the new version number.

发送模块404,用于当更新服务器接收到客户端的版本切换请求时,根据客户端切换的所述新的版本号对应的运营服务器向所述客户端发送配置文件,所述配置文件中包括依据所述新的版本号修改后的资源下载路径。The sending module 404 is configured to send a configuration file to the client according to the operation server corresponding to the new version number switched by the client when the update server receives the version switching request from the client, and the configuration file includes Describe the resource download path after the new version number modification.

当客户端43请求从第一运营服务器44切换到第二运营服务器45时(其中,第二运营服务器45中的版本号为所述新的版本号),客户端43可以向更新服务器41发送版本切换请求,更新服务器41即可向所述客户端43发送配置文件。客户端43在接收到更新服务器41发送的配置文件之后,即可依据所述修改后的资源下载路径从资源服务器42中下载所述资源文件。When the client 43 requests to switch from the first operation server 44 to the second operation server 45 (wherein, the version number in the second operation server 45 is the new version number), the client 43 can send the version to the update server 41. Switching request, the update server 41 can send the configuration file to the client 43 . After receiving the configuration file sent by the update server 41, the client 43 can download the resource file from the resource server 42 according to the modified resource download path.

本发明实施例可以在资源版本的制作过程中,依据当前制作的资源文件判断原有版本的资源文件是否变更;当原有版本的资源文件变更时,生成新的版本号;并依据所述新的版本号将当前制作的资源文件部署至资源服务器,以及对客户端的资源下载路径进行修改;当更新服务器接收到客户端的版本切换请求时,根据客户端切换的所述新的版本号对应的运营服务器将依据所述新的版本号修改后的资源下载路径发送给客户端,客户端即可依据所述修改后的资源下载路径从资源服务器中下载所述资源文件。In the embodiment of the present invention, during the production process of the resource version, it is possible to judge whether the resource file of the original version is changed according to the resource file currently produced; when the resource file of the original version is changed, a new version number is generated; and according to the new The version number of the currently produced resource file will be deployed to the resource server, and the resource download path of the client will be modified; when the update server receives the client’s version switching request, the operating The server sends the modified resource download path according to the new version number to the client, and the client can download the resource file from the resource server according to the modified resource download path.

本发明实施例中并没有对所有的资源进行重命名,而是通过修改资源版本对应的资源下载路径,使得客户端可以自动在所述路径下下载新版本的资源文件,从而可以降低工作量和成本;并且下载之后即可直接替换客户端本地原有的资源文件,从而可以节省用户的磁盘资源。In the embodiment of the present invention, all resources are not renamed, but by modifying the resource download path corresponding to the resource version, the client can automatically download the resource file of the new version under the path, thereby reducing the workload and cost; and after downloading, the original local resource files of the client can be directly replaced, thereby saving the user's disk resources.

对于系统实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the related parts, please refer to the part of the description of the method embodiment.

本发明实施例可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本发明,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。Embodiments of the invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.

对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。For the aforementioned method embodiments, for the sake of simple description, they are 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 sequence, because according to the present invention, Certain steps may be performed in other orders 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.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, commodity, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

以上对本发明所提供的一种多版本分布式资源管理方法和系统,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The above is a detailed introduction of a multi-version distributed resource management method and system provided by the present invention. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only for helping Understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification is not It should be understood as a limitation of the present invention.

Claims (8)

1.一种多版本分布式资源管理方法,其特征在于,包括:1. A multi-version distributed resource management method, characterized in that, comprising: 在资源版本的制作过程中,依据当前制作的资源文件判断原有版本的资源文件是否变更,包括:将当前制作的资源文件与原有版本的资源文件进行对比;当所述当前制作的资源文件与原有版本的资源文件相同,或者当前制作的资源文件为增量变更时,确定原有版本的资源文件没有变更;当所述当前制作的资源文件为资源解析规则变更时,确定原有版本的资源文件变更;During the production process of the resource version, judging whether the resource file of the original version has been changed according to the resource file currently produced includes: comparing the resource file currently produced with the resource file of the original version; when the resource file currently produced It is the same as the resource file of the original version, or when the resource file currently produced is an incremental change, it is determined that the resource file of the original version has not changed; when the resource file currently produced is a resource analysis rule change, the original version is determined resource file changes; 当原有版本的资源文件变更时,生成新的版本号;When the resource file of the original version is changed, a new version number is generated; 依据所述新的版本号将当前制作的资源文件部署至资源服务器;Deploying the currently produced resource file to the resource server according to the new version number; 依据所述新的版本号对客户端的资源下载路径进行修改;Modify the resource download path of the client according to the new version number; 当更新服务器接收到客户端在切换运营服务器时所发送的版本切换请求时,根据客户端切换的所述新的版本号对应的运营服务器向所述客户端发送配置文件,所述配置文件中包括依据所述新的版本号修改后的资源下载路径;客户端依据所述修改后的资源下载路径从资源服务器中下载所述资源文件。When the update server receives the version switching request sent by the client when switching the operation server, the operation server corresponding to the new version number switched by the client sends a configuration file to the client, and the configuration file includes The resource download path modified according to the new version number; the client downloads the resource file from the resource server according to the modified resource download path. 2.根据权利要求1所述的方法,其特征在于,所述资源下载路径包括固定下载路径与可变下载路径,其中,所述固定下载路径为所述资源服务器的下载路径,所述可变下载路径为版本号。2. The method according to claim 1, wherein the resource download path includes a fixed download path and a variable download path, wherein the fixed download path is the download path of the resource server, and the variable The download path is the version number. 3.根据权利要求2所述的方法,其特征在于,所述依据所述新的版本号对客户端的资源下载路径进行修改,包括:3. The method according to claim 2, wherein said modifying the resource download path of the client according to the new version number comprises: 将所述资源下载路径中的可变下载路径修改为所述新的版本号。Modify the variable download path in the resource download path to the new version number. 4.根据权利要求2所述的方法,其特征在于,所述依据所述新的版本号将当前制作的资源文件部署至资源服务器,包括:4. The method according to claim 2, wherein the deploying the currently produced resource file to the resource server according to the new version number comprises: 将当前制作的资源文件压缩成资源文件压缩包,所述资源文件压缩包以所述新的版本号为文件名;compressing the currently produced resource file into a resource file compression package, the resource file compression package takes the new version number as the file name; 将所述资源文件压缩包解压至所述资源服务器的固定下载路径下。Decompressing the resource file compression package to the fixed download path of the resource server. 5.一种多版本分布式资源管理系统,其特征在于,包括:5. A multi-version distributed resource management system, comprising: 判断模块,用于在资源版本的制作过程中,依据当前制作的资源文件判断原有版本的资源文件是否变更,所述判断模块包括:对比子模块,用于将当前制作的资源文件与原有版本的资源文件进行对比;确定子模块,用于当所述当前制作的资源文件与原有版本的资源文件相同,或者当前制作的资源文件为增量变更时,确定原有版本的资源文件没有变更;当所述当前制作的资源文件为资源解析规则变更时,确定原有版本的资源文件变更;The judging module is used to judge whether the resource file of the original version has been changed according to the resource file currently made during the production process of the resource version. The judging module includes: a comparison sub-module for comparing the resource file currently made with the original version of the resource file; determine the sub-module, used to determine that the original version of the resource file does not have Change; when the currently produced resource file is a resource analysis rule change, determine that the original version of the resource file has changed; 生成模块,用于当原有版本的资源文件变更时,生成新的版本号;A generation module is used to generate a new version number when the resource file of the original version is changed; 部署模块,用于依据所述新的版本号将当前制作的资源文件部署至资源服务器;a deployment module, configured to deploy the currently produced resource file to the resource server according to the new version number; 修改模块,用于依据所述新的版本号对客户端的资源下载路径进行修改;A modification module, configured to modify the resource download path of the client according to the new version number; 发送模块,用于当更新服务器接收到客户端在切换运营服务器时所发送的版本切换请求时,根据客户端切换的所述新的版本号对应的运营服务器向所述客户端发送配置文件,所述配置文件中包括依据所述新的版本号修改后的资源下载路径;客户端依据所述修改后的资源下载路径从资源服务器中下载所述资源文件。The sending module is configured to send the configuration file to the client according to the operation server corresponding to the new version number switched by the client when the update server receives the version switching request sent by the client when switching the operation server, the The configuration file includes a resource download path modified according to the new version number; the client downloads the resource file from the resource server according to the modified resource download path. 6.根据权利要求5所述的系统,其特征在于,所述资源下载路径包括固定下载路径与可变下载路径,其中,所述固定下载路径为所述资源服务器的下载路径,所述可变下载路径为版本号。6. The system according to claim 5, wherein the resource download path includes a fixed download path and a variable download path, wherein the fixed download path is the download path of the resource server, and the variable The download path is the version number. 7.根据权利要求6所述的系统,其特征在于,所述修改模块将所述资源下载路径中的可变下载路径修改为所述新的版本号。7. The system according to claim 6, wherein the modification module modifies the variable download path in the resource download path to the new version number. 8.根据权利要求6所述的系统,其特征在于,所述部署模块包括:8. The system according to claim 6, wherein the deployment module comprises: 压缩子模块,用于将当前制作的资源文件压缩成资源文件压缩包,所述资源文件压缩包以所述新的版本号为文件名;The compression submodule is used to compress the currently produced resource file into a resource file compression package, and the resource file compression package uses the new version number as the file name; 解压子模块,用于将所述资源文件压缩包解压至所述资源服务器的固定下载路径下。The decompression submodule is used to decompress the resource file compression package to the fixed download path of the resource server.
CN201310070313.XA 2013-03-05 2013-03-05 A kind of multi version distributive resource managing method and system Expired - Fee Related CN104038520B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310070313.XA CN104038520B (en) 2013-03-05 2013-03-05 A kind of multi version distributive resource managing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310070313.XA CN104038520B (en) 2013-03-05 2013-03-05 A kind of multi version distributive resource managing method and system

Publications (2)

Publication Number Publication Date
CN104038520A CN104038520A (en) 2014-09-10
CN104038520B true CN104038520B (en) 2017-11-10

Family

ID=51469109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310070313.XA Expired - Fee Related CN104038520B (en) 2013-03-05 2013-03-05 A kind of multi version distributive resource managing method and system

Country Status (1)

Country Link
CN (1) CN104038520B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049486B (en) * 2015-06-16 2019-03-26 腾讯科技(北京)有限公司 Method for edition management, the apparatus and system of static file
CN105786574B (en) * 2016-03-17 2019-01-22 武汉华星光电技术有限公司 CIM system client method for updating edition and more new system based on VDI group
CN105915389A (en) * 2016-06-02 2016-08-31 苏州乐麟无线信息科技有限公司 Data configuration and loading method and device
CN106713460B (en) * 2016-12-26 2019-12-10 武汉斗鱼网络科技有限公司 Version control method and system for flash application
CN107276844A (en) * 2017-06-01 2017-10-20 郑州云海信息技术有限公司 It is a kind of that the automatic setting method for logining server system is oriented based on linux operating systems
CN107370791A (en) * 2017-06-23 2017-11-21 微梦创科网络科技(中国)有限公司 The method and system of filename in automatic synchronization renewal content distributing network
CN110244975A (en) * 2018-03-08 2019-09-17 北京京东尚科信息技术有限公司 A method and device for generating a version number of a static resource
CN109656610B (en) * 2018-12-12 2022-03-15 北京像素软件科技股份有限公司 Distributed data hot updating method and device for online game
CN114327667B (en) * 2020-10-09 2023-12-22 福建省天奕网络科技有限公司 Dynamic resource loading method and system
CN113101670B (en) * 2021-04-15 2024-04-26 网易(杭州)网络有限公司 Version switching method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945135A (en) * 2010-09-20 2011-01-12 中兴通讯股份有限公司 Method and system for upgrading widget system
CN102053853A (en) * 2010-12-30 2011-05-11 北京像素软件科技股份有限公司 Version updating method of online game

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2601937C (en) * 2005-04-18 2013-01-22 Research In Motion Limited Implementing data-compatibility-based version scheme
CN101090391A (en) * 2006-06-13 2007-12-19 上海新纳广告传媒有限公司 Software automatic updating method based on supertext transmission protocol mode
CN101183946B (en) * 2006-12-26 2011-04-06 腾讯科技(深圳)有限公司 Method and system of obtaining resource listing of download file
CN101141303A (en) * 2007-09-24 2008-03-12 华为技术有限公司 Client upgrade method, server, and client in a network management system
CN101795203B (en) * 2009-02-03 2012-08-15 华为软件技术有限公司 Method and device for downloading software upgrading data packet
CN102065110A (en) * 2009-11-12 2011-05-18 钟惠波 On-line updating method and system for client side software on basis of P2SP (Peer to Server and to Peer)
CN102263805A (en) * 2010-05-25 2011-11-30 腾讯科技(北京)有限公司 Dynamic resource downloading method and apparatus thereof
CN102347989A (en) * 2011-10-25 2012-02-08 百度在线网络技术(北京)有限公司 Data distribution method and system based on resource description symbols

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945135A (en) * 2010-09-20 2011-01-12 中兴通讯股份有限公司 Method and system for upgrading widget system
CN102053853A (en) * 2010-12-30 2011-05-11 北京像素软件科技股份有限公司 Version updating method of online game

Also Published As

Publication number Publication date
CN104038520A (en) 2014-09-10

Similar Documents

Publication Publication Date Title
CN104038520B (en) A kind of multi version distributive resource managing method and system
US11032140B2 (en) Using a template to update a stack of resources
EP2815311B1 (en) Using an application cache to update resources of installed applications
US9075693B2 (en) Methods for updating applications
US10242023B2 (en) Programming model for synchronizing browser caches across devices and web services
US9332063B2 (en) Versatile application configuration for deployable computing environments
KR101376916B1 (en) Techniques to perform gradual upgrades
US10331423B1 (en) Utilizing cross platform streamable user interfaces to reduce software deployment frequency caused by user interface improvements
JP5357885B2 (en) Managing updates to create virtual machine clones
KR101618486B1 (en) Stream-based software application delivery and launching system
TWI712956B (en) Method and device for updating mobile terminal application program
US8516480B1 (en) Enabling offline work in a virtual data center
EP4055797B1 (en) Web application component migration to a cloud computing system
US11017032B1 (en) Document recovery utilizing serialized data
EP2680135B1 (en) Methods for updating applications
CN105867953B (en) Application upgrade package generation method, application upgrade method and corresponding device
CN116756454A (en) Webpage generation method and device, electronic equipment and storage medium
Padilla et al. Chapter 6 choosing the right web server
CN117215714A (en) Method, device, equipment and computer readable storage medium for synchronizing container mirror images
CN117453243A (en) Client resource patch package generation and package restoration method, device, equipment and storage medium
AU2014203156A1 (en) Stream-based software application delivery and launching system
NZ625325A (en) Data interchange system
NZ625325B2 (en) Data interchange system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171110

CF01 Termination of patent right due to non-payment of annual fee