CN104967646A - File downloading method and apparatus - Google Patents

File downloading method and apparatus Download PDF

Info

Publication number
CN104967646A
CN104967646A CN201410583633.XA CN201410583633A CN104967646A CN 104967646 A CN104967646 A CN 104967646A CN 201410583633 A CN201410583633 A CN 201410583633A CN 104967646 A CN104967646 A CN 104967646A
Authority
CN
China
Prior art keywords
terminal
file
user account
iidentification
request
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
Application number
CN201410583633.XA
Other languages
Chinese (zh)
Other versions
CN104967646B (en
Inventor
汤道生
梁柱
傅鸿城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410583633.XA priority Critical patent/CN104967646B/en
Publication of CN104967646A publication Critical patent/CN104967646A/en
Application granted granted Critical
Publication of CN104967646B publication Critical patent/CN104967646B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Abstract

The invention discloses a file downloading method and apparatus, and belongs to the field of a network technology. The method comprises the following steps: receiving a first file downloading request sent by a first terminal, wherein the first file downloading request carries a user account which is already registered by the first terminal and a first file identification to be downloaded, and the first file downloading request is used for requesting to download a first file to a second terminal bound to the user account; determining that the second terminal already registers the user account; and based on the user account and the first file identification, sending the first file to the second terminal. The apparatus comprises a first receiving module, a determination module and a first sending module. According to the invention, errors are prevented due to a too small phone screen, the file copying process is omitted, the file downloading time is reduced, and the file downloading efficiency is improved.

Description

Document down loading method and device
Technical field
The present invention relates to networking technology area, particularly a kind of document down loading method and device.
Background technology
Along with the development of network technology, terminal not only can check the files such as video, audio frequency, document online, can also off-line viewing files.And before off-line viewing files, terminal needs download file from server, and store.
If this terminal is mobile phone, now, the method of mobile phone-downloaded files can comprise two kinds, the first: mobile phone-downloaded also installs the application of viewing files, when mobile phone receives the download instruction that user submitted to by this application, this mobile phone sends download request to server, carries file to be downloaded mark in this download request.When server receives this download request, server identifies according to this file to be downloaded, obtains corresponding file, and the file of acquisition is sent to this mobile phone from the file identification stored with the corresponding relation between file.The second: after downloading this file by computer according to above-mentioned first kind of way, mobile phone is connected to computer by USB (Universal Serial Bus, USB), and the file copy downloaded by computer is in mobile phone.
Because the screen of mobile phone is less, during by above-mentioned first kind of way download file, operate more difficult, easily make mistakes.And by the above-mentioned second way to mobile phone-downloaded files time, need to perform down operation and copy operation, operation more complicated, reduce the efficiency of download file.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of document down loading method and device.Described technical scheme is as follows:
On the one hand, provide a kind of document down loading method, described method comprises:
Receive the first file download request that first terminal sends, the listed user account of described first terminal and the first file identification to be downloaded are carried in described first file download request, and described first file download request is for asking second terminal of extremely being bound with described user account by the first file download;
Determine that described second terminal has logged in described user account;
Based on described user account and described first file identification, send described first file to described second terminal.
On the other hand, provide a kind of file downloading device, described device comprises:
First receiver module, for receiving the first file download request that first terminal sends, the listed user account of described first terminal and the first file identification to be downloaded are carried in described first file download request, and described first file download request is for asking second terminal of extremely being bound with described user account by the first file download;
Determination module, for determining that described second terminal has logged in described user account;
First sending module, for based on described user account and described first file identification, sends described first file to described second terminal.
In embodiments of the present invention, after first terminal sends the first file download request to server, when server determines that the second terminal has logged in this user account, this server sends the first file directly to the second terminal, if first terminal is computer, second terminal is mobile phone, like this, the first file download request is sent to server by computer, avoid the less situation of easily makeing mistakes of mobile phone screen, and by computer to after server sends the first file download request, server directly by the first file download on mobile phone, do not have the first file download to computer, eliminate the process of file copy, decrease the time of download file, and then improve the efficiency of download file.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of file download system Organization Chart that the embodiment of the present invention provides;
Fig. 2 is the first document down loading method flow chart that the embodiment of the present invention provides;
Fig. 3 is the second document down loading method flow chart that the embodiment of the present invention provides;
Fig. 4 is that interface schematic diagram is submitted in a kind of instruction that the embodiment of the present invention provides to;
Fig. 5 is the first login prompt information display interface schematic diagram that the embodiment of the present invention provides;
Fig. 6 is the second login prompt information display interface schematic diagram that the embodiment of the present invention provides;
Fig. 7 is a kind of prompting download information display interface schematic diagram that the embodiment of the present invention provides;
Fig. 8 is the first file downloading device structural representation that the embodiment of the present invention provides;
Fig. 9 is the second file downloading device structural representation that the embodiment of the present invention provides;
Figure 10 is the third file downloading device structural representation that the embodiment of the present invention provides;
Figure 11 is the 4th kind of file downloading device structural representation that the embodiment of the present invention provides;
Figure 12 is the 5th kind of file downloading device structural representation that the embodiment of the present invention provides;
Figure 13 is the 6th kind of file downloading device structural representation that the embodiment of the present invention provides;
Figure 14 is the 7th kind of file downloading device structural representation that the embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Fig. 1 is a kind of file download system Organization Chart that the embodiment of the present invention provides.See Fig. 1, this system comprises: first terminal, the second terminal and server.First terminal and the second terminal all for installing the application of viewing files, and pass through this application login user account, and check this file by this application, and first terminal can be personal computer, palmtop PC etc., and the second terminal can be mobile phone, pad etc.Server can comprise web server, storage server and data server, and the first file download request that web server sends for receiving first terminal, storage server is used for when the second non-login user account of terminal, store the corresponding relation between this user account and file identification, data server is used for storage file, and file to be downloaded is sent to the second terminal.
Fig. 2 is a kind of document down loading method flow chart that the embodiment of the present invention provides.See Fig. 2, the method comprises:
Step 201: receive the first file download request that first terminal sends, the listed user account of first terminal and the first file identification to be downloaded are carried in first file download request, and the first file download request is for asking second terminal of extremely being bound with this user account by the first file download.
Step 202: determine that the second terminal has logged in this user account.
Step 203: based on this user account and the first file identification, send the first file to the second terminal.
In embodiments of the present invention, after first terminal sends the first file download request to server, when server determines that the second terminal has logged in this user account, this server sends the first file directly to the second terminal, if first terminal is computer, second terminal is mobile phone, like this, the first file download request is sent to server by computer, avoid the less situation of easily makeing mistakes of mobile phone screen, and by computer to after server sends the first file download request, server directly by the first file download on mobile phone, do not have the first file download to computer, eliminate the process of file copy, decrease the time of download file, and then improve the efficiency of download file.
Alternatively, determine that the second terminal has logged in this user account, comprising:
Judge whether the second terminal has logged in this user account;
When the second terminal does not log in this user account, send login prompt information to first terminal, make the second terminal log in this user account.
Alternatively, judge whether the second terminal has logged in this user account, comprising:
According to this user account, obtain the connection logged between the terminal of this user account and server;
Determine the second terminal iidentification bound with this user account;
Based on the second terminal iidentification, judge the connection whether comprised in the connection obtained between the second terminal and server;
When the connection obtained comprises the connection between the second terminal and server, determine that the second terminal has logged in this user account;
When not comprising the connection between the second terminal and server in the connection obtained, determine that the second terminal does not log in this user account.
Alternatively, when the second terminal does not log in this user account, send login prompt information to first terminal, make the second terminal log in this user account, comprising:
Store this user account and the first file identification;
Send login prompt information to first terminal, this login prompt information makes the second terminal log in this user account for pointing out user;
When setting up the connection between the second terminal, determine that the second terminal has logged in this user account.
Alternatively, determine the second terminal iidentification bound with this user account, comprising:
According to this user account, from the corresponding relation between the user account stored and terminal iidentification, obtain the second terminal iidentification bound with this user account, the terminal iidentification stored in the corresponding relation between this user account and terminal iidentification is the terminal iidentification of this user account of historical log; Or,
When the second terminal iidentification is also carried in the first file download request, the second terminal iidentification that the first file download request is carried is defined as the second terminal iidentification bound with this user account.
Alternatively, before receiving the first file download request of first terminal transmission, also comprise:
Receive the mark acquisition request that first terminal sends, this mark obtains request and carries this user account;
According to this user account, from the corresponding relation between the user account stored and terminal iidentification, obtain corresponding terminal iidentification;
The terminal iidentification of acquisition is sent to first terminal, makes first terminal determine the second terminal iidentification from the terminal iidentification obtained, and the second terminal iidentification is carried in the first file download request.
Alternatively, based on this user account and the first file identification, send the first file to the second terminal, comprising:
Based on the first file identification, generate the second file download instructions;
Based on this user account, the second file download instructions is sent to the second terminal, make the second terminal to server send the second file download request, the first file identification is carried in the second file download request;
When receiving the second file download request, according to the first file identification, from the corresponding relation between the file identification stored and file, obtain the first file;
First file is sent to the second terminal.
Alternatively, based on this user account and the first file identification, after the second terminal sends the first file, also comprise:
By the connection between the second terminal and server, send prompting download information to the second terminal, this prompting download information is downloading the first file for pointing out user second terminal.
Alternatively, the method also comprises:
Receive the file playing request that first terminal sends, this file playing request carries user account and the second file identification to be played, and this file playing request is for asking the second terminal plays second file, and described second file is multimedia file;
According to this user account and the second terminal iidentification, inquire about the connection between the second terminal and server;
By the connection between the second terminal and server, send play instruction to the second terminal, make the second terminal plays second file, in this play instruction, carry the second file identification.
Alternatively, the method also comprises:
Receive the sharing files request that first terminal sends, good friend's user account and the 3rd file identification to be shared are carried in sharing files request, and sharing files request is for asking the 3rd sharing files to third terminal corresponding to the good friend of user;
According to the 3rd file identification, from the corresponding relation between the file identification stored and file, obtain the 3rd file;
Based on good friend's user account, the 3rd file is sent to third terminal.
Above-mentioned all alternatives, all can form optional embodiment of the present invention according to combining arbitrarily, the embodiment of the present invention repeats no longer one by one at this.
Fig. 3 is a kind of document down loading method flow chart that the embodiment of the present invention provides.In the method, server can comprise web server, storage server and data server, and web server, storage server and data server can be different servers, also can be the difference in functionality module on a station server.See Fig. 3, the method comprises:
Step 301: when first terminal receives the first file download instructions, first terminal sends the first file download request to web server, the listed user account of first terminal and the first file identification to be downloaded are carried in first file download request, and the first file download request is for asking second terminal of extremely being bound with this user account by the first file download.
In embodiments of the present invention, if first terminal is computer, second terminal is mobile phone, in order to reduce the error rate of download file, and improve the efficiency of download file, when needs are by file download to the second terminal, user can log in this user account at first terminal, and submits the first file download instructions to.This first file download instructions is used for the first file download to the second terminal logging in this user account.In concrete enforcement, when the first file is song, user can show instruction as shown in Figure 4 by modes such as right click first file, right click File menus and submit interface to, click " downloading to mobile phone " option in Fig. 4 as user after, determine that user submits the first file download instructions to first terminal.
Wherein, the first file can be document files, multimedia file etc., and multimedia file can be the file such as video, audio frequency, and when the first file is multimedia file, data server can be streaming media server.In addition, the first file identification can be the numbering of this article part, the title etc. of this file.Such as, this file is song, and the first file identification can be song title.
When web server receives the first file download request, this web server needs to judge whether the second terminal has logged in this user account, and when the second terminal does not log in this user account, login prompt information is sent to first terminal, make the second terminal log in this user account, specifically comprise following step 302 to step 309.
Step 302: when web server receives the first file download request, web server, according to this user account, obtains the connection logged between the terminal of this user account and web server.
During terminal login user account, all can set up one between terminal with web server and be connected, for the instruction message between transmission terminal and web server.And web server only has when determining the second terminal login user account, and data server just can be made in the first file download to the second terminal.So, when web server receives the first file download request, first need according to this user account, obtain the connection logged between the terminal of this user account and web server, and then judge whether the second terminal logs in this user account.
Because multiple terminal can log in same user account simultaneously, such as, mobile phone and computer can log in same user account simultaneously, so, user account can corresponding multiple connection, and during terminal login user account, web server all can record connection corresponding to this user account, such as, web server can be numbered the connection of setting up, and store user account and be connected the corresponding relation of numbering, when web server obtains connection corresponding to this user account, server can according to this user account, obtain corresponding connection from the user account stored and number with connecting the corresponding relation between numbering, and then obtain the connection logged between the terminal of this user account and web server.
It should be noted that, in embodiments of the present invention, the connection logged between the terminal of this user account and web server can connect for long, also can be short connection, preferably, the connection logged between the terminal of this user account and web server connects for long, can improve the efficiency of download file like this.
Step 303:web server determines the second terminal iidentification bound with this user account.
As described above, the corresponding multiple connection of a user account possibility, like this, connection between the terminal obtained and web server also can exist multiple, if web server judges whether the second terminal logs in this user account, this web server needs acquisition second terminal iidentification, and in embodiments of the present invention, the method obtaining the second terminal iidentification can comprise two kinds of modes:
First kind of way, according to this user account, from the corresponding relation between the user account stored and terminal iidentification, obtain the second terminal iidentification bound with this user account, the terminal iidentification stored in the corresponding relation between this user account and terminal iidentification is the terminal iidentification of this user account of historical log.
Owing to storing the terminal iidentification of this user account of historical log in web server, the terminal iidentification of this this user account of historical log logs in the terminal iidentification of this user account before comprising the terminal iidentification of current this user account of login and current time, so, web server can according to this user account, corresponding terminal iidentification is obtained with the corresponding relation between terminal iidentification from the user account stored, and from the terminal iidentification obtained, select the second terminal iidentification, and then the second terminal iidentification selected is defined as the second terminal iidentification of binding with this user account.
Further, generally, only can there is the situation that a computer and mobile phone log in this user account simultaneously, so, in order to reduce the complexity of download file, when web server receives the first file download request, this web server directly can search current the second terminal iidentification having logged in this user account, if found, then the second terminal iidentification found is defined as the second terminal iidentification bound with this user account.
The second way, when the second terminal iidentification is also carried in the first file download request, the second terminal iidentification that the first file download request is carried is defined as the second terminal iidentification bound with this user account.
Be directed to the second way, before first terminal sends the first file download request to web server, first terminal can send to server and identify the request of acquisition, and this mark obtains in request and carries this user account, when server receives this mark acquisition request.Server, according to this user account, from the corresponding relation between the user account stored and terminal iidentification, obtains corresponding terminal iidentification; The terminal iidentification of acquisition is sent to first terminal.When first terminal receives the terminal iidentification of acquisition, the terminal iidentification that display receives, make user select the second terminal iidentification from the terminal iidentification of display, when first terminal receives the second terminal iidentification of user's selection, the second terminal iidentification is carried in the first file download request.
Step 304: this web server, based on the second terminal iidentification, judges the connection whether comprised in the connection obtained between the second terminal and web server.
Particularly, this web server determines each terminal iidentification connecting correspondence obtained, the mark of the terminal of acquisition and the second terminal iidentification are compared, if there is the second terminal iidentification in the terminal iidentification obtained, then determine that the connection obtained comprises the connection between the second terminal and web server, otherwise, determine the connection do not comprised in the connection obtained between the second terminal and web server.
Step 305: when the connection obtained comprises the connection between the second terminal and web server, determine that the second terminal has logged in this user account, perform step 311.
When determine the second terminal with exist between web server be connected time, determine that the second terminal has logged in this user account, now, web server can directly notification data server by the first file download to the second terminal.
Step 306: when not comprising the connection between the second terminal and web server in the connection obtained, determine that the second terminal does not log in this user account.
In embodiments of the present invention, when determining that the second terminal does not log in this user account, this web server can not directly notification data server by the first file download to the second terminal, prompting user is needed to make the second terminal log in this user account, so this user account and the first file identification can send to storage server to store by this web server.
This user account and the first file identification are sent to storage server by step 307:web server, make storage server store this user account and the first file identification.
Particularly, this user account and the first file identification are sent to storage server by web server, when storage server receives this user account and the first file identification, storage server, by this user account and the first file identification, is stored in the corresponding relation between user account and file identification.
Step 308:web server sends login prompt information to first terminal, and this login prompt information makes the second terminal log in this user account for pointing out user.
This web server can according to this user account and the second terminal iidentification, from historical log record, determine whether this second terminal used multimedia application in the past, if this second terminal did not use this multimedia application in the past, then this web server sends login prompt information to first terminal, and can comprise the download address downloading this application in this login prompt information, this download address can be included in graphic code, such as, Quick Response Code, bar code etc.As shown in Figure 5, the login prompt information of first terminal display can comprise this Quick Response Code, and now, the second terminal can scan this graphic code, obtains the download address of this application, and then downloads and install this application.If this second terminal used this application in the past, then can comprise information in the login prompt information that web server sends to first terminal, such as, this information can be " please logging in the second terminal ".
Preferably, in order to reduce the complexity of download file, web server can not judge whether the second terminal used this application in the past, and this web server can directly generate login prompt information according to the download address of this application and information, as shown in Figure 6.So, after first terminal shows this login prompt information, if user determines that the second terminal installs this application, then the second terminal can directly log in this user account, if user determines that the second terminal does not install this application, then the second terminal according to this download address, can be downloaded and install this application, and logging in this user account.
The step of above-mentioned 307 and 308 does not have sequencing, that is to say, step 307 can perform before step 308, can perform after step 307 yet, and certainly, also can perform with step 307, the embodiment of the present invention is not specifically limited this simultaneously.
Step 309: when web server sets up the connection between the second terminal, determine that the second terminal has logged in this user account.
Wherein, after the prompting by above-mentioned steps 307, the second terminal can log in this user account, and sets up the connection between web server, and now, web server just can determine that the second terminal has logged in this user account.
Step 310: this web server, according to this user account, obtains the first file identification from storage server.
Particularly, this web server sends to storage server the request of acquisition, carries this user account in this acquisition request.When storage server receives this acquisition request, storage server, according to this user account, obtains the first file identification, and the first file identification is sent to this web server from the corresponding relation between the user account stored and file identification.
Step 311: this user account and the first file identification are sent to data server by this web server.
When by above-mentioned steps, web server determines that the second terminal has logged in this user account, this user account and the first file identification can be sent to server by this web server, make data server that the first file is sent to the second terminal.
Step 312: when data server receives this user account and the first file identification, data server, based on this user account and the first file identification, sends the first file to the second terminal.
Particularly, when data server receives this user account and the first file identification, data server is according to the first file identification, from the corresponding relation between the file identification stored and file, obtain the first file, and based on this user account, the first file is sent to the second terminal.
Further, data server is based on this user account and the first file identification, after the second terminal sends the first file, also comprise: data server sends response message to web server, when web server receives this response message, web server is by the connection between the second terminal and server, and send prompting download information to the second terminal, this prompting download information is downloading the first file for pointing out user second terminal.Such as, the name of the first file is called " we are always in searching ", then the second terminal can show prompting download information as shown in Figure 7.
Further, when the first file download completes, data server can also send download to web server and complete message, when web server receive this download complete message time, web server, by the connection between the second terminal and server, sends download to the second terminal and completes information.
Alternatively, the step of above-mentioned 311 and 312 can also replace in the following method, comprise: this web server is based on the first file identification, generate the second file download instructions, and based on this user account, by the connection between the second terminal and web server, the second file download instructions is sent to the second terminal.When the second terminal receives the second file download instructions, this second terminal sends the second file download request to data server, carries the first file identification in the second file download request.When data server receives the second file download request, this data server, according to the first file identification, from the corresponding relation between the file identification stored and file, obtains the first file, and based on this user account, the first file is sent to the second terminal.
Alternatively, because the first file is comparatively large, the downloading flow taken is more, so, in order to save the flow of the second terminal, when the second terminal downloads the first file from data server, whether the network of the current connection of the second terminal judges is hotspot network, if the second terminal current connection hotspot network, then the second terminal performs download step, if current connection mobile data network, then the second display reminding information, whether prompting downloads the first file under mobile data network.When determining to download the first file under mobile data network, then the second terminal performs download step.
Further, in embodiments of the present invention, when the file downloaded is multimedia file, not only can by first terminal to the second terminal downloading files, fileinfo etc. corresponding to the second terminal plays file, display file can also be controlled, such as, by conputer controlled mobile phone played songs by first terminal, or the special edition shown belonging to this song, and the singer informations etc. of this song.Specific as follows:
Web server receives the file playing request that first terminal sends, this file playing request carries this user account and the second file identification to be played, this file playing request is for asking the second terminal plays second file bound with this user account, and the second file is multimedia file; Web server, according to this user account and the second terminal iidentification, inquires about the connection between the second terminal and web server; By the connection between the second terminal and web server, send play instruction to the second terminal, make the second terminal plays second file, in this play instruction, carry the second file identification.
Wherein, web server is according to this user account and the second terminal iidentification, before inquiring about the connection between the second terminal and web server, this web server also can determine the second terminal iidentification bound with this user account, and determine that the method in the Methods and steps 303 of the second terminal iidentification bound with this user account is identical or similar, the embodiment of the present invention does not repeat them here.
Further, user can also share file by first terminal to the good friend of user, comprise: web server receives the sharing files request that first terminal sends, good friend's user account and the 3rd file identification to be shared are carried in this sharing files request, and this sharing files request is for asking the 3rd sharing files to third terminal corresponding to the good friend of user; Good friend's user account and the 3rd file identification are sent to data server by this web server, and data server, according to the 3rd file identification, from the corresponding relation between the file identification stored and file, obtains the 3rd file; Based on good friend's user account, the 3rd file is sent to third terminal.
Wherein, third terminal corresponding to good friend is the terminal of binding with good friend's account, and this terminal can be mobile phone, and can be also computer, the embodiment of the present invention be not specifically limited this.
Further, if when third terminal corresponding to good friend does not log in good friend's user account, also the corresponding relation between good friend's user account and the 3rd file identification can be stored in storage server, when third terminal logs in good friend's user account, the 3rd file identification is obtained again from storage server, and by the 3rd sharing files to third terminal corresponding to good friend.
In embodiments of the present invention, after first terminal sends the first file download request to server, when server determines that the second terminal has logged in this user account, this server sends the first file directly to the second terminal, if first terminal is computer, second terminal is mobile phone, like this, the first file download request is sent to server by computer, avoid the less situation of easily makeing mistakes of mobile phone screen, and by computer to after server sends the first file download request, server directly by the first file download on mobile phone, do not have the first file download to computer, eliminate the process of file copy, decrease the time of download file, and then improve the efficiency of download file.
Fig. 8 is a kind of file downloading device structural representation that the embodiment of the present invention provides.See Fig. 8, this device comprises: the first receiver module 801, determination module 802 and the first sending module 803.
First receiver module 801, for receiving the first file download request that first terminal sends, the listed user account of first terminal and the first file identification to be downloaded are carried in first file download request, and the first file download request is for asking second terminal of extremely being bound with this user account by the first file download;
Determination module 802, for determining that the second terminal has logged in this user account;
First sending module 803, for based on this user account and the first file identification, sends the first file to the second terminal.
Alternatively, as shown in Figure 9, determination module 802 comprises:
Judging unit 8021, for judging whether the second terminal has logged in this user account;
First transmitting element 8022, for when the second terminal does not log in this user account, sends login prompt information to first terminal, makes the second terminal log in this user account.
Alternatively, judging unit 8021 comprises:
Obtain subelement, for according to this user account, obtain the connection logged between the terminal of this user account and server;
First determines subelement, for determining the second terminal iidentification bound with this user account;
Judgment sub-unit, for based on the second terminal iidentification, judges the connection whether comprised in the connection obtained between the second terminal and server;
Second determines subelement, during for comprising the connection between the second terminal and server when the connection obtained, determines that the second terminal has logged in this user account;
3rd determines subelement, for when not comprising the connection between the second terminal and server in the connection obtained, determines that the second terminal does not log in this user account.
Alternatively, the first transmitting element 8022 comprises:
Storing sub-units, for storing this user account and the first file identification;
Send subelement, for sending login prompt information to first terminal, login prompt information makes the second terminal log in this user account for pointing out user;
4th determines subelement, for when setting up the connection between the second terminal, determines that the second terminal has logged in this user account.
Alternatively, first determines subelement, specifically for:
According to this user account, from the corresponding relation between the user account stored and terminal iidentification, obtain the second terminal iidentification bound with this user account, the terminal iidentification stored in the corresponding relation between user account and terminal iidentification is the terminal iidentification of user account described in historical log; Or,
When the second terminal iidentification is also carried in the first file download request, the second terminal iidentification that the first file download request is carried is defined as the second terminal iidentification bound with this user account.
Alternatively, as shown in Figure 10, this device also comprises:
Second receiver module 804, the mark sent for receiving first terminal obtains request, and this mark obtains request and carries this user account;
First acquisition module 805, for according to this user account, from the corresponding relation between the user account stored and terminal iidentification, obtains corresponding terminal iidentification;
Second sending module 806, for the terminal iidentification of acquisition is sent to first terminal, makes first terminal determine the second terminal iidentification from the terminal iidentification obtained, and is carried in the first file download request by the second terminal iidentification.
Alternatively, as shown in figure 11, the first sending module 803 comprises:
Generation unit 8031, for based on the first file identification, generates the second file download instructions;
Second transmitting element 8032, for based on this user account, sends to the second terminal by the second file download instructions, and make the second terminal to server send the second file download request, the first file identification is carried in the second file download request;
Acquiring unit 8033, for when receiving the second file download request, according to the first file identification, from the corresponding relation between the file identification stored and file, obtains the first file;
3rd transmitting element 8034, for sending to the second terminal by the first file.
Alternatively, as shown in figure 12, this device also comprises:
3rd sending module 807, for passing through the connection between the second terminal and server, send prompting download information to the second terminal, prompting download information is downloading the first file for pointing out user second terminal.
Alternatively, as shown in figure 13, this device also comprises:
3rd receiver module 808, for receiving the file playing request that first terminal sends, this file playing request carries this user account and the second file identification to be played, and this file playing request is for asking the second terminal plays second file, and the second file is multimedia file;
Enquiry module 809, for according to this user account and the second terminal iidentification, inquires about the connection between the second terminal and server;
4th sending module 810, for by the connection between the second terminal and server, sends play instruction to the second terminal, makes the second terminal plays second file, carry the second file identification in this play instruction.
Alternatively, as shown in figure 14, this device also comprises:
4th receiver module 811, for receiving the sharing files request that first terminal sends, good friend's user account and the 3rd file identification to be shared are carried in this sharing files request, and this sharing files request is for asking the 3rd sharing files to third terminal corresponding to the good friend of user;
Second acquisition module 812, for according to the 3rd file identification, from the corresponding relation between the file identification stored and file, obtains the 3rd file;
5th sending module 813, for based on good friend's user account, sends to third terminal by the 3rd file.
In embodiments of the present invention, after first terminal sends the first file download request to server, when server determines that the second terminal has logged in this user account, this server sends the first file directly to the second terminal, if first terminal is computer, second terminal is mobile phone, like this, the first file download request is sent to server by computer, avoid the less situation of easily makeing mistakes of mobile phone screen, and by computer to after server sends the first file download request, server directly by the first file download on mobile phone, do not have the first file download to computer, eliminate the process of file copy, decrease the time of download file, and then improve the efficiency of download file.
It should be noted that: the file downloading device that above-described embodiment provides is when file download, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the file downloading device that above-described embodiment provides and document down loading method embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (20)

1. a document down loading method, is characterized in that, described method comprises:
Receive the first file download request that first terminal sends, the listed user account of described first terminal and the first file identification to be downloaded are carried in described first file download request, and described first file download request is for asking second terminal of extremely being bound with described user account by the first file download;
Determine that described second terminal has logged in described user account;
Based on described user account and described first file identification, send described first file to described second terminal.
2. the method for claim 1, is characterized in that, describedly determines that described second terminal has logged in described user account, comprising:
Judge whether described second terminal has logged in described user account;
When described second terminal does not log in described user account, send login prompt information to described first terminal, make described second terminal log in described user account.
3. method as claimed in claim 2, is characterized in that, describedly judges whether described second terminal has logged in described user account, comprising:
According to described user account, obtain the connection logged between the terminal of described user account and server;
Determine the second terminal iidentification bound with described user account;
Based on described second terminal iidentification, judge the connection whether comprised in the connection obtained between described second terminal and described server;
When the connection obtained comprises the connection between described second terminal and described server, determine that described second terminal has logged in described user account;
When not comprising the connection between described second terminal and described server in the connection obtained, determine that described second terminal does not log in described user account.
4. method as claimed in claim 2, is characterized in that, described when described second terminal does not log in described user account, sends login prompt information, make described second terminal log in described user account, comprising to described first terminal:
Store described user account and described first file identification;
Send login prompt information to described first terminal, described login prompt information makes described second terminal log in described user account for pointing out user;
When setting up the connection between described second terminal, determine that described second terminal has logged in described user account.
5. method as claimed in claim 3, it is characterized in that, described the second terminal iidentification determining to bind with described user account, comprising:
According to described user account, from the corresponding relation between the user account stored and terminal iidentification, obtain the second terminal iidentification bound with described user account, the terminal iidentification stored in the corresponding relation between described user account and terminal iidentification is the terminal iidentification of user account described in historical log; Or,
When the second terminal iidentification is also carried in described first file download request, the second terminal iidentification that described first file download request is carried is defined as the second terminal iidentification bound with described user account.
6. the method for claim 1, is characterized in that, before the first file download request that described reception first terminal sends, also comprises:
Receive the mark acquisition request that described first terminal sends, described user account is carried in described mark acquisition request;
According to described user account, from the corresponding relation between the user account stored and terminal iidentification, obtain corresponding terminal iidentification;
The terminal iidentification of acquisition is sent to described first terminal, makes described first terminal determine the second terminal iidentification from the terminal iidentification of described acquisition, and described second terminal iidentification is carried in described first file download request.
7. the method for claim 1, is characterized in that, described based on described user account and described first file identification, sends described first file, comprising to described second terminal:
Based on described first file identification, generate the second file download instructions;
Based on described user account, described second file download instructions is sent to described second terminal, make described second terminal to server send the second file download request, described first file identification is carried in described second file download request;
When receiving described second file download request, according to described first file identification, from the corresponding relation between the file identification stored and file, obtain the first file;
Described first file is sent to described second terminal.
8. the method for claim 1, is characterized in that, described based on described user account and described first file identification, after described second terminal sends described first file, also comprises:
By the connection between described second terminal and server, send prompting download information to described second terminal, described prompting download information is downloading described first file for pointing out the second terminal described in user.
9. the method as described in claim as arbitrary in claim 1-8, is characterized in that, described method also comprises:
Receive the file playing request that described first terminal sends, described file playing request carries described user account and the second file identification to be played, described file playing request is for asking described second terminal plays second file, and described second file is multimedia file;
According to described user account and the second terminal iidentification, inquire about the connection between described second terminal and server;
By the connection between described second terminal and described server, send play instruction to described second terminal, make the second file described in described second terminal plays, in described play instruction, carry described second file identification.
10. the method as described in claim as arbitrary in claim 1-8, is characterized in that, described method also comprises:
Receive the sharing files request that described first terminal sends, good friend's user account and the 3rd file identification to be shared are carried in described sharing files request, and described sharing files request is for asking the 3rd sharing files to third terminal corresponding to the good friend of user;
According to described 3rd file identification, from the corresponding relation between the file identification stored and file, obtain the 3rd file;
Based on described good friend's user account, described 3rd file is sent to described third terminal.
11. 1 kinds of file downloading devices, is characterized in that, described device comprises:
First receiver module, for receiving the first file download request that first terminal sends, the listed user account of described first terminal and the first file identification to be downloaded are carried in described first file download request, and described first file download request is for asking second terminal of extremely being bound with described user account by the first file download;
Determination module, for determining that described second terminal has logged in described user account;
First sending module, for based on described user account and described first file identification, sends described first file to described second terminal.
12. devices as claimed in claim 11, it is characterized in that, described determination module comprises:
Judging unit, for judging whether described second terminal has logged in described user account;
First transmitting element, for when described second terminal does not log in described user account, sends login prompt information to described first terminal, makes described second terminal log in described user account.
13. devices as claimed in claim 12, it is characterized in that, described judging unit comprises:
Obtain subelement, for according to described user account, obtain the connection logged between the terminal of described user account and server;
First determines subelement, for determining the second terminal iidentification bound with described user account;
Judgment sub-unit, for based on described second terminal iidentification, judges the connection whether comprised in the connection obtained between described second terminal and described server;
Second determines subelement, during for comprising the connection between described second terminal and described server when the connection obtained, determines that described second terminal has logged in described user account;
3rd determines subelement, for when not comprising the connection between described second terminal and described server in the connection obtained, determines that described second terminal does not log in described user account.
14. devices as claimed in claim 12, it is characterized in that, described first transmitting element comprises:
Storing sub-units, for storing described user account and described first file identification;
Send subelement, for sending login prompt information to described first terminal, described login prompt information makes described second terminal log in described user account for pointing out user;
4th determines subelement, for when setting up the connection between described second terminal, determines that described second terminal has logged in described user account.
15. devices as claimed in claim 13, is characterized in that,
Described first determines subelement, specifically for:
According to described user account, from the corresponding relation between the user account stored and terminal iidentification, obtain the second terminal iidentification bound with described user account, the terminal iidentification stored in the corresponding relation between described user account and terminal iidentification is the terminal iidentification of user account described in historical log; Or,
When the second terminal iidentification is also carried in described first file download request, the second terminal iidentification that described first file download request is carried is defined as the second terminal iidentification bound with described user account.
16. devices as claimed in claim 11, it is characterized in that, described device also comprises:
Second receiver module, the mark sent for receiving described first terminal obtains request, and described user account is carried in described mark acquisition request;
First acquisition module, for according to described user account, from the corresponding relation between the user account stored and terminal iidentification, obtains corresponding terminal iidentification;
Second sending module, for the terminal iidentification of acquisition is sent to described first terminal, makes described first terminal determine the second terminal iidentification from the terminal iidentification of described acquisition, and is carried in described first file download request by described second terminal iidentification.
17. devices as claimed in claim 11, it is characterized in that, described first sending module comprises:
Generation unit, for based on described first file identification, generates the second file download instructions;
Second transmitting element, for based on described user account, described second file download instructions is sent to described second terminal, makes described second terminal to server send the second file download request, described first file identification is carried in described second file download request;
Acquiring unit, for when receiving described second file download request, according to described first file identification, from the corresponding relation between the file identification stored and file, obtains the first file;
3rd transmitting element, for sending to described second terminal by described first file.
18. devices as claimed in claim 11, it is characterized in that, described device also comprises:
3rd sending module, for by the connection between described second terminal and server, send prompting download information to described second terminal, described prompting download information is downloading described first file for pointing out the second terminal described in user.
Device as described in 19. claims as arbitrary in claim 11-18, it is characterized in that, described device also comprises:
3rd receiver module, for receiving the file playing request that described first terminal sends, described file playing request carries described user account and the second file identification to be played, described file playing request is for asking described second terminal plays second file, and described second file is multimedia file;
Enquiry module, for according to described user account and the second terminal iidentification, inquires about the connection between described second terminal and server;
4th sending module, for by the connection between described second terminal and described server, sends play instruction to described second terminal, makes the second file described in described second terminal plays, carry described second file identification in described play instruction.
Device as described in 20. claims as arbitrary in claim 11-18, it is characterized in that, described device also comprises:
4th receiver module, for receiving the sharing files request that described first terminal sends, good friend's user account and the 3rd file identification to be shared are carried in described sharing files request, and described sharing files request is for asking the 3rd sharing files to third terminal corresponding to the good friend of user;
Second acquisition module, for according to described 3rd file identification, from the corresponding relation between the file identification stored and file, obtains the 3rd file;
5th sending module, for based on described good friend's user account, sends to described third terminal by described 3rd file.
CN201410583633.XA 2014-10-27 2014-10-27 Document down loading method and device Active CN104967646B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410583633.XA CN104967646B (en) 2014-10-27 2014-10-27 Document down loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410583633.XA CN104967646B (en) 2014-10-27 2014-10-27 Document down loading method and device

Publications (2)

Publication Number Publication Date
CN104967646A true CN104967646A (en) 2015-10-07
CN104967646B CN104967646B (en) 2018-08-14

Family

ID=54221587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410583633.XA Active CN104967646B (en) 2014-10-27 2014-10-27 Document down loading method and device

Country Status (1)

Country Link
CN (1) CN104967646B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530239A (en) * 2015-11-26 2016-04-27 广州酷狗计算机科技有限公司 Multimedia data obtaining method and device
CN105763601A (en) * 2016-01-29 2016-07-13 北京小米移动软件有限公司 File sharing method and device
CN105933403A (en) * 2016-04-19 2016-09-07 乐视控股(北京)有限公司 Method and system for sharing content based on family account
CN106302773A (en) * 2016-08-23 2017-01-04 惠州市拉维尼科技有限公司 remote data processing method
CN108960378B (en) * 2018-08-08 2020-05-12 腾讯科技(深圳)有限公司 Data downloading method, system, device and storage medium
CN114024953A (en) * 2021-10-22 2022-02-08 北京达佳互联信息技术有限公司 File transmission method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050102381A1 (en) * 2003-11-10 2005-05-12 Jiang Zhaowei C. Upload security scheme
CN101080056A (en) * 2006-12-21 2007-11-28 腾讯科技(深圳)有限公司 A management method and system of network browser collection folder of mobile terminal
CN103260079A (en) * 2013-04-12 2013-08-21 深圳市龙视传媒有限公司 Control method and control device for multi-screen interaction
CN103945009A (en) * 2014-05-09 2014-07-23 张志强 Software sharing method and device
CN104092723A (en) * 2014-04-04 2014-10-08 腾讯科技(深圳)有限公司 File downloading method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050102381A1 (en) * 2003-11-10 2005-05-12 Jiang Zhaowei C. Upload security scheme
CN101080056A (en) * 2006-12-21 2007-11-28 腾讯科技(深圳)有限公司 A management method and system of network browser collection folder of mobile terminal
CN103260079A (en) * 2013-04-12 2013-08-21 深圳市龙视传媒有限公司 Control method and control device for multi-screen interaction
CN104092723A (en) * 2014-04-04 2014-10-08 腾讯科技(深圳)有限公司 File downloading method, device and system
CN103945009A (en) * 2014-05-09 2014-07-23 张志强 Software sharing method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530239A (en) * 2015-11-26 2016-04-27 广州酷狗计算机科技有限公司 Multimedia data obtaining method and device
CN105530239B (en) * 2015-11-26 2019-08-13 广州酷狗计算机科技有限公司 Multi-medium data acquisition methods and device
CN105763601A (en) * 2016-01-29 2016-07-13 北京小米移动软件有限公司 File sharing method and device
CN105933403A (en) * 2016-04-19 2016-09-07 乐视控股(北京)有限公司 Method and system for sharing content based on family account
CN106302773A (en) * 2016-08-23 2017-01-04 惠州市拉维尼科技有限公司 remote data processing method
CN108960378B (en) * 2018-08-08 2020-05-12 腾讯科技(深圳)有限公司 Data downloading method, system, device and storage medium
CN114024953A (en) * 2021-10-22 2022-02-08 北京达佳互联信息技术有限公司 File transmission method and device and electronic equipment
CN114024953B (en) * 2021-10-22 2024-02-23 北京达佳互联信息技术有限公司 File transmission method and device and electronic equipment

Also Published As

Publication number Publication date
CN104967646B (en) 2018-08-14

Similar Documents

Publication Publication Date Title
US10708390B2 (en) Method, user equipment, server, and apparatus for implementing information sharing
CN104967646A (en) File downloading method and apparatus
CN103294487B (en) The method of mounting software, equipment and system
CN103139173B (en) Terminal unit, exchange network system, media business method for down loading and system
CN103152392B (en) Installation kit supplying method, acquisition methods, equipment and system
CN103581706B (en) The application installation method of intelligent television and system
US20150281123A1 (en) Device controlling method, client, server and intermediate device
CN104410660A (en) Method and device of downloading multimedia resources as well as router and server
CN104767767A (en) Method, device and system for sharing Internet access data and network equipment
CN102111426A (en) Method, system and device for implementing point-to-point technology
CN103051690B (en) In a kind of local area network (LAN), on-vehicle host plays system and the implementation method of mobile phone music
CN103595782A (en) Distributed storage system and method for downloading files thereof
CN104618418A (en) Method and device for playing multimedia file
CN104239467A (en) Application program recommendation method, system and device
CN104717527A (en) Video transmission method and video transmission device
CN104333768A (en) Multimedia file playing method and device and electronic equipment
CN112637245B (en) Internet of things equipment binding method and device
CN105791093A (en) Virtual goods presenting method and device
CN104866743A (en) Method and device for calling interface in browser
CN105989118A (en) Software recommendation method and equipment
CN104281661A (en) Data downloading method
CN103746820A (en) Channel function providing method and device
CN102685724A (en) Method, terminal and system for customizing content
CN102904935A (en) Downloading method, downloading device and downloading system based on home gateway
CN105872857A (en) Video processing method and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20161101

Address after: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: Shenzhen Futian District City, Guangdong province 518000 Zhenxing Road, SEG Science Park 2 East Room 403

Applicant before: Tencent Technology (Shenzhen) Co., Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant before: Guangzhou KuGou Networks Co., Ltd.

GR01 Patent grant
GR01 Patent grant