diff --git a/Api/Ewide.Web.Core/Ewide.Web.Core.csproj b/Api/Ewide.Web.Core/Ewide.Web.Core.csproj
index 56c1ce3..0e1feae 100644
--- a/Api/Ewide.Web.Core/Ewide.Web.Core.csproj
+++ b/Api/Ewide.Web.Core/Ewide.Web.Core.csproj
@@ -12,6 +12,7 @@
+
diff --git a/Api/Ewide.Web.Core/Handlers/JwtHandler.cs b/Api/Ewide.Web.Core/Handlers/JwtHandler.cs
index 060d34e..4d3d3d2 100644
--- a/Api/Ewide.Web.Core/Handlers/JwtHandler.cs
+++ b/Api/Ewide.Web.Core/Handlers/JwtHandler.cs
@@ -7,6 +7,7 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using System.Collections.Generic;
using System.Threading.Tasks;
+using Microsoft.Extensions.Configuration;
namespace Ewide.Web.Core
{
@@ -48,7 +49,7 @@ namespace Ewide.Web.Core
{
// 管理员跳过判断
var userManager = App.GetService();
- if (userManager.SuperAdmin) return true;
+ //if (userManager.SuperAdmin) return true;
// 路由名称
var routeName = httpContext.Request.Path.Value.Substring(1).Replace("/", ":");
@@ -64,8 +65,8 @@ namespace Ewide.Web.Core
"sysUser:updateInfo"
};
- var a = App.Configuration["CoreSettings:DefalutRoute"];
-
+ var a = App.Configuration["CoreSettings:DefalutRoute:0"];
+ var b = App.Configuration.GetSection("CoreSettings:DefalutRoute").Get();
if (defalutRoute.Contains(routeName)) return true;
// 获取用户权限集合(按钮或API接口)