| | |
| | | userAccount.DeletionTime = DateTime.Now; |
| | | userAccount.IsDeleted = true; |
| | | |
| | | /// 清除户号对应的用户姓名 |
| | | if (userAccount.LifePayType == LifePayOrderTypeEnum.PhoneOrder || userAccount.LifePayType == LifePayOrderTypeEnum.ElectricOrder) |
| | | { |
| | | var user = await _lifePayUserRepository.Where(r => r.Id == userAccount.UserId && !r.IsDeleted).FirstOrDefaultAsync(); |
| | | CheckExtensions.IfTrueThrowUserFriendlyException(user == null, "用户不存在"); |
| | | var extraProperties = JsonConvert.DeserializeObject<Model_UserAccountExtraProperties>(userAccount.ExtraProperties); |
| | | if (!string.IsNullOrEmpty(extraProperties.Name) && extraProperties.Phone == user.PhoneNumber) |
| | | { |
| | | user.Name = string.Empty; |
| | | } |
| | | } |
| | | return Constant.SUCCESS; |
| | | } |
| | | |