Forráskód Böngészése

数据代理地址获取修改

wanger 5 hónapja
szülő
commit
065bb581f1

+ 2 - 2
onemap-common/onemap-common-core/src/main/java/com/onemap/common/core/utils/StringUtils.java

@@ -611,7 +611,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
      */
     public static String getFileStaticPath(String filename, String temp) {
         filename = filename.replaceAll("\\\\", "/");
-        return filename.replace(temp, "/file/statics/");
+        return filename.replace(temp.replaceAll("\\\\", "/"), "/file/statics/");
     }
 
     /**
@@ -634,7 +634,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
      */
     public static String getFileAbsolutePath(String filename, String temp) {
         filename = filename.replaceAll("\\\\", "/");
-        return filename.replace("/file/statics/", temp);
+        return filename.replace("/file/statics/", temp.replaceAll("\\\\", "/"));
     }
 
     /**