隐藏平台warn,放开自有模块warn

This commit is contained in:
2023-05-16 17:24:07 +08:00
parent 67d599dce6
commit 1cb50e15d2
42 changed files with 66 additions and 28 deletions

View File

@@ -59,6 +59,7 @@ public class JwtHandler : AppAuthorizeHandler
return true;
// 路由名称
if (httpContext.Request.Path.Value == null) return false;
var routeName = httpContext.Request.Path.Value[1..].Replace("/", ":");
if (httpContext.Request.Path.StartsWithSegments("/api"))
routeName = httpContext.Request.Path.Value[5..].Replace("/", ":");
@@ -76,6 +77,7 @@ public class JwtHandler : AppAuthorizeHandler
// 检查授权
//return permissionList.Contains(routeName);
await Task.CompletedTask;
return true;
}
}