CN106776917B - Method and device for acquiring resource file - Google Patents

Method and device for acquiring resource file Download PDF

Info

Publication number
CN106776917B
CN106776917B CN201611087646.3A CN201611087646A CN106776917B CN 106776917 B CN106776917 B CN 106776917B CN 201611087646 A CN201611087646 A CN 201611087646A CN 106776917 B CN106776917 B CN 106776917B
Authority
CN
China
Prior art keywords
resource file
target
information
terminal
account
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611087646.3A
Other languages
Chinese (zh)
Other versions
CN106776917A (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 Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611087646.3A priority Critical patent/CN106776917B/en
Publication of CN106776917A publication Critical patent/CN106776917A/en
Application granted granted Critical
Publication of CN106776917B publication Critical patent/CN106776917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support

Abstract

The disclosure provides a method and a device for acquiring a resource file, and belongs to the technical field of computers. The method comprises the following steps: the method comprises the steps of obtaining resource file demand information of a target account, sending a resource file sharing request carrying a target resource file identifier to a terminal logged in to other accounts except the target account, wherein the resource file sharing request is used for requesting the terminal to upload download information of a resource file when detecting that the resource file corresponding to the target resource file identifier is stored, the download information of the resource file comprises content data of the resource file or a 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 in to the target account. By adopting the method and the device, the efficiency of acquiring the resource file can be improved.

Description

Method and device for acquiring resource file
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for acquiring a resource file.
Background
With the continuous development of internet technology, people's lives are increasingly kept away from the network, and people can acquire various resource files such as movies, novels, music, pictures and the like through the network.
When a user wants to acquire a certain resource file, the user can open a web browsing program installed on the terminal, then search a link address of the resource file on the network, and further acquire the resource file from a storage space corresponding to the link address.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
some resource files are scarce, link addresses are difficult to search, and users often spend a large amount of time to search the link addresses of the resource files, so that the efficiency of acquiring the resource files is low.
Disclosure of Invention
In order to solve the problems in the prior art, the embodiments of the present disclosure provide a method and an apparatus for acquiring a resource file. The technical scheme is as follows:
in a first aspect, a method for obtaining a resource file is provided, where the method includes:
acquiring resource file demand information of a target account, wherein the resource file demand information comprises a target resource file identifier;
sending a resource file sharing request carrying the target resource file identifier to a terminal logged in to other accounts except the target account, wherein the resource file sharing request is used for requesting the terminal to upload 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 comprises content data of the resource file or a download address of the resource file;
and receiving the downloading information of the resource file uploaded by at least one terminal, and sending the received downloading information to a target terminal logged in by the target account.
Optionally, the acquiring resource file demand information of the target account includes:
acquiring resource file demand information of the target account according to account information of a third-party application account bound with the target account; alternatively, the first and second electrodes may be,
acquiring resource file demand information of the target account according to historical search information of a terminal logged in by the target account; alternatively, the first and second electrodes may be,
and acquiring resource file demand information carried in a resource file acquisition request sent by the terminal for logging in the target account.
Therefore, the server can acquire the resource file demand information of the target account in time through multiple ways.
Optionally, the resource file requirement information further 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 by the target account includes:
receiving download information of a plurality of resource files uploaded by at least one terminal, and acquiring file types of the resource files;
and sending the received downloading information which accords with the type of the target resource file to a target terminal logged in by the target account.
Therefore, the user can acquire the downloading information of the resource file of the file type required by the user, and the accuracy of the acquired downloading information is high.
Optionally, the receiving download information of the resource file uploaded by at least one of the terminals, and sending the received download information to the target terminal logged in by the target account includes:
receiving download information of a plurality of resource files uploaded by at least one terminal, sequencing the download information of the resource files according to a preset sequencing rule, generating a resource file list, and sending the resource file list to a target terminal logged in by the target account;
and sending the downloading 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.
Thus, the user can select the download information of the best resource file among the plurality of download information.
Optionally, the receiving download information of the resource file uploaded by at least one of the terminals, and sending the received download information to the target terminal logged in by the target account includes:
and receiving download information of the resource file uploaded by at least one terminal, and sending the received download information to a target terminal logged in by the target account when detecting that a preset trigger condition is met.
Therefore, the user can acquire the downloading information of the resource file under the condition that the user meets the set conditions.
Optionally, the sending, by the terminal that logs in to the account other than the target account, the resource file sharing request carrying the target resource file identifier includes:
and sending a resource file sharing request carrying the target resource file identifier to a terminal which logs in to other accounts except the target account and with opened resource sharing authority.
Therefore, the user can ensure that the resource file in the terminal of the user can be or cannot be shared to other people by setting the resource sharing authority.
Optionally, after receiving the download information of the resource file uploaded by at least one of the terminals, the method further includes:
storing the downloading information of the resource file;
and when the resource file demand information containing the target resource file identifier is acquired again, sending the downloading information of the resource file to a terminal logged in to the account to which the resource file demand information belongs.
Therefore, the server can directly send the download information of the stored resource file to the user with corresponding requirements without repeatedly acquiring the download information from the terminal logged in by other accounts.
In a second aspect, an apparatus for obtaining a resource file is provided, the apparatus comprising:
the acquisition module is used for acquiring resource file demand information of a target account, wherein the resource file demand information comprises a target resource file identifier;
a first sending module, configured to send a resource file sharing request carrying a 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 upload download information of a resource file when detecting that the resource file corresponding to the target resource file identifier is stored, where the download information of the resource file includes content data of the resource file or a download address of the resource file;
and the receiving module is used for receiving the downloading information of the resource file uploaded by at least one terminal and sending the received downloading information to the target terminal logged in by the target account.
Optionally, the obtaining module is configured to:
acquiring resource file demand information of the target account according to account information of a third-party application account bound with the target account; alternatively, the first and second electrodes may be,
acquiring resource file demand information of the target account according to historical search information of a terminal logged in by the target account; alternatively, the first and second electrodes may be,
and acquiring resource file demand information carried in a resource file acquisition request sent by the terminal for logging in the target account.
Optionally, the resource file requirement information further includes a target resource file type;
the receiving module comprises:
the receiving submodule is used for receiving download information of a plurality of resource files uploaded by at least one terminal and acquiring file types of the resource files;
and the first sending submodule is used for sending the received downloading information which accords with the type of the target resource file to a target terminal logged in by the target account.
Optionally, the receiving module includes:
the sequencing submodule is used for receiving the downloading information of the resource files uploaded by at least one terminal, sequencing the downloading information of the resource files according to a preset sequencing rule, generating a resource file list, and sending the resource file list to a target terminal logged in by the target account;
and the second sending submodule is used for sending the downloading 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 configured to:
and receiving download information of the resource file uploaded by at least one terminal, and sending the received download information to a target terminal logged in by the target account when detecting that a preset trigger condition is met.
Optionally, the first sending module is configured to:
and sending a resource file sharing request carrying the target resource file identifier to a terminal which logs in to other accounts except the target account and with opened resource sharing authority.
Optionally, the apparatus further comprises:
the storage module is used for storing the downloading information of the resource file;
and the second sending module is used for sending the downloading information of the resource file to the terminal logged in the account to which the resource file demand information belongs when the resource file demand information containing the target resource file identifier is obtained again.
In a third aspect, an apparatus for obtaining a resource file is provided, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring resource file demand information of a target account, wherein the resource file demand information comprises a target resource file identifier;
sending a resource file sharing request carrying the target resource file identifier to a terminal logged in to other accounts except the target account, wherein the resource file sharing request is used for requesting the terminal to upload 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 comprises content data of the resource file or a download address of the resource file;
and receiving the downloading information of the resource file uploaded by at least one terminal, and sending the received downloading information to a target terminal logged in by the target account.
The technical scheme provided by the embodiment of the disclosure has the following beneficial effects:
in the embodiment of the disclosure, resource file demand information of a target account is acquired, the resource file demand information includes a target resource file identifier, a resource file sharing request carrying the target resource file identifier is sent to a terminal logging in to other accounts except the target account, the resource file sharing request is used for requesting the terminal to upload download information of a resource file when detecting that the resource file corresponding to the target resource file identifier is stored, the download information of the resource file includes content data of the resource file or a 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 logging in to the target account. Therefore, when a user needs to acquire a certain resource file, the corresponding download information can be directly acquired from other users through the server, and then the resource file can be acquired through the download information, so that the efficiency of acquiring the resource file can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for obtaining a resource file according to an embodiment of the present disclosure;
fig. 2 is a schematic view of a scenario for acquiring a resource file according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an apparatus for acquiring a resource file according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an apparatus for acquiring a resource file according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an apparatus for acquiring a resource file according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an apparatus for acquiring a resource file according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the disclosure provides a method for acquiring a resource file, and an execution main body of the method can be a server and is realized by assistance of a terminal. The server may be a server providing a resource file sharing function. The server may be provided with a processor, a memory, and a transceiver, where the processor may be configured to process a process of acquiring a resource file, the memory may be configured to store data required and generated in the following process, and the transceiver may be configured to receive related data sent by a terminal, and may also be configured to send related data to the terminal. In this embodiment, a server is taken as a background server of an application installed on a terminal and used for acquiring and sharing a resource file, and the terminal is taken as a mobile phone, for example, to perform detailed description of a scheme. The implementation scenario of the present scheme may be as shown in fig. 2.
The process flow shown in fig. 1 will be described in detail below with reference to specific embodiments, and the contents may be as follows:
step 101, acquiring resource file requirement information of a target account, wherein the resource file requirement information comprises a target resource file identifier.
The target resource file identifier may be a name, key information, and the like of the resource file.
In implementation, a user may install a resource sharing application program for acquiring and sharing resource files on a terminal, and the user may share the acquired resource files to other users through the application program and may also acquire resource files shared by other users using the application program. Each user can register an account of the application program, when the user needs to acquire some resource files (namely, resource files with target resource identifiers), the application program can acquire corresponding target resource file identifiers and then generate resource file demand information, the resource file demand information can include the target resource file identifiers and is recorded in account information of the user account (namely, the target account), and therefore the server can acquire the resource file demand information of the target account.
Optionally, the server may obtain the resource file requirement information of the target account in various ways, and several feasible ways are provided as follows:
in the first mode, the server acquires the resource file demand information of the target account according to the account information of the third-party application account bound with the target account.
In implementation, a user can disclose own resource file demand information in a third-party application, for example, release which movies the user wants to watch in a bean application, or propose which music the user wants to listen to in a microblog application, so that the user can record relevant resource file demand information in account information of the applications. Then, the user can bind the target account of the user in the resource sharing application program with the account of the third party application, so that the server can acquire the resource file demand information in the account information of the third party application account bound with the target account, namely the resource file demand information of the target account.
And secondly, the server acquires the resource file demand information of the target account according to the historical search information of the terminal logged in by the target account.
In implementation, a user may use the terminal to search some resource files on the internet, for example, the user may search through the resource sharing application program, or search through a web browsing application program, or search through a consumer application program (e.g., movie ticket purchasing software), the resource sharing application program installed on the terminal may obtain historical search information of the user, the historical search information may include a target resource file identifier, and the historical search information is recorded in account information of a target account, so that the server may obtain resource file demand information of the target account according to the historical search information of the terminal currently logged in by the target account.
And thirdly, the server acquires resource file demand information carried in a resource file acquisition request sent by a terminal for logging in the target account.
In implementation, if a user wants to acquire a resource file, a resource sharing application installed on the terminal may be opened, then a resource file acquisition window is opened, a resource file identifier (i.e., a target resource file identifier) of the resource file to be acquired is input, and after the user clicks to confirm, the terminal may send a resource file acquisition request carrying resource file requirement information to the server, so that the server may acquire corresponding resource file requirement information.
Therefore, the server can more timely and accurately acquire the resource file demand information of the target account through multiple ways.
And 102, sending a resource file sharing request carrying a target resource file identifier to a terminal logged in by other accounts except the target account.
The resource file sharing request is used for requesting a terminal to upload download information of a 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 comprises content data of the resource file or a download address of the resource file.
In implementation, after the resource file demand information of the target account is acquired, the server may send a resource file sharing request carrying the target resource file identifier to a terminal that is currently logged in by an account other than the target account. Here, the other accounts may be all accounts registered by the application program, or may be friend accounts of the target account, or accounts having a certain association with the target account, where the association may be that the interests and hobbies are the same, belong to the same chat group, are located in the same city, or the user may select another account by himself. After receiving the resource file sharing request, the terminal can acquire the target resource file identifier carried in the resource file sharing request, then locally search whether the resource file corresponding to the target resource file identifier is stored, and if the resource file corresponding to the target resource file identifier is stored, the terminal can upload the downloading information of the resource file to the server. Specifically, if the terminal stores the download address of the resource file, the download address may be uploaded to the server, and if the terminal stores the content data of the resource file, the content data may be uploaded to the server, or the download address of the content data of the resource file may also be uploaded to the server.
Optionally, the server may obtain the download information of the relevant resource file only through the terminal that opens the resource sharing right, and correspondingly, the processing in step 102 may be as follows: and sending a resource file sharing request carrying the target resource file identifier to other terminals, except the target account, logged in by other accounts with opened resource sharing authority.
In implementation, after acquiring the resource file requirement information of the target account, the server may first determine other accounts except the target account, then determine whether the resource sharing permissions of the other accounts are already opened, and then the server may send a resource file sharing request carrying the target resource file identifier to a terminal, other than the target account, to which the other accounts whose resource sharing permissions are already opened currently log in. Similarly, the server can acquire the resource file requirement information of the target account only when the requirement disclosure authority of the target account is opened. Further, it may be set that the server needs to send the prompt information to the target terminal logged in by the target account before acquiring the resource file demand information of the target account each time, and the server needs to send the prompt information after sending the resource file sharing request to the terminals logged in by other accounts.
Therefore, the user can ensure that the resource file in the terminal of the user can be shared or not to be shared by others by setting the resource sharing authority, and the resource file sharing is realized on the premise of fully protecting the personal privacy.
And 103, receiving the downloading information of the resource file uploaded by at least one terminal, and sending the received downloading information to the target terminal logged in by the target account.
In implementation, after the terminal of the other account sends the download information of the resource file to the server, the server may receive the corresponding download information, and then may send the received download information to the target terminal currently logged in by the target account.
Optionally, when the target resource file identifier corresponds to a file type, the resource file requirement information may further include a target resource file type, and correspondingly, the processing in step 103 may be as follows: the method comprises the steps of receiving download information of a plurality of resource files uploaded by at least one terminal, obtaining file types of the resource files, and sending the received download information which accords with the types of the resource files to a target terminal logged in a target account.
In implementation, the resource file demand information of the target account acquired by the server may include a target resource file type, so that the server may acquire the file types of the resource files after receiving download information of the resource files corresponding to the target resource file identifiers and uploaded by terminals logged in by other accounts. Specifically, the file type may be determined by detecting a file suffix of the download information, or the terminal uploads the corresponding file type while uploading the download information of the resource file. Then, 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, a user searches for a 'magic animal movie' on a terminal, a server can acquire resource file demand information containing a target resource file identifier of 'magic animal' and a file type of 'movie', then the server can send the 'magic animal' (target resource file identifier) to terminals logged in by other accounts, then the terminals can upload download information of a plurality of resource files corresponding to the 'magic animal' to the server, and the server selects download information of the resource files conforming to the file type of 'movie' from the download information and sends the download information to the target terminal. It is understood that the server may also directly send a resource file sharing request with the target resource file identifier "magic movie" to the terminal logged in by another account, and the subsequent processing is the same as steps 102 and 103.
Therefore, the user can accurately acquire the downloading information of the resource file of the file type required by the user, and the accuracy of the acquired downloading information is high.
Optionally, after receiving the download information of the multiple resource files uploaded by the terminal, the user may select a desired download information in the received download information, and accordingly, the processing in step 102 may be as follows: the method comprises the steps of receiving download information of a plurality of resource files uploaded by at least one terminal, sequencing the download information of the resource files according to a preset sequencing rule, generating a resource file list, sending the resource file list to a target terminal logged in by a target account, and sending the download information of the target resource file to the target terminal according to a received acquisition request of the target resource file sent by the target terminal.
In implementation, after receiving download information of a plurality of resource files uploaded by at least one terminal, the server may sort the download information according to a preset sorting rule, so as to generate a resource file list, where the preset sorting rule may be sorting according to update time, sorting according to file size, sorting according to account association, or the like. In addition, the download information of the resource files may also be classified according to preset classification rules, and a classification function is added to the resource file list, specifically, the preset classification rules may be classified according to file types, or according to source terminals, or according to the locations of the terminals, and the like. Then, 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 resource file list, a user can select a target resource file to be acquired from the resource file list and click a determination key, so that the server can be triggered to receive an acquisition request of the target resource file sent by the target terminal, and then the server can send download information of the target resource file to the target terminal.
Therefore, the user can select the best download information of the resource file from the plurality of download information, and the quality of the acquired resource file and the user satisfaction can be effectively improved.
Optionally, the user may set a trigger event for receiving the download information of the resource file, and correspondingly, the processing in step 103 may be as follows: and receiving download information of the resource file uploaded by at least one terminal, and sending the received download information to a target terminal logged in by a target account when detecting that a preset trigger condition is met.
In implementation, the user may set a trigger condition for receiving the download information of the resource file, for example, the download information is received only when the terminal is connected to the wireless network, or only when the terminal is in a standby state, or only after 10 pm, so that the server may temporarily store the download information of the resource file uploaded by at least one terminal after receiving the download information, and when it is detected that the preset trigger condition is met, the server may send the received download information to the target terminal currently logged in by the target account.
Therefore, the user can acquire the downloading information of the resource file under the condition that the user sets the downloading information, and convenience and flexibility in acquiring the resource file are improved.
Optionally, after receiving the download information of the resource file, the server may store the download information, and correspondingly, the related processing may be as follows: and storing the downloading information of the resource file, and sending the downloading information of the resource file to the terminal logged in the account to which the resource file demand information belongs when the resource file demand information containing the target resource file identification is acquired again.
In implementation, after receiving the download information of the resource file uploaded by at least one terminal, the server may correspondingly store the target resource file identifier and the download information of the resource file, that is, generate a corresponding relationship between the resource file identifier and the download information, so that when the resource file requirement information including the target resource file identifier is obtained again, the download information corresponding to the file identifier of the target resource file may be searched in the corresponding relationship, and the download information of the resource file may be sent to the terminal currently logged in by the account to which the resource file requirement information belongs.
Therefore, the server can directly send the download information of the stored resource files to users with corresponding requirements, and the same resource files do not need to be repeatedly acquired from terminals logged in by other accounts.
In the embodiment of the disclosure, resource file demand information of a target account is acquired, the resource file demand information includes a target resource file identifier, a resource file sharing request carrying the target resource file identifier is sent to a terminal logging in to other accounts except the target account, the resource file sharing request is used for requesting the terminal to upload download information of a resource file when detecting that the resource file corresponding to the target resource file identifier is stored, the download information of the resource file includes content data of the resource file or a 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 logging in to the target account. Therefore, when a user needs to acquire a certain resource file, the corresponding download information can be directly acquired from other users through the server, and then the resource file can be acquired through the download information, so that the efficiency of acquiring the resource file can be improved.
Based on the same technical concept, an embodiment of the present invention further provides an apparatus for obtaining a resource file, as shown in fig. 3, the apparatus includes:
an obtaining module 301, configured to obtain resource file requirement information of a target account, where the resource file requirement information includes a target resource file identifier;
a first sending module 302, configured to 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 upload download information of the resource file when detecting that the resource file corresponding to the target resource file identifier is stored, where the download information of the resource file includes content data of the resource file or a download address of the resource file;
a receiving module 303, configured to receive download information of the resource file uploaded by at least one terminal, and send the received download information to a target terminal logged in by the target account.
Optionally, the obtaining module 301 is configured to:
acquiring resource file demand information of the target account according to account information of a third-party application account bound with the target account; alternatively, the first and second electrodes may be,
acquiring resource file demand information of the target account according to historical search information of a terminal logged in by the target account; alternatively, the first and second electrodes may be,
and acquiring resource file demand information carried in a resource file acquisition request sent by the terminal for logging in the target account.
Optionally, the resource file requirement information further includes a target resource file type;
as shown in fig. 4, the receiving module 303 includes:
the receiving submodule 3031 is configured to receive download information of a plurality of resource files uploaded by at least one terminal, and acquire file types of the plurality of resource files;
and 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 in by the target account.
Optionally, as shown in fig. 5, the receiving module 303 includes:
the sequencing submodule 3033 is configured to receive download information of a plurality of resource files uploaded by at least one terminal, sequence the download information of the plurality of resource files according to a preset sequencing rule, generate a resource file list, and send the resource file list to a target terminal logged in by the target account;
the second sending submodule 3034 is configured to send, according to the received request for obtaining the target resource file sent by the target terminal, the download information of the target resource file to the target terminal.
Optionally, the receiving module 303 is configured to:
and receiving download information of the resource file uploaded by at least one terminal, and sending the received download information to a target terminal logged in by the target account when detecting that a preset trigger condition is met.
Optionally, the first sending module 302 is configured to:
and sending a resource file sharing request carrying the target resource file identifier to a terminal which logs in to other accounts except the target account and with opened resource sharing authority.
Optionally, as shown in fig. 6, the apparatus further includes:
a storage module 304, configured to store download information of the resource file;
a second sending module 305, configured to send, when the resource file requirement information including the target resource file identifier is obtained again, the download information of the resource file to the terminal logged in by the account to which the resource file requirement information belongs.
In the embodiment of the disclosure, resource file demand information of a target account is acquired, the resource file demand information includes a target resource file identifier, a resource file sharing request carrying the target resource file identifier is sent to a terminal logging in to other accounts except the target account, the resource file sharing request is used for requesting the terminal to upload download information of a resource file when detecting that the resource file corresponding to the target resource file identifier is stored, the download information of the resource file includes content data of the resource file or a 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 logging in to the target account. Therefore, when a user needs to acquire a certain resource file, the corresponding download information can be directly acquired from other users through the server, and then the resource file can be acquired through the download information, so that the efficiency of acquiring the resource file can be improved.
It should be noted that: in the device for acquiring a resource file provided in the above embodiment, when acquiring a resource file, only the division of each function module is illustrated, and in practical applications, the function allocation may be completed by different function modules according to needs, that is, the internal structure of the device is divided into different function modules, so as to complete all or part of the functions described above. In addition, the apparatus for acquiring a resource file and the method embodiment for acquiring a resource file provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
The embodiment of the present disclosure further provides a device for acquiring a resource file, where the device includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring resource file demand information of a target account, wherein the resource file demand information comprises a target resource file identifier;
sending a resource file sharing request carrying the target resource file identifier to a terminal logged in to other accounts except the target account, wherein the resource file sharing request is used for requesting the terminal to upload 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 comprises content data of the resource file or a download address of the resource file;
and receiving the downloading information of the resource file uploaded by at least one terminal, and sending the received downloading information to a target terminal logged in by the target account.
In the embodiment of the disclosure, resource file demand information of a target account is acquired, the resource file demand information includes a target resource file identifier, a resource file sharing request carrying the target resource file identifier is sent to a terminal logging in to other accounts except the target account, the resource file sharing request is used for requesting the terminal to upload download information of a resource file when detecting that the resource file corresponding to the target resource file identifier is stored, the download information of the resource file includes content data of the resource file or a 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 logging in to the target account. Therefore, when a user needs to acquire a certain resource file, the corresponding download information can be directly acquired from other users through the server, and then the resource file can be acquired through the download information, so that the efficiency of acquiring the resource file can be improved.
Referring to fig. 7, a server 700 includes a processing component 722 that further includes one or more processors, and memory resources, represented by memory 732, for storing instructions, such as applications, executable by the processing component 722. The application programs stored in memory 732 may include one or more modules that each correspond to a set of instructions. Further, the processing component 722 is configured to execute instructions to perform the above-described method of obtaining a resource file.
The server 700 may also include a power component 726 configured to perform power management of the server 700, a wired or wireless network interface 750 configured to connect the 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 memory 732, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Server 700 may include memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors comprise instructions for:
acquiring resource file demand information of a target account, wherein the resource file demand information comprises a target resource file identifier;
sending a resource file sharing request carrying the target resource file identifier to a terminal logged in to other accounts except the target account, wherein the resource file sharing request is used for requesting the terminal to upload 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 comprises content data of the resource file or a download address of the resource file;
and receiving the downloading information of the resource file uploaded by at least one terminal, and sending the received downloading information to a target terminal logged in by the target account.
Optionally, the acquiring resource file demand information of the target account includes:
acquiring resource file demand information of the target account according to account information of a third-party application account bound with the target account; alternatively, the first and second electrodes may be,
acquiring resource file demand information of the target account according to historical search information of a terminal logged in by the target account; alternatively, the first and second electrodes may be,
and acquiring resource file demand information carried in a resource file acquisition request sent by the terminal for logging in the target account.
Optionally, the resource file requirement information further 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 by the target account includes:
receiving download information of a plurality of resource files uploaded by at least one terminal, and acquiring file types of the resource files;
and sending the received downloading information which accords with the type of the target resource file to a target terminal logged in by the target account.
Optionally, the receiving download information of the resource file uploaded by at least one of the terminals, and sending the received download information to the target terminal logged in by the target account includes:
receiving download information of a plurality of resource files uploaded by at least one terminal, sequencing the download information of the resource files according to a preset sequencing rule, generating a resource file list, and sending the resource file list to a target terminal logged in by the target account;
and sending the downloading 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 download information of the resource file uploaded by at least one of the terminals, and sending the received download information to the target terminal logged in by the target account includes:
and receiving download information of the resource file uploaded by at least one terminal, and sending the received download information to a target terminal logged in by the target account when detecting that a preset trigger condition is met.
Optionally, the sending, by the terminal that logs in to the account other than the target account, the resource file sharing request carrying the target resource file identifier includes:
and sending a resource file sharing request carrying the target resource file identifier to a terminal which logs in to other accounts except the target account and with opened resource sharing authority.
Optionally, after receiving the download information of the resource file uploaded by at least one of the terminals, the method further includes:
storing the downloading information of the resource file;
and when the resource file demand information containing the target resource file identifier is acquired again, sending the downloading information of the resource file to a terminal logged in to the account to which the resource file demand information belongs.
In the embodiment of the disclosure, resource file demand information of a target account is acquired, the resource file demand information includes a target resource file identifier, a resource file sharing request carrying the target resource file identifier is sent to a terminal logging in to other accounts except the target account, the resource file sharing request is used for requesting the terminal to upload download information of a resource file when detecting that the resource file corresponding to the target resource file identifier is stored, the download information of the resource file includes content data of the resource file or a 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 logging in to the target account. Therefore, when a user needs to acquire a certain resource file, the corresponding download information can be directly acquired from other users through the server, and then the resource file can be acquired through the download information, so that the efficiency of acquiring the resource file can be improved.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (5)

1. A method for obtaining a resource file, the method comprising:
acquiring resource file demand information of a target account requiring open permission, wherein the resource file demand information comprises a target resource file identifier and a target resource file type, and the resource file demand information is recorded in account information of the target account;
sending a resource file sharing request carrying a target resource file identifier to a terminal which logs in to other accounts except the target account and with opened resource sharing authority, wherein the resource file sharing request is used for requesting the terminal to upload downloading information of the resource file when detecting that the resource file corresponding to the target resource file identifier is stored, the downloading information of the resource file comprises content data of the resource file or a downloading address of the resource file, and the other accounts are accounts having an association relation with the target account;
receiving download information of a plurality of resource files uploaded by at least one terminal, and acquiring file types of the resource files;
when a preset trigger condition is detected to be met, sending the received downloading information meeting the target resource file type to a target terminal logged in by the target account, wherein the preset trigger condition is used for indicating that the received downloading information meeting the target resource file type is sent to the target terminal;
the acquiring resource file demand information of the target account includes:
acquiring resource file demand information of the target account according to account information of a third-party application account bound with the target account; or acquiring resource file demand information of the target account according to historical search information of a terminal logged in by the target account; or acquiring resource file demand information carried in a resource file acquisition request sent by a terminal for logging in the target account;
after receiving the download information of the resource files uploaded by at least one terminal, the method further includes:
storing the downloading information of the resource file; and when the resource file demand information containing the target resource file identifier is acquired again, sending the downloading information of the resource file to a terminal logged in to the account to which the resource file demand information belongs.
2. The method according to claim 1, wherein the sending the received download information conforming to the target resource file type to the target terminal logged in to the target account comprises:
sequencing the downloading information of the resource files according to a preset sequencing rule, generating a resource file list, and sending the resource file list to a target terminal logged in by the target account;
and sending the downloading 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.
3. An apparatus for obtaining a resource file, the apparatus comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring resource file demand information of a target account requiring open permission, the resource file demand information comprises a target resource file identifier and a target resource file type, and the resource file demand information is recorded in account information of the target account;
a first sending module, configured to send a resource file sharing request carrying a target resource file identifier to a terminal that logs in to another account other than the target account, where the resource file sharing request is used to request the terminal to upload download information of a resource file when detecting that the resource file corresponding to the target resource file identifier is stored, the download information of the resource file includes content data of the resource file or a download address of the resource file, and the another account is an account that has an association relationship with the target account;
the receiving module is used for receiving the downloading information of the resource file uploaded by at least one terminal and sending the received downloading information to a target terminal logged in by the target account;
the obtaining module is configured to:
acquiring resource file demand information of the target account according to account information of a third-party application account bound with the target account; or acquiring resource file demand information of the target account according to historical search information of a terminal logged in by the target account; or acquiring resource file demand information carried in a resource file acquisition request sent by a terminal for logging in the target account;
the receiving module comprises:
the receiving submodule is used for receiving download information of a plurality of resource files uploaded by at least one terminal and acquiring file types of the resource files;
the first sending submodule is used for sending the received downloading information which accords with the target resource file type to a target terminal logged in by the target account when a preset triggering condition is detected to be met, and the preset triggering condition is used for indicating that the received downloading information which accords with the target resource file type is sent to the target terminal;
the first sending module is configured to:
sending a resource file sharing request carrying the target resource file identifier to a terminal which logs in to other accounts except the target account and with opened resource sharing authority;
the device further comprises:
the storage module is used for storing the downloading information of the resource file;
and the second sending module is used for sending the downloading information of the resource file to the terminal logged in the account to which the resource file demand information belongs when the resource file demand information containing the target resource file identifier is obtained again.
4. The apparatus of claim 3, wherein the receiving module further comprises:
the sequencing submodule is used for sequencing the downloading information of the resource files according to a preset sequencing rule, generating a resource file list and sending the resource file list to a target terminal logged in by the target account;
and the second sending submodule is used for sending the downloading 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.
5. An apparatus for obtaining a resource file, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring resource file demand information of a target account requiring open permission, wherein the resource file demand information comprises a target resource file identifier and a target resource file type, and the resource file demand information is recorded in account information of the target account;
sending a resource file sharing request carrying a target resource file identifier to a terminal which logs in to other accounts except the target account and with opened resource sharing authority, wherein the resource file sharing request is used for requesting the terminal to upload downloading information of the resource file when detecting that the resource file corresponding to the target resource file identifier is stored, the downloading information of the resource file comprises content data of the resource file or a downloading address of the resource file, and the other accounts are accounts having an association relation with the target account;
receiving download information of a plurality of resource files uploaded by at least one terminal, and acquiring file types of the resource files;
when a preset trigger condition is detected to be met, sending the received downloading information meeting the target resource file type to a target terminal logged in by the target account, wherein the preset trigger condition is used for indicating that the received downloading information meeting the target resource file type is sent to the target terminal;
the acquiring resource file demand information of the target account includes:
acquiring resource file demand information of the target account according to account information of a third-party application account bound with the target account; or acquiring resource file demand information of the target account according to historical search information of a terminal logged in by the target account; or acquiring resource file demand information carried in a resource file acquisition request sent by a terminal for logging in the target account;
after receiving the download information of the resource file uploaded by at least one terminal, the method further includes:
storing the downloading information of the resource file; and when the resource file demand information containing the target resource file identifier is acquired again, sending the downloading information of the resource file to a terminal logged in to the account to which the resource file demand information belongs.
CN201611087646.3A 2016-11-30 2016-11-30 Method and device for acquiring resource file Active CN106776917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611087646.3A CN106776917B (en) 2016-11-30 2016-11-30 Method and device for acquiring resource file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611087646.3A CN106776917B (en) 2016-11-30 2016-11-30 Method and device for acquiring resource file

Publications (2)

Publication Number Publication Date
CN106776917A CN106776917A (en) 2017-05-31
CN106776917B true CN106776917B (en) 2021-03-02

Family

ID=58914046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611087646.3A Active CN106776917B (en) 2016-11-30 2016-11-30 Method and device for acquiring resource file

Country Status (1)

Country Link
CN (1) CN106776917B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107734049B (en) * 2017-10-31 2020-10-27 维沃移动通信有限公司 Network resource downloading method and device and mobile terminal
CN108270786B (en) * 2018-01-16 2021-02-26 Oppo广东移动通信有限公司 Authority management method and device of application program, storage medium and intelligent terminal
CN110851271B (en) * 2019-10-28 2022-12-06 北京梧桐车联科技有限责任公司 Resource sharing method and device and storage medium
CN111479250A (en) * 2020-03-31 2020-07-31 歌尔科技有限公司 File sharing method, device and system and terminal equipment
CN112104741B (en) * 2020-09-21 2024-02-02 北京指掌易科技有限公司 Resource sharing method, device and system and gateway controller

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333106A (en) * 2010-07-13 2012-01-25 中国移动通信集团公司 Peer-to-peer (P2P) system resource scheduling method and device and system thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9069788B2 (en) * 2011-07-01 2015-06-30 Salesforce.Com, Inc. Truncating data associated with objects in a multi-tenant database
CN104811485A (en) * 2015-04-10 2015-07-29 深圳市金立通信设备有限公司 Resource sharing method
CN105160009B (en) * 2015-09-22 2019-03-15 小米科技有限责任公司 Resource downloading method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333106A (en) * 2010-07-13 2012-01-25 中国移动通信集团公司 Peer-to-peer (P2P) system resource scheduling method and device and system thereof

Also Published As

Publication number Publication date
CN106776917A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106776917B (en) Method and device for acquiring resource file
US9654577B2 (en) Techniques to generate mass push notifications
US9743251B2 (en) Adding location names using private frequent location data
US9910895B2 (en) Push subscriptions
US11010215B2 (en) Recommending applications based on call requests between applications
US8965958B2 (en) File fetch from a remote client device
US9830139B2 (en) Application experience sharing system
CN110262851B (en) Interface configuration method and device
WO2016110203A1 (en) File path storing and local file accessing method and device
US11882154B2 (en) Template representation of security resources
US9832322B1 (en) Techniques to transform network resource requests to zero rated network requests
US11531716B2 (en) Resource distribution based upon search signals
US9665732B2 (en) Secure Download from internet marketplace
CN109391658B (en) Account data synchronization method and equipment, storage medium and terminal thereof
CN114520830A (en) Message pushing method, device and system
CN103631621A (en) Method and device for prompting information
WO2014169497A1 (en) Method and server for pushing media file
EP2871802B1 (en) Techniques to rate-adjust data usage with a virtual private network
US11113723B1 (en) Explicit user history input
CN113360704A (en) Voice playing method and device and electronic equipment
CN110941683A (en) Method, device, medium and electronic equipment for acquiring object attribute information in space
US9456024B1 (en) Content sharing in mobile ad hoc networks
CN112671925B (en) Method, system and device for processing battery data
CN113824625B (en) Information interaction method and device
EP3023891B1 (en) Techniques to transform network resource requests to zero rated network requests

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant