From 1204e9ec916b71d3a8418b9a9f5fe370e947a259 Mon Sep 17 00:00:00 2001 From: xiaju <1784803958@qq.com> Date: Fri, 25 Apr 2025 16:18:01 +0800 Subject: [PATCH] =?UTF-8?q?1=E8=B4=A8=E9=87=8F=E5=B7=A1=E6=A3=80=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=AF=BC=E5=87=BA=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/FineUIPro.Web/CQMS/Check/CheckList.aspx.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/SGGL/FineUIPro.Web/CQMS/Check/CheckList.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Check/CheckList.aspx.cs index 8211c31b..2634937c 100644 --- a/SGGL/FineUIPro.Web/CQMS/Check/CheckList.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/Check/CheckList.aspx.cs @@ -807,6 +807,11 @@ namespace FineUIPro.Web.CQMS.Check foreach (string url in arrUrl) { var oneUrl = Server.MapPath("~/") + url; + bool exists = File.Exists(oneUrl); + if (!exists) + { + continue; + } byte[] bytes = System.IO.File.ReadAllBytes(oneUrl); int pictureIdx = workbook.AddPicture(bytes, PictureType.JPEG); @@ -837,6 +842,11 @@ namespace FineUIPro.Web.CQMS.Check foreach (string url in arrUrl) { var oneUrl = Server.MapPath("~/") + url; + bool exists = File.Exists(oneUrl); + if (!exists) + { + continue; + } byte[] bytes = System.IO.File.ReadAllBytes(oneUrl); int pictureIdx = workbook.AddPicture(bytes, PictureType.JPEG);