Movatterモバイル変換


[0]ホーム

URL:


CN106776917A - A kind of method and apparatus for obtaining resource file - Google Patents

A kind of method and apparatus for obtaining resource file
Download PDF

Info

Publication number
CN106776917A
CN106776917ACN201611087646.3ACN201611087646ACN106776917ACN 106776917 ACN106776917 ACN 106776917ACN 201611087646 ACN201611087646 ACN 201611087646ACN 106776917 ACN106776917 ACN 106776917A
Authority
CN
China
Prior art keywords
resource file
target
information
terminal
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
Application number
CN201611087646.3A
Other languages
Chinese (zh)
Other versions
CN106776917B (en
Inventor
谢焱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co LtdfiledCriticalBeijing Xiaomi Mobile Software Co Ltd
Priority to CN201611087646.3ApriorityCriticalpatent/CN106776917B/en
Publication of CN106776917ApublicationCriticalpatent/CN106776917A/en
Application grantedgrantedCritical
Publication of CN106776917BpublicationCriticalpatent/CN106776917B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本公开提供了一种获取资源文件的方法和装置,属于计算机技术领域。所述方法包括:获取目标账户的资源文件需求信息,所述资源文件需求信息中包含目标资源文件标识,向所述目标账户之外的其他账户登录的终端,发送携带有所述目标资源文件标识的资源文件共享请求,其中,所述资源文件共享请求用于请求所述终端在检测到存储有所述目标资源文件标识对应的资源文件时上传所述资源文件的下载信息,所述资源文件的下载信息包括所述资源文件的内容数据或者所述资源文件的下载地址,接收至少一个所述终端上传的所述资源文件的下载信息,并向所述目标账户登录的目标终端发送接收到的下载信息。采用本公开,可以提高获取资源文件的效率。

The disclosure provides a method and device for acquiring resource files, which belong to the technical field of computers. The method includes: obtaining resource file requirement information of a target account, wherein the resource file requirement information includes a target resource file identifier, and sending a message carrying the target resource file identifier to a terminal logged in to an account other than the target account. resource file sharing request, wherein the resource file sharing request is used to request the terminal to upload the download information of the resource file when it detects that the resource file corresponding to the target resource file identifier is stored, and the resource file’s The download information includes the content data of the resource file or the download address of the resource file, receiving the download information of the resource file uploaded by at least one terminal, and sending the received download information to the target terminal logged into the target account. information. By adopting the present disclosure, the efficiency of obtaining resource files can be improved.

Description

Translated fromChinese
一种获取资源文件的方法和装置A method and device for obtaining resource files

技术领域technical field

本发明涉及计算机技术领域,特别涉及一种获取资源文件的方法和装置。The present invention relates to the field of computer technology, in particular to a method and device for acquiring resource files.

背景技术Background technique

随着互联网技术的不断发展,人们的生活愈加离不开网络,人们可以通过网络获取多种多样的资源文件,如电影、小说、音乐、图片等。With the continuous development of Internet technology, people's lives are increasingly inseparable from the Internet. People can obtain a variety of resource files through the Internet, such as movies, novels, music, pictures, etc.

当用户想要获取某个资源文件时,可以打开安装在终端上的网页浏览程序,然后在网络上搜索该资源文件的链接地址,进而可以从该链接地址对应的存储空间处获取资源文件。When the user wants to obtain a certain resource file, he can open the web browsing program installed on the terminal, and then search for the link address of the resource file on the Internet, and then obtain the resource file from the storage space corresponding to the link address.

在实现本发明的过程中,发明人发现现有技术至少存在以下问题:In the process of realizing the present invention, the inventor finds that there are at least the following problems in the prior art:

有些资源文件比较稀缺,链接地址比较难搜索到,用户往往需要花费大量的时间才能搜索到该资源文件的链接地址,故而,获取资源文件的效率较低。Some resource files are relatively scarce, and the link addresses are difficult to find. Users often need to spend a lot of time to search for the link addresses of the resource files. Therefore, the efficiency of obtaining resource files is low.

发明内容Contents of the invention

为了解决现有技术的问题,本公开实施例提供了一种获取资源文件的方法和装置。所述技术方案如下:In order to solve the problems in the prior art, embodiments of the present disclosure provide a method and device for acquiring resource files. Described technical scheme is as follows:

第一方面,提供了一种获取资源文件的方法,所述方法包括:In a first aspect, a method for obtaining a resource file is provided, the method comprising:

获取目标账户的资源文件需求信息,所述资源文件需求信息中包含目标资源文件标识;Obtain resource file requirement information of the target account, where the resource file requirement information includes a target resource file identifier;

向所述目标账户之外的其他账户登录的终端,发送携带有所述目标资源文件标识的资源文件共享请求,其中,所述资源文件共享请求用于请求所述终端在检测到存储有所述目标资源文件标识对应的资源文件时上传所述资源文件的下载信息,所述资源文件的下载信息包括所述资源文件的内容数据或者所述资源文件的下载地址;Send a resource file sharing request carrying the target resource file identifier to a terminal that logs in to an account other than the target account, where the resource file sharing request is used to request the terminal to detect that the resource file is stored in the Uploading the download information of the resource file when the target resource file identifies the corresponding resource file, the download information of the resource file includes the content data of the resource file or the download address of the resource file;

接收至少一个所述终端上传的所述资源文件的下载信息,并向所述目标账户登录的目标终端发送接收到的下载信息。receiving download information of the resource file uploaded by at least one terminal, and sending the received download information to the target terminal logged into the target account.

可选的,所述获取目标账户的资源文件需求信息,包括:Optionally, the acquiring resource file requirement information of the target account includes:

根据与所述目标账户绑定的第三方应用账户的账户信息,获取所述目标账户的资源文件需求信息;或者,Obtain resource file requirement information of the target account according to account information of a third-party application account bound to the target account; or,

根据所述目标账户登录的终端的历史搜索信息,获取所述目标账户的资源文件需求信息;或者,Obtain resource file requirement information of the target account according to the historical search information of the terminal logged in by the target account; or,

获取所述目标账户登录的终端发送的资源文件获取请求中携带的资源文件需求信息。The resource file requirement information carried in the resource file acquisition request sent by the terminal logged in with the target account is acquired.

这样,服务器可以通过多种途径及时获取到目标账户的资源文件需求信息。In this way, the server can obtain resource file requirement information of the target account in a timely manner through various channels.

可选的,所述资源文件需求信息中还包含目标资源文件类型;Optionally, the resource file requirement information also includes a target resource file type;

所述接收至少一个所述终端上传的所述资源文件的下载信息,并向所述目标账户登录的目标终端发送接收到的下载信息,包括:The receiving the download information of the resource file uploaded by at least one terminal, and sending the received download information to the target terminal logged in with the target account includes:

接收至少一个所述终端上传的多个资源文件的下载信息,并获取所述多个资源文件的文件类型;receiving download information of multiple resource files uploaded by at least one terminal, and acquiring file types of the multiple resource files;

向所述目标账户登录的目标终端,发送接收到的符合所述目标资源文件类型的下载信息。The target terminal logged into the target account sends the received download information matching the type of the target resource file.

这样,用户可以获取到自己需要的文件类型的资源文件的下载信息,从而获取到的下载信息准确性较高。In this way, the user can obtain the download information of the resource file of the file type he needs, so that the obtained download information is more accurate.

可选的,所述接收至少一个所述终端上传的所述资源文件的下载信息,并向所述目标账户登录的目标终端发送接收到的下载信息,包括:Optionally, receiving at least one download information of the resource file uploaded by the terminal, and sending the received download information to the target terminal logged in with the target account includes:

接收至少一个所述终端上传的多个资源文件的下载信息,根据预设排序规则对所述多个资源文件的下载信息进行排序,生成资源文件列表,并向所述目标账户登录的目标终端发送所述资源文件列表;receiving download information of a plurality of resource files uploaded by at least one terminal, sorting the download information of the plurality of resource files according to a preset sorting rule, generating a list of resource files, and sending the resource file list to the target terminal logged in with the target account a list of said resource files;

根据接收到的所述目标终端发送的目标资源文件的获取请求,向所述目标终端发送所述目标资源文件的下载信息。Send the download information of the target resource file to the target terminal according to the received acquisition request of the target resource file sent by the target terminal.

这样,用户可以在多个下载信息中选择最好的资源文件的下载信息。In this way, the user can select the download information of the best resource file among multiple download information.

可选的,所述接收至少一个所述终端上传的所述资源文件的下载信息,并向所述目标账户登录的目标终端发送接收到的下载信息,包括:Optionally, receiving at least one download information of the resource file uploaded by the terminal, and sending the received download information to the target terminal logged in with the target account includes:

接收至少一个所述终端上传的所述资源文件的下载信息,并当检测到满足预设触发条件时,向所述目标账户登录的目标终端发送接收到的下载信息。receiving the download information of the resource file uploaded by at least one terminal, and sending the received download information to the target terminal logged into the target account when it is detected that a preset trigger condition is met.

这样,用户可以在满足自己设定的条件下获取到资源文件的下载信息。In this way, the user can obtain the download information of the resource file under the conditions set by the user.

可选的,所述向所述目标账户之外的其他账户登录的终端,发送携带有所述目标资源文件标识的资源文件共享请求,包括:Optionally, the terminal that logs in to an account other than the target account, sending a resource file sharing request carrying the target resource file identifier includes:

向所述目标账户之外的、资源共享权限已开放的其他账户登录的终端,发送携带有所述目标资源文件标识的资源文件共享请求。A resource file sharing request carrying the target resource file identifier is sent to a terminal logged in with an account other than the target account whose resource sharing authority has been released.

这样,用户可以通过设置资源共享权限来保证自己终端内的资源文件可以或不可以共享给他人。In this way, the user can ensure that the resource files in his own terminal can or cannot be shared with others by setting the resource sharing permission.

可选的,所述接收至少一个所述终端上传的所述资源文件的下载信息之后,还包括:Optionally, after receiving at least one download information of the resource file uploaded by the terminal, the method further includes:

存储所述资源文件的下载信息;storing download information of the resource file;

当再次获取到包含有所述目标资源文件标识的资源文件需求信息时,向所述资源文件需求信息所属的账户登录的终端,发送所述资源文件的下载信息。When the resource file requirement information including the target resource file identifier is acquired again, the download information of the resource file is sent to the terminal logged in with the account to which the resource file requirement information belongs.

这样,服务器可以直接将已存储的资源文件的下载信息发送给有相应需求的用户,无需重复从其他账户登录的终端处获取。In this way, the server can directly send the download information of the stored resource files to users who have corresponding needs, without repeatedly obtaining from terminals logged in with other accounts.

第二方面,提供了一种获取资源文件的装置,所述装置包括:In a second aspect, an apparatus for obtaining a resource file is provided, the apparatus comprising:

获取模块,用于获取目标账户的资源文件需求信息,所述资源文件需求信息中包含目标资源文件标识;An acquisition module, configured to acquire resource file requirement information of the target account, where the resource file requirement information includes a target resource file identifier;

第一发送模块,用于向所述目标账户之外的其他账户登录的终端,发送携带有所述目标资源文件标识的资源文件共享请求,其中,所述资源文件共享请求用于请求所述终端在检测到存储有所述目标资源文件标识对应的资源文件时上传所述资源文件的下载信息,所述资源文件的下载信息包括所述资源文件的内容数据或者所述资源文件的下载地址;The first sending module is configured to send a resource file sharing request carrying the target resource file identifier to a terminal logged in with an account other than the target account, wherein the resource file sharing request is used to request the terminal uploading the download information of the resource file when it is detected that the resource file corresponding to the target resource file identifier is stored, the download information of the resource file includes the content data of the resource file or the download address of the resource file;

接收模块,用于接收至少一个所述终端上传的所述资源文件的下载信息,并向所述目标账户登录的目标终端发送接收到的下载信息。The receiving module is configured to receive download information of the resource file uploaded by at least one terminal, and send the received download information to the target terminal logged into the target account.

可选的,所述获取模块,用于:Optionally, the acquiring module is used for:

根据与所述目标账户绑定的第三方应用账户的账户信息,获取所述目标账户的资源文件需求信息;或者,Obtain resource file requirement information of the target account according to account information of a third-party application account bound to the target account; or,

根据所述目标账户登录的终端的历史搜索信息,获取所述目标账户的资源文件需求信息;或者,Obtain resource file requirement information of the target account according to the historical search information of the terminal logged in by the target account; or,

获取所述目标账户登录的终端发送的资源文件获取请求中携带的资源文件需求信息。The resource file requirement information carried in the resource file acquisition request sent by the terminal logged in with the target account is acquired.

可选的,所述资源文件需求信息中还包含目标资源文件类型;Optionally, the resource file requirement information also includes a target resource file type;

所述接收模块,包括:The receiving module includes:

接收子模块,用于接收至少一个所述终端上传的多个资源文件的下载信息,并获取所述多个资源文件的文件类型;A receiving submodule, configured to receive download information of at least one resource file uploaded by the terminal, and obtain file types of the resource files;

第一发送子模块,用于向所述目标账户登录的目标终端,发送接收到的符合所述目标资源文件类型的下载信息。The first sending sub-module is configured to send the received download information conforming to the type of the target resource file to the target terminal logged into the target account.

可选的,所述接收模块,包括:Optionally, the receiving module includes:

排序子模块,用于接收至少一个所述终端上传的多个资源文件的下载信息,根据预设排序规则对所述多个资源文件的下载信息进行排序,生成资源文件列表,并向所述目标账户登录的目标终端发送所述资源文件列表;The sorting submodule is configured to receive download information of at least one resource file uploaded by the terminal, sort the download information of the multiple resource files according to preset sorting rules, generate a list of resource files, and send the resource file list to the target The target terminal for account login sends the resource file list;

第二发送子模块,用于根据接收到的所述目标终端发送的目标资源文件的获取请求,向所述目标终端发送所述目标资源文件的下载信息。The second sending submodule is configured to send the download information of the target resource file to the target terminal according to the received acquisition request of the target resource file sent by the target terminal.

可选的,所述接收模块,用于:Optionally, the receiving module is used for:

接收至少一个所述终端上传的所述资源文件的下载信息,并当检测到满足预设触发条件时,向所述目标账户登录的目标终端发送接收到的下载信息。receiving the download information of the resource file uploaded by at least one terminal, and sending the received download information to the target terminal logged into the target account when it is detected that a preset trigger condition is met.

可选的,所述第一发送模块,用于:Optionally, the first sending module is configured to:

向所述目标账户之外的、资源共享权限已开放的其他账户登录的终端,发送携带有所述目标资源文件标识的资源文件共享请求。A resource file sharing request carrying the target resource file identifier is sent to a terminal logged in with an account other than the target account whose resource sharing authority has been released.

可选的,所述装置还包括:Optionally, the device also includes:

存储模块,用于存储所述资源文件的下载信息;a storage module, configured to store download information of the resource file;

第二发送模块,用于当再次获取到包含有所述目标资源文件标识的资源文件需求信息时,向所述资源文件需求信息所属的账户登录的终端,发送所述资源文件的下载信息。The second sending module is configured to send the download information of the resource file to the terminal logged in to the account to which the resource file requirement information belongs when the resource file requirement information including the target resource file identifier is acquired again.

第三方面,提供了一种获取资源文件的装置,所述装置包括:In a third aspect, a device for obtaining a resource file is provided, the device comprising:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

获取目标账户的资源文件需求信息,所述资源文件需求信息中包含目标资源文件标识;Obtain resource file requirement information of the target account, where the resource file requirement information includes a target resource file identifier;

向所述目标账户之外的其他账户登录的终端,发送携带有所述目标资源文件标识的资源文件共享请求,其中,所述资源文件共享请求用于请求所述终端在检测到存储有所述目标资源文件标识对应的资源文件时上传所述资源文件的下载信息,所述资源文件的下载信息包括所述资源文件的内容数据或者所述资源文件的下载地址;Send a resource file sharing request carrying the target resource file identifier to a terminal that logs in to an account other than the target account, where the resource file sharing request is used to request the terminal to detect that the resource file is stored in the Uploading the download information of the resource file when the target resource file identifies the corresponding resource file, the download information of the resource file includes the content data of the resource file or the download address of the resource file;

接收至少一个所述终端上传的所述资源文件的下载信息,并向所述目标账户登录的目标终端发送接收到的下载信息。receiving download information of the resource file uploaded by at least one terminal, and sending the received download information to the target terminal logged into the target account.

本公开实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solutions provided by the embodiments of the present disclosure are:

本公开实施例中,获取目标账户的资源文件需求信息,资源文件需求信息中包含目标资源文件标识,向目标账户之外的其他账户登录的终端,发送携带有目标资源文件标识的资源文件共享请求,其中,资源文件共享请求用于请求终端在检测到存储有目标资源文件标识对应的资源文件时上传资源文件的下载信息,资源文件的下载信息包括资源文件的内容数据或者资源文件的下载地址,接收至少一个终端上传的资源文件的下载信息,并向目标账户登录的目标终端发送接收到的下载信息。这样,当用户需要获取某个资源文件时,可以通过服务器从其他用户处直接获取到相应的下载信息,然后可以通过下载信息获取资源文件,故而,可以提高获取资源文件的效率。In the embodiment of the present disclosure, the resource file requirement information of the target account is obtained, and the resource file requirement information includes the target resource file identifier, and a resource file sharing request carrying the target resource file identifier is sent to a terminal logged in with an account other than the target account , wherein, the resource file sharing request is used to request the terminal to upload the download information of the resource file when it detects that the resource file corresponding to the target resource file identifier is stored, and the download information of the resource file includes the content data of the resource file or the download address of the resource file, The download information of the resource file uploaded by at least one terminal is received, and the received download information is sent to the target terminal logged in with the target account. In this way, when a user needs to obtain a certain resource file, the corresponding download information can be obtained directly from other users through the server, and then the resource file can be obtained through the download information, thus, the efficiency of obtaining the resource file can be improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1是本公开实施例提供的一种获取资源文件的方法流程图;FIG. 1 is a flow chart of a method for obtaining a resource file provided by an embodiment of the present disclosure;

图2是本公开实施例提供的一种获取资源文件的场景示意图;FIG. 2 is a schematic diagram of a scenario of acquiring a resource file provided by an embodiment of the present disclosure;

图3是本公开实施例提供的一种获取资源文件的装置结构示意图;FIG. 3 is a schematic structural diagram of a device for acquiring resource files provided by an embodiment of the present disclosure;

图4是本公开实施例提供的一种获取资源文件的装置结构示意图;FIG. 4 is a schematic structural diagram of a device for acquiring resource files provided by an embodiment of the present disclosure;

图5是本公开实施例提供的一种获取资源文件的装置结构示意图;FIG. 5 is a schematic structural diagram of an apparatus for acquiring resource files provided by an embodiment of the present disclosure;

图6是本公开实施例提供的一种获取资源文件的装置结构示意图;FIG. 6 is a schematic structural diagram of a device for acquiring resource files provided by an embodiment of the present disclosure;

图7是本公开实施例提供的一种服务器的结构示意图。Fig. 7 is a schematic structural diagram of a server provided by an embodiment of the present disclosure.

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

本公开实施例提供了一种获取资源文件的方法,该方法的执行主体可以为服务器,并由终端辅助实现。其中,服务器可以是提供资源文件分享功能的服务器。该服务器中可以设置有处理器、存储器、收发器,处理器可以用于对种获取资源文件的过程进行处理,存储器可以用于存储下述处理过程中需要的数据以及产生的数据,收发器可以用于接收终端发送的相关数据,也可以用于向终端发送相关数据。本实施例中,以服务器为安装在终端上的用于资源文件获取和分享的应用程序的后台服务器,终端为手机为例,进行方案的详细说明,其它情况与之类似,本实施例不再累述。本方案的实现场景可以如图2所示。The embodiment of the present disclosure provides a method for acquiring a resource file. The method may be executed by a server and assisted by a terminal. Wherein, the server may be a server providing a resource file sharing function. The server can be provided with a processor, a memory, and a transceiver. The processor can be used to process the process of obtaining resource files. The memory can be used to store the data required and generated during the following processing. The transceiver can It is used to receive related data sent by the terminal, and can also be used to send related data to the terminal. In this embodiment, the server is the background server of the application program installed on the terminal for resource file acquisition and sharing, and the terminal is a mobile phone as an example to describe the solution in detail. Other situations are similar, and this embodiment will not Tired. An implementation scenario of this solution may be shown in FIG. 2 .

下面将结合具体实施方式,对图1所示的处理流程进行详细的说明,内容可以如下:The processing flow shown in FIG. 1 will be described in detail below in conjunction with specific implementation methods, and the content may be as follows:

步骤101,获取目标账户的资源文件需求信息,资源文件需求信息中包含目标资源文件标识。Step 101, acquiring resource file requirement information of a target account, where the resource file requirement information includes a target resource file identifier.

其中,目标资源文件标识可以是资源文件的名称、关键信息等。Wherein, the target resource file identifier may be the name of the resource file, key information, and the like.

在实施中,用户可以在终端上安装用于资源文件获取和分享的资源分享类应用程序,用户可以通过该应用程序将已获取到的资源文件分享给其他用户,同时也可以使用该应用程序获取其他用户分享的资源文件。每个用户都可以注册有一个上述应用程序的账户,当用户需要获取某些资源文件(即具有目标资源标识的资源文件)时,上述应用程序可以获取到相应的目标资源文件标识,然后生成资源文件需求信息,资源文件需求信息中可以包含有目标资源文件标识,并将资源文件需求信息记录在用户账户(即目标账户)的账户信息中,从而服务器可以获取到目标账户的资源文件需求信息。In the implementation, the user can install a resource sharing application program for resource file acquisition and sharing on the terminal, and the user can share the obtained resource file with other users through this application program, and can also use this application program to obtain Resource files shared by other users. Each user can register an account with the above-mentioned application program. When the user needs to obtain certain resource files (that is, resource files with target resource identifiers), the above-mentioned application program can obtain the corresponding target resource file identifier, and then generate resources The file requirement information, the resource file requirement information may include the target resource file identifier, and the resource file requirement information is recorded in the account information of the user account (ie, the target account), so that the server can obtain the resource file requirement information of the target account.

可选的,服务器获取目标账户的资源文件需求信息的方式多种多样,如下给出了几种可行的方式:Optionally, there are various ways for the server to obtain the resource file requirement information of the target account, and several possible ways are given as follows:

方式一,服务器根据与目标账户绑定的第三方应用账户的账户信息,获取目标账户的资源文件需求信息。Method 1: The server obtains the resource file requirement information of the target account according to the account information of the third-party application account bound to the target account.

在实施中,用户可以在第三方应用中公开自己的资源文件需求信息,如在“豆瓣”应用中发表自己想看哪些电影,或者在“微博”应用中提出自己想听哪些音乐,这样,用户在这些应用中的账户的账户信息中可以记录有相关的资源文件需求信息。之后,用户可以将其在上述资源共享类应用程序中的目标账户与第三方应用中的账户绑定,从而服务器可以获取与目标账户绑定的第三方应用账户的账户信息中的资源文件需求信息,即相当于获取目标账户的资源文件需求信息。In practice, users can disclose their resource file demand information in third-party applications, such as posting which movies they want to watch in the "Douban" application, or suggesting which music they want to listen to in the "Weibo" application. In this way, Relevant resource file requirement information may be recorded in the account information of the user's account in these applications. Afterwards, the user can bind his target account in the above-mentioned resource sharing application program with the account in the third-party application, so that the server can obtain the resource file requirement information in the account information of the third-party application account bound to the target account , which is equivalent to obtaining the resource file requirement information of the target account.

方式二,服务器根据目标账户登录的终端的历史搜索信息,获取目标账户的资源文件需求信息。In a second manner, the server obtains the resource file requirement information of the target account according to the historical search information of the terminal logged in by the target account.

在实施中,用户可以使用终端的在网上搜索某些资源文件,如可以通过上述资源共享类应用程序搜索,或者使用网页浏览类应用程序搜索,或者使用消费类应用程序搜索(如电影票购买软件),终端上安装的资源共享类应用程序可以获取用户的历史搜索信息,历史搜索信息中可以包含有目标资源文件标识,并将历史搜索信息记录在目标账户的账户信息中,从而服务器可以根据目标账户当前登录的终端的历史搜索信息,获取目标账户的资源文件需求信息。In implementation, the user can use the terminal to search for certain resource files on the Internet, such as searching through the above-mentioned resource sharing applications, or using web browsing applications, or using consumer applications (such as movie ticket purchase software) ), the resource sharing application program installed on the terminal can obtain the user's historical search information, which may contain the target resource file identifier, and record the historical search information in the account information of the target account, so that the server can The historical search information of the terminal that the account is currently logged in to obtain the resource file requirement information of the target account.

方式三,服务器获取目标账户登录的终端发送的资源文件获取请求中携带的资源文件需求信息。Method 3: The server obtains the resource file requirement information carried in the resource file obtaining request sent by the terminal logged in with the target account.

在实施中,如果用户想要获取某个资源文件,则可以打开安装在终端上的资源共享类应用程序,然后打开资源文件获取窗口,输入想要获取的资源文件的资源文件标识(即目标资源文件标识),在用户点击确认后,终端可以向服务器发送携带有资源文件需求信息的资源文件获取请求,从而服务器可以获取到相应的资源文件需求信息。In implementation, if the user wants to obtain a certain resource file, he can open the resource sharing application program installed on the terminal, then open the resource file obtaining window, and input the resource file identification of the resource file he wants to obtain (ie, the target resource file identifier), after the user clicks OK, the terminal can send a resource file acquisition request carrying the resource file requirement information to the server, so that the server can obtain the corresponding resource file requirement information.

这样,服务器可以通过多种途径更加及时准确地获取到目标账户的资源文件需求信息。In this way, the server can obtain the resource file requirement information of the target account more timely and accurately through various ways.

步骤102,向目标账户之外的其他账户登录的终端,发送携带有目标资源文件标识的资源文件共享请求。Step 102, sending a resource file sharing request carrying a target resource file identifier to a terminal logged in with an account other than the target account.

其中,资源文件共享请求用于请求终端在检测到存储有目标资源文件标识对应的资源文件时上传资源文件的下载信息,资源文件的下载信息包括资源文件的内容数据或者资源文件的下载地址。Wherein, the resource file sharing request is used to request the terminal to upload the download information of the resource file when it detects that the resource file corresponding to the target resource file identifier is stored, and the download information of the resource file includes the content data of the resource file or the download address of the resource file.

在实施中,在获取到目标账户的资源文件需求信息后,服务器可以向目标账户之外的其他账户当前登录的终端,发送携带有目标资源文件标识的资源文件共享请求。此处,其他账户可以是上述应用程序已注册的所有账户,也可以是目标账户的好友账户,或者是与目标账户存在一定关联关系的账户,关联关系可以是兴趣爱好相同,属于同一个聊天群,位于同一个城市等,或者用户可以自行选择其他账户。终端在接收到上述资源文件共享请求后,可以获取其中携带的目标资源文件标识,然后在本地查找是否存储有目标资源文件标识对应的资源文件,如果有,则可以将资源文件的下载信息上传给服务器。具体的,如果终端存储有资源文件的下载地址,则可以将下载地址上传给服务器,如果终端存储有资源文件的内容数据,则可以将内容数据上传给服务器,或者也可以将资源文件的内容数据的下载地址上传给服务器。In implementation, after obtaining the resource file requirement information of the target account, the server may send a resource file sharing request carrying the target resource file identifier to a terminal currently logged in by an account other than the target account. Here, other accounts can be all accounts registered in the above application, or friends accounts of the target account, or accounts that have a certain relationship with the target account. The relationship can be that they have the same interests and hobbies, and belong to the same chat group , located in the same city, etc., or users can choose other accounts by themselves. After receiving the above-mentioned resource file sharing request, the terminal can obtain the target resource file identifier carried therein, and then search locally whether there is a resource file corresponding to the target resource file identifier, and if so, upload the download information of the resource file to the server. Specifically, if the terminal stores the download address of the resource file, the download address can be uploaded to the server; if the terminal stores the content data of the resource file, the content data can be uploaded to the server, or the content data of the resource file can also be uploaded to the server. The download address is uploaded to the server.

可选的,服务器只能通过开放了资源共享权限的终端获取到相关资源文件的下载信息,相应的,步骤102的处理可以如下:向目标账户之外的、资源共享权限已开放的其他账户登录的终端,发送携带有目标资源文件标识的资源文件共享请求。Optionally, the server can only obtain the download information of the relevant resource files through the terminal that has opened the resource sharing authority. Correspondingly, the processing of step 102 can be as follows: log in to other accounts other than the target account that have opened the resource sharing authority The terminal sends a resource file sharing request carrying the target resource file identifier.

在实施中,服务器在获取到目标账户的资源文件需求信息后,可以先确定目标账户之外的其他账户,然后判断这些其他账户的资源共享权限是否已经开放,之后,服务器可以向目标账户之外的、资源共享权限已开放的其他账户当前登录的终端,发送携带有目标资源文件标识的资源文件共享请求。同理,只有当目标账户的需求公开权限已经开放时,服务器才可以获取到目标账户的资源文件需求信息。进一步的,可以设定,服务器每次获取目标账户的资源文件需求信息前,都需要向目标账户登录的目标终端发送提示信息,而服务器在向其他账户登录的终端发送资源文件共享请求后,也同时需要发送提示信息。In implementation, after obtaining the resource file requirement information of the target account, the server can first determine other accounts other than the target account, and then determine whether the resource sharing permissions of these other accounts have been opened. A terminal currently logged in by another account whose resource sharing permission has been opened sends a resource file sharing request carrying the target resource file identifier. Similarly, only when the requirement disclosure permission of the target account has been opened, the server can obtain the resource file requirement information of the target account. Further, it can be set that before the server obtains the resource file requirement information of the target account, it needs to send a prompt message to the target terminal logged in by the target account, and after the server sends a resource file sharing request to a terminal logged in by another account, it also needs to send a prompt message. At the same time, a reminder message needs to be sent.

这样,用户可以通过设置资源共享权限来保证自己终端内的资源文件可以或不可以共享给他人,从而在充分保护个人隐私的前提下实现资源文件的共享。In this way, the user can ensure that the resource files in his own terminal can or cannot be shared with others by setting the resource sharing permission, so as to realize the sharing of resource files under the premise of fully protecting personal privacy.

步骤103,接收至少一个终端上传的资源文件的下载信息,并向目标账户登录的目标终端发送接收到的下载信息。Step 103, receiving download information of resource files uploaded by at least one terminal, and sending the received download information to the target terminal logged in with the target account.

在实施中,其他账户的终端在向服务器发送资源文件的下载信息后,服务器可以接收到相应的下载信息,然后可以向目标账户当前登录的目标终端发送接收到的下载信息。In implementation, after the terminals of other accounts send the download information of resource files to the server, the server may receive the corresponding download information, and then send the received download information to the target terminal currently logged in by the target account.

可选的,当目标资源文件标识对应有种文件类型时,资源文件需求信息中还可以包含有目标资源文件类型,相应的,步骤103的处理可以如下:接收至少一个终端上传的多个资源文件的下载信息,并获取多个资源文件的文件类型,向目标账户登录的目标终端,发送接收到的符合目标资源文件类型的下载信息。Optionally, when the target resource file identifier corresponds to a file type, the resource file requirement information may also include the target resource file type. Correspondingly, the processing in step 103 may be as follows: receiving multiple resource files uploaded by at least one terminal and obtain the file types of multiple resource files, and send the received download information matching the target resource file type to the target terminal logged in with the target account.

在实施中,服务器获取到的目标账户的资源文件需求信息中可以包含有目标资源文件类型,这样,服务器在接收到其他账户登录的终端上传的,目标资源文件标识对应的资源文件的下载信息后,可以获取这些资源文件的文件类型。具体的,可以通过检测上述下载信息的文件后缀名来确定,或者,终端在上传资源文件的下载信息的同时也上传了对应的文件类型。之后,服务器可以向目标账户当前登录的目标终端,发送接收到的符合目标资源文件类型的下载信息。例如,用户在终端上搜索“魔兽电影”,服务器可以获取到包含有目标资源文件标识为“魔兽”,文件类型为“电影”的资源文件需求信息,之后服务器可以将“魔兽”(目标资源文件标识)发送给其他账户登录的终端,进而终端可以向服务器上传“魔兽”对应的多个资源文件的下载信息,服务器再在其中挑选出符合“电影”这一文件类型的资源文件的下载信息,并将其发送给目标终端。可以理解的是,服务器也可以直接向其他账户登录的终端发送目标资源文件标识为“魔兽电影”的资源文件共享请求,后续处理与步骤102、103相同。In implementation, the resource file requirement information of the target account obtained by the server may include the type of the target resource file. In this way, after the server receives the download information of the resource file corresponding to the target resource file identifier uploaded by the terminal logged in by another account to get the file types of these resource files. Specifically, it may be determined by detecting the file suffix of the above download information, or the terminal uploads the corresponding file type while uploading the download information of the resource file. Afterwards, the server may send the received download information conforming to the type of the target resource file to the target terminal currently logged in by the target account. For example, if a user searches for "Warcraft movie" on the terminal, the server can obtain the resource file requirement information containing the target resource file as "Warcraft" and the file type as "Movie", and then the server can send "Warcraft" (target resource file logo) to terminals logged in with other accounts, and then the terminal can upload the download information of multiple resource files corresponding to "Warcraft" to the server, and the server then selects the download information of resource files that match the file type of "movie". and send it to the target terminal. It can be understood that the server may also directly send a resource file sharing request whose target resource file identifier is "Warcraft movie" to terminals logged in with other accounts, and the subsequent processing is the same as steps 102 and 103.

这样,用户可以准确获取到自己需要的文件类型的资源文件的下载信息,从而获取到的下载信息准确性较高。In this way, the user can accurately obtain the download information of the resource file of the file type he needs, so that the obtained download information is more accurate.

可选的,当接收到终端上传的多个资源文件的下载信息后,用户可以在其中自行选择想要的下载信息,相应的,步骤102的处理可以如下:接收至少一个终端上传的多个资源文件的下载信息,根据预设排序规则对多个资源文件的下载信息进行排序,生成资源文件列表,并向目标账户登录的目标终端发送资源文件列表,根据接收到的目标终端发送的目标资源文件的获取请求,向目标终端发送目标资源文件的下载信息。Optionally, after receiving the download information of multiple resource files uploaded by the terminal, the user can select the desired download information among them. Correspondingly, the processing of step 102 can be as follows: receiving multiple resource files uploaded by at least one terminal File download information, sort the download information of multiple resource files according to the preset sorting rules, generate a list of resource files, and send the list of resource files to the target terminal logged in with the target account, according to the received target resource file sent by the target terminal The acquisition request of the target terminal is sent to the target terminal to download information of the target resource file.

在实施中,服务器在接收到至少一个终端上传的多个资源文件的下载信息后,可以按照预设排序规则对这些下载信息进行排序,从而生成资源文件列表,具体的,预设排序规则可以是按照更新时间排序、或者按照文件大小排序、或者是按照账户关联度排序等。另外,也可以将资源文件的下载信息按照预设分类规则进行分类,并在资源文件列表中添加分类功能,具体的,预设分类规则可以是按照文件类型分类,或者是按照来源终端分类,或者是按照终端所在地区分类等。之后,服务器可以将生成的资源文件列表发送给目标账户当前登录的目标终端。目标终端可以接收并显示上述资源文件列表,用户则可以在资源文件列表中选择想要获取的目标资源文件,并点击确定按键,从而可以触发服务器接收到目标终端发送的目标资源文件的获取请求,然后服务器可以向目标终端发送目标资源文件的下载信息。In an implementation, after receiving the download information of multiple resource files uploaded by at least one terminal, the server may sort the download information according to a preset sorting rule, thereby generating a list of resource files. Specifically, the preset sorting rule may be Sort by update time, or by file size, or by account association, etc. In addition, the download information of resource files can also be classified according to preset classification rules, and a classification function can be added to the resource file list. Specifically, the preset classification rules can be classified according to file types, or according to source terminals, or It is classified according to the region where the terminal is located. Afterwards, the server may send the generated resource file list to the target terminal currently logged in by the target account. The target terminal can receive and display the above resource file list, and the user can select the target resource file to be obtained in the resource file list, and click the OK button, so as to trigger the server to receive the acquisition request of the target resource file sent by the target terminal, Then the server can send the download information of the target resource file to the target terminal.

这样,用户可以在多个下载信息中选择最好的资源文件的下载信息,可以有效的提高获取到的资源文件的质量和用户满意度。In this way, the user can select the download information of the best resource file among multiple download information, which can effectively improve the quality of the obtained resource file and user satisfaction.

可选的,用户可以设定接收资源文件的下载信息的触发事件,相应的,步骤103的处理可以如下:接收至少一个终端上传的资源文件的下载信息,并当检测到满足预设触发条件时,向目标账户登录的目标终端发送接收到的下载信息。Optionally, the user can set a trigger event for receiving the download information of the resource file. Correspondingly, the processing of step 103 can be as follows: receive the download information of the resource file uploaded by at least one terminal, and when it is detected that the preset trigger condition is satisfied , and send the received download information to the target terminal logged in with the target account.

在实施中,用户可以设定接收资源文件的下载信息的触发条件,例如,仅当终端连接无线网络时接收,或者仅在终端处于待机状态时接收,或者仅在晚上10点后接收等,这样,服务器在接收到至少一个终端上传的资源文件的下载信息后,可以暂存这些下载信息,当检测到满足预设触发条件时,服务器则可以向目标账户当前登录的目标终端发送接收到的下载信息。In the implementation, the user can set the trigger condition for receiving the download information of the resource file, for example, only when the terminal is connected to the wireless network, or only when the terminal is in the standby state, or only after 10 o'clock in the evening, etc., so that , after receiving the download information of the resource file uploaded by at least one terminal, the server can temporarily store the download information, and when it detects that the preset trigger condition is met, the server can send the received download information to the target terminal currently logged in by the target account information.

这样,用户可以在满足自己设定的条件下获取到资源文件的下载信息,提高了获取资源文件的便捷性和灵活性。In this way, the user can obtain the download information of the resource file under the conditions set by the user, which improves the convenience and flexibility of obtaining the resource file.

可选的,服务器接收到资源文件的下载信息后,可以存储该下载信息,相应的,相关处理可以如下:存储资源文件的下载信息,当再次获取到包含有目标资源文件标识的资源文件需求信息时,向资源文件需求信息所属的账户登录的终端,发送资源文件的下载信息。Optionally, after the server receives the download information of the resource file, it can store the download information. Correspondingly, the relevant processing can be as follows: store the download information of the resource file, and when the resource file requirement information containing the target resource file identifier is obtained again , the download information of the resource file is sent to the terminal logged in with the account to which the resource file demand information belongs.

在实施中,服务器在接收到至少一个终端上传的资源文件的下载信息之后,可以将目标资源文件标识和资源文件的下载信息对应存储,即生成资源文件标识和下载信息的对应关系,这样,当再次获取到包含有目标资源文件标识的资源文件需求信息时,可以在上述对应关系中查找目标资源那文件标识对应的下载信息,从而可以向资源文件需求信息所属的账户当前登录的终端,发送资源文件的下载信息。In implementation, after the server receives the download information of the resource file uploaded by at least one terminal, it can store the target resource file identifier and the download information of the resource file correspondingly, that is, generate a corresponding relationship between the resource file identifier and the download information. In this way, when When the resource file requirement information containing the target resource file identifier is obtained again, the download information corresponding to the file identifier of the target resource can be searched in the above correspondence, so that the resource can be sent to the terminal currently logged in to the account to which the resource file requirement information belongs. Download information for the file.

这样,服务器可以直接将已存储的资源文件的下载信息发送给有相应需求的用户,无需重复从其他账户登录的终端处获取相同的资源文件。In this way, the server can directly send the download information of the stored resource files to users who have corresponding needs, without repeatedly obtaining the same resource files from terminals logged in with other accounts.

本公开实施例中,获取目标账户的资源文件需求信息,资源文件需求信息中包含目标资源文件标识,向目标账户之外的其他账户登录的终端,发送携带有目标资源文件标识的资源文件共享请求,其中,资源文件共享请求用于请求终端在检测到存储有目标资源文件标识对应的资源文件时上传资源文件的下载信息,资源文件的下载信息包括资源文件的内容数据或者资源文件的下载地址,接收至少一个终端上传的资源文件的下载信息,并向目标账户登录的目标终端发送接收到的下载信息。这样,当用户需要获取某个资源文件时,可以通过服务器从其他用户处直接获取到相应的下载信息,然后可以通过下载信息获取资源文件,故而,可以提高获取资源文件的效率。In the embodiment of the present disclosure, the resource file requirement information of the target account is obtained, and the resource file requirement information includes the target resource file identifier, and a resource file sharing request carrying the target resource file identifier is sent to a terminal logged in with an account other than the target account , wherein, the resource file sharing request is used to request the terminal to upload the download information of the resource file when it detects that the resource file corresponding to the target resource file identifier is stored, and the download information of the resource file includes the content data of the resource file or the download address of the resource file, The download information of the resource file uploaded by at least one terminal is received, and the received download information is sent to the target terminal logged in with the target account. In this way, when a user needs to obtain a certain resource file, the corresponding download information can be obtained directly from other users through the server, and then the resource file can be obtained through the download information, thus, the efficiency of obtaining the resource file can be improved.

基于相同的技术构思,本发明实施例还提供了一种获取资源文件的装置,如图3所示,该装置包括:Based on the same technical concept, the embodiment of the present invention also provides a device for obtaining resource files, as shown in Figure 3, the device includes:

获取模块301,用于获取目标账户的资源文件需求信息,所述资源文件需求信息中包含目标资源文件标识;An acquisition module 301, configured to acquire resource file requirement information of a target account, where the resource file requirement information includes a target resource file identifier;

第一发送模块302,用于向所述目标账户之外的其他账户登录的终端,发送携带有所述目标资源文件标识的资源文件共享请求,其中,所述资源文件共享请求用于请求所述终端在检测到存储有所述目标资源文件标识对应的资源文件时上传所述资源文件的下载信息,所述资源文件的下载信息包括所述资源文件的内容数据或者所述资源文件的下载地址;The first sending module 302 is configured to send a resource file sharing request carrying the target resource file identifier to a terminal logged in with an account other than the target account, wherein the resource file sharing request is used to request the The terminal uploads download information of the resource file when detecting that the resource file corresponding to the target resource file identifier is stored, and the download information of the resource file includes content data of the resource file or a download address of the resource file;

接收模块303,用于接收至少一个所述终端上传的所述资源文件的下载信息,并向所述目标账户登录的目标终端发送接收到的下载信息。The receiving module 303 is configured to receive download information of the resource file uploaded by at least one terminal, and send the received download information to the target terminal logged into the target account.

可选的,所述获取模块301,用于:Optionally, the acquiring module 301 is configured to:

根据与所述目标账户绑定的第三方应用账户的账户信息,获取所述目标账户的资源文件需求信息;或者,Obtain resource file requirement information of the target account according to account information of a third-party application account bound to the target account; or,

根据所述目标账户登录的终端的历史搜索信息,获取所述目标账户的资源文件需求信息;或者,Obtain resource file requirement information of the target account according to the historical search information of the terminal logged in by the target account; or,

获取所述目标账户登录的终端发送的资源文件获取请求中携带的资源文件需求信息。The resource file requirement information carried in the resource file acquisition request sent by the terminal logged in with the target account is acquired.

可选的,所述资源文件需求信息中还包含目标资源文件类型;Optionally, the resource file requirement information also includes a target resource file type;

如图4所示,所述接收模块303,包括:As shown in Figure 4, the receiving module 303 includes:

接收子模块3031,用于接收至少一个所述终端上传的多个资源文件的下载信息,并获取所述多个资源文件的文件类型;The receiving submodule 3031 is configured to receive download information of at least one resource file uploaded by the terminal, and acquire file types of the resource files;

第一发送子模块3032,用于向所述目标账户登录的目标终端,发送接收到的符合所述目标资源文件类型的下载信息。The first sending submodule 3032 is configured to send the received download information conforming to the type of the target resource file to the target terminal logged into the target account.

可选的,如图5所示,所述接收模块303,包括:Optionally, as shown in FIG. 5, the receiving module 303 includes:

排序子模块3033,用于接收至少一个所述终端上传的多个资源文件的下载信息,根据预设排序规则对所述多个资源文件的下载信息进行排序,生成资源文件列表,并向所述目标账户登录的目标终端发送所述资源文件列表;The sorting submodule 3033 is configured to receive download information of at least one resource file uploaded by the terminal, sort the download information of the multiple resource files according to a preset sorting rule, generate a list of resource files, and send the resource file list to the The target terminal logged in by the target account sends the resource file list;

第二发送子模块3034,用于根据接收到的所述目标终端发送的目标资源文件的获取请求,向所述目标终端发送所述目标资源文件的下载信息。The second sending submodule 3034 is configured to send the download information of the target resource file to the target terminal according to the received acquisition request of the target resource file sent by the target terminal.

可选的,所述接收模块303,用于:Optionally, the receiving module 303 is configured to:

接收至少一个所述终端上传的所述资源文件的下载信息,并当检测到满足预设触发条件时,向所述目标账户登录的目标终端发送接收到的下载信息。receiving the download information of the resource file uploaded by at least one terminal, and sending the received download information to the target terminal logged into the target account when it is detected that a preset trigger condition is met.

可选的,所述第一发送模块302,用于:Optionally, the first sending module 302 is configured to:

向所述目标账户之外的、资源共享权限已开放的其他账户登录的终端,发送携带有所述目标资源文件标识的资源文件共享请求。A resource file sharing request carrying the target resource file identifier is sent to a terminal logged in with an account other than the target account whose resource sharing authority has been released.

可选的,如图6所示,所述装置还包括:Optionally, as shown in Figure 6, the device further includes:

存储模块304,用于存储所述资源文件的下载信息;A storage module 304, configured to store download information of the resource file;

第二发送模块305,用于当再次获取到包含有所述目标资源文件标识的资源文件需求信息时,向所述资源文件需求信息所属的账户登录的终端,发送所述资源文件的下载信息。The second sending module 305 is configured to send the download information of the resource file to the terminal logged in to the account to which the resource file requirement information belongs when the resource file requirement information including the target resource file identifier is acquired again.

本公开实施例中,获取目标账户的资源文件需求信息,资源文件需求信息中包含目标资源文件标识,向目标账户之外的其他账户登录的终端,发送携带有目标资源文件标识的资源文件共享请求,其中,资源文件共享请求用于请求终端在检测到存储有目标资源文件标识对应的资源文件时上传资源文件的下载信息,资源文件的下载信息包括资源文件的内容数据或者资源文件的下载地址,接收至少一个终端上传的资源文件的下载信息,并向目标账户登录的目标终端发送接收到的下载信息。这样,当用户需要获取某个资源文件时,可以通过服务器从其他用户处直接获取到相应的下载信息,然后可以通过下载信息获取资源文件,故而,可以提高获取资源文件的效率。In the embodiment of the present disclosure, the resource file requirement information of the target account is obtained, and the resource file requirement information includes the target resource file identifier, and a resource file sharing request carrying the target resource file identifier is sent to a terminal logged in with an account other than the target account , wherein, the resource file sharing request is used to request the terminal to upload the download information of the resource file when it detects that the resource file corresponding to the target resource file identifier is stored, and the download information of the resource file includes the content data of the resource file or the download address of the resource file, The download information of the resource file uploaded by at least one terminal is received, and the received download information is sent to the target terminal logged in with the target account. In this way, when a user needs to obtain a certain resource file, the corresponding download information can be obtained directly from other users through the server, and then the resource file can be obtained through the download information, thus, the efficiency of obtaining the resource file can be improved.

需要说明的是:上述实施例提供的获取资源文件的装置在获取资源文件时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的获取资源文件的装置与获取资源文件的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the device for obtaining resource files provided by the above embodiment obtains resource files, it only uses the division of the above-mentioned functional modules for illustration. In practical applications, the above-mentioned functions can be assigned to different functional modules according to needs To complete means to divide the internal structure of the device into different functional modules to complete all or part of the functions described above. In addition, the device for obtaining resource files provided by the above embodiments and the method embodiments for obtaining resource files belong to the same idea, and its specific implementation process can be found in the method embodiments, and will not be repeated here.

本公开实施例,还提供了一种获取资源文件的装置,所述装置包括:An embodiment of the present disclosure also provides an apparatus for obtaining a resource file, the apparatus including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

获取目标账户的资源文件需求信息,所述资源文件需求信息中包含目标资源文件标识;Obtain resource file requirement information of the target account, where the resource file requirement information includes a target resource file identifier;

向所述目标账户之外的其他账户登录的终端,发送携带有所述目标资源文件标识的资源文件共享请求,其中,所述资源文件共享请求用于请求所述终端在检测到存储有所述目标资源文件标识对应的资源文件时上传所述资源文件的下载信息,所述资源文件的下载信息包括所述资源文件的内容数据或者所述资源文件的下载地址;Send a resource file sharing request carrying the target resource file identifier to a terminal that logs in to an account other than the target account, where the resource file sharing request is used to request the terminal to detect that the resource file is stored in the Uploading the download information of the resource file when the target resource file identifies the corresponding resource file, the download information of the resource file includes the content data of the resource file or the download address of the resource file;

接收至少一个所述终端上传的所述资源文件的下载信息,并向所述目标账户登录的目标终端发送接收到的下载信息。receiving download information of the resource file uploaded by at least one terminal, and sending the received download information to the target terminal logged into the target account.

本公开实施例中,获取目标账户的资源文件需求信息,资源文件需求信息中包含目标资源文件标识,向目标账户之外的其他账户登录的终端,发送携带有目标资源文件标识的资源文件共享请求,其中,资源文件共享请求用于请求终端在检测到存储有目标资源文件标识对应的资源文件时上传资源文件的下载信息,资源文件的下载信息包括资源文件的内容数据或者资源文件的下载地址,接收至少一个终端上传的资源文件的下载信息,并向目标账户登录的目标终端发送接收到的下载信息。这样,当用户需要获取某个资源文件时,可以通过服务器从其他用户处直接获取到相应的下载信息,然后可以通过下载信息获取资源文件,故而,可以提高获取资源文件的效率。In the embodiment of the present disclosure, the resource file requirement information of the target account is obtained, and the resource file requirement information includes the target resource file identifier, and a resource file sharing request carrying the target resource file identifier is sent to a terminal logged in with an account other than the target account , wherein, the resource file sharing request is used to request the terminal to upload the download information of the resource file when it detects that the resource file corresponding to the target resource file identifier is stored, and the download information of the resource file includes the content data of the resource file or the download address of the resource file, The download information of the resource file uploaded by at least one terminal is received, and the received download information is sent to the target terminal logged in with the target account. In this way, when a user needs to obtain a certain resource file, the corresponding download information can be obtained directly from other users through the server, and then the resource file can be obtained through the download information, thus, the efficiency of obtaining the resource file can be improved.

本公开再一示例性实施例还示出的一种服务器的结构示意图,参照图7,服务器700包括处理组件722,其进一步包括一个或多个处理器,以及由存储器732所代表的存储器资源,用于存储可由处理部件722的执行的指令,例如应用程序。存储器732中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件722被配置为执行指令,以执行上述获取资源文件的方法。Another exemplary embodiment of the present disclosure also shows a schematic structural diagram of a server. Referring to FIG. 7 , a server 700 includes a processing component 722, which further includes one or more processors, and memory resources represented by a memory 732, Used to store instructions executable by the processing unit 722, such as application programs. The application program stored in memory 732 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 722 is configured to execute instructions to execute the above method for acquiring resource files.

服务器700还可以包括一个电源组件726被配置为执行服务器700的电源管理,一个有线或无线网络接口750被配置为将服务器700连接到网络,和一个输入输出(I/O)接口758。服务器700可以操作基于存储在存储器732的操作系统,例如Windows ServerTM,MacOS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。Server 700 may also include a power component 726 configured to perform power management of server 700 , a wired or wireless network interface 750 configured to connect server 700 to a network, and an input-output (I/O) interface 758 . The server 700 may operate based on an operating system stored in the memory 732, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™ or the like.

服务器700可以包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:The server 700 may include a memory, and one or more programs, wherein the one or more programs are stored in the memory, and configured to be executed by one or more processors, including for performing the following Operating instructions:

获取目标账户的资源文件需求信息,所述资源文件需求信息中包含目标资源文件标识;Obtain resource file requirement information of the target account, where the resource file requirement information includes a target resource file identifier;

向所述目标账户之外的其他账户登录的终端,发送携带有所述目标资源文件标识的资源文件共享请求,其中,所述资源文件共享请求用于请求所述终端在检测到存储有所述目标资源文件标识对应的资源文件时上传所述资源文件的下载信息,所述资源文件的下载信息包括所述资源文件的内容数据或者所述资源文件的下载地址;Send a resource file sharing request carrying the target resource file identifier to a terminal that logs in to an account other than the target account, where the resource file sharing request is used to request the terminal to detect that the resource file is stored in the Uploading the download information of the resource file when the target resource file identifies the corresponding resource file, the download information of the resource file includes the content data of the resource file or the download address of the resource file;

接收至少一个所述终端上传的所述资源文件的下载信息,并向所述目标账户登录的目标终端发送接收到的下载信息。receiving download information of the resource file uploaded by at least one terminal, and sending the received download information to the target terminal logged into the target account.

可选的,所述获取目标账户的资源文件需求信息,包括:Optionally, the acquiring resource file requirement information of the target account includes:

根据与所述目标账户绑定的第三方应用账户的账户信息,获取所述目标账户的资源文件需求信息;或者,Obtain resource file requirement information of the target account according to account information of a third-party application account bound to the target account; or,

根据所述目标账户登录的终端的历史搜索信息,获取所述目标账户的资源文件需求信息;或者,Obtain resource file requirement information of the target account according to the historical search information of the terminal logged in by the target account; or,

获取所述目标账户登录的终端发送的资源文件获取请求中携带的资源文件需求信息。The resource file requirement information carried in the resource file acquisition request sent by the terminal logged in with the target account is acquired.

可选的,所述资源文件需求信息中还包含目标资源文件类型;Optionally, the resource file requirement information also includes a target resource file type;

所述接收至少一个所述终端上传的所述资源文件的下载信息,并向所述目标账户登录的目标终端发送接收到的下载信息,包括:The receiving the download information of the resource file uploaded by at least one terminal, and sending the received download information to the target terminal logged in with the target account includes:

接收至少一个所述终端上传的多个资源文件的下载信息,并获取所述多个资源文件的文件类型;receiving download information of multiple resource files uploaded by at least one terminal, and acquiring file types of the multiple resource files;

向所述目标账户登录的目标终端,发送接收到的符合所述目标资源文件类型的下载信息。The target terminal logged into the target account sends the received download information matching the type of the target resource file.

可选的,所述接收至少一个所述终端上传的所述资源文件的下载信息,并向所述目标账户登录的目标终端发送接收到的下载信息,包括:Optionally, receiving at least one download information of the resource file uploaded by the terminal, and sending the received download information to the target terminal logged in with the target account includes:

接收至少一个所述终端上传的多个资源文件的下载信息,根据预设排序规则对所述多个资源文件的下载信息进行排序,生成资源文件列表,并向所述目标账户登录的目标终端发送所述资源文件列表;receiving download information of a plurality of resource files uploaded by at least one terminal, sorting the download information of the plurality of resource files according to a preset sorting rule, generating a list of resource files, and sending the resource file list to the target terminal logged in with the target account a list of said resource files;

根据接收到的所述目标终端发送的目标资源文件的获取请求,向所述目标终端发送所述目标资源文件的下载信息。Send the download information of the target resource file to the target terminal according to the received acquisition request of the target resource file sent by the target terminal.

可选的,所述接收至少一个所述终端上传的所述资源文件的下载信息,并向所述目标账户登录的目标终端发送接收到的下载信息,包括:Optionally, receiving at least one download information of the resource file uploaded by the terminal, and sending the received download information to the target terminal logged in with the target account includes:

接收至少一个所述终端上传的所述资源文件的下载信息,并当检测到满足预设触发条件时,向所述目标账户登录的目标终端发送接收到的下载信息。receiving the download information of the resource file uploaded by at least one terminal, and sending the received download information to the target terminal logged into the target account when it is detected that a preset trigger condition is met.

可选的,所述向所述目标账户之外的其他账户登录的终端,发送携带有所述目标资源文件标识的资源文件共享请求,包括:Optionally, the terminal that logs in to an account other than the target account, sending a resource file sharing request carrying the target resource file identifier includes:

向所述目标账户之外的、资源共享权限已开放的其他账户登录的终端,发送携带有所述目标资源文件标识的资源文件共享请求。A resource file sharing request carrying the target resource file identifier is sent to a terminal logged in with an account other than the target account whose resource sharing authority has been released.

可选的,所述接收至少一个所述终端上传的所述资源文件的下载信息之后,还包括:Optionally, after receiving at least one download information of the resource file uploaded by the terminal, the method further includes:

存储所述资源文件的下载信息;storing download information of the resource file;

当再次获取到包含有所述目标资源文件标识的资源文件需求信息时,向所述资源文件需求信息所属的账户登录的终端,发送所述资源文件的下载信息。When the resource file requirement information including the target resource file identifier is acquired again, the download information of the resource file is sent to the terminal logged in with the account to which the resource file requirement information belongs.

本公开实施例中,获取目标账户的资源文件需求信息,资源文件需求信息中包含目标资源文件标识,向目标账户之外的其他账户登录的终端,发送携带有目标资源文件标识的资源文件共享请求,其中,资源文件共享请求用于请求终端在检测到存储有目标资源文件标识对应的资源文件时上传资源文件的下载信息,资源文件的下载信息包括资源文件的内容数据或者资源文件的下载地址,接收至少一个终端上传的资源文件的下载信息,并向目标账户登录的目标终端发送接收到的下载信息。这样,当用户需要获取某个资源文件时,可以通过服务器从其他用户处直接获取到相应的下载信息,然后可以通过下载信息获取资源文件,故而,可以提高获取资源文件的效率。In the embodiment of the present disclosure, the resource file requirement information of the target account is obtained, and the resource file requirement information includes the target resource file identifier, and a resource file sharing request carrying the target resource file identifier is sent to a terminal logged in with an account other than the target account , wherein, the resource file sharing request is used to request the terminal to upload the download information of the resource file when it detects that the resource file corresponding to the target resource file identifier is stored, and the download information of the resource file includes the content data of the resource file or the download address of the resource file, The download information of the resource file uploaded by at least one terminal is received, and the received download information is sent to the target terminal logged in with the target account. In this way, when a user needs to obtain a certain resource file, the corresponding download information can be obtained directly from other users through the server, and then the resource file can be obtained through the download information, thus, the efficiency of obtaining the resource file can be improved.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.

Claims (15)

CN201611087646.3A2016-11-302016-11-30Method and device for acquiring resource fileActiveCN106776917B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201611087646.3ACN106776917B (en)2016-11-302016-11-30Method and device for acquiring resource file

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201611087646.3ACN106776917B (en)2016-11-302016-11-30Method and device for acquiring resource file

Publications (2)

Publication NumberPublication Date
CN106776917Atrue CN106776917A (en)2017-05-31
CN106776917B CN106776917B (en)2021-03-02

Family

ID=58914046

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201611087646.3AActiveCN106776917B (en)2016-11-302016-11-30Method and device for acquiring resource file

Country Status (1)

CountryLink
CN (1)CN106776917B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107734049A (en)*2017-10-312018-02-23维沃移动通信有限公司Method for down loading, device and the mobile terminal of Internet resources
CN108270786A (en)*2018-01-162018-07-10广东欧珀移动通信有限公司Right management method, device, storage medium and the intelligent terminal of application program
CN110851271A (en)*2019-10-282020-02-28北京梧桐车联科技有限责任公司Resource sharing method and device and storage medium
CN111479250A (en)*2020-03-312020-07-31歌尔科技有限公司File sharing method, device and system and terminal equipment
CN112104741A (en)*2020-09-212020-12-18北京指掌易科技有限公司Resource sharing method, device, system and gateway controller
CN114756522A (en)*2022-03-212022-07-15联想(北京)有限公司File sharing method, device, equipment and storage medium
CN115914374A (en)*2022-12-022023-04-04中国工商银行股份有限公司Data transmission method, data transmission device, computer equipment, storage medium and program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102333106A (en)*2010-07-132012-01-25中国移动通信集团公司 A P2P system resource scheduling method and its device and system
CN104811485A (en)*2015-04-102015-07-29深圳市金立通信设备有限公司Resource sharing method
US20150254286A1 (en)*2011-07-012015-09-10Salesforce.Com, Inc.Truncating data associated with objects in a multi-tenant database
CN105160009A (en)*2015-09-222015-12-16小米科技有限责任公司Resource downloading method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102333106A (en)*2010-07-132012-01-25中国移动通信集团公司 A P2P system resource scheduling method and its device and system
US20150254286A1 (en)*2011-07-012015-09-10Salesforce.Com, Inc.Truncating data associated with objects in a multi-tenant database
CN104811485A (en)*2015-04-102015-07-29深圳市金立通信设备有限公司Resource sharing method
CN105160009A (en)*2015-09-222015-12-16小米科技有限责任公司Resource downloading method and apparatus

Cited By (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107734049A (en)*2017-10-312018-02-23维沃移动通信有限公司Method for down loading, device and the mobile terminal of Internet resources
CN107734049B (en)*2017-10-312020-10-27维沃移动通信有限公司 Method, device and mobile terminal for downloading network resources
CN108270786A (en)*2018-01-162018-07-10广东欧珀移动通信有限公司Right management method, device, storage medium and the intelligent terminal of application program
CN108270786B (en)*2018-01-162021-02-26Oppo广东移动通信有限公司 Application rights management method, device, storage medium and smart terminal
CN110851271A (en)*2019-10-282020-02-28北京梧桐车联科技有限责任公司Resource sharing method and device and storage medium
CN111479250A (en)*2020-03-312020-07-31歌尔科技有限公司File sharing method, device and system and terminal equipment
CN112104741A (en)*2020-09-212020-12-18北京指掌易科技有限公司Resource sharing method, device, system and gateway controller
CN112104741B (en)*2020-09-212024-02-02北京指掌易科技有限公司Resource sharing method, device and system and gateway controller
CN114756522A (en)*2022-03-212022-07-15联想(北京)有限公司File sharing method, device, equipment and storage medium
CN115914374A (en)*2022-12-022023-04-04中国工商银行股份有限公司Data transmission method, data transmission device, computer equipment, storage medium and program product

Also Published As

Publication numberPublication date
CN106776917B (en)2021-03-02

Similar Documents

PublicationPublication DateTitle
CN106776917B (en)Method and device for acquiring resource file
US9654577B2 (en)Techniques to generate mass push notifications
US9760723B2 (en)Techniques for in-app user data authorization
CA2931289C (en)Managed domains for remote content and configuration control on mobile information devices
US9298928B2 (en)Mobile device application interaction reputation risk assessment
US9910895B2 (en)Push subscriptions
CN106874471B (en) Information push method and device
CN102761623B (en)Resource self-adaptive joins method for down loading, system, data storage server and communication system
US20090292762A1 (en)Method, Apparatus, and Computer Program Product for Publishing Content
US11356498B2 (en)Method and a device for sharing a hosted application
JP2018514025A (en) Technology for sharing and remixing media via a messaging system
CN106850794A (en)Method and apparatus, server and terminal for operating group
EP3859546A1 (en)Recommending files for file sharing system
US11882154B2 (en)Template representation of security resources
US10013493B1 (en)Customized search engines
US9665732B2 (en)Secure Download from internet marketplace
US20230205734A1 (en)Systems and methods for file identification
CN103023907A (en)Method, equipment and system for acquiring website information
US9832322B1 (en)Techniques to transform network resource requests to zero rated network requests
CN112671925B (en)Method, system and device for processing battery data
US12166761B1 (en)Distinguishing between functional tracking domains and nonfunctional tracking domains on a host web page
CN110929129A (en)Information detection method, equipment and machine-readable storage medium
CN103023908B (en)A kind of website information acquisition, equipment and system
US20240012821A1 (en)Evaluating the quality of integrations for executing searches using application programming interfaces
WO2014169497A1 (en)Method and server for pushing media file

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp