diff --git a/Admin.NET/Admin.NET.Core/Service/Tenant/SysTenantService.cs b/Admin.NET/Admin.NET.Core/Service/Tenant/SysTenantService.cs index aa2f11a3..eb193f98 100644 --- a/Admin.NET/Admin.NET.Core/Service/Tenant/SysTenantService.cs +++ b/Admin.NET/Admin.NET.Core/Service/Tenant/SysTenantService.cs @@ -359,7 +359,8 @@ public class SysTenantService : IDynamicApiController, ITransient await _sysOrgRep.UpdateAsync(u => new SysOrg() { Name = input.Name, Pid = input.OrgPid }, u => u.Id == input.OrgId); // 更新系统用户 - await _sysUserRep.UpdateAsync(u => new SysUser() { Account = input.AdminAccount, RealName = input.RealName, Phone = input.Phone, Email = input.Email }, u => u.Id == input.UserId); + await _sysUserRep.UpdateAsync(u => new SysUser() { Account = input.AdminAccount, RealName = input.RealName, Phone = input.Phone, Email = input.Email }, + u => u.Id == input.UserId); await CacheTenant(input.Id); @@ -627,6 +628,7 @@ public class SysTenantService : IDynamicApiController, ITransient var tenant = await _sysTenantRep.GetFirstAsync(u => u.Id == input.TenantId); _ = tenant ?? throw Oops.Oh(ErrorCodeEnum.D1002); + var originLogo = tenant.Logo; tenant = input.Adapt(); tenant.Id = input.TenantId; @@ -665,7 +667,7 @@ public class SysTenantService : IDynamicApiController, ITransient } else { - tenant.Logo = tenant.Logo; + tenant.Logo = originLogo; } await _sysTenantRep.AsUpdateable(tenant).UpdateColumns(u => new