From 0f9958bb265b81f58034b7918ad388df3b770c7a Mon Sep 17 00:00:00 2001
From: tyjctl <419999127@qq.com>
Date: Tue, 24 Sep 2024 07:13:14 +0000
Subject: [PATCH] update
Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/AccountService.cs.
Signed-off-by: tyjctl <419999127@qq.com>
---
.../Services/AccountService.cs | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
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);