From 0679adc793d04570cedd28e1d70752b6fe28a683 Mon Sep 17 00:00:00 2001 From: Elivo Date: Fri, 24 Oct 2025 12:57:14 +0800 Subject: [PATCH] =?UTF-8?q?ApiOptions=EF=BC=9AWithException=20=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC=E6=94=B9=E4=B8=BA=20false=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Apewer/Web/ApiOptions.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Apewer/Web/ApiOptions.cs b/Apewer/Web/ApiOptions.cs index 3e8b3ef..edcc445 100644 --- a/Apewer/Web/ApiOptions.cs +++ b/Apewer/Web/ApiOptions.cs @@ -94,8 +94,8 @@ namespace Apewer.Web public bool WithDuration { get; set; } = false; /// 允许响应中包含 Exception 对象的属性。 - /// 默认值:允许。 - public bool WithException { get; set; } = true; + /// 默认值:不允许。 + public bool WithException { get; set; } = false; /// 允许输出 Application 列表时包含模块名称。 /// 默认值:不包含。 @@ -131,7 +131,6 @@ namespace Apewer.Web /// 创建默认选项。 /// /// 在 Debug 模式中默认设置以下选项 - ///
JsonIndent = TRUE ///
WithException = TRUE ///
WithDuration = TRUE ///
WithParameters = TRUE @@ -144,7 +143,6 @@ namespace Apewer.Web [Conditional("DEBUG")] void Debug() { - JsonIndent = true; WithException = true; WithDuration = true; WithParameters = true;