From 65134e9c9ef149d79981465d7ff42827a022cfb1 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, 23 Apr 2026 18:22:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=20=E6=97=A0=E6=95=88?= =?UTF-8?q?=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VideoAnalysis/Expand/AuthorizeExpand.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/VideoAnalysis/Expand/AuthorizeExpand.cs b/VideoAnalysis/Expand/AuthorizeExpand.cs index bd683a9..a4f2db2 100644 --- a/VideoAnalysis/Expand/AuthorizeExpand.cs +++ b/VideoAnalysis/Expand/AuthorizeExpand.cs @@ -53,15 +53,15 @@ namespace Learn.VideoAnalysis.Expand { // 可选:标记一下是否过期 if (context.Exception!=null) - context.Response.Headers["Token-Expired"] = context.Exception.Message; + context.Response.Headers["Token-Expired"] = "true"; return Task.CompletedTask; }, OnChallenge = context => { - if (context.Response.Headers.ContainsKey("Token-Expired")) - { + //if (context.Response.Headers.ContainsKey("Token-Expired")) + //{ - } + //} context.HandleResponse(); context.Response.StatusCode = 401; context.Response.ContentType = "application/json";