fix 移除tenantId筛选
This commit is contained in:
@@ -62,6 +62,7 @@ public class GainfosController : ControllerBase
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet("current")]
|
||||
[IgnoreTenant]
|
||||
public async Task<GainfoCurrentResponse> CurrentUserInfoAsync()
|
||||
{
|
||||
return await _gainfoService.CurrentUserInfoAsync();
|
||||
|
||||
@@ -212,10 +212,16 @@ public class GainfoService : IGainfoService
|
||||
|
||||
if (info != null)
|
||||
{
|
||||
var tenantResult = await _tenantApi.GetTenantByCodeAsync(info.Factory);
|
||||
if (tenantResult != null && tenantResult.Data != null)
|
||||
try
|
||||
{
|
||||
var tenantResult = await _tenantApi.GetTenantByCodeAsync(info.Factory);
|
||||
if (tenantResult != null && tenantResult.Data != null)
|
||||
{
|
||||
info.Factory = tenantResult.Data.Name;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
info.Factory = tenantResult.Data.Name;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user