CN110401702A - A kind of offline packet method for down loading, device, electronic equipment and storage medium - Google Patents
A kind of offline packet method for down loading, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110401702A CN110401702A CN201910616829.7A CN201910616829A CN110401702A CN 110401702 A CN110401702 A CN 110401702A CN 201910616829 A CN201910616829 A CN 201910616829A CN 110401702 A CN110401702 A CN 110401702A
- Authority
- CN
- China
- Prior art keywords
- download
- offline
- client
- new
- downloading
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/52—Network services specially adapted for the location of the user terminal
Abstract
The disclosure is directed to a kind of offline packet method for down loading, device, electronic equipment and storage mediums, it is related to Internet technical field, it wraps can request simultaneously CDN that CDN bandwidth pressure is significantly increased offline to solve the problem of wide range of users while download, method of disclosure includes;Client from network side equipment obtain new offline packet it is current download set;Client according to client-side information if it is determined that itself be not in it is current download in set, then again from network side equipment obtain new offline packet it is current download set, the offline packet of downloading newly after determining that itself being in current downloads in set;Wherein, it is adjacent obtain twice download in set after the range for downloading the new client wrapped offline for downloading set expression that once obtains be greater than it is previous.The client range wrapped offline can be downloaded simultaneously to reduce due to can currently download set by setting in the disclosure, further reduce the pressure of CDN bandwidth.
Description
Technical field
This disclosure relates to Internet technical field, in particular to a kind of offline packet method for down loading, device, electronic equipment and deposit
Storage media.
Background technique
With H5 (the 5th version of HyperText Markup Language 5, hypertext markup language) technology
Development, H5 are such as developed webpage using H5, make small routine, trivial games and marketing using more and more extensive.
It is the caching for applying the H5 page that H5 is wrapped offline, and when needing to update the offline packet of user, client can be downloaded automatically
The offline APMB package needed.
At present after administrator upgrades offline packet, at this moment all users can have found new offline packet, user update from
The mode of line packet usually directly upgrades the user of all users or some version or more, thus all users go down simultaneously
Line packet is carried off, while requesting CDN (Content Delivery Network, content distributing network), causes the pressure such as CDN bandwidth
Increase.
To sum up, wide range of users downloads offline packet simultaneously can request CDN simultaneously, and the pressure of CDN bandwidth is significantly increased.
Summary of the invention
The disclosure provides a kind of offline packet method for down loading, device, electronic equipment and storage medium, at least to solve related skill
Wide range of users downloads the problem of offline packet can request CDN simultaneously, the pressure of CDN bandwidth is significantly increased simultaneously in art.The disclosure
Technical solution it is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of offline packet method for down loading is provided, comprising:
Client from network side equipment obtain the new offline packet it is current download set, wherein described in can download collection
The range of the new client wrapped offline can be downloaded in expression by sharing;
The client according to client-side information if it is determined that itself be not in it is current described in can download in set, then again
From network side equipment obtain the new offline packet it is current download set, until determine itself be in currently described in can under
The downloading new offline packet after carrying in set;
Wherein, it is adjacent obtain twice it is described download set in after once obtain download downloading for set expression
The range of the new client wrapped offline be greater than it is preceding once obtain download set expression download it is described it is new from
The range of the client of line packet.
In one possible implementation, the client-side information is the account for the account that the client currently logs in
Mark;
The client determines that itself being in currently described downloads in set in the following manner:
If the set of downloading is the section determined according to gray scale values, and according to the account mark currently logged in
Know determining offline packet downloading value to download in set described, then the client determine itself be in it is current it is described can under
It carries in set;Or
If the set of downloading is the section determining according to account identification, and the account identification currently logged in is in
Described to download in set, then the client determines that itself being in currently described downloads in set.
In one possible implementation, the client determines the offline packet downloading value in the following manner:
The client is using the account identification divided by the remainder of default gray value as the offline packet downloading value.
In one possible implementation, the client-side information is the current geography of the corresponding user of the client
Position;
The client determines that itself being in currently described downloads in set in the following manner:
If the set of downloading is according to the section of the range in geographical location determination, and the corresponding user of the client
Current geographical location is in described and can download in set, then the client determines that itself being in currently described downloads collection
In conjunction.
In one possible implementation, the client obtains the new offline packet from network side equipment again and works as
Preceding set of downloading includes:
The client after waiting and setting duration, again to network side equipment obtain current time it is new wrap offline can
Downloading set.
According to the second aspect of an embodiment of the present disclosure, a kind of offline packet method for down loading is provided, comprising:
Network side equipment period modulation it is new wrap offline download set, wherein the set that can download can for expression
Download the range of the new client wrapped offline, it is described download to be integrated into after the network side equipment adjusts every time indicate
The range for downloading the new client wrapped offline be greater than before adjustment indicate download the new visitor wrapped offline
The range at family end;
The network side equipment receive client obtain it is described it is new it is offline wrap can download the request of set after, by institute
It states the current set of downloading of new packet offline to notify to the client, so that the client is determining itself in current
Download in set after the downloading new offline packet.
In one possible implementation, the set of downloading wrapped offline of the network side equipment period modulation newly walks
Suddenly include:
The network side equipment period determines time span of the current time apart from the new creation time wrapped offline,
And after every determination once time span, this is determined the time span and the ratio of preset gray scale total time
As gray scale values, according to the gray scale values adjust it is described it is new wrap offline download set;Or
The network side equipment period determines the range of account identification, and once adjusts accounts the range of mark in every determination
Afterwards, according to the mark range adjust it is described it is new wrap offline download set;Or
The network side equipment period determines the range in geographical location, and after the range in every geographical location of determination,
According to the range in the geographical location adjust it is described it is new wrap offline download set.
According to the third aspect of an embodiment of the present disclosure, a kind of offline packet download apparatus is provided, comprising:
Section acquiring unit, be configured as executing from network side equipment obtain the new offline packet it is current download collection
It closes, wherein the set that can download is for indicating can to download the range of the new client wrapped offline;
Offline packet download unit, be configured as executing according to client-side information if it is determined that itself be not in it is current described in can
In downloading set, then again from network side equipment obtain the new offline packet it is current download set, until determining itself
The downloading new offline packet after can downloading described in current in set;
Wherein, it is adjacent obtain twice it is described download set in after once obtain download downloading for set expression
The range of the new client wrapped offline be greater than it is preceding once obtain download set expression download it is described it is new from
The range of the client of line packet.
In one possible implementation, the client-side information is the account mark for the account that client currently logs in
Know;
The offline packet download unit is also used to determine that itself being in currently described downloads set in the following manner
It is interior:
If the set of downloading is the section determined according to gray scale values, and according to the account mark currently logged in
Know determining offline packet downloading value to download in set described, it is determined that itself is in currently described and downloads in set;
Or
If the set of downloading is the section determining according to account identification, and the account identification currently logged in is in
It is described to download in set, it is determined that itself is in currently described and downloads in set.
In one possible implementation, described device further include:
Determination unit is configured as executing the account identification divided by the remainder of default gray value as the offline packet
Downloading value.
In one possible implementation, the client-side information is the current geography of the corresponding user of the client
Position;
The offline packet download unit is also used to determine that itself being in currently described downloads set in the following manner
It is interior:
If the set of downloading is the section determined according to the range in geographical location, and the corresponding user of client is current
Geographical location be in described and can download in set, it is determined that itself be in current and described download in set.
In one possible implementation, the offline packet download unit is specifically used for:
After waiting and setting duration, again to network side equipment obtain current time it is new wrap offline download set.
According to a fourth aspect of embodiments of the present disclosure, a kind of offline packet download apparatus is provided, comprising:
Section adjustment unit, be configured as executing period modulation it is new wrap offline download set, wherein described in can under
Set is carried for indicating can to download the range of the new client wrapped offline, it is described to download that be integrated into network side equipment every
It is described new that the range for downloading the new client wrapped offline indicated after secondary adjustment is greater than downloading for the preceding expression of adjustment
The client wrapped offline range;
Notification unit, the request of set can be downloaded receiving client and obtain the new offline packet by being configured as executing
Afterwards, new current the downloading of offline packet is gathered into notice to the client, so that the client is determining itself
The rear downloading new offline packet in set is downloaded in current.
In one possible implementation, the section adjustment unit is specifically used for:
Period determines time span of the current time apart from the new creation time wrapped offline, and primary in every determination
After the time span, the ratio of the time span and preset gray scale total time that this is determined is as gray scales
Value, according to the gray scale values adjust it is described it is new wrap offline download set;Or
Period determines the range of account identification, and every determination once adjust accounts mark range after, according to the mark
Know range adjust it is described it is new wrap offline download set;Or
Period determines the range in geographical location, and after the range in every geographical location of determination, according to the geographical position
The range set adjust it is described it is new wrap offline download set.
According to a fifth aspect of the embodiments of the present disclosure, a kind of electronic equipment is provided, comprising:
Processor;
For storing the memory of the processor-executable instruction;
Wherein, any in embodiment of the present disclosure first aspect to realize the processor is configured to executing described instruction
Offline packet method for down loading described in.
According to a sixth aspect of an embodiment of the present disclosure, a kind of electronic equipment is provided, comprising:
Processor;
For storing the memory of the processor-executable instruction;
Wherein, any in embodiment of the present disclosure second aspect to realize the processor is configured to executing described instruction
Offline packet method for down loading described in.
According to the 7th of the embodiment of the present disclosure the aspect, a kind of non-volatile memory medium is provided, when in the storage medium
Instruction when being executed by the processor of offline packet download apparatus so that offline packet download apparatus is able to carry out the embodiment of the present disclosure the
Offline packet method for down loading described in any one of one side.
According to the eighth aspect of the embodiment of the present disclosure, a kind of non-volatile memory medium is provided, when in the storage medium
Instruction when being executed by the processor of offline packet download apparatus so that offline packet download apparatus is able to carry out the embodiment of the present disclosure the
Offline packet method for down loading described in any one of two aspects.
According to the 9th of the embodiment of the present disclosure the aspect, a kind of computer program product is provided, when the computer program produces
When product are run on an electronic device, so that the electronic equipment, which executes, realizes the above-mentioned first aspect of the embodiment of the present disclosure and first
Any method that may relate to that aspect is related to.
According to the tenth of the embodiment of the present disclosure the aspect, a kind of computer program product is provided, when the computer program produces
When product are run on an electronic device, so that the electronic equipment, which executes, realizes the above-mentioned second aspect of the embodiment of the present disclosure and second
Any method that may relate to that aspect is related to.
On the one hand according to the tenth of the embodiment of the present disclosure the, a kind of offline packet download system is provided, comprising: client and network
Side apparatus:
Client, for from network side equipment obtain the new offline packet it is current download set, wherein described in can
Downloading set is for indicating can to download the range of the new client wrapped offline;According to client-side information if it is determined that itself not
Can download in set described in current, then again from network side equipment obtain the new offline packet it is current download collection
Close, until determine itself be in current described in can download in set after the downloading new offline packet;Wherein, adjacent to obtain twice
Take it is described download in set after once obtain download set expression download the new client wrapped offline
Range be greater than the preceding range for downloading the new client wrapped offline for downloading set expression once obtained.
Network side equipment downloads set for period modulation wrapping offline newly, wherein described can download is integrated into net
The range for the new client wrapped offline that network side apparatus indicated after adjusting every time download be greater than before adjustment indicate can
Download the range of the new client wrapped offline;Set can be downloaded receiving client and obtaining new offline wrap
After request, new current the downloading of offline packet is gathered into notice to the client.
The technical scheme provided by this disclosed embodiment at least bring it is following the utility model has the advantages that
Since client needs to obtain newly offline from network side equipment before the offline packet of downloading in the embodiment of the present disclosure
The current collection of downloading of packet merges and judges uttering, only client be in the new offline packet currently download set
New offline packet can be just downloaded after interior, determined compared to client and directly downloaded after having new offline packet, so that big model
It encloses client while downloading the case where causing CDN bandwidth pressure substantially to increase, it can be following to a certain moment in the embodiment of the present disclosure
The range for carrying the new client wrapped offline is limited, the range of client for reducing while downloading, for being not at
The current client downloaded in set can not then download new offline packet at this moment, and can download the new visitor wrapped offline
The range at family end gradually increases, thus under the premise of ensure that all clients all can download new offline packet, it reduces same
When the range of client downloaded, reduce the pressure of CDN bandwidth.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure, do not constitute the improper restriction to the disclosure.
Fig. 1 is a kind of block diagram of offline packet download system shown according to an exemplary embodiment;
Fig. 2A be it is shown according to an exemplary embodiment the first according to gray scale values adjustment can download showing for set
It is intended to;
Fig. 2 B be second shown according to an exemplary embodiment according to gray scale values adjustment can download showing for set
It is intended to;
Fig. 2 C be second shown according to an exemplary embodiment according to gray scale values adjustment can download showing for set
It is intended to;
Fig. 3 is a kind of signal that set can be downloaded according to the adjustment of account identification range shown according to an exemplary embodiment
Figure;
Fig. 4 is the schematic diagram shown according to an exemplary embodiment that set can be downloaded according to geographical position range adjustment;
Fig. 5 is the schematic diagram that a kind of offline packet shown according to an exemplary embodiment updates;
Fig. 6 is a kind of flow chart of offline packet method for down loading shown according to an exemplary embodiment;
Fig. 7 is the flow chart of another offline packet method for down loading shown according to an exemplary embodiment;
Fig. 8 is a kind of flow chart of the complete method of offline packet downloading shown according to an exemplary embodiment;
Fig. 9 is a kind of block diagram of offline packet download apparatus shown according to an exemplary embodiment;
Figure 10 is the block diagram of another offline packet download apparatus shown according to an exemplary embodiment;
Figure 11 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment;
Figure 12 is the block diagram of another electronic equipment shown according to an exemplary embodiment.
Specific embodiment
In order to make ordinary people in the field more fully understand the technical solution of the disclosure, below in conjunction with attached drawing, to this public affairs
The technical solution opened in embodiment is clearly and completely described.
It should be noted that the specification and claims of the disclosure and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to embodiment of the disclosure described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.Embodiment described in following exemplary embodiment does not represent and disclosure phase
Consistent all embodiments.On the contrary, they are only and as detailed in the attached claim, the disclosure some aspects
The example of consistent device and method.
The some words occurred in text are explained below:
1, term "and/or" in the embodiment of the present disclosure describes the incidence relation of affiliated partner, indicates that there may be three kinds of passes
System, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.Character "/" one
As indicate forward-backward correlation object be a kind of "or" relationship.
2, in the embodiment of the present disclosure term " terminal " refer to it is any can be run according to program, it is automatic, high speed processing is a large amount of
The intelligent electronic device of data includes mobile phone, computer, plate, intelligent terminal, multimedia equipment, stream media equipment etc..
3, in the embodiment of the present disclosure term " network side equipment " refer to network server or other can support offline wrap downloading
Device.
4, term " administrator " generally refers to the maintenance or management of being responsible for certain system or software in the embodiment of the present disclosure
The practical personal or account number updated.
5, term " CDN " is a kind of new network content service system in the embodiment of the present disclosure, is based on IP (Internet
Protocol, the interconnection agreement between network) network and construct, efficiency requirements, quality requirement based on access to content and application
With content order and the distribution and service of content are provided, basic ideas are to avoid being possible on internet as far as possible influencing data passing
The bottleneck and link of defeated speed and stability, make content transmission faster, it is more stable.By placing node serve everywhere in network
One on the existing Internet basic layer intelligent virtual network that device is constituted, CDN system can be in real time according to networks
The connection of flow and each node, load state and to the integrated informations such as the distance of user and response time by the request weight of user
Newly it is oriented on the service node nearest from user.The purpose is to make user that can obtain required content nearby, solve Internet (because
Special net) network congestion situation, improve user access website response speed.
It will include HTML, Javascript (Java script), CSS (cascading style sheets, Cascading that offline packet, which refers to,
Style Sheets) etc. in the pages static resource be bundled in a compressed package.Administrator first issues offline packet on platform, by
User downloads the offline packet in advance and arrives locally, is then opened by client, directly wraps offline from local load, thus maximum journey
Get rid of influence of the network environment to the H5 page to degree.
In the related technology, after the offline packet of administrator's upgrading, at this moment all users can have found new offline packet, thus institute
There is user all while going to download offline packet, while requesting CDN, causes the pressure such as CDN bandwidth to increase, be easy to cause network congestion.
The application scenarios of embodiment of the present disclosure description are the technical solutions in order to more clearly illustrate the embodiment of the present disclosure,
The restriction of the technical solution provided for the embodiment of the present disclosure is not constituted, those of ordinary skill in the art are it is found that with newly answering
With the appearance of scene, the technical solution that the embodiment of the present disclosure provides is equally applicable for similar technical problem.Wherein, at this
In disclosed description, unless otherwise indicated, the meaning of " multiple ".
Fig. 1 is a kind of schematic diagram of offline packet download system shown according to an exemplary embodiment, as shown, this is
System includes: client 10 and network side equipment 20;
Client 10, for from network side equipment 20 obtain the new offline packet it is current download set, wherein institute
Set can be downloaded for indicating can to download the range of the new client wrapped offline by stating;According to client-side information if it is determined that certainly
Body be not in it is current it is described download in set, then again from network side equipment 20 obtain the new offline packet it is current can
Downloading set, until determine itself be in current described in can download in set after the downloading new offline packet;Wherein, adjacent
Obtain twice it is described download in set after once obtain download set expression download described new wrap offline
The range of client is greater than the preceding model for downloading the new client wrapped offline for downloading set expression once obtained
It encloses.
Network side equipment 20 downloads set for period modulation wrapping offline newly, wherein described can download is integrated into
What network side equipment 20 indicated after adjusting every time downloads the range of the new client wrapped offline greater than expression before adjustment
The range for downloading the new client wrapped offline;It is receiving client 10 and obtains new offline wrap and can download
After the request of set, new current the downloading of offline packet is gathered into notice to the client 10.
Since client needs to obtain newly offline from network side equipment before the offline packet of downloading in the embodiment of the present disclosure
The current collection of downloading of packet merges and judges itself, only client be in the new offline packet currently download set
New offline packet can be just downloaded after interior, determined compared to client and directly downloaded after having new offline packet, so that big model
It encloses client while downloading the case where causing CDN bandwidth pressure substantially to increase, it can be following to a certain moment in the embodiment of the present disclosure
The range for carrying the new client wrapped offline is limited, the range of client for reducing while downloading, for being not at
The current client downloaded in set can not then download new offline packet at this moment, and can download the new visitor wrapped offline
The range at family end gradually increases, thus under the premise of ensure that all clients all can download new offline packet, it reduces same
When the range of client downloaded, reduce the pressure of CDN bandwidth.
Wherein, client can both refer to the APP (Application, application program) of software class, can also refer to that terminal is set
It is standby.
In the embodiments of the present disclosure, client can determine that have new offline Bao Houcong network side equipment to obtain this new
Offline packet it is current download set, can also while determining has new offline packet from network side equipment obtain this newly from
Line packet it is current download set.
In the embodiments of the present disclosure, the new mode for downloading set wrapped offline of network side equipment period modulation has very much
Kind, it is set forth below several:
Adjustment mode one, network side equipment period determine time of the current time apart from the new creation time wrapped offline
Length, then using the ratio of this time span and preset gray scale total time that determine as grey after time span of every determination
Spend ratio value;Set is downloaded according to gray scale values adjustment wrapping offline newly.
Specifically, a gray scale total time can be set when administrator upgrades the offline packet of offline packet or creation newly, i.e.,
Preset gray scale total time, after submission, backstage records the new creation time wrapped offline, and adds a timed task, this
A timed task is used to update gray scale values according to preset gray scale total time timing.Sentence assuming that timed task is set as the period
The time span of the new creation time experience wrapped offline of disconnected current time distance, the time span is total divided by preset gray scale
Time judges current gray scale values, and period update can download set, and after gray scale values reach 100%, task is complete
At.
Assuming that preset gray scale total time is 10 hours (600 minutes), obtained after administrator is to offline packet A1.0 upgrading
New offline packet be offline packet A2.0 (assuming that the establishment moment of packet A2.0 be 0:00 offline), and one timed task of setting
That wraps A2.0 offline for period modulation downloads set, it is assumed that timed task is set as current time of determination in every six minutes
The time span of distance 0:00, using the ratio of determining time span and preset gray scale total time as gray scale values to can
Downloading set is updated.
Such as current time, when being 0:06, the time span of distance 0:00 is 6 minutes, and gray scale values at this time are 6/
600=1%, it is assumed that default gray scale is 100, thus can be set the 0:06 moment and wrap the collection of downloading of A2.0 offline and be combined into and currently step on
The account identification of record divided by the remainder of default gray value less than 1 (hit gray scale) client;
When current time is 0:12, the time span of distance 0:00 is 12 minutes, and gray scale values at this time are 12/600
=2%, it is assumed that default gray value is 100, thus can be set the 0:12 moment and wrap the collection of downloading of A2.0 offline and be combined into and currently step on
The account identification of record divided by the remainder of default gray value less than 2 (hit gray scales) client;
When current time is 1:00, the time span of distance 0:00 is 60 minutes, and gray scale values at this time are 60/600
=10%, it is assumed that default gray value is 100, thus can be set the 0:12 moment and wrap the collection of downloading of A2.0 offline and be combined into and currently step on
The account identification of record divided by the remainder of default gray value less than 10 (hit gray scales) client;
When current time is 10:00, the time span of distance 0:00 is 600 minutes, and gray scale values at this time are 600/
600=100%, it is assumed that default gray value is 100, thus can be set the 0:12 moment and wrap the collection of downloading of A2.0 offline and be combined into and work as
The account identification of preceding login divided by the remainder of default gray value less than 100 (hit gray scales) client.
Such as shown in Fig. 2A, a kind of adjusted according to gray scale values to be proposed according to an exemplary embodiment can download collection
The table of conjunction, it is therein to be determined according to gray scale values when downloading set, it is assumed that default gray value is 100, the ash in table
Degree indicates the offline packet downloading value that the account identification of the account currently logged according to client determines, wherein offline packet downloading value can
To be expressed as the account identification for the account that client currently logs in divided by the remainder of default gray value;It can also be expressed as client
The numerical value that the ratio of the account identification and default integer that currently log in is rounded is as offline packet downloading value.
For example, the account identification for the account that client currently logs in is 1001, presetting gray value is 100, then remainder is 1;
The account identification for the account that client currently logs in is 1010, then remainder is 10, it is assumed that can download set and be represented by offline packet
Client of the downloading value less than 50, then the client can currently download the offline packet.
Alternatively, the account identification for the account that client currently logs in is 1001, presetting integer is 100, then ratio is
10.01, being rounded downwards is 10;The account identification for the account that client currently logs in is 1010, then remainder is 10, it is assumed that can be downloaded
Set is represented by offline client of the packet downloading value less than 5, then the client can not currently download the offline packet.
Optionally, the range for the mark that can be adjusted accounts according to gray scale values is realized to the tune that can download set in turn
It is whole.
Assuming that sharing 10,000 login accounts, account identification belongs to 1~10000, the 0:00 moment create one it is not busy from
Line packet, gray scale values are 10% after 1 hour, and gray scale values are 20% after 2 hours, after 3 hours
Gray scale values are 30%, etc., thus when the time span of the new offline packet creation of distance is 1 hour, it can be set
Having the 10% corresponding client of account in this 10000 login accounts can download, when the new offline packet of distance creates
Between length be 2 hours when, can be set has the 20% corresponding client of account can be following in this 10000 login accounts
It carries, then has the 100% corresponding client of account that can download in this 10000 accounts in 10 hours, referring specifically to figure
It is (such as pre- to indicate that account of the account identification within preset 10% can be downloaded within 10% for table shown in 2B
10% account identification first set is 9001~10000);Within 20% i.e. indicate account identification preset 20% with
Interior account can download (such as preset 20% account identification is 8001~10000).
Conversely, the corresponding client of account that may also set up other than 90% when gray scale values are 10% can be downloaded,
The corresponding client of account that gray scale values may also set up other than 80% when being 20% can be downloaded, etc. referring specifically to Fig. 2 C
Shown in table, wherein indicated other than 90% account of the account identification other than preset 90% can download (such as
Preset 90% account identification is 1~9000, then account identification can be downloaded in 9001~1000 account).
Adjustment mode two, network side equipment period determine the range of account identification, and in account identification of every determination
After range, set is downloaded according to the range of account identification adjustment wrapping offline newly.
In the embodiments of the present disclosure, the account that client logs in is uniformly that account identification is incremented by successively.
Assuming that the range of the account identification of adjustment in every 10 minutes, (0:00 in the new offline packet B2.0 of administrator's creation
Moment), it can currently download the range of the account identification of offline packet B2.0 are as follows: 1~1000;Indicate 0:00~0:10 (contain 0:00,
Without 0:10) between at the time of the corresponding account identification for downloading offline packet B2.0 range are as follows: 1~1000, collection can be downloaded
Conjunction is represented by client of the account identification 1~1000.
The range of an account identification is adjusted at the 0:10 moment, it is assumed that will can download the range of the client of offline packet B2.0
It is adjusted to the client that the account identification range currently logged in is 1~2000, then can determine can currently download offline packet B2.0's
The range of account identification are as follows: 1~2000;It is corresponding at the time of expression between 0:10~0:20 (contain 0:10, be free of 0:20) can
The range of the account identification of the offline packet B2.0 of downloading are as follows: 1~2000, set can be downloaded and be represented by account identification 1~2000
Client.
Adjust the range of an account identification again at the 0:20 moment, such as account identification range adjusted is 1~3000,
Be 0:30 at the time of the range for mark of adjusting accounts next time, then between 0:20~0:30 (contain 0:20, be free of 0:30) when
Carve the range of the corresponding account identification for downloading offline packet B2.0 are as follows: 1~3000, set can be downloaded and be represented by account identification
In 1~3000 client, etc..
As shown in figure 3, set can be downloaded for a kind of adjust according to account identification proposed according to an exemplary embodiment
Schematic diagram, it is assumed that indicate that offline packet B2.0's downloads set, as seen from the figure, (contain 0:00 in 0:00~0:10 period, be free of
The 0:10 moment) can download set all be 1~1000,0:10~can be downloaded in the 0:20 period gather all be 1~2000,0:20~
It is 1~3000 that set can be downloaded in the 0:30 period all, etc., it is assumed that client is offline to network side equipment request at the 0:06 moment
Packet B2.0 it is current download set, collection of downloading at this time is combined into 1~1000;If client is set at the 0:16 moment to network side
The standby offline packet B2.0 of request it is current download set, collection of downloading at this time is combined into 1~2000.
Adjustment mode three, network side equipment period determine the range in geographical location, and in geographical location of every determination
After range, set is downloaded according to the range in geographical location adjustment wrapping offline newly.
Optionally, when the range in every geographical location of determination, it is ensured that the range in geographical location is gradually increased, or
Guarantee that the range in geographical location is gradually reduced.
By taking the range in geographical location is gradually increased as an example, it is assumed that the range in the geographical location of adjustment in every 10 minutes, in pipe
When reason person creates new offline packet C2.0 (0:00 moment), the range in the geographical location of offline packet C2.0 can be currently downloaded are as follows: river
Bei Sheng, set adjusted of downloading are represented by client of the current geographical location of corresponding user within Hebei province;
The range in a geographical location is adjusted at the 0:10 moment, the range in geographical location adjusted is Hebei province and Beijing, adjustment
Set of downloading afterwards is represented by visitor of the current geographical location of corresponding user within Hebei province or within Beijing
Family end;Adjust the range in a geographical location again at the 0:20 moment, the range in geographical location adjusted is Hebei province, Beijing
And Tianjin, set adjusted of downloading are represented by the current geographical location of corresponding user within Hebei province or Beijing
Client within city or within Tianjin, etc..
By taking the range in geographical location is gradually reduced as an example, it is assumed that every 10 minutes adjustment geographical location range, In
When administrator creates new offline packet C2.0 (0:00 moment), the range in the geographical location of offline packet C2.0 can be currently downloaded are as follows:
Hebei province, Beijing and Tianjin, set adjusted of downloading are represented by the current geographical location of corresponding user in river
Client except Bei Sheng, Beijing and Tianjin;The range in a geographical location, geography adjusted are adjusted at the 0:10 moment
The range of position is Hebei province and Beijing, and set adjusted of downloading is represented by the current geographical location of corresponding user
Client except Hebei province and Beijing;Adjust the range in a geographical location again at the 0:20 moment, adjustedly
The range for managing position is Hebei province, and set adjusted of downloading is represented by the current geographical location of corresponding user in Hebei
Client except province, etc..
Such as shown in Fig. 4, a kind of adjusted according to geographical location to be proposed according to an exemplary embodiment can download set
Schematic diagram, it is assumed that when administrator creates a new offline packet, the current collection of downloading of the offline packet is set and is combined into 1. institute
The region of expression;3 adjustment that can download set are carried out to the offline packet by the way that a timed task is arranged later, in distance
First time adjustment is carried out when creation time is 20 minutes, it is assumed that Downloadable geographic range adjusted is 1. and 2. represented
Region;Second is carried out when being 40 minutes apart from creation time to adjust, it is assumed that Downloadable geographic range adjusted be 1.,
3. 2. represented region;Apart from creation time be 60 minutes when carry out third time adjustment, it is adjusted Downloadablely
1., 2., 3. and 4. managing range is.
In the embodiments of the present disclosure, when client refers to APP, then the corresponding user of client then indicates the login client
The user at end, the current geographical location of the corresponding user of client currently log in the geographical location of the user of the client;When
When client refers to terminal device, then the corresponding user of client then indicates the user of the currently used terminal, and client is corresponding
The geographical location of the current geographical location of user, that is, currently used terminal user.
Optionally, network side equipment can be adjusted when adjustment indicates range or geographical position range according to setting step-length
It is whole.
It should be noted that network side equipment period modulation cited in the embodiment of the present disclosure it is new wrap offline can under
The mode for carrying set is merely illustrative, the new side for downloading set wrapped offline of any network side equipment period modulation
Formula is suitable for the embodiment of the present disclosure.
After in the embodiments of the present disclosure, client determines and has new offline packet (or client is determined to have and new be wrapped offline
Simultaneously), it is sent to network side equipment and obtains the new request for downloading set wrapped offline, network side equipment receives request
Afterwards, determine the new offline packet of client request it is current download set, and determining set of downloading is sent to client
End.
For example, client obtains the 0:12 moment from network side equipment after the 0:12 moment determines there is new offline packet B2.0
Offline packet B2.0's downloads set, and collection can be downloaded by being embodied as client to the offline packet B2.0 of network side equipment transmission acquisition
The request of conjunction, network side equipment determine that the current collection of downloading of offline packet B2.0 is combined into current geographic position upon receiving a request
Client within Hebei province, then determining set of downloading is sent to client by network side equipment.
In the embodiments of the present disclosure, client get new offline packet it is current download set after, according to client
Client information judges that itself whether being in current downloads in set, if it is, downloading the new offline packet;Otherwise, then exist
It is preset wait the moment to reach after from network side equipment reacquire the new offline packet it is current download set, and according to visitor
Family client information judges that itself whether being in current downloads in set, itself downloads set in current until determining
It is interior.
Wherein, client-side information includes some or all of following:
The account identification for the account that client currently logs in, the current geographical location of the corresponding user of client.
Optionally, client determines that the mode in set of downloading for itself being in current has much according to client-side information
Kind, it is set forth below several:
Method of determination one, when client-side information is the account identification of account that client currently logs in and can download collection and is combined into
When according to the determining section of gray scale values, detailed process is as follows:
If being downloaded in set according to the offline packet downloading value that the account identification currently logged in determines described, institute
It states client and determines that itself being in currently described downloads in set.
Wherein, offline packet downloading value, which refers to, currently can download wrap offline a numerical value by account identification reflection, when offline
Packet downloading value indicates currently to log in the client for determining the account identification of the offline packet downloading value when that can download in set
New offline packet can currently be downloaded.
Optionally, there are many kinds of the calculations of offline packet downloading value, two kinds are set forth below:
Calculation one, using account identification divided by the remainder of default gray value as offline packet downloading value.
Assuming that current gray scale values were 50% (1:00 moment), presetting gray scale is 100, and new offline packet D is current
It is (i.e. offline to wrap divided by the remainder of default gray scale that the account identification that user section is the account currently logged according to client can be downloaded
Downloading value) client less than 50.
For example, the account identification for the account that customer end A currently logs in is userID=1029,1029 ÷ 100=10, remainder
It is 29, then offline packet downloading value is 29, is less than gray scales 50, indicate hit gray scale, thus customer end A is at this time (1:00 moment)
New offline packet D can be downloaded;The account that customer end B currently logs in is identified as userID=1056,1056 ÷ 100=10,
Remainder is 56, then offline packet downloading value is 56, is greater than gray scales 50, and expression is not hit by gray scale, thus customer end B at this time (1:
00 moment) new offline packet D can not be downloaded.
Calculation two, the numerical value for being rounded the ratio of account identification and default integer are as offline packet downloading value.
Wherein, ratio can be rounded up, can also be rounded downwards when rounding.
In the hope of ratio be rounded downwards for, it is assumed that current gray scale values be 50% (1:00 moment), preset whole
Number is 100, new offline packet D it is current download account identification that user section is the account that client currently logs in and default
The client of numerical value (i.e. offline packet downloading value) less than 50 that the ratio of integer is rounded.
For example, the account identification for the account that customer end A currently logs in be userID=1029,1029 ÷ 100=10.29,
Being rounded downwards is 10, then offline packet downloading value is 10, is less than gray scales 50, indicates hit gray scale, thus customer end A is at this time
(1:00 moment) can download new offline packet D;The account that customer end B currently logs in is identified as userID=6056, and 6056
÷ 100=60.56, then offline packet downloading value is 60, is greater than gray scales 50, expression is not hit by gray scale, thus customer end B is at this time
(1:00 moment) can not download new offline packet D.
It should be noted that the calculation of offline packet downloading value cited in the embodiment of the present disclosure is only illustrated
Bright, any offline packet downloading value determined according to the account identification currently logged in is suitable for the embodiment of the present disclosure.
Method of determination two, when client-side information is the account identification of account that client currently logs in and can download collection and is combined into
When according to the determining section of account identification, detailed process is as follows:
If the set of downloading is the section determining according to account identification, and the account identification currently logged in is in
Described to download in set, then the client determines that itself being in currently described downloads in set.
For example, the set of downloading of packet E current (2:00 moment) is client of the account identification within 1~2000 offline
End, customer end A and customer end B have new offline packet E in the determination of 2:00 moment, it is assumed that the account for the account that customer end A currently logs in
Family is identified as 200, belongs in the range of 1~2000, then customer end A determines that itself being in current downloads in set;Assuming that
The account identification for the account that customer end B currently logs in is 2200, is not belonging in the range of 1~2000, then customer end B determines itself
It is not at current download in set.
Method of determination three, when client-side information is the current geographical location of the corresponding user of client and can download collection and is combined into
When according to the determining section of the range in geographical location, detailed process is as follows:
If the set of downloading is according to the section of the range in geographical location determination, and the corresponding user of the client
Current geographical location is in described and can download in set, then the client determines that itself being in currently described downloads collection
In conjunction.
For example, the set of downloading of packet F current (3:00 moment) is located within Hebei province for current geographic position offline
Client, it is assumed that the current geographical location of the corresponding user of customer end A is Shijiazhuang City, then can determine customer end A from being in
It is downloaded in set in current;The current geographical location of the corresponding user of customer end B is Beijing, then can determine customer end B
Itself it is not at current download in set.
Work as it should be noted that client cited in the embodiment of the present disclosure determines that itself is according to client-side information
The preceding mode for downloading set is merely illustrative, and any client is determined according to client-side information itself is in current
The mode for downloading set be suitable for the embodiment of the present disclosure.
In the embodiments of the present disclosure, if client, which determines itself to be not according to client-side information, current downloads set
If, then after the preset waiting moment reaches from network side equipment reacquire new offline packet it is current download set,
And judgement is re-started, new offline packet is just downloaded in set until determining itself to be in download.
Assuming that current gray scale values were 50% (1:00 moment), presetting gray scale is 100, and new offline packet D2.0 is current
User section of downloading be visitor of the account identification of account that currently logs in of client divided by the remainder of default gray scale less than 50
Family end.
The account identification for the account that customer end A currently logs in be userID=1029,1029 ÷ 100=10, remainder 29,
29 are less than gray scales 50 (hit gray scale), thus can download new offline packet D2.0;The account that customer end B currently logs in
Account identification is userID=1066,1066 ÷ 100=10, and remainder 66,66 is greater than gray scales 50 (being not hit by gray scale), because
And new offline packet D2.0 can not be downloaded.
Customer end B needs after waiting and setting duration, obtains current time to network side equipment again and new wraps offline
Set can be downloaded, new root of laying equal stress on judges that itself whether being in current downloads in set according to client-side information.
For example, customer end B obtains 1 to network side equipment again when 1:10 (assuming that 10 minutes a length of when setting):
10 moment downloaded set, it is assumed that gray scale values are 67% at this time, and the account identification for the account that customer end B currently logs in is
UserID=1066,1066 ÷ 100=10, remainder 66,66 are less than gray scales 67 (hit gray scale), thus customer end B this
When can download new offline packet D2.0.
In the embodiments of the present disclosure, client determines that itself being in current downloads in set according to client-side information,
Then download new offline packet, can be updated or not update after new offline of client downloads wraps, client can to
Family is prompted, and is determined according to the user's choice and is updated offline packet or do not update offline packet.
Such as shown in Fig. 5, it can be prompted to user after the new offline packet of client downloads, whether inquiry is current right
Offline wrap is updated (installation), is to update offline packet if user clicks, if user's click is no, does not update offline
Packet.
Fig. 6 is a kind of flow chart of offline packet method for down loading shown according to an exemplary embodiment, is applied to client,
As shown in fig. 6, including the following steps.
In S61, client from network side equipment obtain the new offline packet it is current download set, wherein described in
Set can be downloaded for indicating can to download the range of the new client wrapped offline;
In s 62, the client according to client-side information if it is determined that itself be not in it is current described in can download set
It is interior, then again from network side equipment obtain the new offline packet it is current download set, itself be in currently until determining
It is described download in set after the downloading new offline packet;
Wherein, it is adjacent obtain twice it is described download set in after once obtain download downloading for set expression
The range of the new client wrapped offline be greater than it is preceding once obtain download set expression download it is described it is new from
The range of the client of line packet.
Optionally, the client-side information is the account identification for the account that the client currently logs in;
The client determines that itself being in currently described downloads in set in the following manner:
If the set of downloading is the section determined according to gray scale values, and according to the account mark currently logged in
Know determining offline packet downloading value to download in set described, then the client determine itself be in it is current it is described can under
It carries in set;Or
If the set of downloading is the section determining according to account identification, and the account identification currently logged in is in
Described to download in set, then the client determines that itself being in currently described downloads in set.
Optionally, the client-side information is the current geographical location of the corresponding user of the client;
The client determines that itself being in currently described downloads in set in the following manner:
If the set of downloading is according to the section of the range in geographical location determination, and the corresponding user of the client
Current geographical location is in described and can download in set, then the client determines that itself being in currently described downloads collection
In conjunction.
Fig. 7 is a kind of flow chart of offline packet method for down loading shown according to an exemplary embodiment, is applied to network side
Equipment, as shown in fig. 7, comprises following steps.
In S71, network side equipment period modulation it is new wrap offline download set, wherein described in can download collection and share
In the range for indicating can to download the new client wrapped offline, described download is integrated into the network side equipment and adjusts every time
The range for downloading the new client wrapped offline indicated after whole be greater than before adjustment downloading of indicating it is described it is new from
The range of the client of line packet;
In S72, the network side equipment can download asking for set receiving client and obtain new offline wrap
After asking, the offline set of downloading wrapped currently newly is notified to the client, so that the client is determining certainly
It is in and downloads the rear downloading new offline packet in set in current.
Optionally, the set step of downloading wrapped offline of the network side equipment period modulation newly includes:
The network side equipment period determines time span of the current time apart from the new creation time wrapped offline,
And after every determination once time span, this is determined the time span and the ratio of preset gray scale total time
As gray scale values, according to the gray scale values adjust it is described it is new wrap offline download set;Or
The network side equipment period determines the range of account identification, and once adjusts accounts the range of mark in every determination
Afterwards, according to the mark range adjust it is described it is new wrap offline download set;Or
The network side equipment period determines the range in geographical location, and after the range in every geographical location of determination,
According to the range in the geographical location adjust it is described it is new wrap offline download set.
Fig. 8 is a kind of complete method flow chart of offline packet downloading shown according to an exemplary embodiment, is specifically included
Following steps:
S801: network side equipment period modulation it is new wrap offline download set;
S802: client, which sends the packet offline obtained newly to network side equipment, can download the request of set;
S803: network side equipment, which receives the offline packet of the acquisition of client newly, can download the request of set;
S804: the current set of downloading of the new offline packet is sent to client by network side equipment;
S805: client receive the new offline packet that network side equipment is sent it is current download set;
S806: client, which determines, downloads the new offline packet after itself being in current downloads in set.
Fig. 9 is a kind of offline packet download apparatus block diagram shown according to an exemplary embodiment.Referring to Fig. 9, the device packet
Include section acquiring unit 900, offline packet download unit 901:
Section acquiring unit 900, be configured as executing from network side equipment obtain the new offline packet it is current can under
Set is carried, wherein the set that can download is for indicating can to download the range of the new client wrapped offline;
Offline packet download unit 901, is configured as executing according to client-side information if it is determined that itself being not in current institute
Stating can download in set, then again from network side equipment obtain the new offline packet it is current download set, until determination
Described download for itself being in current gathers the interior rear downloading new offline packet;
Wherein, it is adjacent obtain twice it is described download set in after once obtain download downloading for set expression
The range of the new client wrapped offline be greater than it is preceding once obtain download set expression download it is described it is new from
The range of the client of line packet.
Optionally, the client-side information is the account identification for the account that client currently logs in;
The offline packet download unit 901 is also used to determine that itself being in currently described downloads collection in the following manner
In conjunction:
If the set of downloading is the section determined according to gray scale values, and according to the account mark currently logged in
Know determining offline packet downloading value to download in set described, it is determined that itself is in currently described and downloads in set;
Or
If the set of downloading is the section determining according to account identification, and the account identification currently logged in is in
It is described to download in set, it is determined that itself is in currently described and downloads in set.
Optionally, described device further include:
Determination unit 902, be configured as executing using the account identification divided by default gray value remainder as it is described from
Line packet downloading value.
Optionally, the client-side information is the current geographical location of the corresponding user of the client;
The offline packet download unit 901 is also used to determine that itself being in currently described downloads collection in the following manner
In conjunction:
If the set of downloading is the section determined according to the range in geographical location, and the corresponding user of client is current
Geographical location be in described and can download in set, it is determined that itself be in current and described download in set.
Optionally, the offline packet download unit 901 is specifically used for:
After waiting and setting duration, again to network side equipment obtain current time it is new wrap offline download set.
Figure 10 is another offline packet download apparatus block diagram shown according to an exemplary embodiment.Referring to Fig.1 0, the dress
It sets including section adjustment unit 1000, notification unit 1001:
Section adjustment unit 1000, be configured as executing period modulation it is new wrap offline download set, wherein described in
Set can be downloaded for indicating can to download the range of the new client wrapped offline, described download is integrated into network side and sets
The range for downloading the new client wrapped offline indicated after standby adjustment every time downloads institute greater than what is indicated before adjustment
State the range of the new client wrapped offline;
Notification unit 1001, set can be downloaded receiving client and obtain new offline wrap by being configured as executing
After request, new current the downloading of offline packet is gathered into notice to the client, so that the client is in determination
It itself is in current downloading and gathers the interior rear downloading new offline packet.
Optionally, the section adjustment unit 1000 is specifically used for:
Period determines time span of the current time apart from the new creation time wrapped offline, and primary in every determination
After the time span, the ratio of the time span and preset gray scale total time that this is determined is as gray scales
Value, according to the gray scale values adjust it is described it is new wrap offline download set;Or
Period determines the range of account identification, and every determination once adjust accounts mark range after, according to the mark
Know range adjust it is described it is new wrap offline download set;Or
Period determines the range in geographical location, and after the range in every geographical location of determination, according to the geographical position
The range set adjust it is described it is new wrap offline download set.
Figure 11 be it is shown according to an exemplary embodiment a kind of for wrapping the block diagram of the electronic equipment 1100 of downloading offline,
The device includes:
Processor 1110;
For storing the memory 1120 of 1110 executable instruction of processor;
Wherein, the processor 1110 is configured as executing described instruction, is applied to visitor in the embodiment of the present disclosure to realize
The offline packet method for down loading of any one at family end.
In the exemplary embodiment, a kind of storage medium including instruction, the memory for example including instruction are additionally provided
1120, above-metioned instruction can be executed by the processor 1110 of electronic equipment 1100 to complete the above method.Optionally, storage medium can
To be non-transitorycomputer readable storage medium, for example, the non-transitorycomputer readable storage medium can be ROM,
Random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
Figure 12 be it is shown according to an exemplary embodiment a kind of for wrapping the block diagram of the electronic equipment 1200 of downloading offline,
The device includes:
Processor 1210;
For storing the memory 1220 of 1210 executable instruction of processor;
Wherein, the processor 1210 is configured as executing described instruction, is applied to net in the embodiment of the present disclosure to realize
The offline packet method for down loading of any one of network side apparatus.
In the exemplary embodiment, a kind of storage medium including instruction, the memory for example including instruction are additionally provided
1220, above-metioned instruction can be executed by the processor 1210 of electronic equipment 1200 to complete the above method.Optionally, storage medium can
To be non-transitorycomputer readable storage medium, for example, the non-transitorycomputer readable storage medium can be ROM,
Random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
The embodiment of the present disclosure also provides a kind of computer program product, when the computer program product on an electronic device
When operation, so that the electronic equipment executes under realizing that the above-mentioned any one applied to client of the embodiment of the present disclosure is wrapped offline
Support method or any method that may relate to of the offline packet method for down loading of any one.
The embodiment of the present disclosure also provides a kind of computer program product, when the computer program product on an electronic device
When operation, so that the electronic equipment, which executes, realizes that the above-mentioned any one applied to network side equipment of the embodiment of the present disclosure is offline
Packet method for down loading or any method that may relate to of the offline packet method for down loading of any one.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.The disclosure is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (10)
1. a kind of offline packet method for down loading characterized by comprising
Client from network side equipment obtain new offline packet it is current download set, wherein the set that can download is used for table
Show the range that can download the new client wrapped offline;
The client according to client-side information if it is determined that itself be not in it is current described in can download in set, then again from net
Network side apparatus obtain the new offline packet it is current download set, until determine itself be in currently described in can download collection
The downloading new offline packet after in closing;
Wherein, it is adjacent obtain twice it is described download in set after once obtain to download downloading for set expression described
The range of the new client wrapped offline be greater than it is preceding once obtain download set expression download the new offline packet
Client range.
2. offline packet method for down loading according to claim 1, which is characterized in that the client-side information is the client
The account identification of the account currently logged in;
The client determines that itself being in currently described downloads in set in the following manner:
If the set of downloading is the section determined according to gray scale values, and true according to the account identification currently logged in
Fixed offline packet downloading value is downloaded in set described, then the client determines that itself being in currently described downloads collection
In conjunction;Or
If the set of downloading is the section determining according to account identification, and the account identification currently logged in is in described
It can download in set, then the client determines that itself being in currently described downloads in set.
3. a kind of offline packet method for down loading characterized by comprising
Network side equipment period modulation it is new wrap offline download set, wherein described can download is gathered for indicating to download
The range of the new client wrapped offline, it is described download be integrated into indicated after the network side equipment adjusts every time can
The range for downloading the new client wrapped offline downloads the new client wrapped offline greater than what is indicated before adjustment
Range;
The network side equipment obtains after the new offline packet can download the request of set receiving client, will it is described newly
Offline packet it is current download set notice to the client so that the client determine itself be in it is current can
The downloading new offline packet after in downloading set.
4. offline packet method for down loading according to claim 3, which is characterized in that the network side equipment period modulation is new
Wrap offline download set step include:
The network side equipment period determines time span of the current time apart from the new creation time wrapped offline, and
Every determination is once after the time span, this is determined the time span and the ratio of preset gray scale total time as
Gray scale values, according to the gray scale values adjust it is described it is new wrap offline download set;Or
The network side equipment period determines the range of account identification, and every determination once adjust accounts mark range after,
According to the mark range adjust it is described it is new wrap offline download set;Or
The network side equipment period determines the range in geographical location, and after the range in every geographical location of determination, according to
The range in the geographical location adjust it is described it is new wrap offline download set.
5. a kind of offline packet download apparatus characterized by comprising
Section acquiring unit, be configured as executing from network side equipment obtain the new offline packet it is current download set,
Wherein the set that can download is for indicating can to download the range of the new client wrapped offline;
Offline packet download unit, be configured as executing according to client-side information if it is determined that itself be not in it is current described in can download
In set, then again from network side equipment obtain the new offline packet it is current download set, itself be in until determining
Current described download gathers the interior rear downloading new offline packet;
Wherein, it is adjacent obtain twice it is described download in set after once obtain to download downloading for set expression described
The range of the new client wrapped offline be greater than it is preceding once obtain download set expression download the new offline packet
Client range.
6. a kind of offline packet download apparatus characterized by comprising
Section adjustment unit, be configured as executing period modulation it is new wrap offline download set, wherein described in can download collection
It shares in the range for indicating can to download the new client wrapped offline, described download is integrated into network side equipment and adjusts every time
The range for downloading the new client wrapped offline indicated after whole be greater than before adjustment downloading of indicating it is described it is new from
The range of the client of line packet;
Notification unit, be configured as executing receive client obtain it is described it is new it is offline wrap can download the request of set after,
By the new offline packet it is current download set notice to the client so that the client itself is in determining
Current downloads the rear downloading new offline packet in set.
7. a kind of electronic equipment characterized by comprising
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to executing described instruction, to realize such as any one of claim 1 or claim 2
The offline packet method for down loading.
8. a kind of electronic equipment characterized by comprising
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to executing described instruction, to realize such as any one of claim 3 or claim 4
The offline packet method for down loading.
9. a kind of storage medium, which is characterized in that when the instruction in the storage medium is by offline wrapping the electronic equipment of downloading
When processor executes, so that the device of offline packet downloading is able to carry out as described in any one of claim 1 or claim 2
Offline packet method for down loading.
10. a kind of storage medium, which is characterized in that when the instruction in the storage medium is by offline wrapping the electronic equipment of downloading
When processor executes, so that the device of offline packet downloading is able to carry out as described in any one of claim 3 or claim 4
Offline packet method for down loading.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910616829.7A CN110401702B (en) | 2019-07-09 | 2019-07-09 | Offline package downloading method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910616829.7A CN110401702B (en) | 2019-07-09 | 2019-07-09 | Offline package downloading method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110401702A true CN110401702A (en) | 2019-11-01 |
CN110401702B CN110401702B (en) | 2022-03-25 |
Family
ID=68322863
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910616829.7A Active CN110401702B (en) | 2019-07-09 | 2019-07-09 | Offline package downloading method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110401702B (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130110985A1 (en) * | 2011-11-01 | 2013-05-02 | Rahul Shekher | Systems and Methods for Geographical Location Based Cloud Storage |
CN103309694A (en) * | 2012-03-14 | 2013-09-18 | 腾讯科技(深圳)有限公司 | Application program updating method and device |
CN104852986A (en) * | 2015-05-28 | 2015-08-19 | 北京奇艺世纪科技有限公司 | Method and device for providing newly-added function |
US20160247126A1 (en) * | 2015-02-25 | 2016-08-25 | Geoffrey R. Gehrke | Server supported mobile application for scheduling or conducting transactions |
CN106550044A (en) * | 2016-11-24 | 2017-03-29 | 腾讯科技(深圳)有限公司 | Using method for down loading, download server, download client and apply download system |
CN106605418A (en) * | 2014-04-16 | 2017-04-26 | 脸谱公司 | Power management of mobile clients using location-based services |
WO2017157178A1 (en) * | 2016-03-15 | 2017-09-21 | 阿里巴巴集团控股有限公司 | Mobile terminal application update method and device |
US20180109914A1 (en) * | 2016-10-15 | 2018-04-19 | Microsoft Technology Licensing, Llc | Managing a user's geolocation home range |
CN107979644A (en) * | 2017-11-30 | 2018-05-01 | 掌阅科技股份有限公司 | Prevent packet method for down loading, electronic equipment, the storage medium of high concurrent |
CN108200211A (en) * | 2018-02-12 | 2018-06-22 | 华为技术有限公司 | Method, node and the inquiry server that image file is downloaded in cluster |
CN109213512A (en) * | 2018-08-15 | 2019-01-15 | 中国平安人寿保险股份有限公司 | Offline packet loading method, system, terminal and readable storage medium storing program for executing |
CN109361739A (en) * | 2018-09-25 | 2019-02-19 | 广州多益网络股份有限公司 | A kind of method for down loading, device, client, system and storage medium |
CN109672757A (en) * | 2019-02-26 | 2019-04-23 | 北京奇艺世纪科技有限公司 | File access method and file access processing unit |
-
2019
- 2019-07-09 CN CN201910616829.7A patent/CN110401702B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130110985A1 (en) * | 2011-11-01 | 2013-05-02 | Rahul Shekher | Systems and Methods for Geographical Location Based Cloud Storage |
CN103309694A (en) * | 2012-03-14 | 2013-09-18 | 腾讯科技(深圳)有限公司 | Application program updating method and device |
CN106605418A (en) * | 2014-04-16 | 2017-04-26 | 脸谱公司 | Power management of mobile clients using location-based services |
US20160247126A1 (en) * | 2015-02-25 | 2016-08-25 | Geoffrey R. Gehrke | Server supported mobile application for scheduling or conducting transactions |
CN104852986A (en) * | 2015-05-28 | 2015-08-19 | 北京奇艺世纪科技有限公司 | Method and device for providing newly-added function |
WO2017157178A1 (en) * | 2016-03-15 | 2017-09-21 | 阿里巴巴集团控股有限公司 | Mobile terminal application update method and device |
US20180109914A1 (en) * | 2016-10-15 | 2018-04-19 | Microsoft Technology Licensing, Llc | Managing a user's geolocation home range |
CN106550044A (en) * | 2016-11-24 | 2017-03-29 | 腾讯科技(深圳)有限公司 | Using method for down loading, download server, download client and apply download system |
CN107979644A (en) * | 2017-11-30 | 2018-05-01 | 掌阅科技股份有限公司 | Prevent packet method for down loading, electronic equipment, the storage medium of high concurrent |
CN108200211A (en) * | 2018-02-12 | 2018-06-22 | 华为技术有限公司 | Method, node and the inquiry server that image file is downloaded in cluster |
CN109213512A (en) * | 2018-08-15 | 2019-01-15 | 中国平安人寿保险股份有限公司 | Offline packet loading method, system, terminal and readable storage medium storing program for executing |
CN109361739A (en) * | 2018-09-25 | 2019-02-19 | 广州多益网络股份有限公司 | A kind of method for down loading, device, client, system and storage medium |
CN109672757A (en) * | 2019-02-26 | 2019-04-23 | 北京奇艺世纪科技有限公司 | File access method and file access processing unit |
Non-Patent Citations (1)
Title |
---|
林东升: "一种位置相关缓存有效性判别方法", 《计算机与现代化》 * |
Also Published As
Publication number | Publication date |
---|---|
CN110401702B (en) | 2022-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8966121B2 (en) | Client-side management of domain name information | |
US20190020536A1 (en) | Enabling planned upgrade/downgrade of network devices without impacting network sessions | |
US8856279B2 (en) | Method and system for object prediction | |
CN106888270B (en) | Method and system for back source routing scheduling | |
CN104836821B (en) | A kind of network accelerating method based on router device, device and equipment | |
CN108848530B (en) | Method and device for acquiring network resources and scheduling server | |
GB2406189A (en) | A method of providing content from a web server to a mobile w eb browsing device | |
CN104394182A (en) | Method for realizing content delivery network acceleration and source server | |
CN103888934B (en) | A kind of mobile terminal cache management device and management method | |
US20140122574A1 (en) | Remote management system with adaptive session management mechanism | |
CN103516785A (en) | Web page proxy system and communication method thereof | |
CN107451169A (en) | A kind of athletic competition information issuing system general-purpose platform | |
WO2005094044A1 (en) | Satellite anticipatory bandwidth acceleration | |
CN114760482A (en) | Live broadcast source returning method and device | |
CN108989420A (en) | The method and system of registration service, the method and system for calling service | |
CN105279156B (en) | Network information communication means and network information browsing apparatus | |
CN116896511B (en) | Special line cloud service speed limiting method, device, equipment and storage medium | |
CN102291432A (en) | Network information sharing method, device and client | |
CN101895550B (en) | Cache accelerating method for compatibility of dynamic and static contents of internet website | |
CN110191362B (en) | Data transmission method and device, storage medium and electronic equipment | |
CN101958934B (en) | Electronic program guide incremental content synchronization method, device and system | |
CN110401702A (en) | A kind of offline packet method for down loading, device, electronic equipment and storage medium | |
EP2850809B1 (en) | Providing data to a network terminal | |
CN116389454A (en) | Data downloading system | |
US20150288734A1 (en) | Adaptive leveraging of network information |
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 |