From dcc11e86bb7d063af1e6b7e9eccff3e292cbf6cb Mon Sep 17 00:00:00 2001
From: zhengyuxuan <zhengyuxuan1995>
Date: 星期三, 19 三月 2025 17:03:21 +0800
Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/LifePaymentApi
---
LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs b/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs
index aec1d39..b1413ec 100644
--- a/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs
+++ b/LifePayment/LifePayment.HttpApi/LifePay/UserRoleController.cs
@@ -62,12 +62,18 @@
[HttpPost]
public async Task<int> UpdateBackClientUser(UpdateBackClientUserInput input)
{
+
+ var identityUser = await _identityUserService.GetAsync(input.Id);
+
+ CheckExtensions.IfTrueThrowUserFriendlyException(identityUser == null,
+ "鐢ㄦ埛涓嶅瓨鍦�");
await _identityUserService.UpdateAsync(input.Id, new IdentityUserUpdateDto
{
Name = input.Name,
PhoneNumber = input.PhoneNumber,
UserName = input.UserName,
RoleNames = input.RoleNames,
+ Password = input.Password,
});
return await _userRoleService.UpdateBackClientUser(input);
}
--
Gitblit v1.9.1