Explorar el Código

1,修复删除oss文件不生效的问题

syxdevcode hace 3 años
padre
commit
7d7279d4c4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Admin.NET/Admin.NET.Core/Service/File/SysFileService.cs

+ 1 - 1
Admin.NET/Admin.NET.Core/Service/File/SysFileService.cs

@@ -128,7 +128,7 @@ public class SysFileService : IDynamicApiController, ITransient
 
             if (_OSSProviderOptions.IsEnable)
             {
-                await _OSSService.RemoveObjectAsync(file.BucketName.ToString(), string.Concat(file.FilePath, "/", input.Id.ToString()));
+                await _OSSService.RemoveObjectAsync(file.BucketName.ToString(), string.Concat(file.FilePath, "/", $"{input.Id}{file.Suffix}"));
             }
             else
             {