|
|
@ -22,7 +22,7 @@ public class JwtSafeMiddleware
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Console.WriteLine(context.Request.Path);
|
|
|
|
// Console.WriteLine(context.Request.Path);
|
|
|
|
var path = context.Request.Path.ToString().ToLower();
|
|
|
|
var path = context.Request.Path.ToString().ToLower();
|
|
|
|
if (path.Contains("swagger") || path.Contains("login")|| path.Contains("tenantregister") || path.Contains("linkattach") || path.Contains("PrintTempFile") || path.Contains("favicon") || path.Contains("clientuserlogin") )
|
|
|
|
if (path.Contains("swagger") || path.Contains("login")|| path.Contains("tenantregister") || path.Contains("linkattach") || path.Contains("printtempfile") || path.Contains("favicon") || path.Contains("clientuserlogin") )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//跳过swagger及login
|
|
|
|
//跳过swagger及login
|
|
|
|
}
|
|
|
|
}
|
|
|
|