From ffddca8cf8692bb946bb130515160ed3877ff535 Mon Sep 17 00:00:00 2001 From: mahao Date: Mon, 6 Mar 2023 15:59:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs b/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs index 53b1103..33d6cb3 100644 --- a/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs +++ b/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs @@ -234,6 +234,12 @@ public class ZlldcjLogAppService : ApplicationService, IZlldcjLogAppService } await CurrentUnitOfWork.SaveChangesAsync(); } + catch (UserFriendlyException ex) + { + bErr = true; + result.TYPE = 'E'; + result.MESSAGE = ex.GetBaseException().Message; + } catch (Exception ex) { bErr = true;