调整权限

This commit is contained in:
18942506660
2024-11-01 13:52:37 +08:00
parent 9f62fad756
commit a5b28bbb47
3 changed files with 15 additions and 13 deletions

View File

@@ -49,7 +49,7 @@ namespace WMS.Web.Repositories.DependencyInjection
string[] pathlist = path.Split('/');
bool isLogin = pathlist.Where(x => x == "login" || x.ToLower() == "heart"
|| x.ToLower() == "test" || x.ToLower() == "serialnumber" || x.ToLower() == "barcode" ||
x.ToLower() == "swagger").Any();
x.ToLower() == "swagger" || x.ToLower() == "productinventory").Any();
if (isLogin)
{
context.Response.StatusCode = 200;