Lyyyi 13 uur geleden
bovenliggende
commit
665f5e9b51
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      OASystem/OASystem.Api/Controllers/GroupsController.cs

+ 2 - 2
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -8115,7 +8115,7 @@ FROM
                     var fileName = fileStream.FileName;
                     string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(fileName);
                     string extension = Path.GetExtension(fileName);
-                    int counter = 1;
+                    int counter = 0;
 
                     //文件重命名验证
                     string newFilePath;
@@ -8123,7 +8123,7 @@ FROM
                     do
                     {
                         string newFileName;
-                        if (counter == 1) newFileName = $"{fileNameWithoutExtension}{extension}";
+                        if (counter == 0) newFileName = $"{fileNameWithoutExtension}{extension}";
                         else newFileName = $"{fileNameWithoutExtension} ({counter}){extension}";
 
                         currFileName = newFileName;