修改网关

usertest
cjy 4 months ago
parent 5db53595af
commit a451cf5845

@ -24,9 +24,9 @@ public class JwtSafeMiddleware
var ignoreUrl = AppSetting.app(new string[] { "Cors", "IgnorePath" });
// Console.WriteLine(context.Request.Path);
var path = context.Request.Path.ToString().ToLower();
if(ignoreUrl.Split(",", StringSplitOptions.RemoveEmptyEntries).ToArray().Contains(path))
//if (path.Contains("swagger") || path.Contains("login")|| path.Contains("tenantregister") || path.Contains("linkattach") || path.Contains("printtempfile")
// || path.Contains("favicon") || path.Contains("clientuserlogin") || path.Contains("addbookingstatuslog"))
//if(ignoreUrl.Split(",", StringSplitOptions.RemoveEmptyEntries).ToArray().Contains(path))
if (path.Contains("swagger") || path.Contains("login") || path.Contains("tenantregister") || path.Contains("linkattach") || path.Contains("printtempfile")
|| path.Contains("favicon") || path.Contains("clientuserlogin") || path.Contains("addbookingstatuslog") || path.Contains("createbctaskjob"))
{
//跳过swagger及login
}

Loading…
Cancel
Save