From f2f3c62b57037d59cf2bd0b670bf57c61b3eea84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E7=BB=8D=E5=BA=B7?= <3052147989@qq.com> Date: Thu, 5 Mar 2026 19:05:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E5=BA=A6=E5=99=A8=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E8=BD=AE=E8=AF=A2=E9=97=B4=E9=9A=94=E4=BB=8E=20600s?= =?UTF-8?q?=20=E6=94=B9=E4=B8=BA=2060s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 默认值和注释均更新为 60 秒,与前端设置一致 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- outlook_web/services/scheduler.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/outlook_web/services/scheduler.py b/outlook_web/services/scheduler.py index 5920f64..d5d5aa3 100644 --- a/outlook_web/services/scheduler.py +++ b/outlook_web/services/scheduler.py @@ -61,13 +61,13 @@ def scheduler_heartbeat_task(): def _get_telegram_interval(app) -> int: - """读取 telegram_poll_interval 设置,默认 600 秒,最小 60 秒。""" + """读取 telegram_poll_interval 设置,默认 60 秒,最小 10 秒。""" try: with app.app_context(): - val = settings_repo.get_setting("telegram_poll_interval", "600") - return max(10, int(val or "600")) + val = settings_repo.get_setting("telegram_poll_interval", "60") + return max(10, int(val or "60")) except Exception: - return 600 + return 60 def _configure_telegram_push_job(scheduler, app) -> None: