CN109999489A - Resource updating method and device and electronic equipment - Google Patents
Resource updating method and device and electronic equipment Download PDFInfo
- Publication number
- CN109999489A CN109999489A CN201910250324.3A CN201910250324A CN109999489A CN 109999489 A CN109999489 A CN 109999489A CN 201910250324 A CN201910250324 A CN 201910250324A CN 109999489 A CN109999489 A CN 109999489A
- Authority
- CN
- China
- Prior art keywords
- update
- file
- resource
- updated
- configuration information
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000012795 verification Methods 0.000 claims description 47
- 238000007689 inspection Methods 0.000 claims description 27
- 238000011069 regeneration method Methods 0.000 claims description 24
- 238000012545 processing Methods 0.000 claims description 11
- 230000010354 integration Effects 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 5
- 238000009434 installation Methods 0.000 abstract description 17
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 11
- 238000001514 detection method Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000004140 cleaning Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013497 data interchange Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 210000003733 optic disk Anatomy 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 238000012552 review Methods 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/30—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
- A63F13/35—Details of game servers
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/60—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
- A63F13/69—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor by enabling or updating specific game elements, e.g. unlocking hidden features, items, levels or versions
Abstract
The application provides a resource updating method, a resource updating device and electronic equipment, wherein the method comprises the following steps: obtaining configuration information from an updated resource server; acquiring the name of the updated resource package and the check codes of each updated file in the updated resource package according to the configuration information; judging whether the updated resource package name is consistent with the current resource package name; if yes, judging whether the update file check code is consistent with the check code of the file to be updated; if yes, obtaining an update file corresponding to the update file check code from the update resource server; and updating the file to be updated through the updating file. Therefore, the problem of frequently deleting the downloaded installation package is avoided, the resource updating efficiency is improved, and the user experience is improved.
Description
Technical field
This application involves Internet technical field more particularly to a kind of resource regeneration methods, device and electronic equipment.
Background technique
Currently, game has become the important amusement in user's life, however, many game resources update frequently consumption
A large amount of floating resources, such as car race game resource, including map, data configuration file and match artificial intelligence data etc. update ratio
Relatively frequently, more new resources require user and delete old installation kit every time, download new installation kit, and the flow of user is consumed
Very big and update efficiency is relatively low.
Summary of the invention
The application is intended to solve at least some of the technical problems in related technologies.
For this purpose, the application proposes a kind of resource regeneration method, solves each more new resources in the prior art and require to use
Old installation kit is deleted at family, downloads new installation kit, flow consumption is very big and updates the relatively low technical problem of efficiency.
The application proposes a kind of resource updates device.
The application proposes a kind of electronic equipment.
The application proposes a kind of computer readable storage medium.
The application first aspect embodiment proposes a kind of resource regeneration method, comprising:
Configuration information is obtained from updating in Resource Server;
According to the configuration information, each update file verification in more new resources packet title and the more new resources packet is obtained
Code;
Judge whether the more new resources packet title and Current resource packet title are consistent;
If so, judging whether the update inspection of document code and file verification code to be updated are consistent;
If so, obtaining update file corresponding with the update inspection of document code from the update Resource Server;
The file to be updated is updated by the update file.
Optionally, as the first possible implementation of the application first aspect, from the update resource service
In device, before acquisition update file corresponding with the update inspection of document code, further includes:
Obtain free memory;And the occupancy memory space for updating file;
Judge whether the free memory is less than the occupancy memory space;
If the free memory is less than the occupancy memory space, generates prompt information and prompted.
The application second aspect embodiment proposes another resource regeneration method, comprising:
It obtains and updates file;
Coded treatment is carried out to the update file by Message Digest 5, generates the update file verification code;
Obtain each update file;
Integration processing is carried out to each update file by Unity engine, generates more new resources packet;
According to the update file verification code and the more new resources packet title, the configuration information of preset format is generated;
Store the configuration information and the resource packet to be updated.
Optionally, as the first possible implementation of the application second aspect, in the configuration for generating preset format
After information, the method also includes:
Back up the configuration information.
The application third aspect embodiment proposes a kind of resource updates device, which includes:
First obtains module, for obtaining configuration information from update Resource Server;
Second obtains module, for obtaining more new resources packet title and the more new resources packet according to the configuration information
In each update file verification code;
First judgment module, for judging whether the more new resources packet title and Current resource packet title are consistent;
Second judgment module, for judgement it is described more new resources packet title is consistent with Current resource packet title when judge institute
It states update inspection of document code and whether file verification code to be updated is consistent;
Third obtain module, for when the update inspection of document code is consistent with file verification code to be updated from it is described more
In new resources server, update file corresponding with the update inspection of document code is obtained;
Update module, for updating the file to be updated by the update file.
Optionally, as the first possible implementation of the application third aspect, the device, further includes:
4th obtains module, for obtaining free memory;And the occupancy memory space for updating file;
Third judgment module, for judging whether the free memory is less than the occupancy memory space;
Cue module, if for the free memory be less than the occupancy memory space, generate prompt information into
Row prompt.
The application fourth aspect embodiment proposes another resource updates device, which includes:
5th obtains module, updates file for obtaining;
First generation module, for by Message Digest 5 to updates file progress coded treatment, described in generation
Update file verification code;
6th obtains module, for obtaining each update file;
Second generation module generates for carrying out integration processing to each update file by Unity engine and updates money
Source packet;
Third generation module, for generating default according to the update file verification code and the more new resources packet title
The configuration information of format;
Memory module, for storing the configuration information and the resource packet to be updated.
Optionally, as the first possible implementation of the application fourth aspect, the device, further includes:
Backup module, for backing up the configuration information.
The 5th aspect embodiment of the application proposes a kind of electronic equipment, comprising: memory, processor and is stored in storage
On device and the computer program that can run on a processor, when the processor executes described program, realize described in first aspect
Resource regeneration method.
The 6th aspect embodiment of the application proposes a kind of electronic equipment, comprising: memory, processor and is stored in storage
On device and the computer program that can run on a processor, when the processor executes described program, realize described in second aspect
Resource regeneration method.
The 7th aspect embodiment of the application proposes a kind of computer readable storage medium, is stored thereon with computer journey
Sequence when the program is executed by processor, realizes resource regeneration method described in first aspect.
The application eighth aspect embodiment proposes a kind of computer readable storage medium, is stored thereon with computer journey
Sequence when the program is executed by processor, realizes resource regeneration method described in second aspect.
Technical solution provided by the embodiment of the present application, may include it is following the utility model has the advantages that
By obtaining configuration information from update Resource Server;According to configuration information, obtain more new resources packet title and
Each update file verification code in more new resources packet;Judge whether more new resources packet title and Current resource packet title are consistent;If
It is then to judge whether update inspection of document code and file verification code to be updated are consistent;If so, from updating in Resource Server,
Obtain update file corresponding with inspection of document code is updated;File to be updated is updated by updating file.It avoids as a result, frequently
The problem of deleting downloading installation kit, improves resource updates efficiency, promotes user experience.
Detailed description of the invention
The application is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of flow diagram of resource regeneration method provided by the embodiment of the present application;
Fig. 2 is the flow diagram of another kind resource regeneration method provided by the embodiment of the present application;
Fig. 3 is the flow diagram of another resource regeneration method provided by the embodiment of the present application;
Fig. 4 is a kind of structural schematic diagram of resource updates device provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram of another kind resource updates device provided by the embodiment of the present application;
Fig. 6 is the structural schematic diagram of another resource updates device provided by the embodiment of the present application;
Fig. 7 is the structural schematic diagram of another resource updates device provided by the embodiment of the present application;And
Fig. 8 is the structural schematic diagram of the application electronic equipment one embodiment.
Specific embodiment
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the application, and should not be understood as the limitation to the application.
Below with reference to the accompanying drawings the resource regeneration method, device and electronic equipment of the embodiment of the present application are described.
Fig. 1 is a kind of flow diagram of resource regeneration method provided by the embodiment of the present application.
Resource regeneration method shown in the present embodiment is described from client-side, as shown in Figure 1, this method includes following
Step:
Step 101, configuration information is obtained from update Resource Server.
Step 102, according to configuration information, each update file verification in more new resources packet title and more new resources packet is obtained
Code.
In practical applications, user can according to need installs one or more game on the client, it is possible to understand that
, such as when installing game A the game A installation kit 1 of default downloading current time latest edition is installed, can be with
Understand, over time, in fact it could happen that the game A installation kit 2 of more new version, is to pacify game A in the prior art
Dress packet 1 is deleted, and download games A installation kit 2 is installed, and this mode, which consumes a large amount of flows and updates efficiency, to be compared
It is low.
In view of the above-mentioned problems, the application proposes a kind of resource regeneration method, it is consistent by the comparison to resource packet title, with
And update inspection of document code and file verification code to be updated comparison unanimously, from updating in Resource Server, obtains and update file
The corresponding update file of check code updates file to be updated by updating file, avoids and frequently delete asking for downloading installation kit
Topic improves resource updates efficiency, promotes user experience.
Specifically, it can detecte and whether meet resource updates condition, it is to be understood that can be examined by a variety of modes
Survey and whether meet resource updates condition, for example pass through the comparison of resource version number, current installed resource version number with to
The resource version numbers of more new resources is compared whether consistent mode is judged;Either pass through preassembled resource
Detection application program is updated, detects whether to need to be updated automatically according to prefixed time interval.
Wherein, configuration information is to pre-process to generate to be stored in update in Resource Server, is needing to carry out resource more
When new, configuration information can be obtained from updating in Resource Server, and carry out parsing available more new resources to configuration information
Each update file verification code in packet title and more new resources packet.
Step 103, judge whether more new resources packet title and Current resource packet title are consistent.
Step 104, if so, judging whether update inspection of document code and file verification code to be updated are consistent.
Step 105, if so, from updating in Resource Server, update file corresponding with inspection of document code is updated is obtained.
Step 106, file to be updated is updated by updating file.
Specifically, after getting each update file verification code in more new resources packet title and more new resources packet, first
More new resources packet title and Current resource packet title are compared, for example more new resources packet title and Current resource packet title are all
It is AK48, then further judges to update file verification code and whether file verification code to be updated is consistent, that is, select from update
It is corresponding that inspection of document code is updated when only downloading updates inspection of document code and consistent file verification code to be updated in Resource Server
File is updated, file to be updated is finally updated according to update file.
For example, the entitled keyword A1 of more new resources packet, Current resource packet title are keyword A2, respectively update file
Check code is the corresponding multiple critical values of keyword A1, and file verification code to be updated is the corresponding multiple crucial numbers of keyword A2
Value is unanimously situation of the keyword A1 as keyword A2 determining more new resources packet title with Current resource packet title, point
Whether do not compare its corresponding multiple critical values, and it is the same to select critical values, finally downloads equally crucial number
It is worth corresponding update file and updates file to be updated.
Reduce as a result, because of resource updates, caused by frequently allow user to delete old installation kit to download new installation kit
The problem of, player experience is improved, alleviates and frequently submits installation kit, platform review process, and alleviate development of games
In excessive version requirement pressure, improve efficiency of research and development.
It, can also be from updating resource service it should be noted that accuracy and validity in order to guarantee resource updates
In device before acquisition update file corresponding with inspection of document code is updated, it is determined whether there is enough memory spaces to meet more
The demand newly operated, it is specific as shown in Figure 2, comprising:
Step 201, free memory is obtained, and updates the occupancy memory space of file.
Step 202, judge whether free memory is less than occupancy memory space.
Step 203, it if free memory, which is less than, occupies memory space, generates prompt information and is prompted.
Specifically, whether detection memory space is supported to update operation enough before the update, mentions in inadequate situation
Show that user's free memory is no longer satisfied to upgrade demand, user can take some measures the sides such as some memory headrooms of cleaning
Formula.Resource updates efficiency is further increased as a result, promotes user experience.
In the resource regeneration method of the present embodiment, by obtaining configuration information from update Resource Server;According to configuration
Information obtains each update file verification code in more new resources packet title and more new resources packet;Judge more new resources packet title and
Whether Current resource packet title is consistent;If so, judging whether update inspection of document code and file verification code to be updated are consistent;If
It is, then from updating in Resource Server, to obtain update file corresponding with inspection of document code is updated;By update file update to
Update file.The problem of frequently deleting downloading installation kit is avoided as a result, improves resource updates efficiency, promotes user experience.
In order to which the resource regeneration method of the application is more fully described, it is described below with reference to Fig. 3 from server side.Tool
Body, as shown in Figure 3, comprising:
Step 301, it obtains and updates file.
Step 302, coded treatment is carried out to file is updated by Message Digest 5, generates and updates file verification code.
Wherein, updating file can be model file, map file and data allocation list file etc., as a kind of possibility
Implementation carries out md5 (Message Digest 5) coding to generate unique character string being to update file verification code to file is updated,
That is each, which updates file, its corresponding update file verification code, is uniquely indicated by updating file verification code
The update file.
Step 303, each update file is obtained.
Step 304, integration processing is carried out to each update file by Unity engine, generates more new resources packet.
Step 305, according to file verification code and more new resources packet title is updated, the configuration information of preset format is generated.
Step 305, storage configuration information and resource packet to be updated.
It specifically, can be for model file, the map in each update file such as car race game in same game
File and data allocation list file etc., which be packaged by Unity engine (game engine), generates preset kind (i.e. support update
The type of downloading) more new resources packet.
Further, file verification code will be updated and more new resources packet title is combined, generate the configuration of preset format
Information, wherein preset format, which can according to need, to be configured, such as JSON (JavaScript Object Notation, JS
Object numbered musical notation) format (i.e. a kind of data interchange format of lightweight) configuration information.
Specifically, configuration information and more new resources packet, which are stored in, updates in Resource Server, it is to be understood that updates
Resource Server can store one or more configuration information and corresponding more new resources packet, that is, a configuration information
A corresponding more new resources packet.
It should be noted that needing to put on version number for configuration information also with determine subsequent download is that version number is corresponding
Configuration information improves and updates efficiency.
In the resource regeneration method of the present embodiment, file is updated by obtaining, by Message Digest 5 to update file
Coded treatment is carried out, generates and updates file verification code, obtain each update file, each update file is carried out by Unity engine
Integration processing, generates more new resources packet, according to file verification code and more new resources packet title is updated, generates the configuration of preset format
Information, storage configuration information and resource packet to be updated.Judged as a result, in order to provide configuration information, and provides and update text
Part avoids the problem of frequently deleting downloading installation kit, improves resource updates efficiency, promote user to update file to be updated
Experience.
In based on the above embodiment, in order to avoid configuration information is deleted for some reason, can to configuration information into
Row backup, in addition it can analyze the configuration information of backup, to improve the efficiency and safety of resource updates.
In order to realize above-described embodiment, the application also proposes a kind of resource updates device.
Fig. 4 is a kind of structural schematic diagram of resource updates device provided by the embodiments of the present application.
As shown in figure 4, the device include: the first acquisition module 401, second obtain module 402, first judgment module 403,
Second judgment module 404, third obtain module 405 and update module 406.
Wherein, first module 401 is obtained, for obtaining configuration information from update Resource Server.
Second obtains module 402, for obtaining each in more new resources packet title and more new resources packet according to configuration information
Update file verification code.
First judgment module 403, for judging whether more new resources packet title and Current resource packet title are consistent.
Second judgment module 404, for judging more when judging that more new resources packet title is consistent with Current resource packet title
Whether new inspection of document code and file verification code to be updated are consistent.
Third obtains module 405, for providing when update inspection of document code is consistent with file verification code to be updated from update
In source server, update file corresponding with inspection of document code is updated is obtained.
Update module 406, for updating file to be updated by updating file.
Based on the above embodiment, the embodiment of the present application also provides a kind of possible implementation of resource updates device,
Fig. 5 is the structural schematic diagram of another kind resource updates device provided by the embodiment of the present application, on the basis of fig. 4, the dress
It sets further include: the 4th obtains module 407, third judgment module 408 and cue module 409.
Wherein, the 4th module 407 is obtained, for obtaining free memory;And update the occupancy memory space of file.
Third judgment module 408, for judging whether free memory is less than occupancy memory space.
Cue module 409 occupies memory space if being less than for free memory, generates prompt information and mentioned
Show.
It should be noted that the aforementioned device that the embodiment is also applied for the explanation of embodiment of the method, herein not
It repeats again.
In the resource updates device of the present embodiment, by obtaining configuration information from update Resource Server;According to configuration
Information obtains each update file verification code in more new resources packet title and more new resources packet;Judge more new resources packet title and
Whether Current resource packet title is consistent;If so, judging whether update inspection of document code and file verification code to be updated are consistent;If
It is, then from updating in Resource Server, to obtain update file corresponding with inspection of document code is updated;By update file update to
Update file.The problem of frequently deleting downloading installation kit is avoided as a result, improves resource updates efficiency, promotes user experience.
In order to realize above-described embodiment, the application also proposes a kind of resource updates device.
Fig. 6 is the structural schematic diagram of another resource updates device provided by the embodiments of the present application.
As shown in fig. 6, the device include: the 5th acquisition module 601, the first generation module the 602, the 6th obtain module 603,
Second generation module 604, third generation module 605 and memory module 606.
5th obtains module 601, updates file for obtaining.
First generation module 602 generates for carrying out coded treatment to file is updated by Message Digest 5 and updates text
Part check code.
6th obtains module 603, for obtaining each update file.
Second generation module 604 generates for carrying out integration processing to each update file by Unity engine and updates money
Source packet.
Third generation module 605, for generating preset format according to file verification code and more new resources packet title is updated
Configuration information.
Memory module 606 is used for storage configuration information and the resource packet to be updated.
Based on the above embodiment, the embodiment of the present application also provides a kind of possible implementation of resource updates device,
Fig. 7 is the structural schematic diagram of another resource updates device provided by the embodiment of the present application, on the basis of Fig. 6, the dress
It sets further include: backup module 607.
Backup module 607 is used for backup configuration information.
In the resource updates device of the present embodiment, file is updated by obtaining, by Message Digest 5 to update file
Coded treatment is carried out, generates and updates file verification code, obtain each update file, each update file is carried out by Unity engine
Integration processing, generates more new resources packet, according to file verification code and more new resources packet title is updated, generates the configuration of preset format
Information, storage configuration information and resource packet to be updated.Judged as a result, in order to provide configuration information, and provides and update text
Part avoids the problem of frequently deleting downloading installation kit, improves resource updates efficiency, promote user to update file to be updated
Experience.
In order to realize above-described embodiment, the application also proposes a kind of electronic equipment, comprising: memory, processor and storage
On a memory and the computer program that can run on a processor, it when processor executes the program, realizes as preceding method is real
Apply resource regeneration method described in example.
The embodiment of the present application also provides a kind of electronic equipment, and electronic equipment includes device described in aforementioned any embodiment.
Fig. 8 is the structural schematic diagram of the application electronic equipment one embodiment, and method shown in the application Fig. 1-3 may be implemented
The process of embodiment, as shown in figure 8, above-mentioned electronic equipment may include: shell 91, processor 92, memory 93, circuit board 94
With power circuit 95, wherein circuit board 94 is placed in the space interior that shell 91 surrounds, and processor 92 and the setting of memory 93 exist
On circuit board 94;Power circuit 95, for each circuit or the device power supply for above-mentioned electronic equipment;Memory 93 is for storing
Executable program code;Processor 92 is run and executable journey by reading the executable program code stored in memory 93
The corresponding program of sequence code, for executing video generation method described in aforementioned any embodiment.
Processor 92 to the specific implementation procedures of above-mentioned steps and processor 92 by operation executable program code come
The step of further executing may refer to the description of embodiment of the method shown in the application Fig. 1-3, and details are not described herein.
The electronic equipment exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data
Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low
Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function
Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play multimedia content.Such equipment include: audio,
Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total
Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy
Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic equipments with data interaction function.
In order to realize above-described embodiment, the application also proposes a kind of computer readable storage medium, is stored thereon with calculating
Machine program when the program is executed by processor, realizes the resource regeneration method as described in preceding method embodiment.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present application, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the application
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used
Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from
Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile
Journey gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, can integrate in a processing module in each functional unit in each embodiment of the application
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the application
System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of application
Type.
Claims (10)
1. a kind of resource regeneration method, which comprises the following steps:
Configuration information is obtained from updating in Resource Server;
According to the configuration information, each update file verification code in more new resources packet title and the more new resources packet is obtained;
Judge whether the more new resources packet title and Current resource packet title are consistent;
If so, judging whether the update inspection of document code and file verification code to be updated are consistent;
If so, obtaining update file corresponding with the update inspection of document code from the update Resource Server;
The file to be updated is updated by the update file.
2. the method as described in claim 1, which is characterized in that from the update Resource Server, obtain with it is described more
Before the corresponding update file of newly inspection of document code, further includes:
Obtain free memory;And the occupancy memory space for updating file;
Judge whether the free memory is less than the occupancy memory space;
If the free memory is less than the occupancy memory space, generates prompt information and prompted.
3. a kind of resource regeneration method, which comprises the following steps:
It obtains and updates file;
Coded treatment is carried out to the update file by Message Digest 5, generates the update file verification code;
Obtain each update file;
Integration processing is carried out to each update file by Unity engine, generates more new resources packet;
According to the update file verification code and the more new resources packet title, the configuration information of preset format is generated;
Store the configuration information and the resource packet to be updated.
4. method as claimed in claim 3, which is characterized in that after the configuration information for generating preset format, the method
Further include:
Back up the configuration information.
5. a kind of resource updates device, which is characterized in that described device includes:
First obtains module, for obtaining configuration information from update Resource Server;
Second obtains module, for obtaining in more new resources packet title and the more new resources packet according to the configuration information
It is each to update file verification code;
First judgment module, for judging whether the more new resources packet title and Current resource packet title are consistent;
Second judgment module, judgement is described more when consistent with Current resource packet title for the more new resources packet title described in judging
Whether new inspection of document code and file verification code to be updated are consistent;
Third obtains module, for providing when the update inspection of document code is consistent with file verification code to be updated from the update
In source server, update file corresponding with the update inspection of document code is obtained;
Update module, for updating the file to be updated by the update file.
6. device as claimed in claim 5, which is characterized in that further include:
4th obtains module, for obtaining free memory;And the occupancy memory space for updating file;
Third judgment module, for judging whether the free memory is less than the occupancy memory space;
Cue module generates prompt information and is mentioned if being less than the occupancy memory space for the free memory
Show.
7. a kind of resource updates device characterized by comprising
5th obtains module, updates file for obtaining;
First generation module generates the update for carrying out coded treatment to the update file by Message Digest 5
File verification code;
6th obtains module, for obtaining each update file;
Second generation module generates more new resources for carrying out integration processing to each update file by Unity engine
Packet;
Third generation module, for generating preset format according to the update file verification code and the more new resources packet title
Configuration information;
Memory module, for storing the configuration information and the resource packet to be updated.
8. device as claimed in claim 7, which is characterized in that further include:
Backup module, for backing up the configuration information.
9. a kind of electronic equipment characterized by comprising memory, processor and storage are on a memory and can be in processor
The computer program of upper operation realizes resource updates as claimed in claim 1 or 2 when the processor executes described program
Method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
Resource regeneration method as claimed in claim 1 or 2 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910250324.3A CN109999489A (en) | 2019-03-29 | 2019-03-29 | Resource updating method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910250324.3A CN109999489A (en) | 2019-03-29 | 2019-03-29 | Resource updating method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109999489A true CN109999489A (en) | 2019-07-12 |
Family
ID=67168912
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910250324.3A Pending CN109999489A (en) | 2019-03-29 | 2019-03-29 | Resource updating method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109999489A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110659049A (en) * | 2019-09-24 | 2020-01-07 | 北京智行者科技有限公司 | OTA (over the air) upgrading method and terminal equipment for automatic driving vehicle |
CN110841280A (en) * | 2019-11-06 | 2020-02-28 | 福建天晴在线互动科技有限公司 | Method for online dynamic loading and checking of resources of micro-terminal |
CN111541944A (en) * | 2020-04-16 | 2020-08-14 | 广东好太太科技集团股份有限公司 | Resource sharing method and device based on music host and storage medium |
CN112114849A (en) * | 2020-09-23 | 2020-12-22 | 腾讯科技(深圳)有限公司 | Resource updating method and device |
CN113407213A (en) * | 2021-06-21 | 2021-09-17 | 平安银行股份有限公司 | Resource package updating method, device, equipment and storage medium |
CN113438554A (en) * | 2021-06-17 | 2021-09-24 | 海信视像科技股份有限公司 | Resource updating method and display device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013100326A1 (en) * | 2011-12-26 | 2013-07-04 | 주식회사 안랩 | Apparatus and method for updating applications |
CN103678319A (en) * | 2012-09-03 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Resource file updating method, device and system and server |
CN105511889A (en) * | 2016-01-15 | 2016-04-20 | 珠海金山网络游戏科技有限公司 | General game version incremental updating system and method |
CN106815370A (en) * | 2017-01-24 | 2017-06-09 | 腾讯科技(深圳)有限公司 | Update the methods, devices and systems of resource file |
CN107203395A (en) * | 2017-05-19 | 2017-09-26 | 北京京东尚科信息技术有限公司 | Resource graded method, device and computer-readable recording medium and electronic equipment |
CN107682436A (en) * | 2017-10-09 | 2018-02-09 | 武汉斗鱼网络科技有限公司 | A kind of method, apparatus and equipment of more new file |
-
2019
- 2019-03-29 CN CN201910250324.3A patent/CN109999489A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013100326A1 (en) * | 2011-12-26 | 2013-07-04 | 주식회사 안랩 | Apparatus and method for updating applications |
CN103678319A (en) * | 2012-09-03 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Resource file updating method, device and system and server |
CN105511889A (en) * | 2016-01-15 | 2016-04-20 | 珠海金山网络游戏科技有限公司 | General game version incremental updating system and method |
CN106815370A (en) * | 2017-01-24 | 2017-06-09 | 腾讯科技(深圳)有限公司 | Update the methods, devices and systems of resource file |
CN107203395A (en) * | 2017-05-19 | 2017-09-26 | 北京京东尚科信息技术有限公司 | Resource graded method, device and computer-readable recording medium and electronic equipment |
CN107682436A (en) * | 2017-10-09 | 2018-02-09 | 武汉斗鱼网络科技有限公司 | A kind of method, apparatus and equipment of more new file |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110659049A (en) * | 2019-09-24 | 2020-01-07 | 北京智行者科技有限公司 | OTA (over the air) upgrading method and terminal equipment for automatic driving vehicle |
CN110841280A (en) * | 2019-11-06 | 2020-02-28 | 福建天晴在线互动科技有限公司 | Method for online dynamic loading and checking of resources of micro-terminal |
CN111541944A (en) * | 2020-04-16 | 2020-08-14 | 广东好太太科技集团股份有限公司 | Resource sharing method and device based on music host and storage medium |
CN111541944B (en) * | 2020-04-16 | 2022-05-13 | 广东好太太科技集团股份有限公司 | Resource sharing method and device based on music host and storage medium |
CN112114849A (en) * | 2020-09-23 | 2020-12-22 | 腾讯科技(深圳)有限公司 | Resource updating method and device |
CN113438554A (en) * | 2021-06-17 | 2021-09-24 | 海信视像科技股份有限公司 | Resource updating method and display device |
CN113407213A (en) * | 2021-06-21 | 2021-09-17 | 平安银行股份有限公司 | Resource package updating method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109999489A (en) | Resource updating method and device and electronic equipment | |
CN106776523B (en) | Artificial intelligence-based news quick report generation method and device | |
CN105100191B (en) | The method, apparatus and system of Java application installations are realized in a kind of cloud compiling | |
CN104866341B (en) | Component upgrading method and device and terminal | |
US10015282B2 (en) | Context-based selective downloading of application resources | |
CN103402194B (en) | A kind of method recommending software when software upgrading and realize the system of the method | |
CN110175012B (en) | Skill recommendation method, skill recommendation device, skill recommendation equipment and computer readable storage medium | |
US9766870B2 (en) | Bundle package generation | |
US9952834B2 (en) | Distribution of applications with a saved state | |
CN104391716B (en) | Application program implementation method and device based on plug-in unit | |
CN103778211B (en) | The language switching method and device of game of mobile terminal software | |
CN105988809A (en) | Online loading method for game resources and micro-end engine | |
US20140359606A1 (en) | Bundle package retrieving | |
CN105279278A (en) | File searching method and device | |
US20140359601A1 (en) | Resource package indexing | |
CN103390003A (en) | Method and device for combining user data information among servers | |
US20080320041A1 (en) | Adding virtual features via real world accessories | |
CN105912362B (en) | A kind of method, apparatus and electronic equipment loading plug-in unit | |
CN105556569A (en) | Animation editing | |
CN109992284A (en) | Method and device for providing hot update program and electronic equipment | |
CN109582904A (en) | Amending method, device, server, terminal and the storage medium of content are issued | |
CN109710265A (en) | Method and device for acquiring software installation package and electronic equipment | |
US11245776B2 (en) | Data model for uniform data platform | |
CN109951841A (en) | Data card switching method and device and electronic equipment | |
CN114662676A (en) | Model optimization method and device, electronic equipment and computer-readable 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190712 |