yuanrf преди 8 месеца
родител
ревизия
b0563cb4f0
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      OASystem/OASystem.Api/Controllers/GroupsController.cs

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

@@ -6938,7 +6938,7 @@ namespace OASystem.API.Controllers
 
                 }
             }
-            string path = savePath + Find.TeamName + "出访日程.docx";
+            string path = savePath + Find.TeamName + "出访日程";
             string ftpPath = AppSettingsHelper.Get("WordBaseUrl") + AppSettingsHelper.Get("WordFtpPath") + "Travel/export/" + Find.TeamName + "出访日程";
 
             try
@@ -6952,7 +6952,7 @@ namespace OASystem.API.Controllers
                     postfix = ".pdf";
                 }
 
-                doc.Save(path, saveFormat);
+                doc.Save(path + postfix, saveFormat);
                 jw = JsonView(true, "导出成功", ftpPath + postfix);
             }
             catch (Exception)