UserNotificationCount 报错处理
This commit is contained in:
parent
621a2584eb
commit
956503400c
@ -159,7 +159,20 @@ namespace APT.FM.WebApi.Controllers.Api
|
||||
appFilter.Order = DbOrder.DESC;
|
||||
appFilter.Sort = "CREATE_TIME";
|
||||
//查询指定租户
|
||||
appFilter.SpecifyTenant = "0001";
|
||||
string Tenant = "00001";
|
||||
// wyw 改为动态获取
|
||||
if (HttpContext.Request.Headers.ContainsKey("Tenant") || HttpContext.Request.Headers.ContainsKey("tenant"))
|
||||
{
|
||||
try
|
||||
{
|
||||
Tenant = HttpContext.Request.Headers["Tenant"];
|
||||
}
|
||||
catch
|
||||
{
|
||||
Tenant = HttpContext.Request.Headers["tenant"];
|
||||
}
|
||||
}
|
||||
appFilter.SpecifyTenant = Tenant;
|
||||
appFilter.IsSpecifyDb = true;
|
||||
var appVersion = this.GetEntity<T_PF_APP_VERSION>(null, appFilter, "Nav_Files.Nav_ImgFile.Nav_File");
|
||||
if (appVersion != null)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user