zhengyuxuan
2025-03-19 68af68bf2993e1c29b9165f549723701fe03a509
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);
        }