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(); }