修改导出文件名

This commit is contained in:
2022-04-12 09:35:42 +08:00
parent 1a2dbd150a
commit eefe406b99
7 changed files with 30 additions and 18 deletions
@@ -1,4 +1,5 @@
using System;
using Microsoft.AspNetCore.Mvc.ApiExplorer;
namespace IRaCIS.Core.Infra.EFCore
{
@@ -38,5 +39,7 @@ namespace IRaCIS.Core.Infra.EFCore
string PermissionStr { get; }
string IP { get; }
bool IsEn_Us { get; }
}
}
@@ -184,6 +184,20 @@ namespace IRaCIS.Core.Infra.EFCore.AuthUser
}
}
public bool IsEn_Us
{
get
{
var lan = _accessor?.HttpContext?.Request?.Headers["Accept-Language"];
if ( !string.IsNullOrEmpty(lan.Value))
{
return lan.Value == "en-US,en;q=0.5".ToString();
}
return true;
}
}
}
public static class ClaimAttributes