From ba068d364204a38c5cc7adadad1692f2f71652dd Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 8 Jul 2026 22:25:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20H5=E9=9D=9E=E4=BC=81=E5=BE=AEUA?= =?UTF-8?q?=E6=8B=A6=E6=88=AA=E9=A1=B5=20+=20=E6=97=A7MFA=E7=AB=AF?= =?UTF-8?q?=E7=82=B9=E6=A0=87=E8=AE=B0=E5=BA=9F=E5=BC=83=20+=20=E5=93=8D?= =?UTF-8?q?=E5=BA=94=E5=A5=91=E7=BA=A6=E5=AE=A1=E8=AE=A1=E9=80=9A=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - H5 index.html 新增内联UA检测脚本,非企微环境显示拦截页 - CSP 添加 unsafe-inline 以支持拦截脚本 - service_routes.py 标记为 DEPRECATED(实际路由由 router.py 统一注册) - 响应契约审计:61个端点59个使用 success_response(),2个OAuth例外设计如此 --- backend/app/api/service_routes.py | 7 ++++--- frontend-h5/index.html | 13 ++++++++++++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/backend/app/api/service_routes.py b/backend/app/api/service_routes.py index e4d4f23..1482ecb 100644 --- a/backend/app/api/service_routes.py +++ b/backend/app/api/service_routes.py @@ -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 时加载全部路由(向后兼容) # ============================================================================= diff --git a/frontend-h5/index.html b/frontend-h5/index.html index 04295c9..574ae73 100644 --- a/frontend-h5/index.html +++ b/frontend-h5/index.html @@ -5,7 +5,7 @@ - + 智能IT支持服务台 @@ -43,6 +43,17 @@ + +