From ee132aa93b62b41944e691fcc3b50e42a63e81d5 Mon Sep 17 00:00:00 2001 From: chenshirui Date: Thu, 2 Jul 2026 22:09:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=83=E8=B7=B3=E6=8E=89=E7=BA=BF=E5=88=A4?= =?UTF-8?q?=E5=AE=9A=E8=B6=85=E6=97=B6=E4=BB=8E10=E5=88=86=E9=92=9F?= =?UTF-8?q?=E8=B0=83=E6=88=901=E5=B0=8F=E6=97=B6=20(#107)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --------- Co-authored-by: 陈世睿 <2839904623@qq.com> Reviewed-on: https://gitea.shaguabijia.com/WonderableAI/shaguabijia-app-server/pulls/107 Co-authored-by: chenshirui Co-committed-by: chenshirui --- .env.example | 2 +- app/core/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 845b3d9..110e939 100644 --- a/.env.example +++ b/.env.example @@ -29,7 +29,7 @@ JG_REQUEST_TIMEOUT_SEC=15 # ===== 无障碍保护存活监控(pull 后置检测;本期不接推送)===== HEARTBEAT_MONITOR_ENABLED=true -HEARTBEAT_TIMEOUT_MINUTES=10 +HEARTBEAT_TIMEOUT_MINUTES=60 HEARTBEAT_SCAN_INTERVAL_SEC=60 # ===== 短信 (mock 模式) ===== diff --git a/app/core/config.py b/app/core/config.py index 79a12e8..3e27af5 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -68,7 +68,7 @@ class Settings(BaseSettings): # 无障碍保护存活监控后台任务(pull 后置检测;本期不接推送) HEARTBEAT_MONITOR_ENABLED: bool = True # 总开关 - HEARTBEAT_TIMEOUT_MINUTES: int = 10 # 多久没心跳算掉线(≈3 个客户端心跳周期) + HEARTBEAT_TIMEOUT_MINUTES: int = 60 # 多久没心跳算掉线(1 小时,避免短暂离线误判被杀) HEARTBEAT_SCAN_INTERVAL_SEC: int = 60 # 扫描周期 # ===== 短信 =====