CN111651187B - Method and system for version increment updating based on H5 micro-end - Google Patents

Method and system for version increment updating based on H5 micro-end Download PDF

Info

Publication number
CN111651187B
CN111651187B CN202010482994.0A CN202010482994A CN111651187B CN 111651187 B CN111651187 B CN 111651187B CN 202010482994 A CN202010482994 A CN 202010482994A CN 111651187 B CN111651187 B CN 111651187B
Authority
CN
China
Prior art keywords
version
resource
list
micro
resources
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
Application number
CN202010482994.0A
Other languages
Chinese (zh)
Other versions
CN111651187A (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.)
Fujian Tianqing Online Interactive Technology Co Ltd
Original Assignee
Fujian Tianqing Online Interactive Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Tianqing Online Interactive Technology Co Ltd filed Critical Fujian Tianqing Online Interactive Technology Co Ltd
Priority to CN202010482994.0A priority Critical patent/CN111651187B/en
Publication of CN111651187A publication Critical patent/CN111651187A/en
Application granted granted Critical
Publication of CN111651187B publication Critical patent/CN111651187B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5018Thread allocation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method for version increment updating based on an H5 micro-end, which comprises the following steps: step S1, setting an H5 player, a Web service container and a resource manager on an H5 micro-terminal, enabling resources acquired by the H5 micro-terminal from a remote terminal to be placed in the Web service container through the resource manager, and finishing resource updating; step S2, a version list is set at the remote end, the H5 micro-end has the version update of the resource, the localized resource of the H5 micro-end can be updated in time and controllably, and the remote end is matched during incremental update; s3, the H5 player requests a resource acquisition command, acquires a version list, acquires a resource address list of a version specified in a version list item from the version list, acquires version resources from the resource address list, divides the version resources into a plurality of resources, and then the micro-end downloads the resources by adopting multiple threads to store the resources in a Web service container and completes updating; the invention saves the manufacturing time of the micro-end.

Description

Method and system for version increment updating based on H5 micro-end
Technical Field
The invention relates to the technical field of computer communication, in particular to a method and a system for version increment updating based on an H5 micro-terminal.
Background
The H5 is used for manufacturing games, so that the game development is convenient, and the rendering performance is not poor. Has now become the choice for many game products. When the H5 micro-end has a version to be updated, the version resource of the corresponding version is acquired from the remote end, but the remote service and the current network condition are depended on when the resource is loaded in the middle of the game, so that experience of an experimenter is relatively poor. Wherein H5 refers to: the method has the advantages that the Flash effect can be achieved when the Flash mobile terminal is displayed on the smart phone, and the method is used for advertising and marketing webpages with cool and dazzling effects; i.e. a mobile-side web page.
Disclosure of Invention
In order to overcome the problems, the invention aims to provide a method for carrying out version increment updating based on an H5 micro-end, which moves remote-end resources into a micro-end Web service container with stable and reliable transmission speed, so that the resource loading is as little dependent on remote and real-time network conditions as possible, thereby being capable of updating the resources rapidly and improving the experience of users.
The invention is realized by adopting the following scheme: a method for incremental version updating based on H5 micro-terminals, the method comprising the steps of:
step S1, setting an H5 player, a Web service container and a resource manager on an H5 micro-terminal, enabling resources acquired by the H5 micro-terminal from a remote terminal to be placed in the Web service container through the resource manager, and finishing resource updating;
step S2, a version list is set at the remote end, the H5 micro-end has the version update of the resource, the localized resource of the H5 micro-end can be updated in time and controllably, and the remote end is matched during incremental update;
and S3, the H5 player requests a resource acquisition command, acquires a version list, acquires a resource address list of a version specified in a version list item from the version list, acquires version resources from the resource address list, divides the version resources into a plurality of resources, and then the micro-terminal downloads the resources by adopting multiple threads to store the resources in a Web service container and completes updating.
Further, the version list is composed of 4 fields, namely, the version list format is: version number, +version resource list file address, +1 or 0, +resource size for the entire version to be updated; wherein 1 represents a base version and 0 represents an incremental version; the version resource list file format is: a or D, + resource file download address; a represents an addition and D represents a deletion.
Further, the step S3 is further specifically: step S31: the H5 player starts to start an H5 micro-end game, and requests an H5 game resource from a Web service container http locally;
step S32: the Web service container acquires the latest game resources from the resource manager;
step S33: the resource manager requests the latest resource version file from the remote end;
step S34: the remote end sends the latest resource version json file to the resource manager, wherein the resource version json file is generated by a resource maintainer;
step S35: after receiving a resource version json file of the resource manager, the resource manager obtains a version list from the resource version json file, and compares the version number in the version list with the version number of the local resource library; if the version number in the version list is not equal to the version number of the local resource, analyzing the version needing to be updated, acquiring the version resource needing to be updated of the version needing to be updated, dividing the version resource into a plurality of resources, and then storing the resources in a Web service container by adopting multithreading download by a micro-terminal, and finishing updating.
Further, the resolving the version to be updated specifically includes: step S41, after receiving the version list, arranging the version list in sequence; setting a temporary version number variable, and assigning an initial temporary version number as a micro-terminal local version number;
step 42, judging whether the current version number in the obtained version list is larger than the local version number in sequence; if so, assigning the current version number to the temporary version number and executing step 43; otherwise, the operation is not performed, the temporary version number is returned, and the process is finished;
step 43, judging whether the version is a reference version; if yes, the temporary version number is returned without operation, and the process is finished; otherwise go to step 42; if the local version number is equal to the returned temporary version number, it indicates that no update is needed, otherwise, an update is needed.
Furthermore, in the multithreading downloading process, the thread control adopts the modes of pre-occupying the mark and actual downloading, the pre-occupying mark does not cause the condition of preempting the downloaded resources, and the actual downloading mark judges whether all the resources are downloaded; the resource manager reads the resource file and transmits the resource file to the Web service container; the Web service container returns the resources to the H5 player, and after the H5 player takes the resources, the game is started.
The invention also provides a system for version increment updating based on the H5 micro-end, which comprises a micro-end construction module, a remote end setting module and a resource updating module;
the micro-terminal construction module is used for setting an H5 player, a Web service container and a resource manager on the H5 micro-terminal, enabling resources acquired by the H5 micro-terminal from a remote terminal to be placed in the Web service container through the resource manager, and finishing resource updating;
the remote terminal setting module is used for setting a version list by the remote terminal, and the H5 micro terminal has the version update of the resource, so that the localized resource of the H5 micro terminal can be timely and controllably updated, and the remote terminal is matched during incremental update;
the resource updating module is used for requesting to acquire a resource command by the H5 player, acquiring a version list, acquiring a resource address list of a version specified in a version list item from the version list, acquiring a version resource from the resource address list, dividing the version resource into a plurality of resources, and then storing the resources in a Web service container by adopting multithreading download by a micro-terminal and finishing updating.
Further, the version list is composed of 4 fields, namely, the version list format is: version number, +version resource list file address, +1 or 0, +resource size for the entire version to be updated; wherein 1 represents a base version and 0 represents an incremental version; the version resource list file format is: a or D, + resource file download address; a represents an addition and D represents a deletion.
Further, the implementation manner of the resource updating module is further specifically as follows: the H5 player starts to start an H5 micro-end game, and requests an H5 game resource from a Web service container http locally;
the Web service container acquires the latest game resources from the resource manager;
the resource manager requests the latest resource version file from the remote end;
the remote end sends the latest resource version json file to the resource manager, wherein the resource version json file is generated by a resource maintainer;
after receiving a resource version json file of the resource manager, the resource manager obtains a version list from the resource version json file, and compares the version number in the version list with the version number of the local resource library; if the version number in the version list is not equal to the version number of the local resource, analyzing the version needing to be updated, acquiring the version resource needing to be updated of the version needing to be updated, dividing the version resource into a plurality of resources, and then storing the resources in a Web service container by adopting multithreading download by a micro-terminal, and finishing updating.
Further, the resolving the version to be updated specifically includes: step S41, after receiving the version list, arranging the version list in sequence; setting a temporary version number variable, and assigning an initial temporary version number as a micro-terminal local version number;
step 42, judging whether the current version number in the obtained version list is larger than the local version number in sequence; if so, assigning the current version number to the temporary version number and executing step 43; otherwise, the operation is not performed, the temporary version number is returned, and the process is finished;
step 43, judging whether the version is a reference version; if yes, the temporary version number is returned without operation, and the process is finished; otherwise go to step 42; if the local version number is equal to the returned temporary version number, it indicates that no update is needed, otherwise, an update is needed.
Furthermore, in the multithreading downloading process, the thread control adopts the modes of pre-occupying the mark and actual downloading, the pre-occupying mark does not cause the condition of preempting the downloaded resources, and the actual downloading mark judges whether all the resources are downloaded; the resource manager reads the resource file and transmits the resource file to the Web service container; the Web service container returns the resources to the H5 player, and after the H5 player takes the resources, the game is started.
The invention has the beneficial effects that: the micro-end is a mobile client end consuming little flow, and the remote resource is rapidly downloaded into the service container in an updating mode by taking the client end as the service container; then accessing the container resource using the Web function of the client; the resource loading is enabled to depend on remote and real-time network conditions as little as possible, so that the resource can be updated rapidly. In addition, the invention can completely multiplex the micro-terminal based on the H5 project, can be developed once and used everywhere, and greatly saves the manufacturing time of the micro-terminal.
Drawings
FIG. 1 is a schematic flow chart of the method of the present invention.
FIG. 2 is a flow chart of the interaction between the micro-terminal and the remote terminal according to the present invention.
FIG. 3 is a flow chart of resource updating according to an embodiment of the invention.
Fig. 4 is a functional block diagram of the system of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
The invention is divided into two processes, firstly, a Web service container is manufactured on a micro-end, so that resources can only be accessed locally; secondly, updating the version of the resource, wherein when the content is controlled to be changed, the localized resource can be timely and controllably updated, when the increment is updated, the localized resource is matched with a remote end, the updated version is divided into two steps, one is to acquire a version list, and the step controls the valid version from which the version starts to be updated; the other is to obtain the resource address list of the specified version in the version list item, which can divide the version resource into a plurality of small resources and provide conditions for the micro-end to download the resource by adopting multiple threads. Only the two processes are complete, so that the development efficiency is improved, and the loading and running stability of the H5 game can be ensured.
Referring to fig. 1 and 2, the method for incremental version update based on H5 micro-end of the present invention includes the following steps:
step S1, setting an H5 player, a Web service container and a resource manager on an H5 micro-terminal, enabling resources acquired by the H5 micro-terminal from a remote terminal to be placed in the Web service container through the resource manager, and finishing resource updating;
step S2, a version list is set at the remote end, the H5 micro-end has the version update of the resource, the localized resource of the H5 micro-end can be updated in time and controllably, and the remote end is matched during incremental update;
and S3, the H5 player requests a resource acquisition command, acquires a version list, acquires a resource address list of a version specified in a version list item from the version list, acquires version resources from the resource address list, divides the version resources into a plurality of resources, and then the micro-terminal downloads the resources by adopting multiple threads to store the resources in a Web service container and completes updating.
The invention is further illustrated by the following examples:
the invention forms a micro-terminal by the device A, the device W and the device P, wherein the P device is an H5 player manufactured by adopting a Webkit kernel; the W device is a Web service container and receives a resource request command from the P device; the device A is a resource manager, and the device completes the H5 resource updating function and comprises the resource increment updating function. Device R is a remote resource provider as long as the delivered version list is as in table 1, for example: "1, http:// xxxxx/version. Json, 1, 2156", comma split into 4 fields, the first field representing the version number; the second field is the version resource list file address; a third field in which 1 indicates a base version (version requiring full update of the file) and 0 indicates an incremental version; the fourth field is the resource size that the entire version needs to be updated.
Figure 187889DEST_PATH_IMAGE001
The version resource list file may be in the format of table 2, for example: "A, http:// xxxxx/1.Zip", where the comma is split into 2 fields, the first field A representing the addition and D representing the deletion; the second field is the resource file download address.
Figure 341527DEST_PATH_IMAGE002
The overall update flow process is described as follows:
step 1: the P device starts to start the H5 game, and requests H5 game resources from the W device http through the local (127.0.0.1);
step 2: the W device acquires the latest game resource from the A device;
step 3: the A device requests the R device for the latest resource version file;
step 4: the R device sends the latest resource version json file to the A device, wherein the resource version json file is generated by a resource maintainer;
step 5: after receiving a resource version json file of the R device, the A device obtains a version number in a version list from the resource version json file and compares the version number with a local resource library version number; if the latest resource version number is not equal to the local resource version number, analyzing the version needing to be updated, acquiring the version resource needing to be updated of the version needing to be updated, dividing the version resource into a plurality of resources, and then storing the resources in a Web service container by adopting multithreading download by a micro-terminal, and finishing updating.
The method for resolving the version which needs to be updated is as follows:
1. after receiving the version list, arranging the version list in sequence; the initial temporary version number assigns a local version number.
2. And judging whether the current version number is larger than the local version number or not in sequence. If the temporary version number is large, assigning the current version number, and executing the step 3; otherwise, returning the temporary version number and ending.
3. And judging whether the version is a reference version or not. If yes, returning to the temporary version number, and ending; otherwise go to 2.
In the method, if the local version number is equal to the returned temporary version number, the update is not needed, otherwise, the update is needed. The update flow is shown in fig. 3, and has three key points, namely:
1. according to the issued resource address list, the list is used for splitting the resources required to be updated for the current version, so that the micro-end can use multithreading to accelerate downloading.
2. The multithreading simultaneous downloading is not carried out on the resources of different versions, because the versions are strictly sequential, the later version of the resources are not allowed to be downloaded first, and otherwise, the version of the resources are disordered.
3. In the whole downloading process, the thread control adopts the modes of pre-occupying the mark and actual downloading, the pre-occupying mark can not cause the condition of preempting the downloaded resources, and the actual downloading mark judges whether all the resources are downloaded.
Step 6: the device A reads the resource file and transmits the resource file to the device W;
step 7: the W device returns the resource to the P device, and after the P device takes the resource, the game is started.
Referring to fig. 4, the system for incremental version update based on H5 micro-end of the present invention includes a micro-end construction module, a remote end setting module, and a resource update module;
the micro-terminal construction module is used for setting an H5 player, a Web service container and a resource manager on the H5 micro-terminal, enabling resources acquired by the H5 micro-terminal from a remote terminal to be placed in the Web service container through the resource manager, and finishing resource updating;
the remote terminal setting module is used for setting a version list by the remote terminal, and the H5 micro terminal has the version update of the resource, so that the localized resource of the H5 micro terminal can be timely and controllably updated, and the remote terminal is matched during incremental update;
the resource updating module is used for requesting to acquire a resource command by the H5 player, acquiring a version list, acquiring a resource address list of a version specified in a version list item from the version list, acquiring a version resource from the resource address list, dividing the version resource into a plurality of resources, and then storing the resources in a Web service container by adopting multithreading download by a micro-terminal and finishing updating.
In the present invention, the version list consists of 4 fields, i.e. the version list format is: version number, +version resource list file address, +1 or 0, +resource size for the entire version to be updated; wherein 1 represents a base version and 0 represents an incremental version; the version resource list file format is: a or D, + resource file download address; a represents an addition and D represents a deletion.
The implementation mode of the resource updating module is further specifically as follows: the H5 player starts to start an H5 micro-end game, and requests an H5 game resource from a Web service container http locally;
the Web service container acquires the latest game resources from the resource manager;
the resource manager requests the latest resource version file from the remote end;
the remote end sends the latest resource version json file to the resource manager, wherein the resource version json file is generated by a resource maintainer;
after receiving a resource version json file of the resource manager, the resource manager obtains a version list from the resource version json file, and compares the version number in the version list with the version number of the local resource library; if the version number in the version list is not equal to the version number of the local resource, analyzing the version needing to be updated, acquiring the version resource needing to be updated of the version needing to be updated, dividing the version resource into a plurality of resources, and then storing the resources in a Web service container by adopting multithreading download by a micro-terminal, and finishing updating.
In addition, the resolving the version to be updated specifically includes: step S41, after receiving the version list, arranging the version list in sequence; setting a temporary version number variable, and assigning an initial temporary version number as a micro-terminal local version number;
step 42, judging whether the current version number in the obtained version list is larger than the local version number in sequence; if so, assigning the current version number to the temporary version number and executing step 43; otherwise, the operation is not performed, the temporary version number is returned, and the process is finished;
step 43, judging whether the version is a reference version; if yes, the temporary version number is returned without operation, and the process is finished; otherwise go to step 42; if the local version number is equal to the returned temporary version number, it indicates that no update is needed, otherwise, an update is needed.
In the multithreading downloading process, a mode of pre-occupying the mark and actual downloading is adopted on thread control, the pre-occupying mark does not cause the condition of pre-occupying the downloaded resources, and the actual downloading mark judges whether all the resources are downloaded; the resource manager reads the resource file and transmits the resource file to the Web service container; the Web service container returns the resources to the H5 player, and after the H5 player takes the resources, the game is started.
The foregoing description is only of the preferred embodiments of the invention, and all changes and modifications that come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.

Claims (6)

1. A method for version increment updating based on H5 micro-end is characterized in that: the method comprises the following steps:
step S1, setting an H5 player, a Web service container and a resource manager on an H5 micro-terminal, enabling resources acquired by the H5 micro-terminal from a remote terminal to be placed in the Web service container through the resource manager, and finishing resource updating;
step S2, a version list is set at the remote end, the H5 micro-end has the version update of the resource, the localized resource of the H5 micro-end can be updated in time and controllably, and the remote end is matched during incremental update;
s3, the H5 player requests a resource acquisition command, acquires a version list, acquires a resource address list of a version specified in a version list item from the version list, acquires version resources from the resource address list, divides the version resources into a plurality of resources, and then the micro-end downloads the resources by adopting multiple threads to store the resources in a Web service container and completes updating;
the version list consists of 4 fields, namely the version list format is: version number, +version resource list file address, +1 or 0, +resource size for the entire version to be updated; wherein 1 represents a base version and 0 represents an incremental version; the version resource list file format is: a or D, + resource file download address; a represents new addition and D represents deletion;
the step S3 is further specifically: step S31: the H5 player starts to start an H5 micro-end game, and requests an H5 game resource from a Web service container http locally;
step S32: the Web service container acquires the latest game resources from the resource manager;
step S33: the resource manager requests the latest resource version file from the remote end;
step S34: the remote end sends the latest resource version json file to the resource manager, wherein the resource version json file is generated by a resource maintainer;
step S35: after receiving a resource version json file of the resource manager, the resource manager obtains a version list from the resource version json file, and compares the version number in the version list with the version number of the local resource library; if the version number in the version list is not equal to the version number of the local resource, analyzing the version needing to be updated, acquiring the version resource needing to be updated of the version needing to be updated, dividing the version resource into a plurality of resources, and then storing the resources in a Web service container by adopting multithreading download by a micro-terminal, and finishing updating.
2. The method for incremental version updating based on the H5 micro-end according to claim 1, wherein the method comprises the following steps: the resolving the version needing to be updated specifically comprises the following steps: step S41, after receiving the version list, arranging the version list in sequence; setting a temporary version number variable, and assigning an initial temporary version number as a micro-terminal local version number;
step 42, judging whether the current version number in the obtained version list is larger than the local version number in sequence; if so, assigning the current version number to the temporary version number and executing step 43; otherwise, the operation is not performed, the temporary version number is returned, and the process is finished;
step 43, judging whether the version is a reference version; if yes, the temporary version number is returned without operation, and the process is finished; otherwise go to step 42; if the local version number is equal to the returned temporary version number, it indicates that no update is needed, otherwise, an update is needed.
3. The method for incremental version updating based on the H5 micro-end according to claim 1, wherein the method comprises the following steps: in the multithreading downloading process, a mode of pre-occupying the mark and actual downloading is adopted on thread control, the pre-occupying mark does not cause the condition of pre-occupying the downloaded resources, and the actual downloading mark judges whether all the resources are downloaded; wherein the method comprises the steps of
The resource manager reads the resource file and transmits the resource file to the Web service container; the Web service container returns the resources to the H5 player, and after the H5 player takes the resources, the game is started.
4. The system for incremental version updating based on H5 micro-terminals is characterized in that: the system comprises a micro-end construction module, a remote end setting module and a resource updating module;
the micro-terminal construction module is used for setting an H5 player, a Web service container and a resource manager on the H5 micro-terminal, enabling resources acquired by the H5 micro-terminal from a remote terminal to be placed in the Web service container through the resource manager, and finishing resource updating;
the remote terminal setting module is used for setting a version list by the remote terminal, and the H5 micro terminal has the version update of the resource, so that the localized resource of the H5 micro terminal can be timely and controllably updated, and the remote terminal is matched during incremental update;
the resource updating module is used for requesting to acquire a resource command by the H5 player, acquiring a version list, acquiring a resource address list of a version specified in a version list item from the version list, acquiring a version resource from the resource address list, dividing the version resource into a plurality of resources, and then storing the resources in a Web service container by adopting multithreading download by a micro-terminal and finishing updating;
the version list consists of 4 fields, namely the version list format is: version number, +version resource list file address, +1 or 0, +resource size for the entire version to be updated; wherein 1 represents a base version and 0 represents an incremental version; the version resource list file format is: a or D, + resource file download address; a represents new addition and D represents deletion; the implementation mode of the resource updating module is further specifically as follows: the H5 player starts to start an H5 micro-end game, and requests an H5 game resource from a Web service container http locally;
the Web service container acquires the latest game resources from the resource manager;
the resource manager requests the latest resource version file from the remote end;
the remote end sends the latest resource version json file to the resource manager, wherein the resource version json file is generated by a resource maintainer;
after receiving a resource version json file of the resource manager, the resource manager obtains a version list from the resource version json file, and compares the version number in the version list with the version number of the local resource library; if the version number in the version list is not equal to the version number of the local resource, analyzing the version needing to be updated, acquiring the version resource needing to be updated of the version needing to be updated, dividing the version resource into a plurality of resources, and then storing the resources in a Web service container by adopting multithreading download by a micro-terminal, and finishing updating.
5. The system for incremental version updating based on H5 micro-terminals of claim 4, wherein: the resolving the version needing to be updated specifically comprises the following steps: step S41, after receiving the version list, arranging the version list in sequence; setting a temporary version number variable, and assigning an initial temporary version number as a micro-terminal local version number;
step 42, judging whether the current version number in the obtained version list is larger than the local version number in sequence; if so, assigning the current version number to the temporary version number and executing step 43; otherwise, the operation is not performed, the temporary version number is returned, and the process is finished;
step 43, judging whether the version is a reference version; if yes, the temporary version number is returned without operation, and the process is finished; otherwise go to step 42; if the local version number is equal to the returned temporary version number, it indicates that no update is needed, otherwise, an update is needed.
6. The system for incremental version updating based on H5 micro-terminals of claim 4, wherein: in the multithreading downloading process, a mode of pre-occupying the mark and actual downloading is adopted on thread control, the pre-occupying mark does not cause the condition of pre-occupying the downloaded resources, and the actual downloading mark judges whether all the resources are downloaded; wherein the method comprises the steps of
The resource manager reads the resource file and transmits the resource file to the Web service container; the Web service container returns the resources to the H5 player, and after the H5 player takes the resources, the game is started.
CN202010482994.0A 2020-06-01 2020-06-01 Method and system for version increment updating based on H5 micro-end Active CN111651187B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010482994.0A CN111651187B (en) 2020-06-01 2020-06-01 Method and system for version increment updating based on H5 micro-end

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010482994.0A CN111651187B (en) 2020-06-01 2020-06-01 Method and system for version increment updating based on H5 micro-end

Publications (2)

Publication Number Publication Date
CN111651187A CN111651187A (en) 2020-09-11
CN111651187B true CN111651187B (en) 2023-05-02

Family

ID=72346905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010482994.0A Active CN111651187B (en) 2020-06-01 2020-06-01 Method and system for version increment updating based on H5 micro-end

Country Status (1)

Country Link
CN (1) CN111651187B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346761B (en) * 2020-10-27 2024-05-17 长沙市到家悠享网络科技有限公司 Front-end resource online method, device, system and storage medium
CN114936048B (en) * 2022-05-10 2024-03-19 北京达佳互联信息技术有限公司 Configuration management method, device, electronic equipment and storage medium
CN115080141A (en) * 2022-06-02 2022-09-20 珠海金山数字网络科技有限公司 Data processing method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105327508A (en) * 2015-11-17 2016-02-17 盛趣信息技术(上海)有限公司 Network game running system and method
CN107038044A (en) * 2017-03-27 2017-08-11 长沙趣动文化科技有限公司 The discrete loading method of game resource and system based on Unity3D
CN110841280A (en) * 2019-11-06 2020-02-28 福建天晴在线互动科技有限公司 Method for online dynamic loading and checking of resources of micro-terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9525587B2 (en) * 2012-05-17 2016-12-20 International Business Machines Corporation Updating web resources

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105327508A (en) * 2015-11-17 2016-02-17 盛趣信息技术(上海)有限公司 Network game running system and method
CN107038044A (en) * 2017-03-27 2017-08-11 长沙趣动文化科技有限公司 The discrete loading method of game resource and system based on Unity3D
CN110841280A (en) * 2019-11-06 2020-02-28 福建天晴在线互动科技有限公司 Method for online dynamic loading and checking of resources of micro-terminal

Also Published As

Publication number Publication date
CN111651187A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN111651187B (en) Method and system for version increment updating based on H5 micro-end
CN108829409B (en) Distributed system rapid deployment method and system
US10713034B2 (en) Updating web resources
CN103108032B (en) Method and the relevant device of application program are downloaded and managed to many equipment collaborations
CN106843828B (en) Interface display and loading method and device
CN109862065A (en) Document down loading method, device and electronic equipment
US11016785B2 (en) Method and system for mirror image package preparation and application operation
US9733919B2 (en) Updating web resources
CN103997544A (en) Resource downloading method and device
CN112905939B (en) HTML5 page resource loading method, device, equipment and storage medium
CN111722885B (en) Program running method and device and electronic equipment
CN101145921A (en) Internet high-resolution video advertisement system and its implementation method
CN106383633A (en) Application icon replacement method and apparatus
CN104038520A (en) Multi-version distributed resource management method and multi-version distributed resource management system
US20140317497A1 (en) Method, Apparatus and System for Changing Font for Application Program
CN101115180B (en) Electronic program menu system and functional module dynamic load operating method
CN104765609A (en) Software related resource recommendation method, obtaining method and corresponding device
CN109240982B (en) File distribution method and system and storage medium
CN107025122B (en) Light application access method and system
CN112926002A (en) Service request processing method and device
CN103297516B (en) The polymorphic type of a kind of application provides method, system and device
CN114675872A (en) Data processing method, device and equipment for application program and storage medium
CN113467776A (en) Access method and device of equipment, storage medium and electronic device
CN109327740B (en) Popularization application operation method of terminal, terminal and computer readable storage medium
CN112861041B (en) Media content display method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant