瀏覽代碼

fix issue https://t.zsxq.com/0fpHww4Gy

陈精华 1 年之前
父節點
當前提交
ed1d49782f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      server/src/main/java/cn/keking/service/FileHandlerService.java

+ 2 - 2
server/src/main/java/cn/keking/service/FileHandlerService.java

@@ -357,9 +357,9 @@ public class FileHandlerService {
             suffix = KkFileUtils.suffixFromFileName(fullFileName);
             // 移除fullfilename参数
             if (url.indexOf("fullfilename=" + fullFileName + "&") > 0) {
-                url.replace("fullfilename=" + fullFileName + "&", "");
+                url = url.replace("fullfilename=" + fullFileName + "&", "");
             } else {
-                url.replace("fullfilename=" + fullFileName, "");
+                url = url.replace("fullfilename=" + fullFileName, "");
             }
         } else {
             fileName = WebUtils.getFileNameFromURL(url);