From 0a2215fac7b72abba17f816cec53b94e36debdbd Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期五, 29 八月 2025 10:33:09 +0800
Subject: [PATCH] feat:开发

---
 FlexJobApi.Web.Entry/Startup.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/FlexJobApi.Web.Entry/Startup.cs b/FlexJobApi.Web.Entry/Startup.cs
index 4719b1e..99bc46f 100644
--- a/FlexJobApi.Web.Entry/Startup.cs
+++ b/FlexJobApi.Web.Entry/Startup.cs
@@ -37,7 +37,6 @@
             services.AddComponent<DistributedCacheServiceComponent>();
 
             services.AddHttpRemote();
-            services.AddSingleton<ResourceHttpUtils>();
             services.AddSingleton<AliyunSmsUtils>(); 
             services.AddSingleton<WxmpUtils>();
             services.AddScoped<SmsUtils>();
@@ -68,6 +67,8 @@
             });
             services.AddSwaggerGenNewtonsoftSupport();
 
+            services.AddMvcFilter<ResourceActionFilter>();
+
             services.AddControllers()
                     .AddNewtonsoftJson(options =>
                     {
@@ -78,7 +79,6 @@
                     .AddDataValidation()
                     .AddInjectWithUnifyResult<FriendlyResultProvider>();
 
-            services.AddMvcFilter<ResourceActionFilter>();
         }
 
         public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IHostApplicationLifetime lifetime)

--
Gitblit v1.9.1