From e14e307ceaa0b1b8a67fad890cd512dcd061ff96 Mon Sep 17 00:00:00 2001 From: hwh <332078369@qq.com> Date: 星期四, 15 八月 2024 16:15:26 +0800 Subject: [PATCH] 异常提示信息 --- Wms/Utility/Filter/CustomerExceptionFilter.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Wms/Utility/Filter/CustomerExceptionFilter.cs b/Wms/Utility/Filter/CustomerExceptionFilter.cs index 2c2c54d..da7df27 100644 --- a/Wms/Utility/Filter/CustomerExceptionFilter.cs +++ b/Wms/Utility/Filter/CustomerExceptionFilter.cs @@ -28,9 +28,9 @@ // 濡傛灉寮傚父娌℃湁琚鐞嗗垯杩涜澶勭悊 if (context.ExceptionHandled == false) { - var result = "绯荤粺寮傚父锛岃鑱旂郴绠$悊鍛�"; - if (context.Exception is AppFriendlyException) - result = context.Exception.Message; + //var result = "绯荤粺寮傚父锛岃鑱旂郴绠$悊鍛�"; + //if (context.Exception is AppFriendlyException) + var result = context.Exception.Message; var apiResponse = new ApiResponse<object>( code: (int)ResponseEnum.Error, message: result, -- Gitblit v1.8.0