feat: H5非企微UA拦截页 + 旧MFA端点标记废弃 + 响应契约审计通过

- H5 index.html 新增内联UA检测脚本,非企微环境显示拦截页
- CSP 添加 unsafe-inline 以支持拦截脚本
- service_routes.py 标记为 DEPRECATED(实际路由由 router.py 统一注册)
- 响应契约审计:61个端点59个使用 success_response(),2个OAuth例外设计如此
This commit is contained in:
Simon
2026-07-08 22:25:35 +08:00
parent 9bb080d5f2
commit ba068d3642
2 changed files with 16 additions and 4 deletions
+4 -3
View File
@@ -1,8 +1,9 @@
# =============================================================================
# 企微IT智能服务台 — 服务路由定义
# DEPRECATED · 企微IT智能服务台 — 服务路由定义
# =============================================================================
# 说明:根据 SERVICE_NAME 环境变量定义各服务需要加载的路由
# 支持 5 种服务:core, conversation, agent, ai, admin
# ⚠️ 此文件已废弃(2026-07-08),实际路由由 router.py 统一注册。
# 旧 MFA 路由已被 /auth/otp-* 替代。
# 仅保留用于 test_service_routes.py 测试参考,生产环境不使用。
# 不设置 SERVICE_NAME 时加载全部路由(向后兼容)
# =============================================================================