v1.2版本更新发布

This commit is contained in:
canglan committed 2026-04-22 00:59:29 +08:00
1 parent 194c076456
commit 4121e9624f
26 files changed
+1323 -61

No files matched your search

+2 -3
View File
@@ -36,11 +36,10 @@ def is_public_path(path: str) -> bool:
for pattern in PUBLIC_PATHS:
if re.match(pattern, path):
return True
# 动态匹配调试入口路径
if settings.DEBUG_PATH and path == settings.DEBUG_PATH:
# 动态匹配调试入口路径(需同时启用调试功能)
if settings.DEBUG_ENABLED and settings.DEBUG_PATH and path == settings.DEBUG_PATH:
return True
return False
return False
class AuthMiddleware(BaseHTTPMiddleware):