zhengyuxuan
2025-04-02 b6ee499548febb01989eafca1eb5ad25988d6bca
LifePayment/LifePayment.Application/LifePay/LifePayService.cs
@@ -1674,17 +1674,6 @@
        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;
    }
@@ -1718,8 +1707,7 @@
            await _lifePayOrderRepository.UpdateAsync(order);
            #region 记录日志
            await LifePayOrderHistory("退款驳回", "退款", order.Id, (int)OperateHistoryTypeEnum.LifePayRefund);
            await LifePayOrderHistory("退款驳回", "退款驳回", order.Id, (int)OperateHistoryTypeEnum.LifePayRefund);
            #endregion
        }
        else