From 2a8d436267261828ac601585ee9901213a737906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=B7=B3?= Date: Sat, 17 Sep 2022 18:09:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=AA=8C=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Program.cs | 5 ++++- .../Yi.Framework.Common/Yi.Framework.Common.csproj | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Program.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Program.cs index 78745b74..54d8caca 100644 --- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Program.cs +++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Program.cs @@ -10,7 +10,7 @@ using Yi.Framework.Language; using Microsoft.Extensions.Localization; using Yi.Framework.WebCore.AttributeExtend; using Yi.Framework.WebCore.SignalRHub; - +using Hei.Captcha; var builder = WebApplication.CreateBuilder(args); builder.Configuration.AddCommandLine(args); @@ -117,6 +117,8 @@ builder.Services.AddLocalizerService(); //添加signalR #endregion builder.Services.AddSignalR(); + +builder.Services.AddHeiCaptcha(); //----------------------------------------------------------------------------------------------------------- var app = builder.Build(); #region @@ -138,6 +140,7 @@ ServiceLocator.Instance = app.Services; //错误抓取反馈注入 #endregion //app.UseErrorHandlingService(); + #region //静态文件注入 #endregion diff --git a/Yi.Framework.Net6/Yi.Framework.Common/Yi.Framework.Common.csproj b/Yi.Framework.Net6/Yi.Framework.Common/Yi.Framework.Common.csproj index bcfa819d..02122188 100644 --- a/Yi.Framework.Net6/Yi.Framework.Common/Yi.Framework.Common.csproj +++ b/Yi.Framework.Net6/Yi.Framework.Common/Yi.Framework.Common.csproj @@ -6,6 +6,7 @@ +