From d157e00049a5ed0d39f79fadc52b44487c41d00e Mon Sep 17 00:00:00 2001
From: zhangxiaofeng <1939543722@qq.com>
Date: Tue, 14 May 2024 14:18:21 +0800
Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Controllers/OpenController.cs | 11 +
EntrustSettle.Api/NLog.config | 14 +-
EntrustSettle.Api/appsettings.Production.json | 256 ++++++++++++++++++
3 files changed, 274 insertions(+), 7 deletions(-)
create mode 100644 EntrustSettle.Api/appsettings.Production.json
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 @@
-
+