From 6b24ae48c664c25676672ece72d134474c6af817 Mon Sep 17 00:00:00 2001
From: liaoxujun@qq.com <liaoxujun@qq.com>
Date: 星期二, 12 九月 2023 15:00:23 +0800
Subject: [PATCH] 消息发送

---
 DocumentServiceAPI.Web.Core/Handlers/JwtHandler.cs |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/DocumentServiceAPI.Web.Core/Handlers/JwtHandler.cs b/DocumentServiceAPI.Web.Core/Handlers/JwtHandler.cs
index 67313c5..a82f02d 100644
--- a/DocumentServiceAPI.Web.Core/Handlers/JwtHandler.cs
+++ b/DocumentServiceAPI.Web.Core/Handlers/JwtHandler.cs
@@ -1,4 +1,6 @@
-锘縰sing Furion.Authorization;
+锘縰sing DocumentServiceAPI.Application.UserAndLogin.Services;
+using Furion;
+using Furion.Authorization;
 using Microsoft.AspNetCore.Authorization;
 using Microsoft.AspNetCore.Http;
 using System.Threading.Tasks;
@@ -10,7 +12,8 @@
     public override Task<bool> PipelineAsync(AuthorizationHandlerContext context, DefaultHttpContext httpContext)
     {
         // 杩欓噷鍐欐偍鐨勬巿鏉冨垽鏂�昏緫锛屾巿鏉冮�氳繃杩斿洖 true锛屽惁鍒欒繑鍥� false
+      bool ret=    App.GetService<TokenService>().CheckToken();
 
-        return Task.FromResult(true);
+        return Task.FromResult(ret);
     }
 }

--
Gitblit v1.9.1