Search

CN-122001596-A - Data downloading method, device, equipment and medium

CN122001596ACN 122001596 ACN122001596 ACN 122001596ACN-122001596-A

Abstract

The application discloses a data downloading method, a device, equipment and a medium in the technical field of computers. When receiving a downloading request of target data sent by a client, the method firstly confirms the validity of user identity information carried by the downloading request, generates a corresponding downloading record after confirming the validity of the user identity information, and constructs a downloading link of the target data based on the user identity information, and if the downloading link is accessed for the first time, returns the target data to the client after confirming that the user identity information in the downloading link is consistent with the user identity information in the downloading record and the link state in the downloading record is valid, and sets the link state in the downloading record to be invalid, thereby enabling the downloading link to be valid only once, prohibiting normal response again once the downloading link is used, and improving the security of the data which can be downloaded by the downloading link.

Inventors

  • Zhang shengze
  • DENG HAIFEI

Assignees

  • 深圳开立生物医疗科技股份有限公司

Dates

Publication Date
20260508
Application Date
20241101

Claims (13)

  1. 1. The data downloading method is characterized by being applied to a server and comprising the following steps: receiving a downloading request of target data sent by a client; if the user identity information carried by the downloading request is confirmed to be legal, a corresponding downloading record is generated, and a downloading link of the target data is constructed based on the user identity information; And if the download link is accessed for the first time, returning the target data to the client after confirming that the user identity information in the download link is consistent with the user identity information in the download record and the link state in the download record is valid, and setting the link state in the download record to be invalid.
  2. 2. The method of claim 1, wherein the step of determining the position of the substrate comprises, Verifying the user identity information carried by the downloading request; if the user identity information carried by the downloading request is verified to be legal, otherwise, the user identity information carried by the downloading request is verified to be illegal.
  3. 3. The method of claim 1, wherein constructing a download link for the target data based on the user identity information comprises: And splicing the storage path of the target data and the user identity information to obtain the download link.
  4. 4. The method as recited in claim 1, further comprising: if the download link is accessed for the first time, after confirming that the user identity information in the download link and the user identity information in the download record are inconsistent, returning prompt information of inconsistent identities to the client, and setting the link state in the download record as invalid.
  5. 5. The method as recited in claim 4, further comprising: And if the download link is accessed again, returning a prompt message of invalid link to the client after confirming that the user identity information in the download link is consistent with the user identity information in the download record and the link state in the download record is invalid.
  6. 6. The method as recited in claim 4, further comprising: if the download link is accessed again, after confirming that the user identity information in the download link and the user identity information in the download record are inconsistent, returning prompt information of inconsistent identity to the client, or after confirming that the link state in the download record is invalid, returning prompt information of invalid link to the client.
  7. 7. The method according to any one of claims 1 to 6, further comprising: downloading the target data from the client.
  8. 8. A data downloading method, applied to a client, comprising: Sending a downloading request of target data to a server, so that the server generates a corresponding downloading record after confirming that user identity information carried by the downloading request is legal according to the downloading request, and constructing a downloading link of the target data based on the user identity information; Accessing the download link to enable the server to return the target data after confirming that the download link is accessed for the first time, the user identity information in the download link is consistent with the user identity information in the download record, and the link state in the download record is valid, and the link state in the download record is set to be invalid; and receiving the target data.
  9. 9. The data downloading method is characterized by being applied to a client and a server and comprising the following steps: the client sends a downloading request of the target data to the server; The server receives the downloading request, and if the server confirms that the user identity information carried by the downloading request is legal, the server generates a corresponding downloading record and builds a downloading link of the target data based on the user identity information; The client accesses the download link; After confirming that the download link is accessed for the first time, the user identity information in the download link is consistent with the user identity information in the download record, and the link state in the download record is valid, the server returns the target data to the client, and the link state in the download record is set to be invalid; The client receives the target data.
  10. 10. A data downloading apparatus, applied to a server, comprising: The request receiving module is used for receiving a downloading request of target data sent by the client; the link generation module is used for generating a corresponding download record if confirming that the user identity information carried by the download request is legal, and constructing a download link of the target data based on the user identity information; and the link management module is used for returning the target data to the client after confirming that the user identity information in the download link is consistent with the user identity information in the download record and the link state in the download record is valid if the download link is accessed for the first time, and setting the link state in the download record to be invalid.
  11. 11. A data downloading apparatus, for use with a client, comprising: The request sending module is used for sending a downloading request of target data to the server side, so that the server side generates a corresponding downloading record after confirming that user identity information carried by the downloading request is legal according to the downloading request, and builds a downloading link of the target data based on the user identity information; The link access module is used for accessing the download link so that the server returns the target data to the client after confirming that the download link is accessed for the first time, the user identity information in the download link is consistent with the user identity information in the download record, and the link state in the download record is valid, and the link state in the download record is set to be invalid; And the data receiving module is used for receiving the target data.
  12. 12. An electronic device comprising a processor and a memory, wherein the memory is configured to store a computer program that is loaded and executed by the processor to implement the method of any of claims 1-9.
  13. 13. A storage medium having stored therein computer executable instructions which, when loaded and executed by a processor, implement the method of any one of claims 1 to 9.

Description

Data downloading method, device, equipment and medium Technical Field The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for downloading data. Background The encrypted character of the user authentication information can be connected in series to the download link in general, and although the security of the user authentication information is ensured, the download link cannot ensure the security of the data that can be downloaded by the download link once it is known maliciously. Disclosure of Invention In view of the above, an object of the present application is to provide a data downloading method, apparatus, device, and medium, which can improve the security of data that can be downloaded by a download link. The specific scheme is as follows: In order to achieve the above object, in one aspect, the present application provides a data downloading method, applied to a server, including: receiving a downloading request of target data sent by a client; if the user identity information carried by the downloading request is confirmed to be legal, a corresponding downloading record is generated, and a downloading link of the target data is constructed based on the user identity information; And if the download link is accessed for the first time, returning the target data to the client after confirming that the user identity information in the download link is consistent with the user identity information in the download record and the link state in the download record is valid, and setting the link state in the download record to be invalid. Optionally, verifying the user identity information carried by the download request; if the user identity information carried by the downloading request is verified to be legal, otherwise, the user identity information carried by the downloading request is verified to be illegal. Optionally, constructing a download link of the target data based on the user identity information includes: And splicing the storage path of the target data and the user identity information to obtain the download link. Optionally, the method further comprises: if the download link is accessed for the first time, after confirming that the user identity information in the download link and the user identity information in the download record are inconsistent, returning prompt information of inconsistent identities to the client, and setting the link state in the download record as invalid. Optionally, the method further comprises: And if the download link is accessed again, returning a prompt message of invalid link to the client after confirming that the user identity information in the download link is consistent with the user identity information in the download record and the link state in the download record is invalid. Optionally, the method further comprises: if the download link is accessed again, after confirming that the user identity information in the download link and the user identity information in the download record are inconsistent, returning prompt information of inconsistent identity to the client, or after confirming that the link state in the download record is invalid, returning prompt information of invalid link to the client. Optionally, the method further comprises: downloading the target data from the client. In still another aspect, the present application further provides a data downloading device, applied to a server, including: The request receiving module is used for receiving a downloading request of target data sent by the client; the link generation module is used for generating a corresponding download record if confirming that the user identity information carried by the download request is legal, and constructing a download link of the target data based on the user identity information; and the link management module is used for returning the target data to the client after confirming that the user identity information in the download link is consistent with the user identity information in the download record and the link state in the download record is valid if the download link is accessed for the first time, and setting the link state in the download record to be invalid. Optionally, the link generation module is specifically configured to verify the user identity information carried by the download request, if the user identity information carried by the download request passes the verification, confirm that the user identity information carried by the download request is legal, and if not, confirm that the user identity information carried by the download request is illegal. Optionally, the link generation module is specifically configured to: And splicing the storage path of the target data and the user identity information to obtain the download link. Optionally, the link management module is configured to, if the download link is accessed for the first time, retu