影像汇总修改
continuous-integration/drone/push Build is running

This commit is contained in:
2025-08-07 15:37:21 +08:00
parent a13917bded
commit 2c3f35c26b
4 changed files with 76 additions and 15 deletions
+1 -3
View File
@@ -389,14 +389,12 @@ public class OSSService : IOSSService
var _ossClient = new OssClient(RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? aliConfig.EndPoint : aliConfig.InternalEndpoint, AliyunOSSTempToken.AccessKeyId, AliyunOSSTempToken.AccessKeySecret, AliyunOSSTempToken.SecurityToken);
// 上传文件
var result = _ossClient.GetObject(aliConfig.BucketName, ossRelativePath);
// 将下载的文件流保存到本地文件
using (var fs = File.OpenWrite(localFilePath))
{
result.Content.CopyTo(fs);
fs.Close();
await result.Content.CopyToAsync(fs);
}
}