[go: up one dir, main page]

CN113064609B - Resource loading method, client, server and storage medium - Google Patents

Resource loading method, client, server and storage medium Download PDF

Info

Publication number
CN113064609B
CN113064609B CN202110246498.XA CN202110246498A CN113064609B CN 113064609 B CN113064609 B CN 113064609B CN 202110246498 A CN202110246498 A CN 202110246498A CN 113064609 B CN113064609 B CN 113064609B
Authority
CN
China
Prior art keywords
resource
updated
file
identifier
mapping relation
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
CN202110246498.XA
Other languages
Chinese (zh)
Other versions
CN113064609A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai 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 Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110246498.XA priority Critical patent/CN113064609B/en
Publication of CN113064609A publication Critical patent/CN113064609A/en
Application granted granted Critical
Publication of CN113064609B publication Critical patent/CN113064609B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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 

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application provides a resource loading method, a client, a server and a storage medium, which are applied to the client, wherein the method comprises the following steps: under the condition that an update resource package sent by a server is received, the update resource package is analyzed to obtain a resource file to be updated and a resource mapping relation; distributing a first resource identifier for a resource file to be updated, and updating the first resource identifier into a resource mapping relation to obtain an updated resource mapping relation; and under the condition that the application loads the resource, determining the resource file to be updated by utilizing the updated resource mapping relation.

Description

Resource loading method, client, server and storage medium
Technical Field
The present application relates to the field of electronic applications, and in particular, to a resource loading method, a client, a server, and a storage medium.
Background
Along with the wide Application of intelligent terminal equipment, application (APP) on the terminal equipment also changes along with the demand of users, and the APP needs to update resources according to the demand of users.
At present, a new version of a client can be released, update resources are carried in the new version of the client, a user downloads the version for local installation, and further, the update of the resources is realized, and the scheme can cause the problems of slow update and complicated steps; therefore, a client thermal repair framework is also provided, and external codes are dynamically loaded through a repair class loading mechanism, so that automatic updating of programs is realized, and the problem of low accuracy of resource updating is caused by the scheme.
Disclosure of Invention
The embodiment of the application provides a resource loading method, a client, a server and a storage medium, which can improve the accuracy of resource updating while rapidly updating resources.
The technical scheme of the application is realized as follows:
In a first aspect, an embodiment of the present application provides a resource loading method, applied to a client, where the method includes:
under the condition that an update resource package sent by a server is received, the update resource package is analyzed to obtain a resource file to be updated and a resource mapping relation;
A first resource identifier is distributed for the resource file to be updated, and the first resource identifier is updated into the resource mapping relation to obtain an updated resource mapping relation;
And under the condition of loading the resources by the application, determining the resource file to be updated by utilizing the updated resource mapping relation.
In a second aspect, an embodiment of the present application provides a resource loading method, applied to a server, where the method includes:
Storing the mapping relation between the resource file to be updated and the second resource identifier to a resource description file, and packaging the resource file to be updated and the resource description file into an updated resource package; the second resource identifier is updated for the resource file to be updated
And downloading the updated resource package to a client so that the client can load the resources to be updated according to the updated resource package.
In a third aspect, an embodiment of the present application provides a client, where the client includes:
the analysis unit is used for analyzing the update resource package under the condition of receiving the update resource package sent by the server to obtain a resource file to be updated and a resource mapping relation;
The allocation unit is used for allocating a first resource identifier for the resource file to be updated;
The updating unit is used for updating the first resource identifier into the resource mapping relation to obtain an updated resource mapping relation;
and the loading unit is used for determining the resource file to be updated by utilizing the updated resource mapping relation under the condition of loading the resource by the application.
In a fourth aspect, an embodiment of the present application provides a client, where the client includes: a first processor, a first transmitter, a first receiver, a first memory, and a first communication bus; the first processor, when executing the running program stored in the first memory, implements the method as described in any one of the above.
In a fifth aspect, an embodiment of the present application provides a server, including:
The packaging unit is used for storing the mapping relation between the resource file to be updated and the second resource identifier to a resource description file and packaging the resource file to be updated and the resource description file into an updated resource package;
and the downloading unit is used for downloading the updated resource package to the client so that the client can load the resources to be updated according to the updated resource package.
In a sixth aspect, an embodiment of the present application provides a server, including: a second processor, a second transmitter, a second receiver, a second memory, and a second communication bus; the second processor implements the method as described above when executing the running program stored in the second memory.
In a seventh aspect, an embodiment of the present application provides a first storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a first processor, implements a method as described in any of the above.
In an eighth aspect, an embodiment of the present application provides a second storage medium having a computer program stored thereon, wherein the computer program when executed by a second processor implements a method as described above.
The embodiment of the application provides a resource loading method, a client, a server and a storage medium, which are applied to the client, wherein the method comprises the following steps: under the condition that an update resource package sent by a server is received, the update resource package is analyzed to obtain a resource file to be updated and a resource mapping relation; distributing a first resource identifier for a resource file to be updated, and updating the first resource identifier into a resource mapping relation to obtain an updated resource mapping relation; and under the condition that the application loads the resource, determining the resource file to be updated by utilizing the updated resource mapping relation. By adopting the implementation scheme, the server transmits the updated resource package to the client, so that resources can be updated rapidly, and further, the client allocates a first resource identifier for the resource file to be updated and updates the resource mapping relation by using the first resource identifier, so that the resource file to be updated can be found by using a second resource identifier accurately, and the accuracy of resource updating is improved.
Drawings
FIG. 1 is a flowchart of a resource loading method according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating an exemplary update package delivery according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating an exemplary resource mapping update according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an exemplary resource loading according to an embodiment of the present application;
FIG. 5 is a second flowchart of a resource loading method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an exemplary resource package according to an embodiment of the present application;
Fig. 7 is a schematic structural diagram of a client according to an embodiment of the present application;
Fig. 8 is a schematic diagram of a second structure of a client according to an embodiment of the present application;
fig. 9 is a schematic diagram of a server according to an embodiment of the present application;
fig. 10 is a schematic diagram of a server according to an embodiment of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the application. And are not intended to limit the application.
In an embodiment of the present application, an embodiment of the present application provides a resource loading method, which is applied to a client, as shown in fig. 1, and the method may include:
S101, under the condition that an update resource package sent by a server is received, the update resource package is analyzed, and a resource file to be updated and a resource mapping relation are obtained.
The resource loading method provided by the embodiment of the application is suitable for the scene of loading the resource by the application during the resource updating.
In the embodiment of the application, in a scene of needing to update resources, a client receives an update resource package issued by a server, at the moment, the client triggers a loading program and loads the update resource package to a resource manager by utilizing a resource loader, the resource manager analyzes the update resource package to obtain a resource file to be updated and a resource description file, and then, a resource mapping relation is obtained from the resource description file.
It should be noted that, the file type of the resource file to be updated may be a file type such as a picture, an extensible markup (Extensible Markup Language, XML) file, etc., which is specifically selected according to the actual situation, and the embodiment of the present application is not limited specifically.
It should be noted that, the resource mapping relationship stores the resource file to be updated and the old resource identifier (i.e. the second resource identifier) corresponding to the resource file to be updated.
Illustratively, as shown in fig. 2, the client includes a resource loader and a resource manager, res.split (resource update resource package) is downloaded to the client, the loader of the client is triggered, the resource loader of the client loads the update resource package to the resource manager, and the resource manager parses res.split.
S102, distributing a first resource identifier for the resource file to be updated, and updating the first resource identifier into the resource mapping relation to obtain an updated resource mapping relation.
After the update resource package is analyzed to obtain the resource file to be updated and the resource mapping relation, a first resource identifier is allocated to the resource to be updated, and the resource mapping relation is updated by using the first resource identifier.
It should be noted that, the identifier prefix of the first resource identifier allocated to the resource file to be updated is different from the identifier prefix of the old resource identifier corresponding to the resource file to be allocated in the resource mapping relationship, so that the difference of the resource identifiers is obvious and can not be repeated, thereby reducing the risk of failure in serial number or subsequent resource searching and improving the accuracy of resource updating.
In the embodiment of the application, after the first resource identifier is allocated to the resource to be updated, the resource mapping relation is analyzed, the second resource identifier corresponding to the resource to be updated is searched out from the resource mapping relation, and the mapping relation between the first resource identifier and the second resource identifier is established, so that the updated resource mapping relation is obtained.
For example, as shown in fig. 3, res.json (resource description file) is parsed, a mapping relationship between the picture 1 and the old id1 corresponding to the picture 1 and a mapping relationship between the XML1 and the old id2 corresponding to the XML1 are stored in the old_mapping (resource mapping relationship), then new id1 corresponding to the picture 1 is mapped into the old id1, new id2 corresponding to the XML1 is mapped into the old id1, and new_mapping (updated resource mapping relationship) is formed.
And S103, under the condition that the application loads the resource, determining the resource file to be updated by utilizing the updated resource mapping relation.
After a first resource identifier is allocated for the resource file to be updated and the resource mapping relation is updated by using the first resource identifier, under the condition of loading the resource by an application, determining the resource to be updated and loading the resource to be updated by using the updated resource mapping relation.
Specifically, the second resource identifier is transmitted into a resource finder, and the second resource identifier is found out from the updated resource mapping relation through the resource finder; under the condition that the second resource identifier is found out from the updated resource mapping relation, determining a first resource identifier mapped by the second resource identifier from the updated resource mapping relation; and determining the resource file to be updated by using the first resource identifier.
It should be noted that, the resource finder is a Hook resource finder, the second resource identifier is transmitted into the Hook resource finder, and the Hook resource finder searches the first resource identifier corresponding to the second resource identifier from the updated resource mapping relationship, and searches the resource file to be updated by using the first resource identifier.
Exemplary, as shown in fig. 4, the old_id1 is transmitted to a Hook resource finder, the Hook resource finder finds new_id1 mapped by the old_id1 from new_mapping, and then determines the picture 1 by using the found new_id1, so as to implement the process of loading the picture.
It can be understood that the server issues the update resource package to the client, so that the resources can be updated rapidly, and further, the client allocates a first resource identifier for the resource file to be updated and updates the resource mapping relationship by using the first resource identifier, so that the resource file to be updated can be found by accurately using a second resource identifier, and the accuracy of resource update is improved.
In an embodiment of the present application, an embodiment of the present application provides a resource loading method, which is applied to a server, as shown in fig. 5, and the method may include:
S201, storing the mapping relation between the resource file to be updated and the second resource identifier to the resource description file, and packaging the resource file to be updated and the resource description file into an updated resource package.
In the embodiment of the application, in a scene of needing to update resources, a resource mapping relation between a resource file to be updated and an old resource identifier (a second resource identifier) is added into a resource description file, and the resource file to be updated and the resource description file are packaged together into an updated resource package.
It should be noted that the resource mapping relationship may be stored in the form of a resource mapping table.
Illustratively, as shown in fig. 6, the res.json carries old_mapping, which includes the mapping relationship between the picture 1 and old_id1 and the mapping relationship between the XML1 and old_id2, and then packages the picture, the XML and the res.json into the res.split compression package.
S202, downloading the updated resource package to the client so that the client can load the resources to be updated according to the updated resource package.
In the embodiment of the present application, the server issues the update resource package to the client, and the resource loading process of the client for the resources to be updated according to the update resource package has been described in detail in the foregoing, which is not described in detail herein.
It can be understood that when the resource is updated, the server issues the updated resource package carrying the resource file to be updated and the resource mapping relation to the client, and the new version does not need to be released, so that the touch user is faster, and the client can directly load the resource of the resource to be updated based on the updated resource package, and can dynamically repair the resource without perception of the online user.
In another embodiment of the present application, an embodiment of the present application provides a client 1, as shown in fig. 7, the client 1 includes:
the parsing unit 10 is configured to parse the update resource package to obtain a resource file to be updated and a resource mapping relationship when receiving the update resource package sent by the server;
An allocation unit 11, configured to allocate a first resource identifier to the resource file to be updated;
An updating unit 12, configured to update the first resource identifier to the resource mapping relationship, to obtain an updated resource mapping relationship;
And the loading unit 13 is configured to determine the resource file to be updated by using the updated resource mapping relationship under the condition that the application loads the resource.
Optionally, the client further includes: a searching unit and a building unit;
the searching unit is used for searching a second resource identifier corresponding to the resource file to be updated from the resource mapping relation;
The establishing unit is configured to establish a mapping relationship between the first resource identifier and the second resource identifier, so as to obtain the updated resource mapping relationship.
Optionally, the identification prefix of the first resource identifier and the identification prefix of the second resource identifier are different.
Optionally, the client further includes: a determination unit;
the searching unit is further configured to transmit the second resource identifier to a resource finder, and search the second resource identifier from the updated resource mapping relationship through the resource finder;
the determining unit is configured to determine, when the second resource identifier is found from the updated resource mapping relationship, a first resource identifier mapped by the second resource identifier from the updated resource mapping relationship; and determining the resource file to be updated by using the first resource identifier.
Optionally, the client further includes: an acquisition unit;
The loading unit 13 is further configured to trigger a resource loader, and load the updated resource package to a resource manager by using a resource loader;
The parsing unit 10 is further configured to parse the update resource package by using the resource manager to obtain the resource file to be updated and a resource description file;
the obtaining unit is configured to obtain the resource mapping relationship from the resource description file.
Optionally, the file type of the resource file to be updated includes: a picture, an extensible markup language XML file.
According to the client provided by the embodiment of the application, under the condition that the update resource package sent by the server is received, the update resource package is analyzed to obtain the resource file to be updated and the resource mapping relation; distributing a first resource identifier for a resource file to be updated, and updating the first resource identifier into a resource mapping relation to obtain an updated resource mapping relation; and under the condition that the application loads the resource, determining the resource file to be updated by utilizing the updated resource mapping relation. Therefore, the client provided by the embodiment can send the update resource package to the client by the server, so that the resources can be updated rapidly, and further, the client allocates the first resource identifier for the resource file to be updated and updates the resource mapping relationship by using the first resource identifier, so that the resource file to be updated can be found by accurately using the second resource identifier, and the accuracy of resource update is improved.
Fig. 8 is a schematic diagram of a second component structure of a client 1 according to an embodiment of the present application, in practical application, based on the same disclosure concept of the above embodiment, as shown in fig. 8, the client 1 of this embodiment includes: a first processor 14, a first memory 15 and a first communication bus 16.
In a specific embodiment, the parsing unit 10, the allocation unit 11, the updating unit 12, the loading unit 13, the searching unit, the determining unit, the establishing unit, and the obtaining unit may be implemented by a first Processor 14 located on the client 1, where the first Processor 14 may be at least one of an Application Specific Integrated Circuit (ASIC), a digital signal Processor (DSP, digital Signal Processor), a digital signal processing image processing device (DSPD, digital Signal Processing Device), a programmable logic image processing device (PLD, programmable Logic Device), a field programmable gate array (FPGA, field Programmable GATE ARRAY), a CPU, a controller, a microcontroller, and a microprocessor. It will be appreciated that the electronics for implementing the above-described processor functions may be other for different devices, and the present embodiment is not particularly limited.
In the embodiment of the present application, the first communication bus 16 is used for communication connection between the first processor 14 and the first memory 15; the first processor 14 implements the following resource loading method when executing the running program stored in the first memory 15:
under the condition that an update resource package sent by a server is received, the update resource package is analyzed to obtain a resource file to be updated and a resource mapping relation;
A first resource identifier is distributed for the resource file to be updated, and the first resource identifier is updated into the resource mapping relation to obtain an updated resource mapping relation;
And under the condition of loading the resources by the application, determining the resource file to be updated by utilizing the updated resource mapping relation.
An embodiment of the present application provides a first storage medium, on which a computer program is stored, where the computer readable storage medium stores one or more programs, where the one or more programs may be executed by one or more first processors, and in an application client, the computer program implements a resource loading method as described above.
In still another embodiment of the present application, an embodiment of the present application provides a server 2, as shown in fig. 9, the server 2 includes:
A packaging unit 20, configured to store a mapping relationship between a resource file to be updated and a second resource identifier to a resource description file, and package the resource file to be updated and the resource description file into an update resource package;
and the downloading unit 21 is configured to download the update resource package to a client, so that the client performs resource loading of the resource to be updated according to the update resource package.
The embodiment of the application provides a server, which stores the mapping relation between a resource file to be updated and a second resource identifier into a resource description file, and packages the resource file to be updated and the resource description file into an updated resource package; and downloading the updated resource package into the client so that the client can load the resources to be updated according to the updated resource package. Therefore, the server provided by the embodiment can send the update resource package to the client, so that the resources can be updated rapidly, and further, the client allocates the first resource identifier for the resource file to be updated and updates the resource mapping relationship by using the first resource identifier, so that the resource file to be updated can be found accurately by using the second resource identifier, and the accuracy of resource update is improved.
Fig. 10 is a schematic diagram of a second component structure of a server 2 according to an embodiment of the present application, in practical application, based on the same disclosure concept of the above embodiment, as shown in fig. 10, the server 2 of the present embodiment includes: a second processor 22, a second memory 23 and a second communication bus 24.
In a specific embodiment, the packaging unit 20 and the downloading unit 21 may be implemented by a second processor 22 located on the server 2, where the second processor 22 may be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, a controller, a microcontroller, and a microprocessor. It will be appreciated that the electronics for implementing the above-described processor functions may be other for different devices, and the present embodiment is not particularly limited.
In the embodiment of the present application, the second communication bus 24 is used for communication connection between the second processor 22 and the second memory 23; the second processor 22 implements the following resource loading method when executing the running program stored in the second memory 23:
Storing the mapping relation between the resource file to be updated and the second resource identifier to a resource description file, and packaging the resource file to be updated and the resource description file into an updated resource package; and downloading the updated resource package to a client so that the client can load the resources to be updated according to the updated resource package.
An embodiment of the present application provides a second storage medium, on which a computer program is stored, where the computer readable storage medium stores one or more programs, where the one or more programs may be executed by one or more second processors, and applied to a server, where the computer program implements a resource loading method as described above.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present disclosure may be embodied essentially or in a part contributing to the related art in the form of a software product stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk), including several instructions for causing an image display device (which may be a mobile phone, a computer, a server, an air conditioner, or a server, etc.) to perform the method described in the embodiments of the present disclosure.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the present application.

Claims (9)

1. A method for loading resources, applied to a client, the method comprising:
Triggering a resource loading program under the condition of receiving an updated resource packet sent by a server, and loading the updated resource packet to a resource manager by utilizing the resource loader;
Analyzing the updated resource package by using the resource manager to obtain a resource file to be updated and a resource description file;
acquiring a resource mapping relation from the resource description file; the resource mapping relation is used for indicating the resource file to be updated and a second resource identifier corresponding to the resource file to be updated;
a first resource identifier is allocated for the resource file to be updated, and a second resource identifier corresponding to the resource file to be updated is found out from the resource mapping relation; establishing a mapping relation between the first resource identifier and the second resource identifier to obtain an updated resource mapping relation; the identification prefix of the first resource identifier is different from the identification prefix of the second resource identifier;
under the condition that the application loads the resource, the second resource identifier is transmitted to a resource finder, and the second resource identifier is found out from the updated resource mapping relation through the resource finder;
under the condition that the second resource identifier is found out from the updated resource mapping relation, determining a first resource identifier mapped by the second resource identifier from the updated resource mapping relation;
and determining the resource file to be updated by using the first resource identifier.
2. The method of claim 1, wherein the file type of the resource file to be updated comprises: a picture, an extensible markup language XML file.
3. A method for loading resources, applied to a server, the method comprising:
Storing the mapping relation between the resource file to be updated and the second resource identifier to a resource description file, and packaging the resource file to be updated and the resource description file into an updated resource package; the mapping relation of the second resource identifier is used for indicating the resource file to be updated and the second resource identifier corresponding to the resource file to be updated;
Downloading the updated resource package to a client for the client to load the resources to be updated according to the updated resource package; the resource loading of the resource to be updated comprises the following steps: the client is used for triggering a resource loading program and loading the updated resource package to a resource manager by utilizing the resource loader; analyzing the updated resource package by using the resource manager to obtain a resource file to be updated and a resource description file; acquiring a resource mapping relation from the resource description file; the resource mapping relation is used for indicating the resource file to be updated and a second resource identifier corresponding to the resource file to be updated; the client is further configured to allocate a first resource identifier to the resource file to be updated, and find a second resource identifier corresponding to the resource file to be updated from the resource mapping relationship; establishing a mapping relation between the first resource identifier and the second resource identifier to obtain an updated resource mapping relation; the identification prefix of the first resource identifier is different from the identification prefix of the second resource identifier; under the condition that the application loads the resource, the second resource identifier is transmitted to a resource finder, and the second resource identifier is found out from the updated resource mapping relation through the resource finder;
under the condition that the second resource identifier is found out from the updated resource mapping relation, determining a first resource identifier mapped by the second resource identifier from the updated resource mapping relation;
and determining the resource file to be updated by using the first resource identifier.
4. A client, the client comprising:
The analysis unit is used for triggering a resource loading program under the condition of receiving an updated resource packet sent by the server, and loading the updated resource packet to the resource manager by utilizing the resource loader; analyzing the updated resource package by using the resource manager to obtain a resource file to be updated and a resource description file; acquiring a resource mapping relation from the resource description file; the resource mapping relation is used for indicating the resource file to be updated and a second resource identifier corresponding to the resource file to be updated;
The allocation unit is used for allocating a first resource identifier for the resource file to be updated;
the updating unit is used for searching a second resource identifier corresponding to the resource file to be updated from the resource mapping relation; establishing a mapping relation between the first resource identifier and the second resource identifier to obtain an updated resource mapping relation; the identification prefix of the first resource identifier is different from the identification prefix of the second resource identifier;
The loading unit is used for transmitting the second resource identifier into a resource finder and finding the second resource identifier from the updated resource mapping relation through the resource finder; under the condition that the second resource identifier is found out from the updated resource mapping relation, determining a first resource identifier mapped by the second resource identifier from the updated resource mapping relation; and determining the resource file to be updated by using the first resource identifier.
5. A client, the client comprising: a first processor, a first transmitter, a first receiver, a first memory, and a first communication bus; the method of claim 1 or 2 being implemented when the first processor executes a running program stored in the first memory.
6. A server, the server comprising:
The packaging unit is used for storing the mapping relation between the resource file to be updated and the second resource identifier to a resource description file and packaging the resource file to be updated and the resource description file into an updated resource package; the mapping relation of the second resource identifier is used for indicating the resource file to be updated and the second resource identifier corresponding to the resource file to be updated;
The downloading unit is used for downloading the updated resource package to the client so that the client can load the resources to be updated according to the updated resource package; wherein, the loading of the resource to be updated comprises: the client is used for triggering a resource loading program and loading the updated resource package to a resource manager by utilizing the resource loader; analyzing the updated resource package by using the resource manager to obtain a resource file to be updated and a resource description file; acquiring a resource mapping relation from the resource description file; the resource mapping relation is used for indicating the resource file to be updated and a second resource identifier corresponding to the resource file to be updated; the client is further configured to allocate a first resource identifier to the resource file to be updated, and find a second resource identifier corresponding to the resource file to be updated from the resource mapping relationship; establishing a mapping relation between the first resource identifier and the second resource identifier to obtain an updated resource mapping relation; the identification prefix of the first resource identifier is different from the identification prefix of the second resource identifier; under the condition that the application loads the resource, the second resource identifier is transmitted to a resource finder, and the second resource identifier is found out from the updated resource mapping relation through the resource finder; under the condition that the second resource identifier is found out from the updated resource mapping relation, determining a first resource identifier mapped by the second resource identifier from the updated resource mapping relation; and determining the resource file to be updated by using the first resource identifier.
7. A server, the server comprising: a second processor, a second transmitter, a second receiver, a second memory, and a second communication bus; the method of claim 3 being implemented when the second processor executes the running program stored in the second memory.
8. A first storage medium having stored thereon a computer program which, when executed by a first processor, implements the method of claim 1 or 2.
9. A second storage medium having stored thereon a computer program which, when executed by a second processor, implements the method of claim 3.
CN202110246498.XA 2021-03-05 2021-03-05 Resource loading method, client, server and storage medium Active CN113064609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110246498.XA CN113064609B (en) 2021-03-05 2021-03-05 Resource loading method, client, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110246498.XA CN113064609B (en) 2021-03-05 2021-03-05 Resource loading method, client, server and storage medium

Publications (2)

Publication Number Publication Date
CN113064609A CN113064609A (en) 2021-07-02
CN113064609B true CN113064609B (en) 2024-05-28

Family

ID=76559777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110246498.XA Active CN113064609B (en) 2021-03-05 2021-03-05 Resource loading method, client, server and storage medium

Country Status (1)

Country Link
CN (1) CN113064609B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745435B (en) * 2022-03-31 2024-02-23 北京达佳互联信息技术有限公司 Resource display method and device, electronic equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855152A (en) * 2012-09-10 2013-01-02 青岛海信传媒网络技术有限公司 Method and system for upgrading resource files in application programs
CN105094905A (en) * 2015-07-21 2015-11-25 北京金山安全软件有限公司 Method and device for dynamically loading language resources
CN106155750A (en) * 2016-07-29 2016-11-23 腾讯科技(深圳)有限公司 The loading method of a kind of resource file and device
CN107885540A (en) * 2016-09-28 2018-04-06 腾讯科技(深圳)有限公司 A kind of method, apparatus and terminal of loading application programs static resource
CN109582458A (en) * 2017-09-28 2019-04-05 北京国双科技有限公司 Resource information loading method, device, storage medium and processor
CN110275723A (en) * 2019-06-25 2019-09-24 北京字节跳动网络技术有限公司 Obtain method, apparatus, electronic equipment and the readable medium of resource
CN110741617A (en) * 2018-12-14 2020-01-31 Oppo广东移动通信有限公司 Resource updating method and device, computer equipment and storage medium
CN110764805A (en) * 2019-10-28 2020-02-07 腾讯科技(深圳)有限公司 Method, device, terminal and storage medium for noninductive upgrade of client
CN110781462A (en) * 2019-10-10 2020-02-11 郑州阿帕斯科技有限公司 Resource confusion method and device
CN110866198A (en) * 2019-09-27 2020-03-06 上海硬通网络科技有限公司 Static resource caching method, system, device, computer equipment and storage medium
CN110908697A (en) * 2019-11-28 2020-03-24 米哈游科技(上海)有限公司 Resource packaging method, device, server and storage medium
CN112181532A (en) * 2020-10-15 2021-01-05 Oppo广东移动通信有限公司 Page resource loading method and device, electronic equipment and readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516927B (en) * 2013-09-30 2017-09-12 腾讯科技(深圳)有限公司 Document processing method, device and terminal

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855152A (en) * 2012-09-10 2013-01-02 青岛海信传媒网络技术有限公司 Method and system for upgrading resource files in application programs
CN105094905A (en) * 2015-07-21 2015-11-25 北京金山安全软件有限公司 Method and device for dynamically loading language resources
CN106155750A (en) * 2016-07-29 2016-11-23 腾讯科技(深圳)有限公司 The loading method of a kind of resource file and device
CN107885540A (en) * 2016-09-28 2018-04-06 腾讯科技(深圳)有限公司 A kind of method, apparatus and terminal of loading application programs static resource
CN109582458A (en) * 2017-09-28 2019-04-05 北京国双科技有限公司 Resource information loading method, device, storage medium and processor
CN110741617A (en) * 2018-12-14 2020-01-31 Oppo广东移动通信有限公司 Resource updating method and device, computer equipment and storage medium
CN110275723A (en) * 2019-06-25 2019-09-24 北京字节跳动网络技术有限公司 Obtain method, apparatus, electronic equipment and the readable medium of resource
CN110866198A (en) * 2019-09-27 2020-03-06 上海硬通网络科技有限公司 Static resource caching method, system, device, computer equipment and storage medium
CN110781462A (en) * 2019-10-10 2020-02-11 郑州阿帕斯科技有限公司 Resource confusion method and device
CN110764805A (en) * 2019-10-28 2020-02-07 腾讯科技(深圳)有限公司 Method, device, terminal and storage medium for noninductive upgrade of client
CN110908697A (en) * 2019-11-28 2020-03-24 米哈游科技(上海)有限公司 Resource packaging method, device, server and storage medium
CN112181532A (en) * 2020-10-15 2021-01-05 Oppo广东移动通信有限公司 Page resource loading method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN113064609A (en) 2021-07-02

Similar Documents

Publication Publication Date Title
CN107592367B (en) Resource sharing method and device for household appliances and computer readable storage medium
CN108319662A (en) Page processing method, device, electronic equipment and readable storage medium storing program for executing
US9383990B2 (en) Server and method for allocating client device to update firmware
CN112054998A (en) Proxy service method, device, equipment and computer readable storage medium
US20120185529A1 (en) Application server management system, application server management method, management apparatus, application server and computer program
CN102262546A (en) Method for booting operating system in diskless way, electronic device and server
CN113064685A (en) H5 page loading method and device
CN113064609B (en) Resource loading method, client, server and storage medium
CN110275790A (en) Inter-process communication synchronization callback method, system and related equipment in application program
CN109213533B (en) Advertisement SDK dynamic loading method, device and terminal
CN109039730B (en) Server cluster and server cluster configuration information management method
CN106713395B (en) Data downloading method and device
US20120198035A1 (en) Install system and install method
CN107479985A (en) The method, apparatus and computer equipment of a kind of remote procedure call
CN112685102B (en) Gateway plug-in hot loading method, device, equipment and medium
CN113596795A (en) Equipment binding method and device and computer readable storage medium
CN108521349B (en) Method and system for counting installation number of installation packages
CN112148320A (en) Application program upgrading method, device, equipment and storage medium
CN107179918B (en) Software processing method, device and system
CN110336693B (en) Method, device, equipment and storage medium for managing network block equipment
CN111736761A (en) Data distribution method, device, storage system and computer readable storage medium
WO2023020071A1 (en) Upgrade package acquisition method and smart device
CN112532664A (en) Data upgrade method and device
CN115982493A (en) Page jump method and device, storage medium and electronic device
CN113190565B (en) Data updating method and device, storage medium and electronic device

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