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:
@@ -1,4 +1,4 @@
|
|||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using Lazy.Captcha.Core;
|
using Lazy.Captcha.Core;
|
||||||
using Mapster;
|
using Mapster;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
@@ -379,16 +379,7 @@ namespace Yi.Framework.Rbac.Application.Services
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public async Task<bool> UpdateIconAsync(UpdateIconDto input)
|
public async Task<bool> UpdateIconAsync(UpdateIconDto input)
|
||||||
{
|
{
|
||||||
Guid userId;
|
Guid userId=input.UserId == null?_currentUser.GetId():input.UserId.Value;
|
||||||
|
|
||||||
if (input.UserId == null)
|
|
||||||
{
|
|
||||||
userId = _currentUser.GetId();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
userId = input.UserId.Value;
|
|
||||||
}
|
|
||||||
|
|
||||||
var entity = await _userRepository.GetByIdAsync(userId);
|
var entity = await _userRepository.GetByIdAsync(userId);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user