Ver código fonte

修复上传路径

xueyiming 5 dias atrás
pai
commit
61fdb7cfac

+ 1 - 2
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/utils/other/OSSUploader.java

@@ -17,8 +17,7 @@ public class OSSUploader {
     private static final String BUCKET_NAME = "art-pubbucket"; // 存储空间名称
 
     public static String uploadToOSS(String localVideoPath, String downloadType) {
-        String ossVideoKey = String.format("we_com/%s/%s", downloadType, UUID.randomUUID().toString());
-
+        String ossVideoKey = String.format("long_articles/%s/%s", downloadType, UUID.randomUUID().toString());
         // 创建 OSSClient 实例
         OSS ossClient = new OSSClientBuilder().build(ENDPOINT, ACCESS_KEY_ID, ACCESS_KEY_SECRET);