update Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/AccountService.cs.

Signed-off-by: tyjctl <419999127@qq.com>
This commit is contained in:
tyjctl
2024-09-24 07:13:14 +00:00
committed by Gitee
parent 8e66a9880c
commit 0f9958bb26

View File

@@ -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
/// <returns></returns>
public async Task<bool> 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);