From 68eb46c47d08be088a64d464a0fdf7ae35c89b1a Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Fri, 18 Sep 2026 13:37:35 +0800 Subject: [PATCH] chore: add wx-qr login config and encrypt exclude paths Co-authored-by: Cursor --- backend/app/core/config.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/backend/app/core/config.py b/backend/app/core/config.py index 2899d76d..be27f7e4 100644 --- a/backend/app/core/config.py +++ b/backend/app/core/config.py @@ -153,6 +153,9 @@ class Settings(BaseSettings): API_ENCRYPT_FIXED_SECRET: str = "" API_ENCRYPT_TS_SKEW_SEC: int = 300 API_ENCRYPT_NONCE_TTL_SEC: int = 300 + WX_QR_SESSION_TTL_SEC: int = 180 + WX_QR_ENV_VERSION: str = "release" # release | trial | develop + WX_QR_PAGE: str = "pages/login/web-qr/index" API_ENCRYPT_EXCLUDE_PATHS: str = ( "/," "/health," @@ -167,7 +170,11 @@ class Settings(BaseSettings): "/api/web/admin/categories/upload-image," "/api/web/admin/users/upload-avatar," "/api/web/auth/upload-avatar," - "/api/invoice/download" + "/api/invoice/download," + "/api/web/auth/wx-qr/create," + "/api/web/auth/wx-qr/status," + "/api/mini/auth/web-qr-scanned," + "/api/mini/auth/web-qr-confirm" ) # 中国节假日日历(ailcc)同步