From 25dc8c13144cc891bbc467fefb8b2dac1d0c8dd1 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期五, 27 三月 2026 09:28:44 +0800
Subject: [PATCH] 调整 JWT 鉴权策略,使用在控制器和方法上添加标签的方式来鉴权
---
WebAPI/Global.asax.cs | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/WebAPI/Global.asax.cs b/WebAPI/Global.asax.cs
index 63026da..912ff30 100644
--- a/WebAPI/Global.asax.cs
+++ b/WebAPI/Global.asax.cs
@@ -11,15 +11,8 @@
{
protected void Application_Start()
{
- // webSocket 鏈嶅姟
- // WebSocketServer.Start();
- GlobalConfiguration.Configure(WebApiConfig.Register);
- }
- // 搴旂敤鍏抽棴鏃讹紝鍋滄鏈嶅姟锛岄槻姝㈡硠闇�
- protected void Application_End()
- {
- // WebSocketServer.Stop();
+ GlobalConfiguration.Configure(WebApiConfig.Register);
}
}
}
--
Gitblit v1.9.1