From 68af68bf2993e1c29b9165f549723701fe03a509 Mon Sep 17 00:00:00 2001
From: zhengyuxuan <zhengyuxuan1995>
Date: 星期三, 19 三月 2025 17:02:16 +0800
Subject: [PATCH] 合并

---
 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