From 8d141c03fc1e9f56dc13a8ea4b46278a66bba0fb Mon Sep 17 00:00:00 2001
From: Shuxia Ning <NingShuxia0927@outlook.com>
Date: 星期一, 13 一月 2025 13:08:31 +0800
Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/HStation/XHS.V1.0

---
 WebApi/HStation.WebApi.Xhs.Core/Startup.cs |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/WebApi/HStation.WebApi.Xhs.Core/Startup.cs b/WebApi/HStation.WebApi.Xhs.Core/Startup.cs
index 3e36712..2e5da1a 100644
--- a/WebApi/HStation.WebApi.Xhs.Core/Startup.cs
+++ b/WebApi/HStation.WebApi.Xhs.Core/Startup.cs
@@ -11,6 +11,7 @@
 using Microsoft.Extensions.Hosting;
 using SqlSugar;
 using System.Text.Json.Serialization;
+using Yw;
 using Yw.Application;
 
 namespace HStation.WebApi
@@ -26,26 +27,30 @@
         /// </summary>
         public void ConfigureServices(IServiceCollection services)
         {
+            LogHelper.Debug("1");
             services.AddConfigurableOptions<Yw.JWT.JWTSettingsOptions>();
-
+            LogHelper.Debug("2");
             services.Configure<KestrelServerOptions>(options =>
             {
                 options.Limits.MaxRequestBodySize = int.MaxValue;
                 options.Limits.MaxRequestBufferSize = int.MaxValue;
                 options.Limits.MaxResponseBufferSize = int.MaxValue;
             });
+            LogHelper.Debug("3");
             services.Configure<IISServerOptions>(options =>
             {
                 options.MaxRequestBodySize = int.MaxValue;
                 options.MaxRequestBodyBufferSize = int.MaxValue;
             });
-
-            // services.AddJwt<JwtHandler>(enableGlobalAuthorize: true);
+            LogHelper.Debug("4");
+            services.AddJwt<JwtHandler>(enableGlobalAuthorize: true);
+            LogHelper.Debug("5");
 
             //// 鎷︽埅鍣�
             services.AddMvcFilter<AuthorizationFilter>();
             services.AddMvcFilter<ActionFilter>();
             services.AddMvcFilter<ResultFilter>();
+            LogHelper.Debug("6");
 
             //闇�鍦� services.AddControllers() 涔嬪墠娉ㄥ唽
             services.AddCorsAccessor();
@@ -80,7 +85,9 @@
             });
             // 娣诲姞鍗虫椂閫氳
             services.AddSignalR();
+            LogHelper.Debug("7");
             SnowFlakeSingle.WorkId = Yw.Settings.SqlSugarParasHelper.SqlSugar.SnowFlakeWorkId;
+            LogHelper.Debug("娴嬭瘯service");
         }
 
         /// <summary>
@@ -88,6 +95,7 @@
         /// </summary>
         public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
         {
+            LogHelper.Debug("0");
             if (env.IsDevelopment())
             {
                 app.UseDeveloperExceptionPage();

--
Gitblit v1.9.3