CN111131363B - File downloading processing method and device and electronic equipment - Google Patents

File downloading processing method and device and electronic equipment Download PDF

Info

Publication number
CN111131363B
CN111131363B CN201811293286.1A CN201811293286A CN111131363B CN 111131363 B CN111131363 B CN 111131363B CN 201811293286 A CN201811293286 A CN 201811293286A CN 111131363 B CN111131363 B CN 111131363B
Authority
CN
China
Prior art keywords
file
downloaded
time information
downloading
terminal device
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
CN201811293286.1A
Other languages
Chinese (zh)
Other versions
CN111131363A (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201811293286.1A priority Critical patent/CN111131363B/en
Publication of CN111131363A publication Critical patent/CN111131363A/en
Application granted granted Critical
Publication of CN111131363B publication Critical patent/CN111131363B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

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

Abstract

The embodiment of the invention provides a file downloading processing method, a file downloading processing device and electronic equipment, wherein the method comprises the following steps: receiving a file downloading request sent by a first terminal device, wherein the file downloading request comprises an identifier of a file to be downloaded; determining failure time information corresponding to the file to be downloaded according to the identifier of the file to be downloaded; determining whether to allow anonymous downloading of the file to be downloaded according to the current time and the failure time information corresponding to the file to be downloaded; and if the file to be downloaded is allowed to be downloaded anonymously, the file to be downloaded is sent to the first terminal equipment. The method ensures that the file to be downloaded can be downloaded only before the failure time of the file to be downloaded, and further ensures the safety of data while supporting the file download in a non-login state of a user.

Description

File downloading processing method and device and electronic equipment
Technical Field
The embodiment of the invention relates to computer technologies, and in particular relates to a file downloading processing method and device and electronic equipment.
Background
With the continuous development of internet technology, users can perform more and more operations by means of the internet. For example, a user may customize a file online using an internet platform. The user can share the generated file to other users.
In the prior art, file sharing can be performed in two ways. In the first way, the platform may generate a download link for the file of the user, and when another user wishes to download the file, the other user needs to log in the platform first and then download the file. For some users who wish to download the file in a non-logged-on state, the file cannot be downloaded in this way. These users can download files in a second way, in which after the platform generates a download link for the user's file, other users can download the file in a non-login state, and at the same time, the download link is permanently valid. However, this approach presents a significant data security risk.
Therefore, the methods in the prior art cannot realize the file downloading under the non-login state of the user and ensure the data security.
Disclosure of Invention
The embodiment of the invention provides a file downloading processing method, a file downloading processing device and electronic equipment, which are used for solving the problem that the file downloading under the non-login state of a user cannot be supported and the data security is ensured in the prior art.
A first aspect of an embodiment of the present invention provides a file download processing method, including:
receiving a file downloading request sent by a first terminal device, wherein the file downloading request comprises an identifier of a file to be downloaded;
determining failure time information corresponding to the file to be downloaded according to the identifier of the file to be downloaded;
determining whether to allow anonymous downloading of the file to be downloaded according to the current time and the failure time information corresponding to the file to be downloaded;
and if the file to be downloaded is allowed to be downloaded anonymously, the file to be downloaded is sent to the first terminal equipment.
Further, before receiving the file download request sent by the first terminal device, the method further includes:
receiving a file creating request sent by a second terminal device by using a first account, wherein the file creating request is used for requesting to create the file to be downloaded and comprises expiration time information corresponding to the file to be downloaded;
generating an identifier of the file to be downloaded according to the file creation request;
and establishing a corresponding relation among the identification of the file to be downloaded, the file data of the file to be downloaded and the expiration time information.
Further, the identifier of the file to be downloaded comprises a download link of the file to be downloaded;
the generating the identifier of the file to be downloaded according to the file creating request comprises:
generating an authorization code for the file to be downloaded according to the file data of the file to be downloaded and the information of the first account;
and generating the identifier of the file to be downloaded for the file to be downloaded according to the authorization code.
Further, the method also comprises the following steps:
receiving a file downloading activation request sent by the second terminal device by using a first account, wherein the first account is an account used when the second terminal device sends a file creating request, and the file downloading activation request is used for requesting permission of anonymously downloading the file to be downloaded;
and updating the failure time information corresponding to the file to be downloaded according to the file downloading link activation request and the time information indicated by the second terminal equipment.
Further, before updating the expiration time information corresponding to the file to be downloaded according to the file download link activation request and the time information indicated by the second terminal device, the method further includes:
and receiving time information sent by the second terminal equipment, wherein the time information is used for indicating the updated failure time information.
Further, the method also comprises the following steps:
and if the file to be downloaded is not allowed to be downloaded, sending first reminding information to second terminal equipment, wherein the first reminding information is used for reminding a user of activating the file to be downloaded.
Further, the method also comprises the following steps:
and if the file to be downloaded is not allowed to be downloaded, sending first reminding information to an electronic mailbox corresponding to an account used when the file creation request is sent to the second terminal equipment, wherein the first reminding information is used for reminding a user to activate the file to be downloaded.
A second aspect of the embodiments of the present invention provides a file download processing apparatus, including:
the receiving module is used for receiving a file downloading request sent by first terminal equipment, wherein the file downloading request comprises an identifier of a file to be downloaded;
the first determining module is used for determining the failure time information corresponding to the file to be downloaded according to the identifier of the file to be downloaded;
the second determining module is used for determining whether the file to be downloaded is allowed to be downloaded anonymously according to the current time and the failure time information corresponding to the file to be downloaded;
and the sending module is used for sending the file to be downloaded to the first terminal equipment when the file to be downloaded is allowed to be downloaded anonymously.
Further, the receiving module is further configured to:
receiving a file creating request sent by a second terminal device by using a first account, wherein the file creating request is used for requesting to create the file to be downloaded and comprises expiration time information corresponding to the file to be downloaded;
the device further comprises:
the generating module is used for generating the identifier of the file to be downloaded according to the file creating request;
and the establishing module is used for establishing the corresponding relation among the identification of the file to be downloaded, the file data of the file to be downloaded and the failure time information.
Further, the identifier of the file to be downloaded comprises a download link of the file to be downloaded;
the generation module comprises:
the first generation unit is used for generating an authorization code for the file to be downloaded according to the file data of the file to be downloaded and the information of the first account;
and the second generation unit is used for generating the identifier of the file to be downloaded for the file to be downloaded according to the authorization code.
Further, the receiving module is further configured to:
receiving a file downloading activation request sent by the second terminal device by using a first account, wherein the first account is an account used when the second terminal device sends a file creating request, and the file downloading activation request is used for requesting permission of anonymously downloading the file to be downloaded;
the device further comprises:
and the updating module is used for updating the failure time information corresponding to the file to be downloaded according to the file downloading link activation request and the time information indicated by the second terminal equipment.
Further, the receiving module is further configured to:
and receiving time information sent by the second terminal equipment, wherein the time information is used for indicating the updated failure time information.
Further, the sending module is further configured to:
and when the file to be downloaded is not allowed to be downloaded, sending first reminding information to second terminal equipment, wherein the first reminding information is used for reminding a user of activating the file to be downloaded.
Further, the sending module is further configured to:
and when the file to be downloaded is not allowed to be downloaded, sending first reminding information to an electronic mailbox corresponding to an account used when the file creation request is sent to the second terminal equipment, wherein the first reminding information is used for reminding a user to activate the file to be downloaded.
A third aspect of embodiments of the present invention provides an electronic device, including:
a memory for storing program instructions;
a processor for calling and executing the program instructions in the memory to perform the method steps of the first aspect.
A fourth aspect of the embodiments of the present invention provides a readable storage medium, in which a computer program is stored, the computer program being configured to execute the method according to the first aspect.
According to the file downloading processing method, the file downloading processing device and the electronic equipment, the failure time information is set for the file, when a user needs to download the file anonymously, whether the file to be downloaded is allowed to be downloaded anonymously is determined according to the current time and the failure time corresponding to the file to be downloaded, so that the file to be downloaded can be downloaded only before the failure time of the file to be downloaded, and the file is downloaded in a non-login state of the user, and meanwhile, the data security is guaranteed.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the following briefly introduces the drawings needed to be used in the description of the embodiments or the prior art, and obviously, the drawings in the following description are some embodiments of the present invention, and those skilled in the art can obtain other drawings according to the drawings without inventive labor.
Fig. 1 is an exemplary system architecture diagram of a file download processing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a file download processing method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a file download processing method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a file download processing method according to an embodiment of the present invention;
fig. 5 is a block diagram of a file download processing apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram of a file download processing apparatus according to an embodiment of the present invention;
fig. 7 is a block diagram of a file download processing apparatus according to an embodiment of the present invention;
fig. 8 is a block diagram of a file download processing apparatus according to an embodiment of the present invention;
fig. 9 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In some application scenarios, after a user customizes a file through the platform, other users or the user may need to download the file from the platform in a non-login state, i.e., anonymously. For example, the user may write a file downloading program, run the downloading program in the background, and automatically download the file anonymously from the platform. Although anonymous downloading is possible by the second method described above, in this method, the file download link customized by the user is permanently valid, and thus the security of the file data cannot be guaranteed. Therefore, with the method of the prior art, it is impossible to ensure the security of data while supporting the user to download files in a non-login state.
Based on the above problems, embodiments of the present invention provide a file downloading processing method, in which when a user needs to download a file anonymously, according to current time and invalidation time corresponding to the file to be downloaded, it is determined whether to allow the file to be downloaded anonymously, so that the file to be downloaded can be downloaded only before the invalidation time of the file to be downloaded, and thus, the file is downloaded in a non-login state of the user, and data security is ensured.
Fig. 1 is an exemplary system architecture diagram of a file download processing method according to an embodiment of the present invention, as shown in fig. 1, the method involves a server, a first terminal device, and a second terminal device. The server is a server of an internet platform for providing a file customization function for a user. The first terminal device is a terminal device used by a user who wishes to download a file anonymously. The second terminal device is a terminal device used by a user for customizing the file, and the user can log in an internet platform through the second terminal device to customize the file. For example, a client of the internet platform may be run on the second terminal device, and the user performs an operation of customizing the file on the client, and then the client submits the customized file to the server.
It should be noted that, in a specific implementation process, the first terminal device and the second terminal device may be different terminal devices, or may be the same terminal device. The embodiment of the present invention is not particularly limited to this. For example, user a has customized a file via the second terminal device, and user B downloads the file anonymously via the first terminal device, in which case the first terminal device and the second terminal device are different terminal devices. For another example, the user a customizes a file through the second terminal device, the file is stored in a server of the internet platform, and the user a wants to download the file, and then the user a may use the second terminal device to download the file anonymously.
Fig. 2 is a schematic flowchart of a file download processing method according to an embodiment of the present invention, where an execution subject of the method is the server. As shown in fig. 2, the method includes:
s201, receiving a file downloading request sent by a first terminal device, wherein the file downloading request comprises an identifier of a file to be downloaded.
Optionally, the user of the first terminal device may input a file downloading instruction for the file to be downloaded to the first terminal device by clicking a file link, a file downloading button, and the like on the first terminal device. After receiving a file downloading instruction input by a user, the first terminal device sends a file downloading request to the server, and the file downloading request carries an identifier of a file to be downloaded.
Optionally, the identifier of the file to be downloaded may be a serial number of the file to be downloaded, an authorization code, or a download link of the file to be downloaded.
S202, determining the failure time information corresponding to the file to be downloaded according to the identifier of the file to be downloaded.
Optionally, each file saved on the server may correspond to one piece of expiration time information.
Optionally, the expiration time information may be a date, or a date plus a time, or a duration. The embodiment of the present invention is not particularly limited to this. If the time information of the failure is the time length, the file fails at the time of the time length and the time after the time length from the time of finishing customizing the file.
Optionally, the expiration time information may be set by the user when the user customizes the file, or may be generated by the server by default when the user customizes the file. For example, after a user customizes a file, the server may default to the file and generate expiration time information if the expiration time information of the file is not set.
S203, determining whether to allow anonymous downloading of the file to be downloaded according to the current time and the failure time information corresponding to the file to be downloaded.
Optionally, if the expiration time information is a date or a date plus a time, the server may determine whether the current time exceeds the expiration time information, determine to allow the file to be downloaded anonymously if the current time does not exceed the expiration time information, and determine not to allow the file to be downloaded anonymously if the current time exceeds the expiration time information.
Optionally, if the expiration time information is a time length, the server first determines the expiration time of the file according to the time for customizing the file and the time length, and then determines whether the current time exceeds the expiration time, if not, it is determined that the file to be downloaded is allowed to be downloaded anonymously, and if so, it is determined that the file to be downloaded is not allowed to be downloaded anonymously.
And S204, if the file to be downloaded is allowed to be downloaded anonymously, the file to be downloaded is sent to the first terminal equipment.
If the file to be downloaded is not allowed to be downloaded anonymously, the server can return response information of refusing to download to the first terminal device, and the prompt information carries reason information of refusing to download due to file failure.
In the embodiment, the expiration time information is set for the file, when a user needs to download the file anonymously, whether the file to be downloaded is allowed to be downloaded anonymously is determined according to the current time and the expiration time corresponding to the file to be downloaded, so that the file to be downloaded can be downloaded only before the expiration time of the file to be downloaded, and the file is downloaded in a non-login state of the user, and the data security is guaranteed.
On the basis of the above embodiments, the present embodiment relates to a process of customizing a file before downloading the file.
Fig. 3 is a schematic flowchart of a file download processing method according to an embodiment of the present invention, and as shown in fig. 3, before step S201, the method further includes:
s301, receiving a file creating request sent by a second terminal device by using a first account, wherein the file creating request is used for requesting to create the file to be downloaded, and the file creating request comprises expiration time information corresponding to the file to be downloaded.
Optionally, the user logs in the client of the internet platform by using the first account on the second terminal device, and then the user may customize the file to be downloaded based on the information provided by the internet platform, for example, the user may select the statistical data customized file of the internet platform. After the customization of the downloaded file is completed, the user can input the expiration time information of the customized file at the client. The client can further carry the file content of the file customized by the user and the failure time information input by the user in the file creation request and send the file creation request to the server.
S302, generating the identifier of the file to be downloaded according to the file creation request.
After receiving the file creation request, the server may generate a unique identifier different from other files for the file requested to be created by the file creation request. The server may send the unique identifier of the file to the client, and when the user requests to download the file, the client sends a file download request containing the unique identifier to the server.
In an optional implementation manner, the identifier of the file to be downloaded may be a download link of the file to be downloaded. Optionally, the server may generate the identifier of the file to be downloaded by:
the server firstly generates an authorization code for the file to be downloaded according to the file data of the file to be downloaded and the information of the first account.
And generating the identifier of the file to be downloaded for the file to be downloaded according to the authorization code.
Optionally, the server generates an authorization code based on the file data of the file to be downloaded, the information of the first account, and a random number, and it can be ensured that the authorization code is not repeated with authorization codes of other files. Further, the server may combine the authorization code with the fixed link to form a download link for the file to be downloaded.
Illustratively, the server generates an authorization code of the file to be downloaded, which is 2E343 dfsfeldfsdf, based on the file data of the file to be downloaded, the information of the first account, and the random number. The server combines the authorization code with the domain name corresponding to the server to form the identifier of the file to be downloaded as follows: http:// fenxiang. Com/getFilekey =2E343dfsfedfsdf.
S303, establishing a corresponding relation among the identification of the file to be downloaded, the file data of the file to be downloaded and the expiration time information.
Optionally, the server may record a corresponding relationship between the identifier of the file to be downloaded, the file data, and the expiration time information in a manner of a mapping table.
In another case, the user may not set the expiration time information of the file after customizing the file. The first terminal device does not carry the expiration time information in the file creation request, and after receiving the file creation request, the server may generate default expiration time information for the file requested to be created by the file creation request, and establish a correspondence between the identifier of the file to be downloaded, the file data of the file to be downloaded, and the generated default expiration time information through step S303.
On the basis of the above embodiments, the present embodiment relates to a process of reactivating a file to be downloaded after the file to be downloaded is invalid.
In the implementation process, if the current time exceeds the expiration time of the file to be downloaded set by the user or the default setting of the system, the user who customizes the file wants to continue allowing the file to be anonymously downloaded, in this case, the file to be downloaded can be reactivated through the following process.
Fig. 4 is a schematic flowchart of a file download processing method according to an embodiment of the present invention, and as shown in fig. 4, the method further includes:
s401, receiving a file downloading activation request sent by the second terminal device by using a first account, wherein the first account is an account used when the second terminal device sends a file creation request, and the file downloading activation request is used for requesting permission of anonymous downloading of the file to be downloaded.
Optionally, when the user customizing the file reactivates the file to be downloaded, the user logs in the client of the internet platform using the account used in customizing the file, and inputs a file download activation instruction for the file to be downloaded to the second terminal device by operations such as clicking a file link, clicking an activation button, and the like. And after receiving a file downloading activation instruction input by a user, the second terminal equipment sends a file downloading activation request to the server, and the file downloading request carries an identifier of the file to be downloaded.
And S402, updating the expiration time information corresponding to the file to be downloaded according to the file downloading link activation request and the time information indicated by the second terminal equipment.
Optionally, the time information indicated by the second terminal device may be new expiration time information input by the user on the second terminal device. Before this step, the server first receives time information indicating updated expiration time information from the second terminal device.
In one mode, the user may input new expiration time information after logging in the client, and then the second terminal device may carry the new expiration time information input by the user in the file download activation request.
In another mode, after the user inputs new expiration time information after logging in the client, the second terminal device may send the new expiration time information input by the user through a message different from the file download activation request.
Furthermore, in this step, the server updates the expiration time information corresponding to the file to be downloaded based on the time information indicated by the second terminal device, that is, the new expiration time information.
Optionally, the server replaces the expiration time information corresponding to the file to be downloaded in the mapping table with the new expiration time information.
On the basis of the above embodiments, the present embodiment relates to a process of sending a reminding message to a user of a customized file when a file to be downloaded is invalid.
In an optional implementation manner, if the server determines that the file to be downloaded is not allowed to be downloaded, first reminding information is sent to the second terminal device, and the first reminding information is used for reminding a user of activating the file to be downloaded.
In this way, after determining that the file to be downloaded is not allowed to be downloaded, the server sends the first prompting information to the second terminal device, that is, the terminal device where the user of the customized file is located, and when the user of the customized file logs in the client on the second terminal device, the second terminal device may display the first prompting information to the user, and the user may or may not have the file to be downloaded become invalid, and the user may reactivate the file to be downloaded according to the method described in the above embodiment.
In another optional implementation manner, if the server determines that the file to be downloaded is not allowed to be downloaded, first reminding information is sent to an email box corresponding to an account used when the file creation request is sent to the second terminal device, where the first reminding information is used to remind a user to activate the file to be downloaded.
When registering an account number to an internet platform, a user who customizes a file can input the email information of the user. In this way, after determining that the file to be downloaded is not allowed to be downloaded, the server may directly send the account used when the file creation request is sent to the second terminal device, that is, the email corresponding to the account of the user that customizes the file sends the first reminding message.
Optionally, for the two manners, the server may further establish a corresponding relationship between the account of the user that customizes the file and the identifier of the file to be downloaded, and after determining that the file to be downloaded is not allowed to be downloaded, the server may determine to customize the account of the file to be downloaded through the corresponding relationship, and then send the first prompting information to the second terminal device where the account is located or the corresponding email box.
In a specific implementation process, the server may execute the process of sending the first reminding information after receiving a file downloading request, or the server may automatically determine whether the file to be downloaded is not allowed to be anonymously downloaded due to failure according to a certain period, and execute the process of sending the first reminding information after determining that the file to be downloaded is not allowed to be anonymously downloaded.
Fig. 5 is a block diagram of a file download processing apparatus according to an embodiment of the present invention, and as shown in fig. 5, the apparatus includes:
a receiving module 501, configured to receive a file download request sent by a first terminal device, where the file download request includes an identifier of a file to be downloaded.
A first determining module 502, configured to determine, according to the identifier of the file to be downloaded, expiration time information corresponding to the file to be downloaded.
A second determining module 503, configured to determine whether to allow anonymous downloading of the file to be downloaded according to the current time and the expiration time information corresponding to the file to be downloaded.
A sending module 504, configured to send the file to be downloaded to the first terminal device when the file to be downloaded is allowed to be downloaded anonymously.
The device is used for realizing the method embodiments, the realization principle and the technical effect are similar, and the details are not repeated here.
In another embodiment, the receiving module 501 is further configured to:
receiving a file creating request sent by a second terminal device by using a first account, wherein the file creating request is used for requesting to create the file to be downloaded, and the file creating request comprises expiration time information corresponding to the file to be downloaded.
Fig. 6 is a block diagram of a file download processing apparatus according to an embodiment of the present invention, and as shown in fig. 6, the apparatus further includes:
and a generating module 505, configured to generate an identifier of the file to be downloaded according to the file creation request.
An establishing module 506, configured to establish a corresponding relationship between the identifier of the file to be downloaded, the file data of the file to be downloaded, and the expiration time information.
In another embodiment, the identifier of the file to be downloaded includes a download link of the file to be downloaded.
Fig. 7 is a block diagram of a file download processing apparatus according to an embodiment of the present invention, and as shown in fig. 7, the generating module 505 includes:
a first generating unit 5051, configured to generate an authorization code for the file to be downloaded according to the file data of the file to be downloaded and the information of the first account.
A second generating unit 5052 is configured to generate an identifier of the file to be downloaded for the file to be downloaded according to the authorization code.
In another embodiment, the receiving module 501 is further configured to:
receiving a file downloading activation request sent by the second terminal device by using a first account, wherein the first account is an account used when the second terminal device sends a file creating request, and the file downloading activation request is used for requesting permission of anonymously downloading the file to be downloaded;
fig. 8 is a block diagram of a file download processing apparatus according to an embodiment of the present invention, and as shown in fig. 8, the apparatus further includes:
and an updating module 507, configured to update the expiration time information corresponding to the file to be downloaded according to the file download link activation request and the time information indicated by the second terminal device.
In another embodiment, the receiving module 501 is further configured to:
and receiving time information sent by the second terminal equipment, wherein the time information is used for indicating the updated failure time information.
In another embodiment, the sending module 504 is further configured to:
and when the file to be downloaded is not allowed to be downloaded, sending first reminding information to second terminal equipment, wherein the first reminding information is used for reminding a user of activating the file to be downloaded.
In another embodiment, the sending module 504 is further configured to:
and when the file to be downloaded is not allowed to be downloaded, sending first reminding information to an electronic mailbox corresponding to an account used when the file creation request is sent to the second terminal equipment, wherein the first reminding information is used for reminding a user to activate the file to be downloaded.
Fig. 9 is a block diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 9, the electronic device includes:
a memory 901 for storing program instructions.
The processor 902 is configured to call and execute the program instructions in the memory 901 to perform the method steps described in the above method embodiments.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (5)

1. A file downloading processing method is applied to a server and is characterized by comprising the following steps:
receiving a file creating request sent by a second terminal device by using a first account, wherein the file creating request is used for requesting to create a file to be downloaded and comprises file content of the file to be downloaded and failure time information corresponding to the file to be downloaded;
generating an authorization code for the file to be downloaded according to the file content of the file to be downloaded, the information of the first account and the random number;
generating an identifier of the file to be downloaded for the file to be downloaded according to the authorization code;
establishing a corresponding relation among the identification of the file to be downloaded, the file content of the file to be downloaded and the expiration time information;
receiving a file downloading request sent by a first terminal device, wherein the file downloading request comprises an identifier of a file to be downloaded but does not comprise account information;
determining failure time information corresponding to the file to be downloaded according to the identifier of the file to be downloaded;
determining whether to allow anonymous downloading of the file to be downloaded according to the current time and the failure time information corresponding to the file to be downloaded;
if the file to be downloaded is allowed to be downloaded anonymously, the file to be downloaded is sent to the first terminal device;
if the file to be downloaded is not allowed to be downloaded anonymously, first reminding information is sent to the second terminal device, and the first reminding information is used for reminding a user of the first account to activate the file to be downloaded;
further comprising:
receiving a file downloading activation request and first time information sent by the second terminal device by using the first account after receiving the first reminding information, wherein the file downloading activation request is used for requesting permission of anonymously downloading the file to be downloaded;
and updating the failure time information corresponding to the identifier of the file to be downloaded according to the file download link activation request and the first time information.
2. The method of claim 1, wherein the identification of the file to be downloaded comprises a download link of the file to be downloaded.
3. A file download processing device applied to a server is characterized by comprising:
the receiving module is used for receiving a file downloading request sent by first terminal equipment, wherein the file downloading request comprises an identifier of a file to be downloaded but does not comprise account information;
the first determining module is used for determining the failure time information corresponding to the file to be downloaded according to the identifier of the file to be downloaded;
the second determining module is used for determining whether the file to be downloaded is allowed to be downloaded anonymously according to the current time and the failure time information corresponding to the file to be downloaded;
the sending module is used for sending the file to be downloaded to the first terminal device when the file to be downloaded is allowed to be downloaded anonymously;
the sending module is further configured to send first reminding information to a second terminal device when the anonymous download of the file to be downloaded is not allowed, where the first reminding information is used to remind a user of a first account to activate the file to be downloaded;
the receiving module is further configured to receive a file creation request sent by a second terminal device using a first account, where the file creation request is used to request creation of the file to be downloaded, and the file creation request includes file content of the file to be downloaded and expiration time information corresponding to the file to be downloaded;
the receiving module is further configured to receive a file download activation request and first time information, which are sent by the second terminal device using the first account after receiving the first prompting information, where the file download activation request is used to request permission of anonymously downloading the file to be downloaded;
the updating module is used for updating the failure time information corresponding to the identifier of the file to be downloaded according to the file downloading link activation request and the first time information;
a generating module, configured to generate an authorization code for the file to be downloaded according to the file content of the file to be downloaded, the information of the first account, and the random number, and generate an identifier of the file to be downloaded for the file to be downloaded according to the authorization code;
and the establishing module is used for establishing the corresponding relation among the identification of the file to be downloaded, the file content of the file to be downloaded and the expiration time information.
4. An electronic device, comprising:
a memory for storing program instructions;
a processor for invoking and executing program instructions in said memory for performing the method steps of claim 1 or 2.
5. A readable storage medium, characterized in that a computer program is stored in the readable storage medium for performing the method of claim 1 or 2.
CN201811293286.1A 2018-11-01 2018-11-01 File downloading processing method and device and electronic equipment Active CN111131363B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811293286.1A CN111131363B (en) 2018-11-01 2018-11-01 File downloading processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811293286.1A CN111131363B (en) 2018-11-01 2018-11-01 File downloading processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111131363A CN111131363A (en) 2020-05-08
CN111131363B true CN111131363B (en) 2023-03-24

Family

ID=70494181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811293286.1A Active CN111131363B (en) 2018-11-01 2018-11-01 File downloading processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111131363B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601582A (en) * 2015-01-20 2015-05-06 广东欧珀移动通信有限公司 File transfer method, device and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307210B (en) * 2011-01-13 2014-12-10 国云科技股份有限公司 Data downloading system and data management and downloading method thereof
CN103078881B (en) * 2011-10-26 2016-05-11 腾讯科技(深圳)有限公司 Internet resources Download Info share control system and method
CN104601681A (en) * 2014-12-31 2015-05-06 乐视网信息技术(北京)股份有限公司 File fragmentation processing method and device
US20170279871A1 (en) * 2016-03-28 2017-09-28 Le Holdings (Beijing) Co., Ltd. Inter-regional file sharing method and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601582A (en) * 2015-01-20 2015-05-06 广东欧珀移动通信有限公司 File transfer method, device and system

Also Published As

Publication number Publication date
CN111131363A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
US11539687B2 (en) Message right management method, device and storage medium
US10462118B2 (en) Systems and methods for login and authorization
CN108710528B (en) Desktop cloud virtual machine access and control method, device, equipment and storage medium
US8554749B2 (en) Data file access control
CN102057354B (en) Techniques for acquiring updates for application programs
CN113014568B (en) Account login method, equipment and server
CN102077233B (en) Extended user profile
KR102286989B1 (en) User-specific application activation for remote sessions
CN111355723A (en) Single sign-on method, device, equipment and readable storage medium
CN105612731B (en) It may have access to application state across accredited and untrusted platform roaming internet
JP2015121835A (en) Log-in request device which issues log-in request to predetermined server, method, and program used therefor
CN112642164A (en) Account sharing method, device and system and computer readable storage medium
CN108132832B (en) Application program starting method and device
TWI530813B (en) Method and system for unlocking screen
CN113886803A (en) Object storage system of instant messaging, object storage request method and device
CN111131363B (en) File downloading processing method and device and electronic equipment
JP2016076189A (en) System and method for providing user with prescribed service
CN110445791B (en) Plug-in authentication method and device, and plug-in authentication information storage method and device
CN111314454A (en) Application access method and device, electronic equipment and storage medium
JP2016066845A (en) System and method for providing user with prescribed service
JP2002169621A (en) Program download system, terminal device, program download method and storage medium
CN112448917A (en) Website login method and device, readable medium and electronic equipment
CN110673971A (en) Processing method and device for expiration of login session and user terminal
JP6257085B2 (en) Login request apparatus and method for requesting login to predetermined server, and program used therefor
CN110727416A (en) Development framework generation method and related device

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