租户名称修改

booking_auth_dev
wet 2 years ago
parent 907abb8363
commit b094f6ce12

@ -547,7 +547,7 @@ namespace Myshipping.Application
FilePath = fileRelaPath,
TypeCode = dto.TypeCode,
TypeName = dto.TypeName,
TenantName = UserManager.TENANT_NAME,
};
await _bookingfile.InsertAsync(newFile);
using (var stream = File.Create(fileAbsPath))
@ -806,7 +806,7 @@ namespace Myshipping.Application
FilePath = fileRelaPath,
TypeCode = "ruhuotongzhi",
TypeName = ".pdf",
TenantName = UserManager.TENANT_NAME,
};
await _bookingfile.InsertAsync(newFile);
#endregion

@ -34,7 +34,7 @@ public class ClaimConst
/// <summary>
/// 租户名称
/// </summary>
public const string CLAINM_TENANT_NAME = "TenantName";
public const string TENANT_NAME = "TenantName";
/// <summary>
/// 大简云userid

@ -40,7 +40,7 @@ public static class UserManager
/// <summary>
/// 租户名称
/// </summary>
public static string TENANT_NAME => App.User.FindFirst(ClaimConst.CLAINM_TENANT_NAME)?.Value;
public static string TENANT_NAME => App.User.FindFirst(ClaimConst.TENANT_NAME)?.Value;
/// <summary>
/// 大简云userid

Loading…
Cancel
Save