diff --git a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/AccountService.cs b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/AccountService.cs index 1cd3182e..d7dc679e 100644 --- a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/AccountService.cs +++ b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/AccountService.cs @@ -1,4 +1,4 @@ -using System.Text.RegularExpressions; +using System.Text.RegularExpressions; using Lazy.Captcha.Core; using Mapster; using Microsoft.AspNetCore.Authorization; @@ -379,16 +379,7 @@ namespace Yi.Framework.Rbac.Application.Services /// public async Task UpdateIconAsync(UpdateIconDto input) { - Guid userId; - - if (input.UserId == null) - { - userId = _currentUser.GetId(); - } - else - { - userId = input.UserId.Value; - } + Guid userId=input.UserId == null?_currentUser.GetId():input.UserId.Value; var entity = await _userRepository.GetByIdAsync(userId);