Browse Source

ApiOptions:WithException 默认值改为 false。

master
王厅 2 weeks ago
parent
commit
0679adc793
  1. 6
      Apewer/Web/ApiOptions.cs

6
Apewer/Web/ApiOptions.cs

@ -94,8 +94,8 @@ namespace Apewer.Web
public bool WithDuration { get; set; } = false; public bool WithDuration { get; set; } = false;
/// <summary>允许响应中包含 Exception 对象的属性。</summary> /// <summary>允许响应中包含 Exception 对象的属性。</summary>
/// <remarks>默认值:允许。</remarks> /// <remarks>默认值:允许。</remarks>
public bool WithException { get; set; } = true; public bool WithException { get; set; } = false;
/// <summary>允许输出 Application 列表时包含模块名称。</summary> /// <summary>允许输出 Application 列表时包含模块名称。</summary>
/// <remarks>默认值:不包含。</remarks> /// <remarks>默认值:不包含。</remarks>
@ -131,7 +131,6 @@ namespace Apewer.Web
/// <summary>创建默认选项。</summary> /// <summary>创建默认选项。</summary>
/// <remarks> /// <remarks>
/// 在 Debug 模式中默认设置以下选项 /// 在 Debug 模式中默认设置以下选项
/// <br />JsonIndent = TRUE
/// <br />WithException = TRUE /// <br />WithException = TRUE
/// <br />WithDuration = TRUE /// <br />WithDuration = TRUE
/// <br />WithParameters = TRUE /// <br />WithParameters = TRUE
@ -144,7 +143,6 @@ namespace Apewer.Web
[Conditional("DEBUG")] [Conditional("DEBUG")]
void Debug() void Debug()
{ {
JsonIndent = true;
WithException = true; WithException = true;
WithDuration = true; WithDuration = true;
WithParameters = true; WithParameters = true;

Loading…
Cancel
Save