From 69b28aa85497834feff33a625acb5011525eb281 Mon Sep 17 00:00:00 2001 From: zpc Date: Sun, 27 Jul 2025 16:22:20 +0800 Subject: [PATCH] 2131 --- src/CoreCms.Net.Web.WebApi/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CoreCms.Net.Web.WebApi/Program.cs b/src/CoreCms.Net.Web.WebApi/Program.cs index 1843642..d10ce5e 100644 --- a/src/CoreCms.Net.Web.WebApi/Program.cs +++ b/src/CoreCms.Net.Web.WebApi/Program.cs @@ -258,7 +258,7 @@ try //其他项目启动时需要做的事情 NLogUtil.WriteAll(NLog.LogLevel.Trace, LogType.ApiRequest, "接口启动", "接口启动成功"); //app.MapGet("/", () => "请求成功").WithName("默认请求"); - app.MapGet("/h", () => "请求成功").WithName("默认请求"); + app.MapGet("/h", () => new { time = DateTime.Now }).WithName("默认请求"); app.Run(); } catch (Exception ex)