修改导出文件名
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user