From 73a9951bb6a5919ec481fa6fef37d5aa338b31db Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期一, 20 四月 2026 10:03:15 +0800
Subject: [PATCH] 1

---
 项目代码/WIDESEA_WCSServer/WIDESEAWCS_Server/Program.cs |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WCSServer/WIDESEAWCS_Server/Program.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WCSServer/WIDESEAWCS_Server/Program.cs"
index 6a45be3..31dbf8f 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WCSServer/WIDESEAWCS_Server/Program.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WCSServer/WIDESEAWCS_Server/Program.cs"
@@ -24,12 +24,12 @@
 
 var builder = WebApplication.CreateBuilder(args);
 
-if (!HslCommunication.Authorization.SetAuthorizationCode("95f1611d-633c-46ea-b03a-38ede1629f74"))
-{
-    ConsoleHelper.WriteErrorLine("授权失败!当前程序只能使用24小时!");
-}
-else
-    ConsoleHelper.WriteSuccessLine("授权成功!");
+//if (!HslCommunication.Authorization.SetAuthorizationCode("95f1611d-633c-46ea-b03a-38ede1629f74"))
+//{
+//    ConsoleHelper.WriteErrorLine("授权失败!当前程序只能使用24小时!");
+//}
+//else
+//    ConsoleHelper.WriteSuccessLine("授权成功!");
 
 builder.Host.UseServiceProviderFactory(new AutofacServiceProviderFactory()).ConfigureContainer<ContainerBuilder>(builder =>
 {
@@ -67,8 +67,8 @@
 
 builder.Services.AddHttpContextSetup();
 
-ConsoleHelper.WriteSuccessLine("注册SignalR插件");
-builder.Services.AddSignalR();//注册SignalR
+//ConsoleHelper.WriteSuccessLine("注册SignalR插件");
+//builder.Services.AddSignalR();//注册SignalR
 
 if (AppSettings.Get("WebSocketEnable").ObjToBool())
 {
@@ -151,7 +151,7 @@
 app.UseAuthentication();
 app.UseAuthorization();
 
-app.MapHubs();
+//app.MapHubs();
 app.MapControllers();
 
 app.Run();
\ No newline at end of file

--
Gitblit v1.9.3