1. 去掉无用更新

2. 修正文件夹,存储桶下载无法暂停问题
dev2.0
陈伟 2025-04-24 16:54:37 +08:00
parent b42ea1f55c
commit 9bde00c143
2 changed files with 2 additions and 2 deletions

View File

@ -251,7 +251,7 @@ public class MinioDownloadTask : NotifyPropertyChangedBase
// 验证文件是否存在
if (File.Exists(Path.Combine(FilePath, item.Key))) continue;
var localDir = Type == 1 ? FilePath : Path.Combine(FilePath, BucketName);
await Minio.DownLoadObject(BucketName, item.Key, localDir, item.ETag);
await Minio.DownLoadObject(BucketName, item.Key, localDir, item.ETag, StopDownTs.Token);
DownloadNumber++;
DownloadInfo = $"{DownloadNumber}/{FileNumber}";
Speed = "下载中";

View File

@ -505,7 +505,7 @@ public class DownViewModel : MvcViewModelBase
BucketName = bucketName,
FileName = objectKey,
Status = "等待中",
DownloadInfo = "0/na",
//DownloadInfo = "0/na",
Speed = "等待中",
CreateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"),
// 1 文件夹 2 存储桶