From a3360878835e4606c968441e432b0c3d4bd921ae Mon Sep 17 00:00:00 2001
From: sean.zhou <sean.zhou@dji.com>
Date: Fri, 23 Sep 2022 18:04:07 +0800
Subject: [PATCH] V1.2.0
---
src/main/java/com/dji/sample/media/controller/FileController.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/java/com/dji/sample/media/controller/FileController.java b/src/main/java/com/dji/sample/media/controller/FileController.java
index 8fa8451..d5e698c 100644
--- a/src/main/java/com/dji/sample/media/controller/FileController.java
+++ b/src/main/java/com/dji/sample/media/controller/FileController.java
@@ -37,18 +37,18 @@
}
/**
- * Query the download address of the file according to the media file fingerprint,
+ * Query the download address of the file according to the media file id,
* and redirect to this address directly for download.
* @param workspaceId
- * @param fingerprint
+ * @param fileId
* @param response
*/
- @GetMapping("/{workspace_id}/file/{fingerprint}/url")
+ @GetMapping("/{workspace_id}/file/{file_id}/url")
public void getFileUrl(@PathVariable(name = "workspace_id") String workspaceId,
- @PathVariable String fingerprint, HttpServletResponse response) {
+ @PathVariable(name = "file_id") String fileId, HttpServletResponse response) {
try {
- URL url = fileService.getObjectUrl(workspaceId, fingerprint);
+ URL url = fileService.getObjectUrl(workspaceId, fileId);
response.sendRedirect(url.toString());
} catch (IOException e) {
e.printStackTrace();
--
Gitblit v1.9.3