diff --git a/Vue.Net/VOL.System/Services/System/Partial/SYS_PRINTINFOService.cs b/Vue.Net/VOL.System/Services/System/Partial/SYS_PRINTINFOService.cs index dc1f060b..8b239333 100644 --- a/Vue.Net/VOL.System/Services/System/Partial/SYS_PRINTINFOService.cs +++ b/Vue.Net/VOL.System/Services/System/Partial/SYS_PRINTINFOService.cs @@ -430,6 +430,7 @@ namespace VOL.System.Services try { + bool isUpdate = false; //GC.Collect(); BasicDALRef.ClearMemory(); if (string.IsNullOrEmpty(printInfo.MODNAME) || string.IsNullOrEmpty(printInfo.PRINTNAME)) @@ -488,6 +489,8 @@ namespace VOL.System.Services { UpdateFrx_back(ref 打印格式, printInfo); + + isUpdate = true; } } @@ -501,8 +504,13 @@ namespace VOL.System.Services fileurl = MakeFile(打印格式, printInfo); + //删除新生成的frx - File.Delete("wwwroot/" + 打印格式.FILEPATH); + if (isUpdate) + { + File.Delete("wwwroot/" + 打印格式.FILEPATH); + } + } catch (Exception e)