diff --git a/EntrustSettle.Api/Controllers/OpenController.cs b/EntrustSettle.Api/Controllers/OpenController.cs index 56276ff..f106eed 100644 --- a/EntrustSettle.Api/Controllers/OpenController.cs +++ b/EntrustSettle.Api/Controllers/OpenController.cs @@ -265,5 +265,16 @@ namespace EntrustSettle.Api.Controllers return SuccessMsg(msg); } } + + [HttpGet] + public string TestTime() + { + return DateTime.Now.ToString(); + } + [HttpGet] + public void TestError() + { + throw new Exception("测试异常"); + } } } diff --git a/EntrustSettle.Api/NLog.config b/EntrustSettle.Api/NLog.config index b83ad1e..ab2aaaa 100644 --- a/EntrustSettle.Api/NLog.config +++ b/EntrustSettle.Api/NLog.config @@ -4,10 +4,10 @@ autoReload="true" throwExceptions="false" internalLogLevel="off" internalLogFile="${basedir}/Logs/nlog-internal.log"> - + - + @@ -21,21 +21,21 @@ - +