CN110401702B - Offline package downloading method and device, electronic equipment and storage medium - Google Patents

Offline package downloading method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110401702B
CN110401702B CN201910616829.7A CN201910616829A CN110401702B CN 110401702 B CN110401702 B CN 110401702B CN 201910616829 A CN201910616829 A CN 201910616829A CN 110401702 B CN110401702 B CN 110401702B
Authority
CN
China
Prior art keywords
client
offline package
downloadable
current
downloadable set
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910616829.7A
Other languages
Chinese (zh)
Other versions
CN110401702A (en
Inventor
刘正阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201910616829.7A priority Critical patent/CN110401702B/en
Publication of CN110401702A publication Critical patent/CN110401702A/en
Application granted granted Critical
Publication of CN110401702B publication Critical patent/CN110401702B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure relates to an offline package downloading method, an offline package downloading device, electronic equipment and a storage medium, relates to the technical field of internet, and aims to solve the problems that a large-range user can simultaneously download an offline package and simultaneously request a CDN (content delivery network) and the bandwidth pressure of the CDN is greatly increased; the client acquires a current downloadable set of a new offline package from the network side equipment; if the client determines that the client is not in the current downloadable set according to the client information, the client acquires the current downloadable set of the new offline package from the network side equipment again until the client downloads the new offline package after determining that the client is in the current downloadable set; and the range of the client terminal which can download the new offline package and is represented by the downloadable set acquired last time in the downloadable sets acquired last time in the two adjacent times is larger than that of the client terminal acquired last time. Because the current downloadable set is set in the disclosure to reduce the range of the client which can download offline packages simultaneously, the pressure of the bandwidth of the CDN is further reduced.

Description

Offline package downloading method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to an offline package downloading method and apparatus, an electronic device, and a storage medium.
Background
With the development of H5(HyperText Markup Language 5, fifth version of HyperText Markup Language) technology, H5 has become more and more widely used, such as developing web pages, making applets, mini-games, and marketing using H5.
The H5 offline package is a cache of the application H5 page, and when the offline package of the user needs to be updated, the client automatically downloads the needed offline package file.
At present, after an administrator upgrades a offline package, all users find a new offline package, and the way of updating the offline package by the users is usually to directly upgrade all users or users above a certain version, so that all users download the offline package at the same time and request a CDN (Content Delivery Network) at the same time, which causes increased pressures such as CDN bandwidth.
In summary, a large range of users simultaneously download the offline package and request the CDN, which greatly increases the pressure on the bandwidth of the CDN.
Disclosure of Invention
The disclosure provides an offline package downloading method and device, an electronic device and a storage medium, so as to at least solve the problem that in the related art, a large-range user can simultaneously download an offline package and simultaneously request a CDN (content delivery network), and the pressure of the bandwidth of the CDN is greatly increased. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided an offline package downloading method, including:
the client acquires a current downloadable set of the new offline package from network side equipment, wherein the downloadable set is used for representing the range of the client capable of downloading the new offline package;
if the client determines that the client is not in the current downloadable set according to the client information, the client acquires the current downloadable set of the new offline package from the network side equipment again until the client downloads the new offline package after determining that the client is in the current downloadable set;
and the range of the client which can download the new offline package and is represented by the downloadable set acquired last time in the downloadable sets acquired two adjacent times is larger than the range of the client which can download the new offline package and is represented by the downloadable set acquired last time.
In a possible implementation manner, the client information is an account identifier of an account currently logged in by the client;
the client determines that the client is in the current downloadable set by:
if the downloadable set is an interval determined according to a gray scale value and an offline package download value determined according to the currently logged account identifier is in the downloadable set, the client determines that the client is in the current downloadable set; or
And if the downloadable set is an interval determined according to the account identifier and the currently logged account identifier is in the downloadable set, the client determines that the client is in the current downloadable set.
In one possible implementation manner, the client determines the offline package download value by:
and the client takes the remainder of dividing the account identification by a preset gray value as the off-line package downloading value.
In a possible implementation manner, the client information is a current geographic location of a user corresponding to the client;
the client determines that the client is in the current downloadable set by:
and if the downloadable set is an interval determined according to the range of the geographic position and the current geographic position of the user corresponding to the client is in the downloadable set, the client determines that the client is in the current downloadable set.
In a possible implementation manner, the obtaining, by the client, the current downloadable set of the new offline package from the network-side device again includes:
and after waiting for the set duration, the client acquires the downloadable set of the new offline package at the current moment from the network side equipment again.
According to a second aspect of the embodiments of the present disclosure, there is provided an offline package downloading method, including:
the network side equipment periodically adjusts a downloadable set of a new offline package, wherein the downloadable set is used for representing the range of clients capable of downloading the new offline package, and the range of the clients capable of downloading the new offline package represented by the downloadable set after each adjustment of the network side equipment is larger than the range of the clients capable of downloading the new offline package represented by the network side equipment before the adjustment;
after receiving a request of a client for acquiring the new off-line package downloadable set, the network side device notifies the client of the current downloadable set of the new off-line package, so that the client downloads the new off-line package after determining that the client is in the current downloadable set.
In a possible implementation manner, the step of periodically adjusting, by the network side device, the downloadable set of new offline packets includes:
the network side equipment periodically determines the time length from the current moment to the creation time of the new off-line package, and after the time length is determined every time, the ratio of the time length determined this time to the preset total gray scale time is used as a gray scale proportion value, and the downloadable set of the new off-line package is adjusted according to the gray scale proportion value; or
The network side equipment periodically determines the range of the account identification, and adjusts the downloadable set of the new offline package according to the identification range after the range of the account identification is adjusted every time the range of the account identification is determined; or
And the network side equipment periodically determines the range of the geographic position, and adjusts the downloadable set of the new offline package according to the range of the geographic position after determining the range of the geographic position every time.
According to a third aspect of the embodiments of the present disclosure, there is provided an offline package downloading apparatus, including:
the interval acquisition unit is configured to acquire a current downloadable set of the new offline package from a network side device, wherein the downloadable set is used for representing a range of clients capable of downloading the new offline package;
the offline package downloading unit is configured to execute that if the client information determines that the client information is not in the current downloadable set, the current downloadable set of the new offline package is obtained from the network side equipment again until the new offline package is downloaded after the client information is determined to be in the current downloadable set;
and the range of the client which can download the new offline package and is represented by the downloadable set acquired last time in the downloadable sets acquired two adjacent times is larger than the range of the client which can download the new offline package and is represented by the downloadable set acquired last time.
In a possible implementation manner, the client information is an account identifier of an account currently logged in by the client;
the offline package download unit is further configured to determine that itself is within the current downloadable set by:
if the downloadable set is an interval determined according to a gray scale value and an offline package download value determined according to the currently logged account identifier is in the downloadable set, determining that the downloadable set is in the current downloadable set; or
And if the downloadable set is an interval determined according to the account identifier and the currently logged account identifier is in the downloadable set, determining that the downloadable set is in the current downloadable set.
In one possible implementation, the apparatus further includes:
the determining unit is configured to execute a remainder of dividing the account identifier by a preset gray value as the offline package download value.
In a possible implementation manner, the client information is a current geographic location of a user corresponding to the client;
the offline package download unit is further configured to determine that itself is within the current downloadable set by:
and if the downloadable set is an interval determined according to the range of the geographic position and the current geographic position of the user corresponding to the client is in the downloadable set, determining that the downloadable set is in the current downloadable set.
In a possible implementation manner, the offline package downloading unit is specifically configured to:
and after waiting for the set duration, obtaining the downloadable set of the new offline package at the current moment from the network side equipment again.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an offline package downloading apparatus, including:
the interval adjusting unit is configured to perform periodic adjustment on a downloadable set of a new offline package, wherein the downloadable set is used for representing the range of clients capable of downloading the new offline package, and the range of the clients capable of downloading the new offline package represented by the downloadable set after each adjustment of the network-side device is larger than the range of the clients capable of downloading the new offline package represented by the network-side device before the adjustment;
and the notification unit is configured to notify the current downloadable set of the new offline package to the client after receiving a request that the client acquires the new downloadable set of the offline package, so that the client downloads the new offline package after determining that the client is in the current downloadable set.
In a possible implementation manner, the interval adjusting unit is specifically configured to:
periodically determining the time length from the current moment to the creation time of the new off-line package, taking the ratio of the time length determined this time to the preset total gray scale time as a gray scale proportion value after determining the time length once, and adjusting the downloadable set of the new off-line package according to the gray scale proportion value; or
Periodically determining the range of the account identifier, and adjusting the downloadable set of the new offline package according to the identifier range after the range of the account identifier is adjusted every time the range of the account identifier is determined; or
And periodically determining the range of the geographic position, and adjusting the downloadable set of the new offline package according to the range of the geographic position after determining the range of the geographic position every time.
According to a fifth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the offline package downloading method according to any one of the first aspect of the embodiments of the present disclosure.
According to a sixth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the offline package downloading method according to any one of the second aspect of the embodiments of the present disclosure.
According to a seventh aspect of the embodiments of the present disclosure, there is provided a non-volatile storage medium, where instructions of the storage medium, when executed by a processor of an offline package downloading apparatus, enable the offline package downloading apparatus to execute the offline package downloading method according to any one of the first aspects of the embodiments of the present disclosure.
According to an eighth aspect of the embodiments of the present disclosure, there is provided a non-volatile storage medium, wherein when the instructions in the storage medium are executed by a processor of an offline package downloading apparatus, the offline package downloading apparatus is enabled to execute the offline package downloading method according to any one of the second aspect of the embodiments of the present disclosure.
According to a ninth aspect of the embodiments of the present disclosure, there is provided a computer program product, which, when run on an electronic device, causes the electronic device to perform a method for implementing the first aspect of the embodiments of the present disclosure and any possible method related to the first aspect.
According to a tenth aspect of the embodiments of the present disclosure, there is provided a computer program product, which, when run on an electronic device, causes the electronic device to perform a method that implements the second aspect of the embodiments of the present disclosure described above and any one of the possible references to the second aspect.
According to an eleventh aspect of embodiments of the present disclosure, there is provided an offline package downloading system, including: client and network side equipment:
the client is used for acquiring a current downloadable set of the new offline package from network side equipment, wherein the downloadable set is used for representing the range of the client capable of downloading the new offline package; if the client information is determined not to be in the current downloadable set, the current downloadable set of the new offline package is obtained from the network side equipment again until the new offline package is downloaded after the client information is determined to be in the current downloadable set; and the range of the client which can download the new offline package and is represented by the downloadable set acquired last time in the downloadable sets acquired two adjacent times is larger than the range of the client which can download the new offline package and is represented by the downloadable set acquired last time.
The network side equipment is used for periodically adjusting a downloadable set of a new offline package, wherein the range of the downloadable set of the client capable of downloading the new offline package after the network side equipment is adjusted every time is larger than the range of the client capable of downloading the new offline package before the network side equipment is adjusted; and after a request that the client acquires the new off-line package downloadable set is received, notifying the client of the current downloadable set of the new off-line package.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
because the client in the embodiment of the present disclosure needs to obtain the current downloadable set of the new offline package from the network side device and determine the squeak sound before downloading the offline package, the client can download the new offline package only after being in the current downloadable set of the new offline package, and compared with the case that the client determines that the new offline package is downloaded directly after the new offline package is present, the case that the bandwidth pressure of the CDN is increased greatly is caused by downloading the client at a large range at the same time, the range of the client that can download the new offline package at a certain moment is limited in the embodiment of the present disclosure, the range of the client that can download at the same time is reduced, the client that is not in the current downloadable set cannot download the new offline package at this moment, and the range of the client that can download the new offline package is gradually increased, so on the premise that all clients can download the new offline package, the range of the client side which downloads the data simultaneously is narrowed, and the pressure of the bandwidth of the CDN is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a block diagram illustrating an offline package download system in accordance with an exemplary embodiment;
FIG. 2A is a schematic diagram illustrating a first adjustment of a downloadable set according to a gray scale value in accordance with an exemplary embodiment;
FIG. 2B is a diagram illustrating a second adjustment of a downloadable set according to a gray scale value in accordance with an exemplary embodiment;
FIG. 2C is a diagram illustrating a second adjustment of a downloadable set according to a gray scale value in accordance with an exemplary embodiment;
FIG. 3 is a diagram illustrating an adjustment of a downloadable set according to an account identification range in accordance with an exemplary embodiment;
FIG. 4 is a diagram illustrating adjustment of downloadable sets according to geographic location ranges in accordance with an exemplary embodiment;
FIG. 5 is a schematic diagram illustrating an offline package update in accordance with an illustrative embodiment;
FIG. 6 is a flow diagram illustrating a method of offline package download according to an exemplary embodiment;
FIG. 7 is a flow diagram illustrating another offline package download method in accordance with an exemplary embodiment;
FIG. 8 is a flow diagram illustrating a complete method of offline package download according to an exemplary embodiment;
FIG. 9 is a block diagram illustrating an offline package download apparatus according to an exemplary embodiment;
FIG. 10 is a block diagram illustrating another offline package download apparatus according to an exemplary embodiment;
FIG. 11 is a block diagram illustrating an electronic device in accordance with an exemplary embodiment;
FIG. 12 is a block diagram illustrating another electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Some of the words that appear in the text are explained below:
1. the term "and/or" in the embodiments of the present disclosure describes an association relationship of associated objects, and means that there may be three relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
2. The term "terminal" in the embodiments of the present disclosure refers to any intelligent electronic device capable of automatically processing a large amount of data at a high speed according to a program, and includes a mobile phone, a computer, a tablet, an intelligent terminal, a multimedia device, a streaming media device, and the like.
3. The term "network side device" in the embodiments of the present disclosure refers to a network server or other devices that can support offline package downloading.
4. The term "administrator" in the disclosed embodiments generally refers to the actual individual or account responsible for the maintenance or management of certain systems or software updates.
5. The term "CDN" in the embodiment of the present disclosure is a novel network content service system, which is constructed based on an IP (Internet Protocol, interconnection Protocol between networks) network, and provides content distribution and service based on efficiency requirements, quality requirements, and content order of content access and application, and a basic idea is to avoid bottlenecks and links that may affect data transmission speed and stability on the Internet as far as possible, so that content transmission is faster and more stable. By placing node servers at various positions of the network to form a layer of intelligent virtual network on the basis of the existing internet, the CDN system can redirect the request of a user to a service node closest to the user in real time according to network flow, connection of each node, load condition, distance to the user, response time and other comprehensive information. The method aims to enable the user to obtain the required content nearby, solve the problem of network congestion of the Internet and improve the response speed of the user for accessing the website.
The offline package is to package static resources in pages including HTML (hypertext markup language), Javascript (java script), CSS (Cascading Style Sheets), and the like into a compressed package. An administrator firstly releases the offline package on the platform, the offline package is downloaded to the local by a user in advance, and then the offline package is directly loaded from the local through opening of the client, so that the influence of a network environment on an H5 page is furthest eliminated.
In the related art, after the administrator upgrades the offline package, all users find a new offline package, so all users download the offline package at the same time, and request the CDN at the same time, which increases the pressure of the CDN bandwidth and the like, and easily causes network congestion.
The application scenario described in the embodiment of the present disclosure is for more clearly illustrating the technical solution of the embodiment of the present disclosure, and does not form a limitation on the technical solution provided in the embodiment of the present disclosure, and as a person having ordinary skill in the art knows, with the occurrence of a new application scenario, the technical solution provided in the embodiment of the present disclosure is also applicable to similar technical problems. Wherein, in the description of the present disclosure, unless otherwise indicated, "plurality" means.
Fig. 1 is a schematic diagram illustrating an offline package download system according to an exemplary embodiment, as shown, the system comprising: a client 10 and a network side device 20;
the client 10 is configured to obtain a current downloadable set of the new offline package from the network-side device 20, where the downloadable set is used to represent a range of clients that can download the new offline package; if the client information determines that the client is not in the current downloadable set, the current downloadable set of the new offline package is obtained from the network side device 20 again until the new offline package is downloaded after the client information is determined to be in the current downloadable set; and the range of the client which can download the new offline package and is represented by the downloadable set acquired last time in the downloadable sets acquired two adjacent times is larger than the range of the client which can download the new offline package and is represented by the downloadable set acquired last time.
The network side device 20 is configured to periodically adjust a downloadable set of a new offline package, where a range of clients, which can download the new offline package, indicated by the downloadable set after each adjustment by the network side device 20 is larger than a range of clients, which can download the new offline package, indicated before the adjustment; after receiving a request for acquiring the new downloadable set of offline packages from the client 10, notifying the client 10 of the current downloadable set of the new offline packages.
Because the client in the embodiment of the present disclosure needs to obtain the current downloadable set of the new offline package from the network side device and determine itself before downloading the offline package, the client can download the new offline package only after being in the current downloadable set of the new offline package, and compared with the case that the client determines that the new offline package is downloaded directly, the case that the CDN bandwidth pressure is greatly increased is caused by the simultaneous downloading of a large range of clients, the range of the client that can download the new offline package at a certain moment is limited in the embodiment of the present disclosure, the range of the client that can download at the same time is reduced, the client that is not in the current downloadable set cannot download the new offline package at this moment, and the range of the client that can download the new offline package is gradually increased, so on the premise that all clients can download the new offline package, the range of the client side which downloads the data simultaneously is narrowed, and the pressure of the bandwidth of the CDN is reduced.
The client may refer to an APP (Application) of a software class, or may refer to a terminal device.
In this embodiment of the present disclosure, the client may obtain the current downloadable set of the new offline package from the network side device after determining that the new offline package exists, or may obtain the current downloadable set of the new offline package from the network side device while determining that the new offline package exists.
In the embodiment of the present disclosure, there are many ways for the network side device to periodically adjust the downloadable set of the new offline package, which are listed as follows:
in the first adjustment mode, the network side equipment periodically determines the time length from the current time to the creation time of the new offline packet, and the ratio of the time length determined this time to the preset total gray scale time is used as a gray scale proportion value after each time of determining the time length; and adjusting the downloadable set of new offline packages according to the gray scale value.
Specifically, a total gray scale time, namely a preset total gray scale time, can be set when the administrator upgrades the offline package or creates a new offline package, after submission, the creation time of the new offline package is recorded in the background, and a timing task is added, wherein the timing task is used for updating the gray scale proportion value according to the preset total gray scale time. Assuming that the timing task is set as a period to judge the time length from the current time to the creation time of a new off-line package, dividing the time length by the preset total gray scale time to judge the current gray scale proportion value, periodically updating the downloadable set, and completing the task when the gray scale proportion value reaches 100%.
Assuming that the preset total gray scale time is 10 hours (600 minutes), a new offline package obtained after the administrator upgrades the offline package a1.0 is the offline package a2.0 (assuming that the creation time of the offline package a2.0 is 0:00), and a timing task is set for periodically adjusting the downloadable set of the offline package a2.0, assuming that the timing task is set to determine the time length of the current time from 0:00 every six minutes, and updating the downloadable set by taking the ratio of the determined time length to the preset total gray scale time as a gray scale value.
For example, when the current time is 0:06, the time length from 0:00 is 6 minutes, and the gray scale value at this time is 6/600 ═ 1%, assuming that the preset gray scale is 100, therefore, the downloadable set of offline package a2.0 at 0:06 can be set as the client whose remainder of the account id currently logged in divided by the preset gray scale value is less than 1 (hit gray scale);
when the current time is 0:12, the time length from 0:00 is 12 minutes, and the gray scale value at this time is 12/600 ═ 2%, assuming that the preset gray scale value is 100, therefore, the downloadable set of the offline package a2.0 at 0:12 can be set as the client whose remainder of the account identifier currently logged in divided by the preset gray scale value is less than 2 (hit gray scale);
when the current time is 1:00, the time length from 0:00 is 60 minutes, and the gray scale value at this time is 60/600 ═ 10%, assuming that the preset gray scale value is 100, therefore, the downloadable set of the offline package a2.0 at 0:12 can be set as the client whose remainder of the account identifier currently logged in divided by the preset gray scale value is less than 10 (hit gray scale);
when the current time is 10:00, the time length from 0:00 is 600 minutes, and the gray scale value at this time is 600/600 ═ 100%, assuming that the preset gray scale value is 100, therefore, the downloadable set of offline package a2.0 at 0:12 can be set as the client whose remainder of the account id currently logged in divided by the preset gray scale value is less than 100 (hit gray scale).
For example, as shown in fig. 2A, a table for adjusting a downloadable set according to a gray scale value is provided according to an exemplary embodiment, where the downloadable set is determined according to the gray scale value, assuming that a preset gray scale value is 100, and a gray scale in the table represents an offline package download value determined according to an account identifier of an account currently logged in by a client, where the offline package download value may be represented as a remainder of dividing the account identifier of the account currently logged in by the preset gray scale value; or, the value obtained by rounding the ratio of the current account identifier logged in by the client to the preset integer may be used as the offline package download value.
For example, if the account identifier of the account currently logged in by the client is 1001 and the preset gray value is 100, the remainder is 1; the account id of the account currently logged in by the client is 1010, and the remainder is 10, and the client can currently download the offline package assuming that the downloadable set can represent the client with the offline package download value less than 50.
Or the account identifier of the account currently logged in by the client is 1001, the preset integer is 100, the ratio is 10.01, and the lower integer is 10; if the account id of the account currently logged in by the client is 1010, the remainder is 10, and if the downloadable set can represent a client with an offline package download value less than 5, the client cannot currently download the offline package.
Optionally, the range of the account identifier may be adjusted according to the gray scale value, so as to adjust the downloadable set.
Assuming that ten thousand registered accounts exist, the account identification belongs to 1-10000, a free off-line package is created at 0:00 time, the gray scale value is 10% after 1 hour, 20% after 2 hours, 30% after 3 hours, etc., so that when the time length from the creation of a new offline packet is 1 hour, it may be set that 10% of the 10000 registered accounts correspond to clients that can download, when the time length from the creation of the new offline package is 2 hours, 20% of the 10000 registered accounts corresponding to the client can be set to be downloaded, in 10 hours, clients corresponding to 100% of the 10000 accounts can be downloaded, specifically, referring to the table shown in fig. 2B, accounts with 10% or less, that is, accounts with 10% or less of the preset account identifier, can be downloaded (for example, 10% of the preset account identifier is 9001-10000); accounts with 20% or less account ID within 20% of the preset account ID can be downloaded (for example, the preset account ID of 20% is 8001 ~ 10000).
Conversely, when the gray scale value is 10%, it may be set that a client corresponding to an account other than 90% may be downloaded, and when the gray scale value is 20%, it may be set that a client corresponding to an account other than 80% may be downloaded, and so on, specifically referring to the table shown in fig. 2C, where the account other than 90% means that an account id other than 90% is downloaded in advance (for example, when the account id of 90% is 1 to 9000 in advance, an account id of 9001 to 1000 is downloaded).
And in the second adjustment mode, the network side equipment periodically determines the range of the account identifier, and adjusts the downloadable set of the new offline package according to the range of the account identifier after the range of the account identifier is determined every time.
In the embodiment of the disclosure, the accounts logged in by the client are uniform, and the account identifications are sequentially increased.
Assuming that the account id ranges are adjusted every 10 minutes, when the administrator creates a new offline package B2.0 (time 0:00), the account id ranges of the currently downloadable offline package B2.0 are: 1 to 1000; the account identifier range of the downloadable offline package B2.0 corresponding to the time between 0:00 and 0:10 (including 0:00 and not including 0:10) is as follows: 1-1000, the downloadable set can be represented as a client with an account identifier of 1-1000.
Adjusting the range of the account identifier once at the time of 0:10, and if the range of the client capable of downloading the offline package B2.0 is adjusted to the client with the currently logged-in account identifier range of 1-2000, determining that the range of the account identifier of the currently downloadable offline package B2.0 is: 1-2000; the account identifier range of the downloadable offline package B2.0 corresponding to the time between 0:10 and 0:20 (including 0:10 and not including 0:20) is as follows: 1-2000, the downloadable set can represent the client with the account identifier of 1-2000.
Adjusting the range of the account identifier once again at the time point of 0:20, for example, the adjusted range of the account identifier is 1 to 3000, and the time point of adjusting the range of the account identifier next time is 0:30, then the range of the account identifier of the downloadable offline package B2.0 corresponding to the time point between 0:20 and 0:30 (including 0:20 but not 0:30) is: 1-3000, the downloadable set can be represented as a client with an account identifier of 1-3000, and the like.
As shown in fig. 3, a schematic diagram of adjusting downloadable sets according to account identifiers according to an exemplary embodiment is provided, and it is assumed that downloadable sets of an offline package B2.0 are represented, as can be seen from the diagram, downloadable sets in 0: 00-0: 10 time period (including 0:00, not including 0:10 time) are all 1-1000, downloadable sets in 0: 10-0: 20 time period are all 1-2000, downloadable sets in 0: 20-0: 30 time period are all 1-3000, and the like, and it is assumed that a client requests a network-side device for a current downloadable set of the offline package B2.0 at time 0:06, and the downloadable set at this time is 1-1000; if the client requests the network side device for the current downloadable set of the offline package B2.0 at the time point 0:16, the current downloadable set is 1-2000.
And in the third adjustment mode, the network side equipment periodically determines the range of the geographic position, and adjusts the downloadable set of the new offline package according to the range of the geographic position after determining the range of the geographic position every time.
Optionally, each time the range of the geographic location is determined, the range of the geographic location may be ensured to be gradually increased, or the range of the geographic location may be ensured to be gradually decreased.
Taking the range of the geographic location gradually increasing as an example, assuming that the range of the geographic location is adjusted every 10 minutes, when the administrator creates a new offline package C2.0 (time 0:00), the range of the geographic location of the currently downloadable offline package C2.0 is: in Hebei province, the adjusted downloadable set can be represented as a client terminal of which the current geographic position of the corresponding user is within the Hebei province; adjusting the range of the geographical position once at 0:10, wherein the range of the adjusted geographical position is Hebei province and Beijing City, and the adjusted downloadable set can be represented as a client of the corresponding user whose current geographical position is within Hebei province or within Beijing City; and adjusting the range of the geographical position once again at the time of 0:20, wherein the range of the adjusted geographical position is Hebei province, Beijing City and Tianjin City, and the adjusted downloadable set can be represented as a client side of the corresponding user, wherein the current geographical position of the user is within Hebei province, within Beijing City or within Tianjin City, and the like.
Taking the range of the geographic location gradually decreasing as an example, assuming that the range of the geographic location is adjusted every 10 minutes, when the administrator creates a new offline package C2.0 (time 0:00), the range of the geographic location of the currently downloadable offline package C2.0 is: the adjusted downloadable set can be represented as a client of the corresponding user whose current geographic location is outside of the province of Hebei, Beijing and Tianjin; adjusting the range of the geographical position once at 0:10, wherein the range of the adjusted geographical position is Hebei province and Beijing City, and the adjusted downloadable set can be represented as a client of the corresponding user whose current geographical position is outside the Hebei province and Beijing City; the range of the geographical location is adjusted again at time 0:20, the range of the adjusted geographical location is north Hebei province, the adjusted downloadable set can be represented as a client of the corresponding user whose current geographical location is outside the north Hebei province, and the like.
For example, as shown in fig. 4, a schematic diagram of adjusting downloadable sets according to geographic locations according to an exemplary embodiment is provided, assuming that when an administrator creates a new offline package, a current downloadable set of the offline package is set to an area denoted by (r); then, a timing task is set to adjust the off-line package for 3 times of downloadable sets, the first adjustment is carried out when the distance from the creation time is 20 minutes, and the downloadable geographical range after adjustment is assumed to be the areas represented by the first time and the second time; performing second adjustment when the distance creation time is 40 minutes, and assuming that the downloadable geographical range after adjustment is the areas represented by the first, the second and the third; and performing third adjustment when the distance creation time is 60 minutes, wherein the downloadable geographic ranges after adjustment are (r), (c), (d) and (c).
In the embodiment of the present disclosure, when the client refers to an APP, the user corresponding to the client represents the user that logs in the client, and the current geographic location of the user corresponding to the client is the geographic location of the user that currently logs in the client; when the client is terminal equipment, the user corresponding to the client represents the user currently using the terminal, and the current geographic position of the user corresponding to the client is the geographic position of the user currently using the terminal.
Optionally, the network side device may adjust according to the set step length when adjusting the representation range or the geographic location range.
It should be noted that, the manner in which the network side device periodically adjusts the downloadable set of the new offline package recited in the embodiment of the present disclosure is only an example, and any manner in which the network side device periodically adjusts the downloadable set of the new offline package is applicable to the embodiment of the present disclosure.
In the embodiment of the present disclosure, after the client determines that there is a new offline package (or while the client determines that there is a new offline package), a request for acquiring a downloadable set of the new offline package is sent to the network side device, and after the network side device receives the request, the network side device determines a current downloadable set of the new offline package requested by the client, and sends the determined downloadable set to the client.
For example, after the client determines that there is a new offline package B2.0 at time 0:12, a downloadable set of the offline package B2.0 at time 0:12 is obtained from the network-side device, specifically, the client sends a request for obtaining the downloadable set of the offline package B2.0 to the network-side device, and after receiving the request, the network-side device determines that the current downloadable set of the offline package B2.0 is a client whose current geographic location is within the north province of Hebei, and then the network-side device sends the determined downloadable set to the client.
In the embodiment of the disclosure, after acquiring a current downloadable set of a new offline package, a client judges whether the client is in the current downloadable set according to client information, and if so, downloads the new offline package; otherwise, the current downloadable set of the new offline package is obtained again from the network side equipment after the preset waiting time is reached, and whether the offline package is in the current downloadable set is judged according to the client information until the offline package is determined to be in the current downloadable set.
Wherein the client information includes part or all of the following:
the account identification of the account currently logged in by the client and the current geographic position of the user corresponding to the client.
Optionally, there are many ways for the client to determine that the client is in the current downloadable set according to the client information, and the following are listed as some:
the first determining method is that when the client information is the account identifier of the account currently logged in by the client and the downloadable set is an interval determined according to the gray scale value, the specific process is as follows:
and if the offline package download value determined according to the currently logged account identifier is in the downloadable set, the client determines that the client is in the current downloadable set.
The off-line package download value is a numerical value which reflects that the off-line package can be downloaded currently through the account identifier, and when the off-line package download value is in the downloadable set, the off-line package download value indicates that a client which is logged in the account identifier used for determining the off-line package download value currently can download a new off-line package.
Optionally, there are many ways to calculate the download value of the offline package, two of which are listed below:
and calculating in a first mode, and taking the remainder of dividing the account identifier by a preset gray value as an offline package download value.
Assuming that the current gray scale value is 50% (at 1:00 time), the preset gray scale is 100, and the current downloadable user section of the new offline package D is the client with the remainder (i.e. the offline package download value) of the account identifier of the account currently logged in by the client divided by the preset gray scale being less than 50.
For example, the account id of the account currently registered by the client a is userID 1029, 1029 ÷ 100 ═ 10, and the remainder is 29, then the offline package download value is 29, which is smaller than the gray scale 50, and represents the hit gray scale, so that the client a can download a new offline package D at this time (time 1: 00); the identifier of the account currently registered by the client B is userID ═ 1056, 1056 ÷ 100 ═ 10, and the remainder is 56, then the offline package download value is 56, which is greater than the gray scale 50, indicating that the gray scale is not hit, and therefore the client B cannot download the new offline package D at this time (time 1: 00).
And in the second calculation mode, taking the numerical value obtained by rounding the ratio of the account identifier to the preset integer as the off-line package download value.
Wherein, the ratio can be rounded up or rounded down when rounding.
Taking the obtained ratio rounded down as an example, assuming that the current gray scale value is 50% (at 1:00 time), the preset integer is 100, and the current downloadable user section of the new offline package D is the client with a value (i.e., the offline package download value) smaller than 50, which is obtained by rounding the ratio of the account identifier of the account currently logged in by the client to the preset integer.
For example, the account id of the account currently registered by the client a is userID 1029, 1029 ÷ 100 ═ 10.29, and rounded down to 10, then the offline package download value is 10, which is smaller than the gray scale ratio 50, and represents the hit gray scale, so that the client a can download a new offline package D at this time (time 1: 00); if the identifier of the account currently logged in by the client B is userID 6056, 6056 ÷ 100 ═ 60.56, the offline package download value is 60, which is greater than the gray scale 50, indicating a miss gray scale, and thus the client B cannot download the new offline package D at this time (time 1: 00).
It should be noted that the calculation manner of the offline package download value recited in the embodiment of the present disclosure is only an example, and any offline package download value determined according to the currently logged account identifier is applicable to the embodiment of the present disclosure.
Determining the mode two, when the client information is the account identifier of the account currently logged in by the client and the downloadable set is the interval determined according to the account identifier, the specific process is as follows:
and if the downloadable set is an interval determined according to the account identifier and the currently logged account identifier is in the downloadable set, the client determines that the client is in the current downloadable set.
For example, the current (2:00 time) downloadable set of the offline package E is a client with an account identifier within 1-2000, the client A and the client B determine that a new offline package E exists at the 2:00 time, and the client A determines that the client A is in the current downloadable set if the account identifier of the account currently logged in by the client A is 200 and belongs to the range of 1-2000; assuming that the account identifier of the account currently logged in by the client B is 2200 and does not belong to the range of 1-2000, the client B determines that the client B is not in the current downloadable set.
Determining a mode III, when the client information is the current geographic position of the user corresponding to the client and the downloadable set is an interval determined according to the range of the geographic position, specifically performing the following process:
and if the downloadable set is an interval determined according to the range of the geographic position and the current geographic position of the user corresponding to the client is in the downloadable set, the client determines that the client is in the current downloadable set.
For example, the downloadable set currently (at time 3: 00) away from the package F is a client located in the north province of the river for the current geographic location, and assuming that the current geographic location of the user corresponding to the client a is Shijiazhuan city, it may be determined that the client a is in the current downloadable set; and if the current geographic position of the user corresponding to the client B is Beijing city, determining that the client B is not in the current downloadable set.
It should be noted that, the manner in which the client determines that the client is in the current downloadable set according to the client information in the embodiment of the present disclosure is only an example, and any manner in which the client determines that the client is in the current downloadable set according to the client information is applicable to the embodiment of the present disclosure.
In the embodiment of the present disclosure, if the client determines that the client is not in the current downloadable set according to the client information, the client re-acquires the current downloadable set of the new offline package from the network-side device after the preset waiting time is reached, and performs the determination again until the client determines that the client is in the downloadable set, so as to download the new offline package.
Assuming that the current gray scale value is 50% (at 1:00 time), the preset gray scale is 100, and the current downloadable user section of the new offline package D2.0 is the client whose remainder of the account identifier of the account currently logged in by the client divided by the preset gray scale is less than 50.
The account identifier of the account currently registered by the client a is userID 1029, 1029 ÷ 100 ═ 10, the remainder is 29, and 29 is smaller than the gray scale 50 (hit gray scale), so that a new offline package D2.0 can be downloaded; the account id of the account currently registered by the client B is userID 1066, 1066 ÷ 100 ═ 10, the remainder is 66, and 66 is greater than the gray scale 50 (missing gray scale), so that a new offline package D2.0 cannot be downloaded.
After waiting for a set time length, the client B needs to obtain a new downloadable set of the offline package from the network side device at the current time again, and judge whether the client B is in the current downloadable set again according to the client information.
For example, when the time length is 1:10 (assuming that the set time length is 10 minutes), the client B acquires the downloadable set at the time point of 1:10 from the network side device again, assuming that the gray scale value at this time is 67%, the account identifier of the account currently registered by the client B is userID 1066, 1066 ÷ 100 ÷ 10, the remainder is 66, and 66 is smaller than the gray scale 67 (hit gray scale), so that the client B can download a new offline package D2.0 at this time.
In the embodiment of the disclosure, the client determines that the client is in the current downloadable set according to the client information, then downloads the new offline package, and may or may not update after the client downloads the new offline package, and the client may prompt the user and determine to update the offline package or not update the offline package according to the selection of the user.
For example, as shown in fig. 5, after downloading a new offline package, the client may prompt the user to inquire whether to update (install) the offline package currently, and if the user clicks yes, the offline package is updated, and if the user clicks no, the offline package is not updated.
Fig. 6 is a flowchart illustrating an offline package downloading method according to an exemplary embodiment, which is applied to a client, and includes the following steps, as shown in fig. 6.
In S61, the client acquires a current downloadable set of the new offline package from the network-side device, where the downloadable set is used to indicate a range of clients that can download the new offline package;
in S62, if the client determines that the client itself is not in the current downloadable set according to the client information, the client acquires the current downloadable set of the new offline package from the network side device again until the client determines that the client itself is in the current downloadable set and then downloads the new offline package;
and the range of the client which can download the new offline package and is represented by the downloadable set acquired last time in the downloadable sets acquired two adjacent times is larger than the range of the client which can download the new offline package and is represented by the downloadable set acquired last time.
Optionally, the client information is an account identifier of an account currently logged in by the client;
the client determines that the client is in the current downloadable set by:
if the downloadable set is an interval determined according to a gray scale value and an offline package download value determined according to the currently logged account identifier is in the downloadable set, the client determines that the client is in the current downloadable set; or
And if the downloadable set is an interval determined according to the account identifier and the currently logged account identifier is in the downloadable set, the client determines that the client is in the current downloadable set.
Optionally, the client information is a current geographic location of a user corresponding to the client;
the client determines that the client is in the current downloadable set by:
and if the downloadable set is an interval determined according to the range of the geographic position and the current geographic position of the user corresponding to the client is in the downloadable set, the client determines that the client is in the current downloadable set.
Fig. 7 is a flowchart illustrating an offline package downloading method according to an exemplary embodiment, which is applied to a network side device, and includes the following steps, as shown in fig. 7.
In S71, the network side device periodically adjusts a downloadable set of a new offline package, where the downloadable set is used to indicate a range of clients that can download the new offline package, and the range of the clients that can download the new offline package indicated by the network side device after each adjustment is larger than the range of the clients that can download the new offline package indicated before the adjustment;
in S72, after receiving a request from a client to obtain the downloadable set of the new offline package, the network-side device notifies the client of the current downloadable set of the new offline package, so that the client downloads the new offline package after determining that the client is in the current downloadable set.
Optionally, the step of periodically adjusting the downloadable set of new offline packages by the network side device includes:
the network side equipment periodically determines the time length from the current moment to the creation time of the new off-line package, and after the time length is determined every time, the ratio of the time length determined this time to the preset total gray scale time is used as a gray scale proportion value, and the downloadable set of the new off-line package is adjusted according to the gray scale proportion value; or
The network side equipment periodically determines the range of the account identification, and adjusts the downloadable set of the new offline package according to the identification range after the range of the account identification is adjusted every time the range of the account identification is determined; or
And the network side equipment periodically determines the range of the geographic position, and adjusts the downloadable set of the new offline package according to the range of the geographic position after determining the range of the geographic position every time.
Fig. 8 is a flowchart illustrating a complete method for downloading an offline package according to an exemplary embodiment, which specifically includes the following steps:
s801: the network side equipment periodically adjusts the downloadable set of the new offline packet;
s802: the client sends a request for acquiring a new off-line package downloadable set to network side equipment;
s803: the network side equipment receives a request of a client for acquiring a new off-line package downloadable set;
s804: the network side equipment sends the current downloadable set of the new offline package to the client;
s805: the client receives the current downloadable set of the new offline package sent by the network side equipment;
s806: and the client downloads the new offline package after determining that the client is in the current downloadable set.
Fig. 9 is a block diagram illustrating an offline package download apparatus according to an exemplary embodiment. Referring to fig. 9, the apparatus includes an interval acquisition unit 900, an offline package download unit 901:
an interval obtaining unit 900 configured to perform obtaining, from a network side device, a current downloadable set of the new offline package, where the downloadable set is used to represent a range of clients that can download the new offline package;
an offline package downloading unit 901, configured to execute, if it is determined that the offline package is not in the current downloadable set according to the client information, acquiring the current downloadable set of the new offline package from the network side device again until the new offline package is downloaded after it is determined that the offline package is in the current downloadable set;
and the range of the client which can download the new offline package and is represented by the downloadable set acquired last time in the downloadable sets acquired two adjacent times is larger than the range of the client which can download the new offline package and is represented by the downloadable set acquired last time.
Optionally, the client information is an account identifier of an account currently logged in by the client;
the offline package downloading unit 901 is further configured to determine that the offline package downloading unit is within the current downloadable set by:
if the downloadable set is an interval determined according to a gray scale value and an offline package download value determined according to the currently logged account identifier is in the downloadable set, determining that the downloadable set is in the current downloadable set; or
And if the downloadable set is an interval determined according to the account identifier and the currently logged account identifier is in the downloadable set, determining that the downloadable set is in the current downloadable set.
Optionally, the apparatus further comprises:
a determining unit 902 configured to perform a remainder of dividing the account identifier by a preset gray value as the offline package download value.
Optionally, the client information is a current geographic location of a user corresponding to the client;
the offline package downloading unit 901 is further configured to determine that the offline package downloading unit is within the current downloadable set by:
and if the downloadable set is an interval determined according to the range of the geographic position and the current geographic position of the user corresponding to the client is in the downloadable set, determining that the downloadable set is in the current downloadable set.
Optionally, the offline package downloading unit 901 is specifically configured to:
and after waiting for the set duration, obtaining the downloadable set of the new offline package at the current moment from the network side equipment again.
Fig. 10 is a block diagram illustrating another off-line package download apparatus, according to an example embodiment. Referring to fig. 10, the apparatus includes section adjusting section 1000, notifying section 1001:
the interval adjusting unit 1000 is configured to perform periodic adjustment of a downloadable set of a new offline package, where the downloadable set is used to indicate a range of clients capable of downloading the new offline package, and the range of the clients capable of downloading the new offline package, which is indicated by the downloadable set after each adjustment of the network-side device, is greater than the range of the clients capable of downloading the new offline package, which is indicated before the adjustment;
a notification unit 1001 configured to perform, after receiving a request for a client to obtain the new off-line package downloadable set, notifying the client of the current downloadable set of the new off-line package, so that the client downloads the new off-line package after determining that the client is in the current downloadable set.
Optionally, the interval adjusting unit 1000 is specifically configured to:
periodically determining the time length from the current moment to the creation time of the new off-line package, taking the ratio of the time length determined this time to the preset total gray scale time as a gray scale proportion value after determining the time length once, and adjusting the downloadable set of the new off-line package according to the gray scale proportion value; or
Periodically determining the range of the account identifier, and adjusting the downloadable set of the new offline package according to the identifier range after the range of the account identifier is adjusted every time the range of the account identifier is determined; or
And periodically determining the range of the geographic position, and adjusting the downloadable set of the new offline package according to the range of the geographic position after determining the range of the geographic position every time.
Fig. 11 is a block diagram illustrating an electronic device 1100 for offline package downloading, according to an example embodiment, the apparatus comprising:
a processor 1110;
a memory 1120 for storing instructions executable by the processor 1110;
wherein the processor 1110 is configured to execute the instructions to implement any one of the offline package downloading methods applied to the client in the embodiments of the present disclosure.
In an exemplary embodiment, a storage medium comprising instructions, such as the memory 1120 comprising instructions, executable by the processor 1110 of the electronic device 1100 to perform the method described above is also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 12 is a block diagram illustrating an electronic device 1200 for offline package downloading according to an example embodiment, the apparatus comprising:
a processor 1210;
a memory 1220 for storing instructions executable by the processor 1210;
the processor 1210 is configured to execute the instructions to implement any offline package downloading method applied to the network-side device in the embodiments of the present disclosure.
In an exemplary embodiment, a storage medium comprising instructions, such as the memory 1220 comprising instructions, executable by the processor 1210 of the electronic device 1200 to perform the above-described method is also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The embodiment of the present disclosure further provides a computer program product, which, when running on an electronic device, causes the electronic device to execute any one of the offline package downloading methods applied to the client or any one of the methods that may be involved in the offline package downloading methods, according to the embodiment of the present disclosure.
The embodiment of the present disclosure further provides a computer program product, which when running on an electronic device, causes the electronic device to execute a method for implementing any one of the offline package downloading methods applied to a network-side device or any one of the methods that may be involved in any one of the offline package downloading methods according to the embodiment of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (18)

1. An offline package downloading method, comprising:
the method comprises the steps that a client side obtains a current downloadable set of a new offline package from network side equipment, wherein the downloadable set is used for representing the range of the client side capable of downloading the new offline package;
if the client determines that the client is not in the current downloadable set according to client information, the client acquires the current downloadable set of the new offline package from network side equipment again until the new offline package is downloaded after the client is determined to be in the current downloadable set, the client information comprises part or all of account identification of an account currently logged in by the client and a current geographic position of a user corresponding to the client, wherein when the client information comprises the account identification of the account currently logged in by the client, the downloadable set is a client set generated based on the account identification, and when the client information comprises the current geographic position of the user corresponding to the client, the downloadable set is a client set generated based on the geographic position;
and the range of the client which can download the new offline package and is represented by the downloadable set acquired last time in the downloadable sets acquired two adjacent times is larger than the range of the client which can download the new offline package and is represented by the downloadable set acquired last time.
2. The offline package downloading method according to claim 1, wherein the client information is an account identifier of an account currently logged in by the client;
the client determines that the client is in the current downloadable set by:
if the downloadable set is an interval determined according to a gray scale value and an offline package download value determined according to the currently logged account identifier is in the downloadable set, the client determines that the client is in the current downloadable set; or
And if the downloadable set is an interval determined according to the account identifier and the currently logged account identifier is in the downloadable set, the client determines that the client is in the current downloadable set.
3. The offline package downloading method according to claim 2, wherein the client determines the offline package downloading value by:
and the client takes the remainder of dividing the account identification by a preset gray value as the off-line package downloading value.
4. The offline package downloading method according to claim 1, wherein the client information is a current geographic location of a user corresponding to the client;
the client determines that the client is in the current downloadable set by:
and if the downloadable set is an interval determined according to the range of the geographic position and the current geographic position of the user corresponding to the client is in the downloadable set, the client determines that the client is in the current downloadable set.
5. The offline package downloading method according to any one of claims 1 to 4, wherein the step of the client re-acquiring the current downloadable set of the new offline package from the network-side device comprises:
and after waiting for the set duration, the client acquires the downloadable set of the new offline package at the current moment from the network side equipment again.
6. An offline package downloading method, comprising:
the network side equipment periodically adjusts a downloadable set of a new offline package, wherein the downloadable set is used for representing the range of clients capable of downloading the new offline package, and the range of the clients capable of downloading the new offline package represented by the downloadable set after each adjustment of the network side equipment is larger than the range of the clients capable of downloading the new offline package represented by the network side equipment before the adjustment;
after receiving a request of a client for acquiring the new off-line package downloadable set, the network side device notifies the client of the current downloadable set of the new off-line package, so that the client downloads the new offline package after determining that the client is in the current downloadable set according to the client information, the client information comprises part or all of the account identification of the account which the client is currently logged in and the current geographic position of the user corresponding to the client, wherein, when the client information comprises the account identification of the account which the client logs in currently, the downloadable set is a set of clients generated based on the account identification, and when the client information includes the current geographic location of the user corresponding to the client, the downloadable set is a set of clients generated based on the geographic location.
7. The offline package downloading method according to claim 6, wherein said step of periodically adjusting the downloadable set of new offline packages by the network-side device comprises:
the network side equipment periodically determines the time length from the current moment to the creation time of the new off-line package, and after the time length is determined every time, the ratio of the time length determined this time to the preset total gray scale time is used as a gray scale proportion value, and the downloadable set of the new off-line package is adjusted according to the gray scale proportion value; or
The network side equipment periodically determines the range of the account identification, and adjusts the downloadable set of the new offline package according to the identification range after the range of the account identification is adjusted every time the range of the account identification is determined; or
And the network side equipment periodically determines the range of the geographic position, and adjusts the downloadable set of the new offline package according to the range of the geographic position after determining the range of the geographic position every time.
8. An offline package downloading apparatus, comprising:
the interval acquisition unit is configured to acquire a current downloadable set of a new offline package from a network side device, wherein the downloadable set is used for representing a range of clients capable of downloading the new offline package;
an offline package downloading unit, configured to execute, according to client information, if it is determined that the client information is not in the current downloadable set, acquiring a current downloadable set of the new offline package from a network-side device again until the new offline package is downloaded after the client information is determined to be in the current downloadable set, where the client information includes part or all of an account identifier of an account where the client is currently logged in and a current geographic location of a user corresponding to the client, where when the client information includes the account identifier of the account where the client is currently logged in, the downloadable set is a client set generated based on the account identifier, and when the client information includes the current geographic location of the user corresponding to the client, the downloadable set is a client set generated based on the geographic location;
and the range of the client which can download the new offline package and is represented by the downloadable set acquired last time in the downloadable sets acquired two adjacent times is larger than the range of the client which can download the new offline package and is represented by the downloadable set acquired last time.
9. The offline package downloading device according to claim 8, wherein the client information is an account identifier of an account currently logged in by the client;
the offline package download unit is further configured to determine that itself is within the current downloadable set by:
if the downloadable set is an interval determined according to a gray scale value and an offline package download value determined according to the currently logged account identifier is in the downloadable set, determining that the downloadable set is in the current downloadable set; or
And if the downloadable set is an interval determined according to the account identifier and the currently logged account identifier is in the downloadable set, determining that the downloadable set is in the current downloadable set.
10. The offline package downloading apparatus of claim 9, wherein said apparatus further comprises:
the determining unit is configured to execute a remainder of dividing the account identifier by a preset gray value as the offline package download value.
11. The offline package downloading device of claim 8, wherein the client information is a current geographic location of a user corresponding to the client;
the offline package download unit is further configured to determine that itself is within the current downloadable set by:
and if the downloadable set is an interval determined according to the range of the geographic position and the current geographic position of the user corresponding to the client is in the downloadable set, determining that the downloadable set is in the current downloadable set.
12. The offline package downloading device according to any one of claims 8 to 11, wherein the offline package downloading unit is specifically configured to:
and after waiting for the set duration, obtaining the downloadable set of the new offline package at the current moment from the network side equipment again.
13. An offline package downloading apparatus, comprising:
the interval adjusting unit is configured to perform periodic adjustment on a downloadable set of a new offline package, wherein the downloadable set is used for representing the range of clients capable of downloading the new offline package, and the range of the clients capable of downloading the new offline package represented by the downloadable set after each adjustment of the network-side device is larger than the range of the clients capable of downloading the new offline package represented by the network-side device before the adjustment;
a notification unit configured to perform notifying the client of the current downloadable set of the new offline package after receiving a request of the client to acquire the new downloadable set of the offline package, so that the client downloads the new offline package after determining that the client is in the current downloadable set according to the client information, the client information comprises part or all of the account identification of the account which the client is currently logged in and the current geographic position of the user corresponding to the client, wherein, when the client information comprises the account identification of the account which the client logs in currently, the downloadable set is a set of clients generated based on the account identification, and when the client information includes the current geographic location of the user corresponding to the client, the downloadable set is a set of clients generated based on the geographic location.
14. The offline package downloading device of claim 13, wherein the interval adjusting unit is specifically configured to:
periodically determining the time length from the current moment to the creation time of the new off-line package, taking the ratio of the time length determined this time to the preset total gray scale time as a gray scale proportion value after determining the time length once, and adjusting the downloadable set of the new off-line package according to the gray scale proportion value; or
Periodically determining the range of the account identifier, and adjusting the downloadable set of the new offline package according to the identifier range after the range of the account identifier is adjusted every time the range of the account identifier is determined; or
And periodically determining the range of the geographic position, and adjusting the downloadable set of the new offline package according to the range of the geographic position after determining the range of the geographic position every time.
15. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the offline package downloading method of any one of claim 1 to claim 5.
16. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the offline package download method of any one of claim 6 or claim 7.
17. A storage medium, wherein instructions in the storage medium, when executed by a processor of an offline package downloading apparatus, enable the offline package downloading apparatus to perform the offline package downloading method according to any one of claims 1 to 5.
18. A storage medium, wherein instructions in the storage medium, when executed by a processor of an offline package download apparatus, enable the offline package download apparatus to perform the offline package download method according to any one of claim 6 or claim 7.
CN201910616829.7A 2019-07-09 2019-07-09 Offline package downloading method and device, electronic equipment and storage medium Active CN110401702B (en)

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 CN110401702A (en) 2019-11-01
CN110401702B true 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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017157178A1 (en) * 2016-03-15 2017-09-21 阿里巴巴集团控股有限公司 Mobile terminal application update method and device
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

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9374427B2 (en) * 2011-11-01 2016-06-21 Rahul Shekher Geographical location based cloud storage
CN103309694B (en) * 2012-03-14 2016-09-14 腾讯科技(深圳)有限公司 Application program update method and apparatus
US20150304436A1 (en) * 2014-04-16 2015-10-22 Facebook, Inc. Nearby Friend Notifications on Online Social Networks
US20160247126A1 (en) * 2015-02-25 2016-08-25 Geoffrey R. Gehrke Server supported mobile application for scheduling or conducting transactions
CN104852986B (en) * 2015-05-28 2018-09-28 北京奇艺世纪科技有限公司 A kind of providing method and equipment of what's new
US10123163B2 (en) * 2016-10-15 2018-11-06 Microsoft Technology Licensing, Llc Managing a user's geolocation home range
CN106550044B (en) * 2016-11-24 2020-03-03 腾讯科技(深圳)有限公司 Application downloading method, downloading server, downloading client and application downloading system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017157178A1 (en) * 2016-03-15 2017-09-21 阿里巴巴集团控股有限公司 Mobile terminal application update method and device
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

Also Published As

Publication number Publication date
CN110401702A (en) 2019-11-01

Similar Documents

Publication Publication Date Title
CN106888270B (en) Method and system for back source routing scheduling
EP3876492B1 (en) Method, apparatus, and system for downloading data block of resource file
US20180205976A1 (en) Method and apparatus of obtaining video fragment
CN110825394B (en) Automatic initialization method, system and storage medium for application program of cloud mobile phone
US8966121B2 (en) Client-side management of domain name information
CN102082807B (en) File transmitting method and device based on multiple protocols
CN106664592B (en) Method and system for content distribution and corresponding computer readable medium
CN110417870B (en) Configuration file management method, device, equipment and storage medium
JPWO2007032549A1 (en) Content distribution method and system
US9639629B1 (en) Accelerating the downloading of content to an application
CN107026758B (en) Information processing method, information processing system and server for CDN service update
JP2014532213A (en) Network resource download information sharing control system and method
CN102077189A (en) Request routing using network computing components
US20240106890A1 (en) Peer-to-peer network scheduling method and system
CN103312733A (en) Method and device for information processing
US20120290411A1 (en) Method and Apparatus for Display of Operator Ads
CN107040615B (en) Downloading method of media fragment, terminal and computer readable storage medium
CN105743945A (en) Method and system for downloading files on the basis of switching download sources
CN111064780B (en) Multitask content updating method, device, equipment and medium
WO2011015009A1 (en) Method and server for obtaining page data, and method and server for updating page
CN111327697A (en) Data downloading method, device, equipment and storage medium
CN101115180B (en) Electronic program menu system and functional module dynamic load operating method
CN110401702B (en) Offline package downloading method and device, electronic equipment and storage medium
US9729650B2 (en) Providing data to a network terminal
CN115396398B (en) Derived domain name access method, system, device, storage medium and program product

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