From b508d9b2010916b52e2d9a040c8bae9ff5b56067 Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 10 Dec 2025 04:17:06 -0800 Subject: [PATCH] fix(mobile): change update check interval to 90-300s random MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../lib/features/home/presentation/pages/home_shell_page.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/mobile-app/lib/features/home/presentation/pages/home_shell_page.dart b/frontend/mobile-app/lib/features/home/presentation/pages/home_shell_page.dart index 31b17fbe..76239078 100644 --- a/frontend/mobile-app/lib/features/home/presentation/pages/home_shell_page.dart +++ b/frontend/mobile-app/lib/features/home/presentation/pages/home_shell_page.dart @@ -51,8 +51,8 @@ class _HomeShellPageState extends ConsumerState // 如果从未检查过,或者已过冷却时间,则检查 if (_nextCheckAllowedTime == null || now.isAfter(_nextCheckAllowedTime!)) { - // 设置下次允许检查时间(30-90秒随机间隔) - final randomSeconds = 30 + Random().nextInt(61); // 30 + 0~60 = 30~90 + // 设置下次允许检查时间(90-300秒随机间隔) + final randomSeconds = 90 + Random().nextInt(211); // 90 + 0~210 = 90~300 _nextCheckAllowedTime = now.add(Duration(seconds: randomSeconds)); await checkForAppUpdate(context); }