fly 1 year ago
parent
commit
4c8d18c977
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Interfaces/FileTransfer/FileTransferService.cs

+ 2 - 2
Interfaces/FileTransfer/FileTransferService.cs

@@ -211,7 +211,7 @@ namespace WingServerCommon.Interfaces.FileTransfer
                     return new List<string>();
                 }
                 //读取缓存文件, 如果存在就是需要断点upload
-                var recorderFilePath = _folderBase + ToMD5(sourceFilePath) + ".json";
+                var recorderFilePath = Path.Combine(_folderBase, ToMD5(sourceFilePath) + ".json");
                 if (File.Exists(recorderFilePath))
                 {
                     //调用断点续传
@@ -369,7 +369,7 @@ namespace WingServerCommon.Interfaces.FileTransfer
             {
                 Directory.CreateDirectory(_folderBase);
             }
-            var recorderFilePath = _folderBase + ToMD5(record.FilePath) + ".json";
+            var recorderFilePath = Path.Combine(_folderBase, ToMD5(record.FilePath) + ".json");
             if (File.Exists(recorderFilePath))
             {
                 //存在删除