hutongqing
2024-10-10 03ae5d9a6570586f2f30362d7fa3da3bbf25c3b3
WIDESEAWCS_Server/WIDESEAWCS_Core/Middlewares/ApiLogMiddleware.cs
@@ -34,7 +34,7 @@
            //if (AppSettings.app("Middleware", "RequestResponseLog", "Enabled").ObjToBool())
            {
                // 过滤,只有接口
                if (context.Request.Path.Value.Contains("api"))
                if (context.Request.Path.Value?.Contains("api") ?? false)
                {
                    context.Request.EnableBuffering();
                    //Stream originalBody = context.Response.Body;