Browse Source

Merge branch '20230427_sunOBS文件上传' of sckj/mz-cloud into master

15143018065 1 year ago
parent
commit
dd8685e42f

+ 8 - 4
ruoyi-modules/ruoyi-file/src/main/java/com/ruoyi/file/controller/SysFileController.java

@@ -133,7 +133,7 @@ public class SysFileController
             try {
                 fileName = URLDecoder.decode(fileName, "utf-8");
                 String filePath = localFilePath + "/" + year + "/" + month + "/" + day + "/" + fileName;
-                System.out.println(filePath);
+                System.out.println("本地路径<<<<======>>>>" + filePath);
                 buildResponse(resp, fileName);
                 convertOutputStream(resp, filePath);
             } catch (Exception e) {
@@ -143,6 +143,7 @@ public class SysFileController
             try {
                 fileName = URLDecoder.decode(fileName, "utf-8");
                 String objectKey = "mzylfwobs/uploadPath/" + year + "/" + month + "/" + day + "/" + fileName;
+                System.out.println("本地路径<<<<======>>>>" + objectKey);
                 buildResponse(resp, fileName);
                 convertOutputStreamObs(resp, obsConfig.getBUCKET_NAME(), objectKey);
             } catch (Exception e) {
@@ -158,7 +159,7 @@ public class SysFileController
             try {
                 fileName = URLDecoder.decode(fileName, "utf-8");
                 String filePath = localFilePath + "/" + year + "/" + month + "/" + fileName;
-                System.out.println(filePath);
+                System.out.println("本地路径<<<<======>>>>" + filePath);
                 buildResponse(resp, fileName);
                 convertOutputStream(resp, filePath);
             } catch (Exception e) {
@@ -168,6 +169,7 @@ public class SysFileController
             try {
                 fileName = URLDecoder.decode(fileName, "utf-8");
                 String objectKey = "mzylfwobs/uploadPath/" + year + "/" + month + "/" + fileName;
+                System.out.println("本地路径<<<<======>>>>" + objectKey);
                 buildResponse(resp, fileName);
                 convertOutputStreamObs(resp, obsConfig.getBUCKET_NAME(), objectKey);
             } catch (Exception e) {
@@ -183,7 +185,7 @@ public class SysFileController
             try {
                 fileName = URLDecoder.decode(fileName, "utf-8");
                 String filePath = localFilePath + "/" + year + "/" + fileName;
-                System.out.println(filePath);
+                System.out.println("本地路径<<<<======>>>>" + filePath);
                 buildResponse(resp, fileName);
                 convertOutputStream(resp, filePath);
             } catch (Exception e) {
@@ -193,6 +195,7 @@ public class SysFileController
             try {
                 fileName = URLDecoder.decode(fileName, "utf-8");
                 String objectKey = "mzylfwobs/uploadPath/" + year + "/" + fileName;
+                System.out.println("本地路径<<<<======>>>>" + objectKey);
                 buildResponse(resp, fileName);
                 convertOutputStreamObs(resp, obsConfig.getBUCKET_NAME(), objectKey);
             } catch (Exception e) {
@@ -207,7 +210,7 @@ public class SysFileController
             try {
                 fileName = URLDecoder.decode(fileName, "utf-8");
                 String filePath = localFilePath + "/" + fileName;
-                System.out.println(filePath);
+                System.out.println("本地路径<<<<======>>>>" + filePath);
                 buildResponse(resp, fileName);
                 convertOutputStream(resp, filePath);
             } catch (Exception e) {
@@ -217,6 +220,7 @@ public class SysFileController
             try {
                 fileName = URLDecoder.decode(fileName, "utf-8");
                 String objectKey = "mzylfwobs/uploadPath/" + fileName;
+                System.out.println("本地路径<<<<======>>>>" + objectKey);
                 buildResponse(resp, fileName);
                 convertOutputStreamObs(resp, obsConfig.getBUCKET_NAME(), objectKey);
             } catch (Exception e) {