From ff0dd6b9926ba475a6ff459ba4140ddf5c9753d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ZR20090193-=E9=99=88=E6=95=AC=E5=8B=87?= Date: Thu, 12 Jan 2023 13:19:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=94=9F=E6=88=90=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E6=A0=BC=E5=BC=8F=E5=88=A0=E9=99=A4=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/System/Partial/SYS_PRINTINFOService.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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)