chore(mobile-app): 缩短合同检查定时器间隔至5-20秒

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-25 21:59:30 -08:00
parent 6237a49153
commit 838fbce914
1 changed files with 3 additions and 3 deletions

View File

@ -83,12 +83,12 @@ class _HomeShellPageState extends ConsumerState<HomeShellPage>
_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 {