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; } /// /// 异常完整信息