From 18e60d4a9bc1e2f7a153d0292cb84d9f37c2693b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=82=A5=E7=BE=8A?= <1048382248@qq.com> Date: Thu, 12 Feb 2026 10:57:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20API=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=9C=AA=E8=83=BD=E8=AF=BB=E5=8F=96=20httpRequest=E7=9A=84?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Learn.VideoAnalysis.API/Expand/HttpFilter.cs | 1 + Learn.VideoAnalysis.API/Program.cs | 1 - VideoAnalysisCore/Model/HttpLog.cs | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Learn.VideoAnalysis.API/Expand/HttpFilter.cs b/Learn.VideoAnalysis.API/Expand/HttpFilter.cs index ade2cd9..692d637 100644 --- a/Learn.VideoAnalysis.API/Expand/HttpFilter.cs +++ b/Learn.VideoAnalysis.API/Expand/HttpFilter.cs @@ -158,6 +158,7 @@ namespace Learn.VideoAnalysis.API.Expand var logId = Yitter.IdGenerator.YitIdHelper.NextId(); if (!context.Request.Method.Equals("GET", StringComparison.InvariantCultureIgnoreCase)) { + context.Request.EnableBuffering(); //记录请求参数 if (context.Request.Body.CanSeek) { diff --git a/Learn.VideoAnalysis.API/Program.cs b/Learn.VideoAnalysis.API/Program.cs index 9218e7e..f421d75 100644 --- a/Learn.VideoAnalysis.API/Program.cs +++ b/Learn.VideoAnalysis.API/Program.cs @@ -27,7 +27,6 @@ namespace Learn.VideoAnalysis.API options.Filters.Add(); }).AddJsonOptions(options => { - options.JsonSerializerOptions.Encoder = JavaScriptEncoder.Create(UnicodeRanges.All);//תʱʹUnicode //options.JsonSerializerOptions.PropertyNamingPolicy = JsonNamingPolicy.CamelCase;// ĬСշ null շ }); diff --git a/VideoAnalysisCore/Model/HttpLog.cs b/VideoAnalysisCore/Model/HttpLog.cs index 97a5b04..fff6c9b 100644 --- a/VideoAnalysisCore/Model/HttpLog.cs +++ b/VideoAnalysisCore/Model/HttpLog.cs @@ -55,7 +55,7 @@ namespace VideoAnalysisCore.Model /// /// 授权信息 /// - [SugarColumn(IsNullable = true, Length = 500)] + [SugarColumn(IsNullable = true, Length = 1000)] public string? Authorization { get; set; } /// /// 异常完整信息