上传图片,去掉认证

This commit is contained in:
yanghongwei 2025-04-04 19:21:28 +08:00
parent d5ae5bbe34
commit b76fc95c7e
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ namespace LY.App.MiddleWare
private bool IsExcludedPath(PathString path) private bool IsExcludedPath(PathString path)
{ {
// 根据实际情况定义不需要Token验证的API路径 // 根据实际情况定义不需要Token验证的API路径
string[] arry = { "login", "websocket" }; string[] arry = { "login", "websocket", "uploadImg" };
return arry.Any(s => path.Value.Contains(s)); return arry.Any(s => path.Value.Contains(s));
// return path.StartsWithSegments("/api/public"); // return path.StartsWithSegments("/api/public");
} }