CN108960378A - A kind of data download method, system, device and storage medium - Google Patents
A kind of data download method, system, device and storage medium Download PDFInfo
- Publication number
- CN108960378A CN108960378A CN201810899036.6A CN201810899036A CN108960378A CN 108960378 A CN108960378 A CN 108960378A CN 201810899036 A CN201810899036 A CN 201810899036A CN 108960378 A CN108960378 A CN 108960378A
- Authority
- CN
- China
- Prior art keywords
- data
- client
- dimensional code
- mark
- resource
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
- G06K17/0022—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Abstract
The embodiment of the invention discloses a kind of data download method, system, device and storage mediums.The embodiment of the present invention can receive the access request that client is sent based on default two dimensional code;According to access request, the mark of client, accessed data resource and history identification are obtained, wherein history identification is the client identification for downloading data in data resource according to two dimensional code;The mark of client is searched in history identification;If not finding the mark of client in history identification, target data is determined in the data to be selected of data resource, wherein data to be selected are the data that do not downloaded by any client according to two dimensional code in data resource;Target data is returned into client.The intermediary that the program downloads two dimensional code as data, also, different clients is quickly distinguished by client identification, it is downloaded to realize the orderly access of data resource and the difference of data in server-side, improves the efficiency of data downloading.
Description
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of data download method, system, device and storage medium.
Background technique
With the development of communication technology, the terminals such as mobile phone, tablet computer can be used from server downloading data in user, into
Row web page browsing or video download etc..It is usually all respectively to request downloading number to server when terminal is from server downloading data
According to file.
In the research and practice process to the prior art, it was found by the inventors of the present invention that multiple terminals are simultaneously to service
When the file that device request downloading same file or same file are concentrated, since each terminal is to send service to server respectively to ask
It asks, server needs take considerable time and flow, return to complete file data to each terminal respectively, or determine each end
The local file data situation in end returns again to corresponding data, in this way, the efficiency for resulting in data to download is very low.
Summary of the invention
The embodiment of the present invention provides a kind of data download method, system, device and storage medium, it is intended to solve data downloading
The technical issues of low efficiency.
The embodiment of the present invention provides a kind of data download method, comprising:
Receive the access request that client is sent based on default two dimensional code;
According to the access request, the mark of the client, accessed data resource and history identification are obtained,
In, the history identification is the client identification for downloading data in the data resource according to the two dimensional code;
The mark of the client is searched in the history identification;
If not finding the mark of the client in the history identification, in the data to be selected of the data resource
Determine target data, wherein the data to be selected are not by any client in the data resource according under the two dimensional code
The data carried;
The target data is returned into the client.
In some embodiments, described that the target data is returned into the client, later further include:
It is added to the mark of the client as history identification in the two dimensional code, to update the two dimensional code, supplies
The history identification that other clients are carried according to the updated two dimensional code configuration access request and wherein.
It is in some embodiments, described to be added to the mark of the client as history identification in the two dimensional code,
Include:
It whether determines in the data resource comprising data to be selected;
If including data to be selected in the data resource, it is added to institute for the mark of the client as history identification
It states in two dimensional code.
In some embodiments, the data resource includes more parts of data files, described in the to be selected of the data resource
Target data is determined in data, comprising:
The data text that do not downloaded by any client according to the two dimensional code is filtered out in the more parts of data files
Part, as data to be selected;
According to preset rules, one or more parts data file is selected in the data to be selected as target data.
It is in some embodiments, described that target data is determined in the data to be selected of the data resource, comprising:
Obtain the access order of the client;
According to the access order, target data is determined in the data to be selected of the data resource.
In some embodiments, comprising:
According to the access order, cutting is carried out to the data to be selected, the data slot that cutting is obtained is as target
Data.
In some embodiments, the mark of the client is searched in the history identification, later further include:
If finding the mark of the client in the history identification, by the whole of data resource data to be selected
The client is returned to, or, not returning to any data in the data resource to the client.
The embodiment of the present invention also provides a kind of data downloading system, comprising:
First client, for giving the server-side according to preset two dimensional code configuration access request Concurrency;
Server-side, the access request sent for receiving the client based on default two dimensional code;It is asked according to the access
It asks, obtains the mark of the client, accessed data resource and history identification, wherein the history identification is basis
The two dimensional code downloaded the client identification of data in the data resource;The client is searched in the history identification
Mark;If not finding the mark of the client in the history identification, in the data to be selected of the data resource
Determine target data, wherein the data to be selected are not by any client in the data resource according under the two dimensional code
The data carried;The target data is returned into the client.
In some embodiments, the system also includes the second clients;
First client is also used to the mark of first client being added to the two dimension as history identification
In code, to update the two dimensional code;
Second client, the history for requesting and wherein carrying according to the updated two dimensional code configuration access
Mark, and it is sent to the server-side.
The embodiment of the present invention also provides a kind of data download apparatus, comprising:
Receiving unit, the access request sent for receiving client based on default two dimensional code;
Acquiring unit, for according to the access request, obtain the mark of the client, accessed data resource and
History identification, wherein the history identification is the client for downloading data in the data resource according to the two dimensional code
Mark;
Duplicate checking unit, for searching the mark of the client in the history identification;
Data cell provides if the mark for not finding the client in the history identification in the data
Target data is determined in the data to be selected in source, wherein the data to be selected are in the data resource not by any client root
The data downloaded according to the two dimensional code;
Download unit, for the target data to be returned to the client.
In some embodiments, described device further include:
Updating unit, for being added to the mark of the client as history identification in the two dimensional code, to update
The two dimensional code, the history mark carried for other clients according to the updated two dimensional code configuration access request and wherein
Know.
In some embodiments, the updating unit is specifically used for:
It whether determines in the data resource comprising data to be selected;It, will if in the data resource including data to be selected
The mark of the client is added in the two dimensional code as history identification.
In some embodiments, the data resource includes more parts of data files, and the data cell is specifically used for:
The data text that do not downloaded by any client according to the two dimensional code is filtered out in the more parts of data files
Part, as data to be selected;According to preset rules, one or more parts data file is selected in the data to be selected as number of targets
According to.
In some embodiments, the data cell is specifically used for:
Obtain the access order of the client;According to the access order, in the data to be selected of the data resource
Determine target data.
In some embodiments, the data cell is also used to:
According to the access order, cutting is carried out to the data to be selected, the data slot that cutting is obtained is as target
Data.
In some embodiments, the data cell is also used to:
If finding the mark of the client in the history identification, by the whole of data resource data to be selected
The client is returned to, or, not returning to any data in the data resource to the client.
The embodiment of the present invention also provides a kind of storage medium, and the storage medium is stored with a plurality of instruction, and described instruction is suitable
It is loaded in processor, to execute the step in any data method for down loading provided by the embodiment of the present invention.
From the foregoing, it will be observed that the intermediary that the embodiment of the present invention downloads two dimensional code as data, also, it is fast by client identification
Speed distinguishes different clients, to realize the orderly access of data resource in server-side, server-side can perceive each client
The timing of access request is held, so as to effectively allow server-side decision to there emerged a which file of client downloads or file
Which part, so that multiple client can orderly download the different data in same data resource according to two dimensional code, it is real
The difference downloading of data is showed.Client can quickly return to the different fragments of same file respectively to each client as a result,
Or the different files that same file is concentrated, no longer need to the data for expending time verification client local, accordingly, multiple clients
The different files that end can download the different fragments of same file respectively or same file is concentrated, largely flow without expending
Amount goes to improve the efficiency of data downloading by difference downloading from client downloads partial data.In addition, subsequent, this multiple visitor
Family end can share mutually the file in the file fragment respectively downloaded or file set, to take complete data money
Source.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 a is the schematic diagram of a scenario of information interaction system provided in an embodiment of the present invention;
Fig. 1 b is the flow diagram of data download method provided in an embodiment of the present invention;
Fig. 2 a is the another flow diagram of data download method provided in an embodiment of the present invention;
Fig. 2 b is data downloading schematic diagram of a scenario provided in an embodiment of the present invention;
Fig. 3 a is another flow diagram of data download method provided in an embodiment of the present invention;
Fig. 3 b is another data downloading schematic diagram of a scenario provided in an embodiment of the present invention;
Fig. 4 a is the structural schematic diagram of data downloading system provided in an embodiment of the present invention;
Fig. 4 b is the another structural schematic diagram of data downloading system provided in an embodiment of the present invention;
Fig. 5 a is the structural schematic diagram of data download apparatus provided in an embodiment of the present invention;
Fig. 5 b is the another structural schematic diagram of data download apparatus provided in an embodiment of the present invention;
Fig. 6 is another structural schematic diagram of data download apparatus provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of information interaction system, which includes the data of any offer of the embodiment of the present invention
Download apparatus, the data download apparatus can integrate in the network equipment, such as server.In addition, the system can also include
The terminal devices such as client.
With reference to Fig. 1 a, the embodiment of the invention provides a kind of information interaction systems, comprising: client and server, client
End passes through network connection with server.It wherein, include router, gateway etc. network entity in network, in figure and to illustrate.
Client can carry out information exchange by cable network or wireless network and server, for example can download from server shared
File, game data and/or application software information etc..Wherein, client can be mobile phone, tablet computer, laptop etc.
Equipment, Fig. 1 a are so that client is mobile phone as an example.Application needed for various users can be equipped in the client, for example have
The application (such as news application, question and answer software etc.) of amusement function, for another example have service function application (such as digital map navigation application,
Purchase by group application etc.).
Based on system shown in above-mentioned Fig. 1 a, the corresponding two dimensional code of server based on data resource distribution is as default two dimension
Yard, it not only may include the address link of accessed data resource in two dimensional code, can also include having been downloaded according to the two dimensional code
Cross the information such as client identification of data in the data resource.
Client can scan the default two dimensional code, and access request is sent to by corresponding configuration access request by network
Server, with the downloading data from server.Server can receive the access request that client is sent based on default two dimensional code;
According to access request, the mark of client, accessed data resource and history identification are obtained, wherein history identification is root
The client identification of data in data resource was downloaded according to two dimensional code;The mark of client is searched in history identification;If going through
The mark for not finding client in history mark, then determine target data, wherein data to be selected in the data to be selected of data resource
For the data that do not downloaded by any client according to two dimensional code in data resource;Target data is returned into client.
The intermediary that the program downloads two dimensional code as data, also, different visitors is quickly distinguished by client identification
Family end, to realize the orderly access of data resource in server-side, server-side can perceive each client access request when
Sequence, so as to effectively allow server-side decision to there emerged a which part of which file of client downloads or file, thus
Allow multiple client orderly to download the different data in same data resource according to two dimensional code, realizes the difference of data
Downloading.Client can quickly return to the different fragments or same file collection of same file respectively to each client as a result,
In different files, no longer need to expend the time verification client local data, accordingly, multiple client can be downloaded respectively
The different files that the different fragments or same file of same file are concentrated are gone under client without a large amount of flow is expended
Partial data is carried, the efficiency of data downloading is improved by difference downloading.In addition, subsequent, this multiple client can will be respective
The file fragment or the file in file set of downloading are shared mutually, to take complete data resource.
The example of above-mentioned Fig. 1 a is a system architecture example for realizing the embodiment of the present invention, and the embodiment of the present invention is not
It is limited to system structure shown in above-mentioned Fig. 1 a, is based on the system architecture, proposes each embodiment of the present invention.
As shown in Figure 1 b, the detailed process of the data access method can be such that
101, the access request that client is sent based on default two dimensional code is received.
For example, the download address link of the data resources such as shared file, game data is configured to two by data download apparatus
It ties up in code, for client scan downloading.In addition, data download apparatus can also correspond to configuration two dimensional code unique identifier,
The information such as effective time and/or effective download time.Wherein, the unique identifier of two dimensional code is used to uniquely indicate this two dimensional code,
To be distinguished with other two dimensional codes.The effective time of two dimensional code refers to two dimensional code from the time span for being generated to failure, such as 5
Minute or 10 minutes etc..Effective download time of two dimensional code refers to that one or more clients can download number based on this two dimensional code
According to the number of resource, data file in data resource is every to be based on that the downloading of this two dimensional code is primary by client, then this two dimensional code
Effective download time reduces primary.
The preset two dimensional code of the client scans such as mobile phone, tablet computer can be used when downloading file data in user.Its
In, two dimensional code (2-dimensional bar code) is alternatively referred to as two-dimensional bar code, is with specific geometric figure by a set pattern
The chequered with black and white figure being distributed on planar direction is restrained, can recorde the information such as data and/or symbol.It is carried under data
Setting may include the information such as the address link of data resource in the two dimensional code of offer.
Client parses two dimensional code, obtains the address link of wherein data resource, is linked according to this address to data and downloaded
Device sends access request.
Data download apparatus receives the access request of client transmission.
102, according to access request, the mark of client, accessed data resource and history identification are obtained, wherein go through
History is identified as the client identification for downloading data in data resource according to two dimensional code.
Data download apparatus parse access request, determine client this access data resource, such as video, audio,
Or the data resources such as document.
Also, data download apparatus obtains identification information according to access request.Wherein, identification information may include the client
End mark, according to the two dimensional code to have downloaded the client identification of data and/or the access of the client in the data resource suitable
Sequence etc..
Specifically, the mark of the client can be the unique identifier of the client, for example, IMEI
(International Mobile Equipment Identity, international mobile equipment identification number);Alternatively, can be the visitor
The terminal account that family end currently logs in, such as APPLE ID (account of iPhone company), millet account, Huawei's account etc.
Deng;It is, of course, also possible to be the identification information that other can distinguish different clients, such as the network information, the game currently logged in
Account etc..Client can be identified and be configured in access request when configuration access is requested, then data download apparatus can be with
Parsing obtains the client identification carried in access request;Or data download apparatus is in the access for receiving client transmission
After request, identification request is sent to the client, obtains the mark that client returns.
Referred to according to the client identification that the two dimensional code downloaded data in the data resource according to the two dimensional code
It is transmitted across access request to data download apparatus, and successfully downloaded the mark of the client of data in data resource.For example,
The acquisition of history identification can have following two ways:
First is that client can parse two dimensional code when configuration access is requested, obtain wherein carry according to the two dimension
Code downloaded the client identification of data in the data resource, and will download data in the data resource according to the two dimensional code
Client identification be configured in access request, then data download apparatus can parse access request and obtain the root that wherein carries
The client identification that data in the data resource were downloaded according to the two dimensional code is gone through using these client identifications as history identification
History mark may include the mark of 0, one or more clients.It should be noted that if not including in two dimensional code, basis should
Two dimensional code downloaded the client identification of data in the data resource, then did not included in access request and downloaded according to the two dimensional code
The client identification of data in the data resource is crossed, therefore, history identification is configured sky by data download apparatus.
First is that data download apparatus obtains the two dimensional code unique identifier carried in access request, recorded under query history
Record obtains and had downloaded the client identifications of data in the data resource according to the two dimensional code, using these client identifications as
History identification.It, will if there is no client to download the data in the data resource according to the two dimensional code in history Download History
History identification is configured to sky.
It should be noted that the acquisition modes of both the above history identification are by way of example only, the acquisition side of history identification
Formula includes being not limited to both the above.
The access order of the client refers to the client in the client according to the two dimensional code downloading data resource
Sequence.Client can parse two dimensional code when configuration access is requested, and obtain the access order wherein carried, and the access is suitable
Sequence is configured in access request, then data download apparatus can parse the access order for obtaining and carrying in access request;Or number
According to download apparatus after the access request for receiving client transmission, the two dimensional code unique identification carried in access request is obtained
Code, query history Download History obtain the access order of the client.
103, the mark of client is searched in history identification.
Data download apparatus searches the mark of the client in history identification, to whether to detect the client
The data in data resource were downloaded according to the two dimensional code.
Specifically, data download apparatus can by the client identification in history identification respectively one by one with the mark of the client
Knowledge is compared.If having found the mark completely the same with the client identification in history identification, determine in history identification
In find the mark of the client;If not finding the mark completely the same with the client identification in history identification, determine
The mark of the client is not found in history identification.
If history identification is sky, prove that the client is first according to data in the two dimensional code downloading data resource
, determine the mark for not finding the client in history identification.
If 104, not finding the mark of client in history identification, target is determined in the data to be selected of data resource
Data, wherein data to be selected are the data that do not downloaded by any client according to two dimensional code in data resource.
If not finding the mark of the client in history identification, it is determined that the client is for the first time according under the two dimensional code
The data in data resource are carried, are allowed to its returned data.
Data download apparatus can be determined in data resource and be downloaded according to the two dimensional code according to history Download History
Then the data configuration that do not downloaded according to the two dimensional code in data resource is data to be selected by the data crossed.
Then, data download apparatus can using in data to be selected partial data or total data as target data, use
To return to the client.
Specifically, in some embodiments, data resource may be file set, including more parts of data files.If then data
Resource includes more parts of data files, then step " target data is determined in the data to be selected of data resource " may include: more
The data file that do not downloaded by any client according to two dimensional code is filtered out in part data file, as data to be selected;According to
Preset rules select one or more parts data file as target data in data to be selected.
For example, the two dimensional code unique identifier carried in the available access request of data download apparatus, according under history
Record is recorded, the data file downloaded by other clients according to the two dimensional code in data resource is searched, thus in data
The data file that do not downloaded by any client according to the two dimensional code is filtered out in resource, as data to be selected.
Then, data download apparatus selects one or more parts data file work according to default rule in data to be selected
For target data.Wherein, default rule can be quantity rule, for example, selecting preset quantity in data to be selected every time
Data file, as target data.Wherein, preset quantity can be 1 or 2 etc., specifically can flexible configuration according to actual needs.
In some embodiments, the step mark of client " in history identification search " if after can also include:
The mark of client is found in history identification, then the whole of data resource data to be selected is returned into client, or, not to client
Any data in returned data resource.
If not finding the mark of the client in history expression, it is determined that the client is not for the first time according to the two dimensional code
Data in downloading data resource.
As an implementation, data download apparatus thinks that the client needs whole numbers in downloading data resource
According to then the whole data to be selected in data resource being returned to the client.
As another embodiment, data download apparatus does not return to different data to same client, then can look into
Historical record is ask, the data for once returning to the client are sent once to the client again, client last downloaded is avoided to lose
Data resource caused by situations such as losing is not downloaded completely.
As another embodiment, data download apparatus can also be not responding to the access request of the client, not to this
Any data in client returned data resource.It is, of course, also possible to return to notification message to client, the client has been notified
Through downloading the data in this data resource.
105, target data is returned into client.
After determining target data, target data is returned to client by data download apparatus, under the difference for realizing data
It carries.
From the foregoing, it will be observed that the intermediary that the program downloads two dimensional code as data, also, quickly distinguished by client identification
Different clients, to realize the orderly access of data resource in server-side, server-side can perceive each client access
The timing of request, so as to effectively allow server-side decision to there emerged a which portion of which file of client downloads or file
Point, so that multiple client can orderly download the different data in same data resource according to two dimensional code, realize number
According to difference downloading.Client quickly can return to the different fragments of same file or same to each client respectively as a result,
Different files in one file set no longer need to the data for expending time verification client local, and accordingly, multiple client can be with
The different files that the different fragments or same file for downloading same file respectively are concentrated, without expend a large amount of flow go from
Client downloads partial data improves the efficiency of data downloading by difference downloading.In addition, subsequent, this multiple client can
To share the file in the file fragment respectively downloaded or file set mutually, to take complete data resource.
Citing, is described in further detail by the method according to described in preceding embodiment below.
For example, referring to Fig. 2 a, in the present embodiment, it will specifically be integrated with the data download apparatus and be said in the server
It is bright.Such as Fig. 2 b, it shares client a, client b and same number is successively downloaded according to same two dimensional code in client c tri- objective ends
According to the data in resource.
201, the access request that client is sent based on default two dimensional code is received.
For example, server links, configuration is pre- in the downloading request for receiving data resource according to the address of the data resource
If two dimensional code is simultaneously shown, downloaded for client scan.
Client a scans default two dimensional code first, according to the address link configuration access request in two dimensional code, and is sent to
Server.
Server receives the access request that client a is sent.
202, according to access request, the mark of client, accessed data resource and history identification are obtained, wherein go through
History is identified as the client identification for downloading data in data resource according to two dimensional code.
Server is according to access request, the mark of acquisition client a, accessed data resource and history identification.Specifically
Embodiment can refer to the description of step 102 in above-mentioned data download method embodiment.
Wherein, by taking client a as an example, since client a is first according to data in the two dimensional code downloading data resource
, therefore, historical data is sky.
203, the mark of client is searched in history identification.
By taking client a as an example, since historical data is sky, client is not found in server judgement in the historical data
Hold the mark of a.
If 204, not finding the mark of client in history identification, target is determined in the data to be selected of data resource
Data, wherein data to be selected are the data that do not downloaded by any client according to two dimensional code in data resource.
By taking client a as an example, server does not find the mark of client a in the historical data, therefore, in data resource
Target data is determined in data to be selected.
In some embodiments, before step 201, the client terminal quantity of the available input of server, by two dimensional code
Corresponding data resource cutting be equivalent amount more parts of data slots, the size of this more parts of data slots can be it is equivalent,
It is also possible to the content ordering according to data resource.Then server can will filter out not any in more parts of data slots
The data slot that client was downloaded according to the two dimensional code, as data to be selected.Then, according to preset rules, in data to be selected
In select one or more parts data slot as target data.
Or data resource includes more parts of data files, then the client terminal quantity of the available input of server, by the number
More parts of data files of equivalent amount are divided into according to more parts of data files in resource.Then server can will be in more parts of data texts
The data file that do not downloaded by any client according to the two dimensional code is filtered out in part, as data to be selected.Then, according to pre-
If regular, one or more parts data file is selected in data to be selected as target data.
In the present embodiment, it is illustrated for including file 1, file 2 and file 3 in data resource.
By taking client a as an example, server can take out portion at random in more parts of data files and be used as target data, or
According to the sequence of more parts of data files, using first part of data file as file destination, for returning to client a.For example, clothes
Business device regard file 1 as file destination.
205, target data is returned into client.
By taking client a as an example, file 1 is returned to client a by server.
206, the mark of client is added in two dimensional code as history identification, to update two dimensional code, for other clients
The history identification that end is requested according to updated two dimensional code configuration access and wherein carried.
It should be noted that step 206 can execute after step 205 in the present embodiment, it can also be with step 205
It is synchronous to execute, it specifically can flexible configuration according to actual needs.
Wherein, include history identification information in the two dimensional code, have recorded and data money was downloaded according to the two dimensional code
The client identification namely history identification of data in source.
The client identification of current downloading data is added in two dimensional code by server as history identification, to update two dimension
Code, and show updated two dimensional code.
Subsequent, other clients can be according to updated two dimensional code, configuration access request, to download data money
Other data in source.For example, other clients can parse two dimensional code, obtain the data resource address link wherein carried and
The information such as history identification, configuration access are requested, and carry the mark of other clients in the access request of configuration and according to two dimension
The history identification that code obtains.
It is subsequent, whenever have client according to the data in the two dimensional code downloading data resource after, server is required this
The mark of a little clients is added in two dimensional code as history identification, updates two dimensional code.
By taking client a as an example, server is added to the mark of client a as history identification in the two dimensional code, i.e., sharp
The two dimensional code is updated with the mark of client a, and shows the two dimensional code in client a or the display interface of server.
It after client b scans the updated two dimensional code, is requested according to updated two dimensional code configuration access, access is asked
The mark of client b, the data resource of access and history identification are carried in asking.Wherein, history identification includes the mark of client a
Know.
Server receives the access request of client b, and parsing obtains the mark of client b, the data resource of access and goes through
History mark.Server does not find the mark of client b in history identification, then target is determined in the data to be selected of data resource
Data.Wherein, data to be selected include file 2 and file 3.The present embodiment is lifted file 2 as target data using server
Example explanation.
Then, file 2 is returned to client b by server, using the mark of client b as history identification be configured to this two
It ties up in code, to update the two dimensional code again, and shows the two dimensional code in client b or the display interface of server.
In some embodiments, whether step 205 may include: in determining data resource comprising data to be selected;If data
Include data to be selected in resource, is then added to the mark of client in two dimensional code as history identification.
Specifically, whether server can include data to be selected according in history Download History detection data resource.For example,
Whether server can be searched in data resource according to history Download History also not by other clients according under the two dimensional code
The data carried, if so, then determining in data resource comprising data to be selected;If nothing, determine not including in data resource to be selected
Data.Alternatively, server can also count the number that the data in the data resource were downloaded by client according to the two dimensional code,
If this number is equal to effective download time of the two dimensional code, determine not including data to be selected in data resource;If this number is small
In effective download time of the two dimensional code, then determine in data resource comprising data to be selected.
If in data resource including data to be selected, it is determined that the data of the data resource are not yet by complete according to the two dimensional code
Whole downloading, there are also clients to need to download data to be selected therein, and server is using the mark of the client as history identification
It is added in the two dimensional code, to update the two dimensional code.
In some embodiments, if not including data to be selected in data resource, failure state is set by two dimensional code.If
Include no longer data to be selected in data resource, then proves that the data resource is completely downloaded according to the two dimensional code, this two
The effect of dimension code has been completed, and to avoid the orderly downloading of data resource from being influenced by it, is set to fail.Hereafter, any
Client cannot all download the data in the data resource further according to the two dimensional code.
In other embodiments, if not including data to be selected in data resource, by the history identification in two dimensional code
It empties, so that each client re-downloads data therein again.
For example, client c is after according to updated two dimensional code downloading file 3 again, server can be by the two dimension
Code is configured to failure state, or history identification therein is emptied.
From the foregoing, it will be observed that the embodiment of the present invention is during client downloads data, using the mark of client as history
Mark is added in two dimensional code, and to update two dimensional code, it is suitable to realize the access for recording client by two dimensional code for the program as a result,
Sequence determines which client has accessed convenient for server and downloaded data, determines which data of which client downloads, two dimension
It is convenient that code is managed as information carrier, and server-side is not necessarily to record the relevant information of a large amount of two dimensional codes, improves data difference downloading
Efficiency.
The method according to described in preceding embodiment below elaborates citing again.
For example, referring to Fig. 3 a, in the present embodiment, it will be specifically integrated in cleaning interchanger and be carried out with data download apparatus
Explanation.By taking Fig. 3 b as an example, shares client a, client b and client c tri- objective ends are successively downloaded together according to same two dimensional code
Data in one data resource.The data resource includes a complete file X.
301, the access request that client is sent based on default two dimensional code is received.
For example, server links, configuration is pre- in the downloading request for receiving data resource according to the address of the data resource
If two dimensional code is simultaneously shown, downloaded for client scan.
Client a scans default two dimensional code first, according to the address link configuration access request in two dimensional code, and is sent to
Server.
Server receives the access request that client a is sent.
302, according to access request, the mark of client, accessed data resource and history identification are obtained, wherein go through
History is identified as the client identification for downloading data in data resource according to two dimensional code.
Server is according to access request, the mark of acquisition client a, accessed data resource and history identification.Specifically
Embodiment can refer to the description of step 102 in above-mentioned data download method embodiment.
Wherein, by taking client a as an example, since client a is first according to data in the two dimensional code downloading data resource
, therefore, historical data is sky.
303, the mark of client is searched in history identification.
By taking client a as an example, since historical data is sky, client is not found in server judgement in the historical data
Hold the mark of a.
If 304, not finding the mark of client in history identification, the access order of client is obtained.
Wherein, the access order of client refers to that the client is which a sent based on the two dimensional code to server is accessed
Request.
For example, client can parse the two dimensional code, the access order in the two dimensional code is configured in access request.Clothes
Business device can parse access request, obtain the access order wherein carried.Alternatively, server can also be to record under query history
Record, obtains the number that data in the data resource are downloaded according to the two dimensional code, to obtain the access order of the client.
305, according to access order, target data is determined in the data to be selected of data resource.
Server can determine number to be selected in the data slot in advance obtaining data resource cutting according to default value
According to.Then, server selects corresponding data slot as file destination according to access order in data to be selected.Wherein, in advance
If numerical value can be the preset client terminal quantity for downloading the data resource according to the two dimensional code, be also possible to the two dimensional code has
Imitate download time.
In some embodiments, can be when client downloads file, interim cutting data resource obtains number of targets
According to step 305 may include: to carry out cutting to data to be selected, the data slot that cutting is obtained is as mesh according to access order
Mark data.
Server determines the residue time that data to be selected are also to be downloaded in data resource according to access order and default value
Number, wherein default value can be the preset client terminal quantity that the data resource is downloaded according to the two dimensional code, be also possible to this
Effective download time of two dimensional code is also possible to preset total access times.
Then, by data to be selected according to residue degree and preset segmentation rules, cutting is carried out to data to be selected, cutting obtains
To data slot be target data.Wherein, preset segmentation rules can be equal cutting, according to current network state
Cutting etc..Hereby it is achieved that the segmentation of data resource is downloaded.
By taking client a as an example, server does not find the mark of client a in the historical data, therefore, obtains client a
Access order, be first.Server can determine that this document X number also to be downloaded is 3, then take according to access order
Business device can cut the data of one third in this document X, obtain data slot 1.Server regard this data slot 1 as target
Data.
306, target data is returned into client.
By taking client a as an example, file 1 is returned to client a by server.
Also, server can also be configured to the mark of client a as history identification in the two dimensional code, be somebody's turn to do with updating
Two dimensional code, and show and show the two dimensional code in client a or the display interface of server.
It after client b scans the updated two dimensional code, is requested according to updated two dimensional code configuration access, access is asked
The mark of client b, the data resource of access and history identification are carried in asking.Wherein, history identification includes the mark of client a
Know.
Server receives the access request of client b, and parsing obtains the mark of client b, the data resource of access and goes through
History mark.Server does not find the mark of client b in history identification, then target is determined in the data to be selected of data resource
Data.Wherein, data to be selected are that file X cuts remaining data after data slot 1.Server can be according to access order, really
Fixed number is 2 according to residue degree X also to be downloaded, then server cuts the half in data to be selected, obtains data slot 2
As target data.
Then, data slot 2 is returned to client b by server, and the mark of client b is configured to as history identification
In the two dimensional code, to update the two dimensional code again, and show the two dimensional code in client b or the display interface of server, with
Remaining data to be selected are downloaded according to updated two dimensional code again for client c.
After client c downloads remaining data to be selected, server can configure failure state for the two dimensional code.
It in some embodiments, can also include access order being updated, by updated access order after step 305
It is configured in two dimensional code, the access requested for other clients according to updated two dimensional code configuration access and wherein carried is suitable
Sequence.
Corresponding, step " access order for obtaining client " may include: to obtain the visit of client according to access request
Ask sequence.
From the foregoing, it will be observed that the inventive embodiments, by access order, server can perceive visit in the case where multi-client
It asks the global state and sequence situation of user, is judged with this, issue certain that specified file concentrates to given client end
Some specific file segment of a specific file or a complete file realizes the fast differential access of file, improves number
According to download efficiency.
The embodiment of the present invention also provides a kind of data downloading system, for example, as shown in fig. 4 a, this kind of data downloading system can
It is as follows to include: the first client 401 and server-side 402:
(1) first client 401;
Client 401, for giving server-side 402 according to preset two dimensional code configuration access request Concurrency.
For example, when downloading file data, the preset two dimension of the client scans such as mobile phone, tablet computer is can be used in user
Code.It may include the information such as the address link of data resource in the two dimensional code.
First client 401 parses two dimensional code, obtains the address link of wherein data resource, is linked and configured according to this address
Access request is simultaneously sent to server-side 402.
It should be noted that the first client 401 configuration access request in include the first client 401 mark and
Accessed data resource, in addition, it can include the information such as history identification and/or access order for being obtained from two dimensional code.
(2) server-side 402;
Server-side 402, the access request sent for receiving the first client 401 based on default two dimensional code;According to access
Request, the mark of the first client 401 of acquisition, accessed data resource and history identification, wherein history identification is basis
Two dimensional code downloaded the client identification of data in data resource;The mark of the first client 401 is searched in history identification;If
It does not find the mark of the first client 401 in history identification, then determines target data in the data to be selected of data resource,
In, data to be selected are the data that do not downloaded by any client according to two dimensional code in data resource;Target data is returned to the
One client 401.
In some embodiments, server-side 402 is also used to:
The mark of first client 401 is added in two dimensional code as history identification, to update two dimensional code, for other visitors
The history identification that family end is requested according to updated two dimensional code configuration access and wherein carried.
In some embodiments, server-side 402 is also used to:
It whether determines in data resource comprising data to be selected;If including data to be selected in data resource, by the first client
The mark at end 401 is added in two dimensional code as history identification.
In some embodiments, data resource includes more parts of data files, and server-side 402 is also used to:
Filter out the data file that do not downloaded by any client according to two dimensional code in more parts of data files, as to
Select data;According to preset rules, one or more parts data file is selected in data to be selected as target data.
In some embodiments, server-side 402 is also used to: obtaining the access order of client;According to access order, in number
According to target data determining in the data to be selected of resource.
In some embodiments, server-side 402 is also used to: according to access order, cutting is carried out to data to be selected, by cutting
Obtained data slot is as target data.
In some embodiments, server-side 402 is also used to: if finding the mark of client in history identification, will be counted
The first client 401 is returned to according to the whole of resource data to be selected, or, appointing not into 401 returned data resource of the first client
What data.
Specific embodiment can refer to the embodiment of above-mentioned data download method, and details are not described herein.
In addition, the data downloading system further includes the second client 403 referring to Fig. 4 b, it is as follows:
(3) second clients 403;
First client 401 is also used to for the mark of the first client 401 being added in two dimensional code as history identification,
To update two dimensional code;
Second client 403, the history identification for being requested according to updated two dimensional code configuration access and wherein being carried,
And it is sent to server-side 402.
For example, the first client 401 records the two dimensional code after scanning preset two dimensional code.Also, receiving server-side
During 402 return to target data, or after receiving target data, using the mark of the first client 401 as history mark
Know, be configured in the two dimensional code, to update the two dimensional code, and show the two dimensional code in the display interface of the first client 401, or
It is to be transmitted directly to the second client 403 in the updated for its identification.
Then the second client 403 scans the updated two dimensional code of the first client 401, wherein the data resource carried
Address link and history identification.Then, the second client 403 links configuration access request according to data resource address and is sent to clothes
Business end 402, and the history identification in the two dimensional code is configured in access request, to notify 402 first client 401 of server-side
The data in the data resource had been downloaded, have ensured the orderly access and difference downloading of data resource in server-side 402.When
After two clients 403 download target data, can also identify and history identification is used as to be added in the two dimensional code, with again more
The new two dimensional code, and the two dimensional code is shown in the display interface of the second client 403, so that other clients continue to scan on downloading
Data in data resource, and so on.
It certainly, can also include other one or more clients in data downloading system, details are not described herein.
In some embodiments, server-side 402 are also used to add the mark of the first client 401 as history identification
Into two dimensional code, to update two dimensional code;It is corresponding, the second client 403 requested according to updated two dimensional code configuration access and
The history identification wherein carried, and it is sent to server-side 402.
From the foregoing, it will be observed that the intermediary that the program downloads two dimensional code as data, also, quickly distinguished by client identification
Different clients, to realize the orderly access of data resource in server-side, server-side can perceive each client access
The timing of request, so as to effectively allow server-side decision to there emerged a which portion of which file of client downloads or file
Point, so that multiple client can orderly download the different data in same data resource according to two dimensional code, realize number
According to difference downloading.Client quickly can return to the different fragments of same file or same to each client respectively as a result,
Different files in one file set no longer need to the data for expending time verification client local, and accordingly, multiple client can be with
The different files that the different fragments or same file for downloading same file respectively are concentrated, without expend a large amount of flow go from
Client downloads partial data improves the efficiency of data downloading.In addition, subsequent, this multiple client will can respectively be downloaded
File fragment or file set in file share mutually, to take complete data resource.In addition, in client downloads
During data, the mark of client is added in two dimensional code as history identification, realizes the update of two dimensional code, as a result,
The program realizes the access order that client is recorded by two dimensional code, determines which client accesses down convenient for server-side
Data were carried, determine which data of which client downloads, it is convenient that two dimensional code is managed as information carrier, and server-side is without record
The relevant information of a large amount of two dimensional codes, improves data difference download efficiency.
In order to better implement above method, the embodiment of the present invention also provides a kind of data download apparatus, data downloading
Device specifically can integrate in the network equipment such as server equipment.
For example, as shown in Figure 5 a, which may include receiving unit 501, acquiring unit 502, duplicate checking
Unit 503, data cell 504 and download unit 505, as follows:
(1) receiving unit 501;
Receiving unit 501, the access request sent for receiving client based on default two dimensional code.
For example, the download address link of the data resources such as shared file, game data is configured to two by data download apparatus
It ties up in code, for client scan downloading.In addition, data download apparatus can also correspond to configuration two dimensional code unique identifier,
The information such as effective time and/or effective download time.
The preset two dimensional code of the client scans such as mobile phone, tablet computer can be used when downloading file data in user.Number
It may include the information such as the address link of data resource in the two dimensional code provided according to download apparatus.
Client parses two dimensional code, obtains the address link of wherein data resource, is linked according to this address to data and downloaded
Device sends access request.
Receiving unit 501 receives the access request that the client is sent.
(2) acquiring unit 502;
Acquiring unit 502, for obtaining mark, accessed data resource and the history of client according to access request
Mark, wherein history identification is the client identification for downloading data in data resource according to two dimensional code.
Acquiring unit 502 parse access request, determine client this access data resource, such as video, audio or
The data resources such as document.
Also, acquiring unit 502 obtains identification information according to access request.Wherein, identification information may include the client
End mark, according to the two dimensional code to have downloaded the client identification of data and/or the access of the client in the data resource suitable
Sequence etc..
(3) duplicate checking unit 503;
Duplicate checking unit 503, for searching the mark of client in history identification.
Data download apparatus searches the mark of the client in history identification, to whether to detect the client
The data in data resource were downloaded according to the two dimensional code.
Specifically, duplicate checking unit 503 can by the client identification in history identification respectively one by one with the mark of the client
Knowledge is compared.If having found the mark completely the same with the client identification in history identification, duplicate checking unit 503 determines
The mark of the client is found in history identification;If not finding the mark completely the same with the client identification in history identification
Know, then duplicate checking unit 503 determines the mark for not finding the client in history identification.
If history identification is sky, prove that the client is first according to data in the two dimensional code downloading data resource
, duplicate checking unit 503 determines the mark for not finding the client in history identification.
(4) data cell 504;
Data cell 504, if the mark for not finding client in history identification, in the number to be selected of data resource
According to middle determining target data, wherein data to be selected are the number that do not downloaded by any client according to two dimensional code in data resource
According to.
If not finding the mark of the client in history identification, it is determined that the client is for the first time according under the two dimensional code
The data in data resource are carried, are allowed to its returned data.
Data cell 504 can be determined in data resource and be downloaded according to the two dimensional code according to history Download History
Then the data configuration that do not downloaded according to the two dimensional code in data resource is data to be selected by the data crossed.
Then, data cell 504 can using in data to be selected partial data or total data as target data, to
Return to the client.
Specifically, in some embodiments, data resource may be file set, including more parts of data files.If then data
Resource includes more parts of data files, then data cell 504 specifically can be used for: being filtered out in more parts of data files not any
The data file that client was downloaded according to two dimensional code, as data to be selected;According to preset rules, one is selected in data to be selected
Part or more parts of data files are as target data.
In some embodiments, data cell 504 can be also used for: if finding the mark of client in history identification,
The whole of data resource data to be selected are then returned into client, or, not any data into client returned data resource.
(5) download unit 505.
Download unit 505, for target data to be returned to client.
After determining target data, target data is returned to client by download unit 505, under the difference for realizing data
It carries.
From the foregoing, it will be observed that the intermediary that the program downloads two dimensional code as data, also, quickly distinguished by client identification
Different clients, to realize the orderly access of data resource in server-side, server-side can perceive each client access
The timing of request, so as to effectively allow server-side decision to there emerged a which portion of which file of client downloads or file
Point, so that multiple client can orderly download the different data in same data resource according to two dimensional code, realize number
According to difference downloading.Client quickly can return to the different fragments of same file or same to each client respectively as a result,
Different files in one file set no longer need to the data for expending time verification client local, and accordingly, multiple client can be with
The different files that the different fragments or same file for downloading same file respectively are concentrated, without expend a large amount of flow go from
Client downloads partial data improves the efficiency of data downloading by difference downloading.In addition, subsequent, this multiple client can
To share the file in the file fragment respectively downloaded or file set mutually, to take complete data resource.
In addition, data download apparatus further includes updating unit 506 for example, referring to Fig. 5 b, it is as follows:
(6) updating unit 506;
Updating unit 506, for the mark of client to be added in two dimensional code as history identification, to update two dimension
Code, the history identification requested for other clients according to updated two dimensional code configuration access and wherein carried.
Wherein, include history identification information in the two dimensional code, have recorded and data money was downloaded according to the two dimensional code
The client identification namely history identification of data in source.
The client identification of current downloading data is added in two dimensional code by updating unit 506 as history identification, with more
Then new two dimensional code shows that updated two dimensional code, or notice client show updated two dimension in display interface
Code.
Subsequent, other clients can be according to updated two dimensional code, configuration access request, to download data money
Other data in source.For example, other clients can parse two dimensional code, obtain the data resource address link wherein carried and
The information such as history identification, configuration access are requested, and carry the mark of other clients in the access request of configuration and according to two dimension
The history identification that code obtains.
It is subsequent, whenever have client according to the data in the two dimensional code downloading data resource after, updating unit 506 requires
The mark of these clients is added in two dimensional code as history identification, to update two dimensional code.
In some embodiments, whether updating unit 506 is specifically used for: determining in data resource comprising data to be selected;If
Include data to be selected in data resource, is then added to the mark of client in two dimensional code as history identification.
From the foregoing, it will be observed that the embodiment of the present invention is during client downloads data, updating unit 506 is by the mark of client
Know and be added in two dimensional code as history identification, realizes the update of two dimensional code, the program is realized as a result, is recorded by two dimensional code
The access order of client determines which client has accessed convenient for server and downloaded data, determines under which client
Which data is carried, it is convenient that two dimensional code is managed as information carrier, and server-side is not necessarily to record the relevant information of a large amount of two dimensional codes, improves
Data difference download efficiency.
Citing, is described in further detail by the device according to described in preceding embodiment below.
For example, referring to Fig. 6, in the present embodiment, data download apparatus includes receiving unit 601, acquiring unit 602, looks into
Weight unit 603, data cell 604 and download unit 605.By taking Fig. 3 b as an example, client a, client b and client c tri- are shared
The data in same data resource are successively downloaded according to same two dimensional code in a visitor end.The data resource includes a complete file
X。
(1), receiving unit 601;
Receiving unit 601, the access request sent for receiving client based on default two dimensional code.
For example, data download apparatus is linked in the downloading request for receiving data resource according to the address of the data resource,
It configures default two dimensional code and shows, downloaded for client scan.
Client a scans default two dimensional code first, according to the address link configuration access request in two dimensional code, and is sent to
Server.
Receiving unit 601 receives the access request that client a is sent.
(2) acquiring unit 602;
Acquiring unit 602, for obtaining mark, accessed data resource and the history of client according to access request
Mark, wherein history identification is the client identification for downloading data in data resource according to two dimensional code.
Acquiring unit 602 is according to access request, the mark of acquisition client a, accessed data resource and history identification.
Specific embodiment can refer to the description of step 102 in above-mentioned data download method embodiment.
Wherein, by taking client a as an example, since client a is first according to data in the two dimensional code downloading data resource
, therefore, historical data is sky.
(3), duplicate checking unit 603;
Duplicate checking unit 603, for searching the mark of client in history identification.
By taking client a as an example, since historical data is sky, the judgement of duplicate checking unit 603 is not found in the historical data
The mark of client a.
(4) data cell 604;
Data cell 604, if the mark for not finding client in history identification, the access for obtaining client is suitable
Sequence;According to access order, target data is determined in the data to be selected of data resource.
Wherein, the access order of client refers to that the client is which a sent based on the two dimensional code to server is accessed
Request.
In some embodiments, can be when client downloads file, interim cutting data resource obtains number of targets
According to data cell 604 can be also used for: according to access order, carrying out cutting, the data slot that cutting is obtained to data to be selected
As target data.
By taking client a as an example, due to not finding the mark of client a in the historical data, data cell 604 obtains
The access order of client a is taken, is first.Data cell 604 can determine that this document X is also to be downloaded according to access order
Number be 3, then data cell 604 can cut the data of one third in this document X, obtain data slot 1.Data cell
604 regard this data slot 1 as target data.
(5) download unit 605.
By taking client a as an example, file 1 is returned to client a by download unit 605.
In addition, the data download apparatus of the embodiment of the present invention can also include updating unit (not shown).
Updating unit can be configured to the mark of client a as history identification in the two dimensional code, with the new two dimensional code,
Then, show that updated two dimensional code, or notice client a show updated two dimensional code in display interface.
It after client b scans the updated two dimensional code, is requested according to updated two dimensional code configuration access, access is asked
The mark of client b, the data resource of access and history identification are carried in asking.Wherein, history identification includes the mark of client a
Know.
Receiving unit 601 receives the access request of client b, and acquiring unit 602, which parses, to be obtained the mark of client b, visits
The data resource and history identification asked.Duplicate checking unit 603 does not find the mark of client b in history identification, then data cell
604 determine target data in the data to be selected of data resource.Wherein, data to be selected are that file X cuts residue after data slot 1
Data.Data cell 604 can determine that data X residue degree also to be downloaded is 2, then data sheet according to access order
Member 604 cuts the half in data to be selected, obtains data slot 2 as target data.
Then, data slot 2 is returned to client b by download unit 605, updating unit using the mark of client b as
History identification is configured in the two dimensional code, to update the two dimensional code again, and shows in display interface again updated two
Code is tieed up, or notice client b shows updated two dimensional code again, so that client c is according to updated two dimensional code again
Download remaining data to be selected.
After client c downloads remaining data to be selected, updating unit can configure failure state for the two dimensional code.
In some embodiments, updating unit can be also used for: updating access order, updated access order is configured
Into two dimensional code, the access order being requested for other clients according to updated two dimensional code configuration access and wherein carried.
Corresponding, data cell 604 specifically can be with: according to access request, obtaining the access order of client.
From the foregoing, it will be observed that the inventive embodiments are by access order, data download apparatus can be in the case where multi-client
The global state and sequence situation of perception access user, is judged with this, to given client end issues specified file collection
In some specific file or a complete file some specific file segment, realize file fast differential access, mention
The high download efficiency of data.
The embodiment of the present invention also provides a kind of server, as shown in fig. 7, it illustrates take involved in the embodiment of the present invention
The structural schematic diagram of business device, specifically:
The server may include one or processor 701, one or more meters of more than one processing core
The components such as memory 702, power supply 703 and the input unit 704 of calculation machine readable storage medium storing program for executing.Those skilled in the art can manage
It solves, server architecture shown in Fig. 7 does not constitute the restriction to server, may include than illustrating more or fewer portions
Part perhaps combines certain components or different component layouts.Wherein:
Processor 701 is the control centre of the server, utilizes each of various interfaces and the entire server of connection
Part by running or execute the software program and/or module that are stored in memory 702, and calls and is stored in memory
Data in 702, the various functions and processing data of execute server, to carry out integral monitoring to server.Optionally, locate
Managing device 701 may include one or more processing cores;Preferably, processor 701 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 701.
Memory 702 can be used for storing software program and module, and processor 701 is stored in memory 702 by operation
Software program and module, thereby executing various function application and data processing.Memory 702 can mainly include storage journey
Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function
Such as data download procedure) etc.;Storage data area, which can be stored, uses created data etc. according to server.In addition, storage
Device 702 may include high-speed random access memory, can also include nonvolatile memory, for example, at least a disk storage
Device, flush memory device or other volatile solid-state parts.Correspondingly, memory 702 can also include that memory controls
Device, to provide access of the processor 701 to memory 702.
Server further includes the power supply 703 powered to all parts, it is preferred that power supply 703 can pass through power management system
It unites logically contiguous with processor 701, to realize the function such as management charging, electric discharge and power managed by power-supply management system
Energy.Power supply 703 can also include one or more direct current or AC power source, recharging system, power failure monitor electricity
The random components such as road, power adapter or inverter, power supply status indicator.
The server may also include input unit 704, which can be used for receiving the number or character letter of input
Breath, and generation keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal are defeated
Enter.
Although being not shown, server can also be including display unit etc., and details are not described herein.Specifically in the present embodiment,
Processor 701 in server can according to following instruction, by the process of one or more application program is corresponding can
It executes file to be loaded into memory 702, and runs the application program being stored in memory 702 by processor 701, thus
Realize various functions, as follows:
Receive the access request that client is sent based on default two dimensional code;
According to access request, the mark of client, accessed data resource and history identification are obtained, wherein history mark
Knowing is the client identification for downloading data in data resource according to two dimensional code;
The mark of client is searched in history identification;
If not finding the mark of client in history identification, number of targets is determined in the data to be selected of data resource
According to, wherein data to be selected are the data that do not downloaded by any client according to two dimensional code in data resource;
Target data is returned into client.
In some embodiments, processor 701 can also run the application program being stored in memory 702, thus real
Existing following function:
The mark of client is added in two dimensional code as history identification, to update two dimensional code, for other client roots
The history identification requested according to updated two dimensional code configuration access and wherein carried.
In some embodiments, processor 701 can also run the application program being stored in memory 702, thus real
Existing following function:
It whether determines in data resource comprising data to be selected;If including data to be selected in data resource, by client
Mark is added in two dimensional code as history identification.
In some embodiments, data resource includes more parts of data files, and processor 701, which can also be run, is stored in storage
Application program in device 702, to implement function such as:
Filter out the data file that do not downloaded by any client according to two dimensional code in more parts of data files, as to
Select data;According to preset rules, one or more parts data file is selected in data to be selected as target data.
In some embodiments, processor 701 can also run the application program being stored in memory 702, thus real
Existing following function:
Obtain the access order of client;According to access order, target data is determined in the data to be selected of data resource.
In some embodiments, processor 701 can also run the application program being stored in memory 702, thus real
Existing following function:
According to access order, cutting is carried out to data to be selected, the data slot that cutting is obtained is as target data.
In some embodiments, processor 701 can also run the application program being stored in memory 702, thus real
Existing following function:
If finding the mark of client in history identification, the whole of data resource data to be selected are returned into client,
Or, not any data into client returned data resource.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
It will appreciated by the skilled person that all or part of the steps in the various methods of above-described embodiment can be with
It is completed by instructing, or relevant hardware is controlled by instruction to complete, which can store computer-readable deposits in one
In storage media, and is loaded and executed by processor.
For this purpose, the embodiment of the present invention provides a kind of storage medium, wherein being stored with a plurality of instruction, which can be processed
Device is loaded, to execute the step in any data download method provided by the embodiment of the present invention.For example, the instruction can
To execute following steps:
Receive the access request that client is sent based on default two dimensional code;
According to access request, the mark of client, accessed data resource and history identification are obtained, wherein history mark
Knowing is the client identification for downloading data in data resource according to two dimensional code;
The mark of client is searched in history identification;
If not finding the mark of client in history identification, number of targets is determined in the data to be selected of data resource
According to, wherein data to be selected are the data that do not downloaded by any client according to two dimensional code in data resource;
Target data is returned into client.
In some embodiments, which can also be performed following steps:
The mark of client is added in two dimensional code as history identification, to update two dimensional code, for other client roots
The history identification requested according to updated two dimensional code configuration access and wherein carried.
In some embodiments, which can also be performed following steps:
It whether determines in data resource comprising data to be selected;If including data to be selected in data resource, by client
Mark is added in two dimensional code as history identification.
In some embodiments, data resource includes more parts of data files, which can also be performed following steps:
Filter out the data file that do not downloaded by any client according to two dimensional code in more parts of data files, as to
Select data;According to preset rules, one or more parts data file is selected in data to be selected as target data.
In some embodiments, which can also be performed following steps:
Obtain the access order of client;According to access order, target data is determined in the data to be selected of data resource.
In some embodiments, which can also be performed following steps:
According to access order, cutting is carried out to data to be selected, the data slot that cutting is obtained is as target data.
In some embodiments, which can also be performed following steps:
If finding the mark of client in history identification, the whole of data resource data to be selected are returned into client,
Or, not any data into client returned data resource.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Wherein, which may include: read-only memory (ROM, Read Only Memory), random access memory
Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, can execute under any data provided by the embodiment of the present invention
Step in support method, it is thereby achieved that achieved by any data download method provided by the embodiment of the present invention
Beneficial effect is detailed in the embodiment of front, and details are not described herein.
A kind of data download method, system, device and storage medium is provided for the embodiments of the invention above to carry out
It is discussed in detail, used herein a specific example illustrates the principle and implementation of the invention, above embodiments
Illustrate to be merely used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art, according to this
The thought of invention, there will be changes in the specific implementation manner and application range, and to sum up, the content of the present specification should not be understood
For limitation of the present invention.
Claims (11)
1. a kind of data download method characterized by comprising
Receive the access request that client is sent based on default two dimensional code;
According to the access request, the mark of the client, accessed data resource and history identification are obtained, wherein institute
Stating history identification is the client identification for downloading data in the data resource according to the two dimensional code;
The mark of the client is searched in the history identification;
If not finding the mark of the client in the history identification, determined in the data to be selected of the data resource
Target data, wherein the data to be selected are not downloaded by any client according to the two dimensional code in the data resource
Data;
The target data is returned into the client.
2. the method as described in claim 1, which is characterized in that it is described that the target data is returned into the client, later
Further include:
It is added to the mark of the client as history identification in the two dimensional code, to update the two dimensional code, for other
The history identification that client is carried according to the updated two dimensional code configuration access request and wherein.
3. method according to claim 2, which is characterized in that described to be added the mark of the client as history identification
Into the two dimensional code, comprising:
It whether determines in the data resource comprising data to be selected;
If including data to be selected in the data resource, it is added to described two for the mark of the client as history identification
It ties up in code.
4. the method according to claim 1, which is characterized in that the data resource includes more parts of data files,
It is described that target data is determined in the data to be selected of the data resource, comprising:
The data file that do not downloaded by any client according to the two dimensional code is filtered out in the more parts of data files, is made
For data to be selected;
According to preset rules, one or more parts data file is selected in the data to be selected as target data.
5. the method according to claim 1, which is characterized in that described in the data to be selected of the data resource
Determine target data, comprising:
Obtain the access order of the client;
According to the access order, target data is determined in the data to be selected of the data resource.
6. method as claimed in claim 5 characterized by comprising
According to the access order, cutting is carried out to the data to be selected, the data slot that cutting is obtained is as target data.
7. the method according to claim 1, which is characterized in that search the client in the history identification
Mark, later further include:
If finding the mark of the client in the history identification, the whole of data resource data to be selected are returned
The client, or, not returning to any data in the data resource to the client.
8. a kind of data downloading system characterized by comprising
First client, for giving the server-side according to preset two dimensional code configuration access request Concurrency;
Server-side, the access request sent for receiving the client based on default two dimensional code;According to the access request, obtain
Take the mark of the client, accessed data resource and history identification, wherein the history identification is according to described two
Dimension code downloaded the client identification of data in the data resource;The mark of the client is searched in the history identification
Know;If not finding the mark of the client in the history identification, determined in the data to be selected of the data resource
Target data, wherein the data to be selected are not downloaded by any client according to the two dimensional code in the data resource
Data;The target data is returned into the client.
9. system as claimed in claim 8, which is characterized in that the system also includes the second clients:
First client is also used to the mark of first client being added to the two dimensional code as history identification
In, to update the two dimensional code;
Second client, the history mark for requesting and wherein carrying according to the updated two dimensional code configuration access
Know, and is sent to the server-side.
10. a kind of data download apparatus characterized by comprising
Receiving unit, the access request sent for receiving client based on default two dimensional code;
Acquiring unit, for obtaining mark, accessed data resource and the history of the client according to the access request
Mark, wherein the history identification is the client identification for downloading data in the data resource according to the two dimensional code;
Duplicate checking unit, for searching the mark of the client in the history identification;
Data cell, if the mark for not finding the client in the history identification, in the data resource
In data to be selected determine target data, wherein the data to be selected in the data resource not by any client according to institute
State the data that two dimensional code was downloaded;
Download unit, for the target data to be returned to the client.
11. a kind of storage medium, which is characterized in that the storage medium is stored with a plurality of instruction, and described instruction is suitable for processor
It is loaded, the step in 1 to 7 described in any item data download methods is required with perform claim.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810899036.6A CN108960378B (en) | 2018-08-08 | 2018-08-08 | Data downloading method, system, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810899036.6A CN108960378B (en) | 2018-08-08 | 2018-08-08 | Data downloading method, system, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108960378A true CN108960378A (en) | 2018-12-07 |
CN108960378B CN108960378B (en) | 2020-05-12 |
Family
ID=64468322
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810899036.6A Active CN108960378B (en) | 2018-08-08 | 2018-08-08 | Data downloading method, system, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108960378B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110493344A (en) * | 2019-08-22 | 2019-11-22 | 视联动力信息技术股份有限公司 | Document down loading method and device |
CN114666319A (en) * | 2022-03-02 | 2022-06-24 | 北京百度网讯科技有限公司 | Data downloading method and device, electronic equipment and readable storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030873A (en) * | 2007-02-15 | 2007-09-05 | 深圳市迅雷网络技术有限公司 | Method and system for downloading data |
EP1973247B1 (en) * | 2007-03-23 | 2012-05-02 | Huawei Technologies Co., Ltd. | Method, system and device for data transfer in an optical network |
CN103139173A (en) * | 2011-11-30 | 2013-06-05 | 中国联合网络通信集团有限公司 | Terminal equipment, media exchange network system, media business downloading method and system |
CN103581272A (en) * | 2012-08-08 | 2014-02-12 | 腾讯科技(深圳)有限公司 | File transfer method and device |
CN103873451A (en) * | 2012-12-17 | 2014-06-18 | 中国移动通信集团公司 | Data synchronization method, equipment and system |
CN103888505A (en) * | 2013-11-26 | 2014-06-25 | 北京奇虎科技有限公司 | File transmission method and system, and terminal devices and servers |
CN104092723A (en) * | 2014-04-04 | 2014-10-08 | 腾讯科技(深圳)有限公司 | File downloading method, device and system |
KR20150113804A (en) * | 2014-03-31 | 2015-10-08 | 숭실대학교산학협력단 | Method of interworking between mobile terminal and digital signage system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2418781B1 (en) * | 2009-04-10 | 2019-06-26 | LG Electronics Inc. | Transmission method of downlink reference signal and apparatus thereof |
CN103020245B (en) * | 2012-12-19 | 2015-10-07 | 北京奇虎科技有限公司 | For the method and apparatus of downloading data |
CN103036992B (en) * | 2012-12-19 | 2015-10-07 | 北京奇虎科技有限公司 | A kind of data download method and device |
CN104092713B (en) * | 2013-05-31 | 2018-06-15 | 腾讯科技(深圳)有限公司 | The download information methods of exhibiting and device of a kind of Internet resources |
CN104967646B (en) * | 2014-10-27 | 2018-08-14 | 广州酷狗计算机科技有限公司 | Document down loading method and device |
-
2018
- 2018-08-08 CN CN201810899036.6A patent/CN108960378B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030873A (en) * | 2007-02-15 | 2007-09-05 | 深圳市迅雷网络技术有限公司 | Method and system for downloading data |
EP1973247B1 (en) * | 2007-03-23 | 2012-05-02 | Huawei Technologies Co., Ltd. | Method, system and device for data transfer in an optical network |
CN103139173A (en) * | 2011-11-30 | 2013-06-05 | 中国联合网络通信集团有限公司 | Terminal equipment, media exchange network system, media business downloading method and system |
CN103581272A (en) * | 2012-08-08 | 2014-02-12 | 腾讯科技(深圳)有限公司 | File transfer method and device |
CN103873451A (en) * | 2012-12-17 | 2014-06-18 | 中国移动通信集团公司 | Data synchronization method, equipment and system |
CN103888505A (en) * | 2013-11-26 | 2014-06-25 | 北京奇虎科技有限公司 | File transmission method and system, and terminal devices and servers |
KR20150113804A (en) * | 2014-03-31 | 2015-10-08 | 숭실대학교산학협력단 | Method of interworking between mobile terminal and digital signage system |
CN104092723A (en) * | 2014-04-04 | 2014-10-08 | 腾讯科技(深圳)有限公司 | File downloading method, device and system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110493344A (en) * | 2019-08-22 | 2019-11-22 | 视联动力信息技术股份有限公司 | Document down loading method and device |
CN110493344B (en) * | 2019-08-22 | 2022-04-05 | 视联动力信息技术股份有限公司 | File downloading method and device |
CN114666319A (en) * | 2022-03-02 | 2022-06-24 | 北京百度网讯科技有限公司 | Data downloading method and device, electronic equipment and readable storage medium |
CN114666319B (en) * | 2022-03-02 | 2024-03-22 | 北京百度网讯科技有限公司 | Data downloading method, device, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108960378B (en) | 2020-05-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102307210B (en) | Data downloading system and data management and downloading method thereof | |
JP6222680B2 (en) | Method, apparatus and system for implementing location information services | |
CN110515912A (en) | Log processing method, device, computer installation and computer readable storage medium | |
CN108737534B (en) | Block chain-based data transmission method and device and block chain system | |
CN110427368A (en) | Data processing method, device, electronic equipment and storage medium | |
CN106202416B (en) | Table data write method and device, table data read method and device | |
CN103607424B (en) | Server connection method and server system | |
CN110413845B (en) | Resource storage method and device based on Internet of things operating system | |
CN108881354A (en) | A kind of pushed information storage method, device, server and computer storage medium | |
CN102025595A (en) | Flow optimization method and system | |
CN108694188B (en) | Index data updating method and related device | |
CN114791846B (en) | Method for realizing observability aiming at cloud-originated chaos engineering experiment | |
CN106550030B (en) | A kind of data sharing method, apparatus and system | |
CN108347459A (en) | A kind of high in the clouds data quick storage method and device | |
CN106817388A (en) | The system that virtual machine, host obtain the method, device and access data of data | |
CN111352716B (en) | Task request method, device and system based on big data and storage medium | |
CN108960378A (en) | A kind of data download method, system, device and storage medium | |
CN105630419A (en) | Partition view sending method of resource pools and management node | |
CN108563697A (en) | A kind of data processing method, device and storage medium | |
CN108154024A (en) | A kind of data retrieval method, device and electronic equipment | |
CN110233904A (en) | Equipment update method, device, system, storage medium and computer equipment | |
CN106203179A (en) | A kind of completeness check system and method to file | |
CN116974465A (en) | Data loading method, device, equipment and computer storage medium | |
CN114492849B (en) | Model updating method and device based on federal learning | |
CN111400266A (en) | Data processing method and system, and diagnosis processing method and device of operation event |
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 |