Browse Source

20250214_sun

15143018065 1 week ago
parent
commit
682381e19c

+ 1 - 0
ruoyi-modules/mz-gljt/src/main/java/com/ruoyi/gljt/utils/ObsUtils.java

@@ -21,6 +21,7 @@ public class ObsUtils {
     public static final String endpoint = "14.125.0.146";
 
     public String path2Base64(String path) {
+        path = path.replaceFirst("gljtUploadPath", "uploadPath");
         String res = null;
         if (!StringUtils.equals(SpringUtil.getActiveProfile(), "prod")) {
             String filePath = "/home/ruoyi/mz/uploadPath" + path.replaceFirst("/uploadPath", "");