From 284e1dc620699ae0dddcc9bdd9001eb96f904298 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期五, 14 三月 2025 11:58:54 +0800
Subject: [PATCH] bug

---
 ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/controller/system/SysOssController.java |   34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/controller/system/SysOssController.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/controller/system/SysOssController.java
index a5b58ae..7b728a3 100644
--- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/controller/system/SysOssController.java
+++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/controller/system/SysOssController.java
@@ -113,23 +113,23 @@
 //        return R.ok(uploadVo);
 //    }
 
-    /**
-     * 涓婁紶OSS瀵硅薄瀛樺偍  浜掕仈缃�
-     *
-     * @param file 鏂囦欢
-     */
-    @SaCheckPermission("system:oss:upload")
-    @Log(title = "OSS瀵硅薄瀛樺偍", businessType = BusinessType.INSERT)
-    @PostMapping(value = "/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
-    public R<String> upload(@RequestPart("file") MultipartFile file) throws IOException {
-        String originalfileName = file.getOriginalFilename();
-        long l = System.currentTimeMillis();
-        String password = PasswordUtil.randomPassword(6);
-        String suffix = StringUtils.substring(originalfileName, originalfileName.lastIndexOf("."), originalfileName.length());
-        FtpApche.uploadFile(ftpConfig, file, password + String.valueOf(l) + suffix);
-        return R.ok(password);
-    }
-
+//    /**
+//     * 涓婁紶OSS瀵硅薄瀛樺偍  浜掕仈缃�
+//     *
+//     * @param file 鏂囦欢
+//     */
+//    @SaCheckPermission("system:oss:upload")
+//    @Log(title = "OSS瀵硅薄瀛樺偍", businessType = BusinessType.INSERT)
+//    @PostMapping(value = "/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
+//    public R<String> upload(@RequestPart("file") MultipartFile file) throws IOException {
+//        String originalfileName = file.getOriginalFilename();
+//        long l = System.currentTimeMillis();
+//        String password = PasswordUtil.randomPassword(6);
+//        String suffix = StringUtils.substring(originalfileName, originalfileName.lastIndexOf("."), originalfileName.length());
+//        FtpApche.uploadFile(ftpConfig, file, password + String.valueOf(l) + suffix);
+//        return R.ok(password);
+//    }
+//
     private String post(VideoRequest request) throws IOException {
         HashMap<String, String> headers = new HashMap<>(3);
         String requestUrl = boundary.getChief() + "/resource/synchronization/uploadTwo";

--
Gitblit v1.8.0