From d0f01f571918ae942349068776fa7fb70f3ab5cd Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期三, 28 八月 2024 16:20:18 +0800 Subject: [PATCH] 更新设备信息表从表导入问题 --- WIDESEAWCS_Server/WIDESEAWCS_SystemServices/Sys_RoleService.cs | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/Sys_RoleService.cs b/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/Sys_RoleService.cs index 72dd01b..c75161f 100644 --- a/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/Sys_RoleService.cs +++ b/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/Sys_RoleService.cs @@ -132,8 +132,7 @@ string message = ""; try { - UserInfo user = App.User.GetCurrentUserInfo(); - if (!GetAllChildren(user.RoleId).Exists(x => x.Id == roleId)) + if (!GetAllChildren(App.User.RoleId).Exists(x => x.Id == roleId)) return WebResponseContent.Instance.Error("娌℃湁鏉冮檺淇敼姝よ鑹茬殑鏉冮檺淇℃伅"); //褰撳墠鐢ㄦ埛鐨勬潈闄� List<Permissions> permissions = _MenuRepository.GetPermissions(App.User.RoleId); @@ -166,9 +165,9 @@ AuthValue = string.Join(",", arr), AuthId = auth == null ? 0 : auth.AuthId, ModifyDate = DateTime.Now, - Modifier = user.UserName, + Modifier = App.User.UserName, CreateDate = DateTime.Now, - Creater = user.UserName + Creater = App.User.UserName }); } else -- Gitblit v1.9.3