From a53cb0e5e7fe4bd9d0c593fa1ccad11941734b53 Mon Sep 17 00:00:00 2001 From: 111 Date: Tue, 3 Feb 2026 17:09:52 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"test:=20=E5=8D=87=E7=BA=A7=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=E5=88=B0=200.1.1=20=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 4911ea8a2c3302e24ada4c2442991cad769d29b1. --- backend/main.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/backend/main.py b/backend/main.py index 9cb28a7..ca260b4 100644 --- a/backend/main.py +++ b/backend/main.py @@ -13,17 +13,15 @@ from app.routers import candidate, room, chat, init, files, admin app = FastAPI( title="AI Interview API", description="AI 语音面试系统后端 API", - version="0.1.1", # 测试自动更新 + version="0.1.0", docs_url="/docs" if settings.DEBUG else None, redoc_url="/redoc" if settings.DEBUG else None, ) -# 配置 CORS - 支持多租户通配符域名 -# *.interview.ai.ireborn.com.cn +# 配置 CORS app.add_middleware( CORSMiddleware, - allow_origins=["*"] if settings.CORS_ALLOW_ALL else settings.CORS_ORIGINS, - allow_origin_regex=r"https?://[a-zA-Z0-9_-]+\.interview\.ai\.ireborn\.com\.cn", + allow_origins=settings.CORS_ORIGINS, allow_credentials=True, allow_methods=["*"], allow_headers=["*"], @@ -43,7 +41,7 @@ app.include_router(admin.router, tags=["管理后台"]) @app.get("/health") async def health_check(): """健康检查""" - return {"status": "ok", "version": "0.1.1"} + return {"status": "ok", "version": "0.1.0"} @app.on_event("startup")