From 5a3afb99510b82dbd7747d83351810538b3c9f34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=B7=B3?= <454313500@qq.com> Date: Thu, 21 Dec 2023 16:43:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dmysql=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E5=8D=A0=E7=94=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Yi.Framework.AspNetCore/Mvc/YiServiceConvention.cs | 3 --- .../YiFrameworkSqlSugarCoreModule.cs | 8 +------- .../Operlog/OperLogGlobalAttribute.cs | 6 ++++-- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/Yi.Abp.Net8/framework/Yi.Framework.AspNetCore/Mvc/YiServiceConvention.cs b/Yi.Abp.Net8/framework/Yi.Framework.AspNetCore/Mvc/YiServiceConvention.cs index a1932cf4..f015a6cf 100644 --- a/Yi.Abp.Net8/framework/Yi.Framework.AspNetCore/Mvc/YiServiceConvention.cs +++ b/Yi.Abp.Net8/framework/Yi.Framework.AspNetCore/Mvc/YiServiceConvention.cs @@ -44,9 +44,6 @@ namespace Yi.Framework.AspNetCore.Mvc protected override void AddAbpServiceSelector(string rootPath, string controllerName, ActionModel action, ConventionalControllerSetting? configuration) { - if (action.ActionName.ToLower().Contains("vue")) - { - } base.AddAbpServiceSelector(rootPath, controllerName, action, configuration); } diff --git a/Yi.Abp.Net8/framework/Yi.Framework.SqlSugarCore/YiFrameworkSqlSugarCoreModule.cs b/Yi.Abp.Net8/framework/Yi.Framework.SqlSugarCore/YiFrameworkSqlSugarCoreModule.cs index afe09a78..18012879 100644 --- a/Yi.Abp.Net8/framework/Yi.Framework.SqlSugarCore/YiFrameworkSqlSugarCoreModule.cs +++ b/Yi.Abp.Net8/framework/Yi.Framework.SqlSugarCore/YiFrameworkSqlSugarCoreModule.cs @@ -44,14 +44,8 @@ namespace Yi.Framework.SqlSugarCore return Task.CompletedTask; } - public override Task OnApplicationInitializationAsync(ApplicationInitializationContext context) - { - var service = context.ServiceProvider; - return base.OnApplicationInitializationAsync(context); - } - - public override async void OnPreApplicationInitialization(ApplicationInitializationContext context) + public override async Task OnPreApplicationInitializationAsync(ApplicationInitializationContext context) { //进行CodeFirst var service = context.ServiceProvider; diff --git a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain/Operlog/OperLogGlobalAttribute.cs b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain/Operlog/OperLogGlobalAttribute.cs index 921a099b..ba5bd682 100644 --- a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain/Operlog/OperLogGlobalAttribute.cs +++ b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain/Operlog/OperLogGlobalAttribute.cs @@ -26,7 +26,9 @@ namespace Yi.Framework.Rbac.Domain.Operlog _currentUser = currentUser; } - public override async void OnResultExecuted(ResultExecutedContext context) + + + public override void OnResultExecuted(ResultExecutedContext context) { //判断标签是在方法上 if (context.ActionDescriptor is not ControllerActionDescriptor controllerActionDescriptor) return; @@ -84,7 +86,7 @@ namespace Yi.Framework.Rbac.Domain.Operlog // logEntity.RequestParam = context.HttpContext.GetRequestValue(logEntity.RequestMethod); } - await _repository.InsertAsync(logEntity); + // _repository.InsertAsync(logEntity).Wait(); }