From 7d4d113e60191fb0e9441555dbfbfde3b6f95a54 Mon Sep 17 00:00:00 2001 From: wenyongda Date: Sat, 12 Apr 2025 09:31:53 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E5=8D=87=E7=BA=A7.net=209"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit b25e6dc736fcd337d3315aed38bb0c418db5ef01. --- Infrastructure/ZR.Infrastructure.csproj | 2 +- ZR.Admin.Grpc/ZR.Admin.Grpc.csproj | 2 +- ZR.Admin.WebApi/Program.cs | 7 +------ ZR.Admin.WebApi/ZR.Admin.WebApi.csproj | 2 +- ZR.CodeGenerator/ZR.CodeGenerator.csproj | 2 +- ZR.Common/ZR.Common.csproj | 2 +- ZR.Model/ZR.Model.csproj | 2 +- ZR.Repository/ZR.Repository.csproj | 2 +- ZR.Service/ZR.Service.csproj | 2 +- ZR.ServiceCore/ZR.ServiceCore.csproj | 2 +- ZR.Tasks/ZR.Tasks.csproj | 2 +- 11 files changed, 11 insertions(+), 16 deletions(-) diff --git a/Infrastructure/ZR.Infrastructure.csproj b/Infrastructure/ZR.Infrastructure.csproj index 3c72072..d2396b3 100644 --- a/Infrastructure/ZR.Infrastructure.csproj +++ b/Infrastructure/ZR.Infrastructure.csproj @@ -1,6 +1,6 @@  - net9.0 + net7.0 8632 diff --git a/ZR.Admin.Grpc/ZR.Admin.Grpc.csproj b/ZR.Admin.Grpc/ZR.Admin.Grpc.csproj index 5d38906..5ef8f5d 100644 --- a/ZR.Admin.Grpc/ZR.Admin.Grpc.csproj +++ b/ZR.Admin.Grpc/ZR.Admin.Grpc.csproj @@ -1,7 +1,7 @@ - net9.0 + net7.0 enable enable diff --git a/ZR.Admin.WebApi/Program.cs b/ZR.Admin.WebApi/Program.cs index d6fba37..6ebaf7c 100644 --- a/ZR.Admin.WebApi/Program.cs +++ b/ZR.Admin.WebApi/Program.cs @@ -3,7 +3,6 @@ using Infrastructure.Converter; using Microsoft.AspNetCore.DataProtection; using NLog.Web; using System.Text.Json; -using Microsoft.AspNetCore.RateLimiting; using Microsoft.Extensions.Caching.Distributed; using Microsoft.Extensions.Caching.Redis; using Microsoft.Extensions.Options; @@ -71,11 +70,7 @@ if (openRedis == "1") builder.Services.AddSingleton(new CSRedisCache(RedisHelper.Instance)); } -builder.Services.AddRateLimiter(o => o - .AddFixedWindowLimiter(policyName: "fixed", options => - { - // configuration - })); + builder.Services.AddMvc(options => { diff --git a/ZR.Admin.WebApi/ZR.Admin.WebApi.csproj b/ZR.Admin.WebApi/ZR.Admin.WebApi.csproj index fb8eaec..2e10d71 100644 --- a/ZR.Admin.WebApi/ZR.Admin.WebApi.csproj +++ b/ZR.Admin.WebApi/ZR.Admin.WebApi.csproj @@ -1,6 +1,6 @@  - net9.0 + net7.0 enable enable true diff --git a/ZR.CodeGenerator/ZR.CodeGenerator.csproj b/ZR.CodeGenerator/ZR.CodeGenerator.csproj index b6a86d6..dba0753 100644 --- a/ZR.CodeGenerator/ZR.CodeGenerator.csproj +++ b/ZR.CodeGenerator/ZR.CodeGenerator.csproj @@ -1,7 +1,7 @@  - net9.0 + net7.0 diff --git a/ZR.Common/ZR.Common.csproj b/ZR.Common/ZR.Common.csproj index 29ae756..9a9f2a7 100644 --- a/ZR.Common/ZR.Common.csproj +++ b/ZR.Common/ZR.Common.csproj @@ -1,7 +1,7 @@  - net9.0 + net7.0 diff --git a/ZR.Model/ZR.Model.csproj b/ZR.Model/ZR.Model.csproj index 0955548..cc0b09d 100644 --- a/ZR.Model/ZR.Model.csproj +++ b/ZR.Model/ZR.Model.csproj @@ -1,7 +1,7 @@  - net9.0 + net7.0 true 1701;1702;1591;1570 diff --git a/ZR.Repository/ZR.Repository.csproj b/ZR.Repository/ZR.Repository.csproj index 3b2bd33..aca56ae 100644 --- a/ZR.Repository/ZR.Repository.csproj +++ b/ZR.Repository/ZR.Repository.csproj @@ -1,7 +1,7 @@  - net9.0 + net7.0 diff --git a/ZR.Service/ZR.Service.csproj b/ZR.Service/ZR.Service.csproj index 6257b6a..bbb3ce1 100644 --- a/ZR.Service/ZR.Service.csproj +++ b/ZR.Service/ZR.Service.csproj @@ -1,7 +1,7 @@  - net9.0 + net7.0 enable true diff --git a/ZR.ServiceCore/ZR.ServiceCore.csproj b/ZR.ServiceCore/ZR.ServiceCore.csproj index 14c0a3f..82db85b 100644 --- a/ZR.ServiceCore/ZR.ServiceCore.csproj +++ b/ZR.ServiceCore/ZR.ServiceCore.csproj @@ -1,7 +1,7 @@  - net9.0 + net7.0 enable true 1701;1702;1591;1570 diff --git a/ZR.Tasks/ZR.Tasks.csproj b/ZR.Tasks/ZR.Tasks.csproj index 5376ce8..221d49b 100644 --- a/ZR.Tasks/ZR.Tasks.csproj +++ b/ZR.Tasks/ZR.Tasks.csproj @@ -1,7 +1,7 @@  - net9.0 + net7.0