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 108e489c..0eefda0b 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 @@ -83,12 +83,12 @@ class _HomeShellPageState extends ConsumerState _scheduleNextContractCheck(); } - /// 安排下一次合同检查(随机 60-180 秒) + /// 安排下一次合同检查(随机 5-20 秒) void _scheduleNextContractCheck() { _contractCheckTimer?.cancel(); - // 随机 60-180 秒(1-3分钟) - final randomSeconds = 60 + Random().nextInt(121); // 60 + 0~120 = 60~180 + // 随机 5-20 秒 + final randomSeconds = 5 + Random().nextInt(16); // 5 + 0~15 = 5~20 debugPrint('[HomeShellPage] 下次合同检查将在 $randomSeconds 秒后执行'); _contractCheckTimer = Timer(Duration(seconds: randomSeconds), () async {