修复bug

This commit is contained in:
18942506660
2023-12-09 10:36:56 +08:00
parent 1708b1ff81
commit d72c90f1ef

View File

@@ -47,7 +47,7 @@ namespace WMS.Web.Repositories.DependencyInjection
string authorization = context.Request.Headers["Authorization"];
string path = context.Request.Path.Value.ToLower();
string[] pathlist = path.Split('/');
bool isLogin = pathlist.Where(x => x == "login" || x.ToLower() == "heart" || x.ToLower() == "test" || x.ToLower() == "serialnumber/get").Any();
bool isLogin = pathlist.Where(x => x == "login" || x.ToLower() == "heart" || x.ToLower() == "test" || x.ToLower() == "serialnumber").Any();
if (isLogin)
{
context.Response.StatusCode = 200;