From 6a2e0bf4f10d7bd436edca7449db2d47c16a7a0c Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 22 Dec 2025 00:48:36 -0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E9=92=B1=E5=8C=85?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=A3=80=E6=9F=A5=E6=97=A5=E5=BF=97=E7=94=A8?= =?UTF-8?q?=E4=BA=8E=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 _checkAndStartWalletPolling() 中添加详细日志: - 打印 isWalletReady, isAccountCreated, _serialNumber 的值 - 打印条件不满足时的原因 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../features/profile/presentation/pages/profile_page.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart b/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart index 8a81021a..7cce924a 100644 --- a/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart +++ b/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart @@ -796,6 +796,11 @@ class _ProfilePageState extends ConsumerState { Future _checkAndStartWalletPolling() async { final authState = ref.read(authProvider); + debugPrint('[ProfilePage] _checkAndStartWalletPolling() called'); + debugPrint('[ProfilePage] authState.isWalletReady: ${authState.isWalletReady}'); + debugPrint('[ProfilePage] authState.isAccountCreated: ${authState.isAccountCreated}'); + debugPrint('[ProfilePage] _serialNumber: $_serialNumber'); + // 如果本地已标记钱包就绪,无需检查 if (authState.isWalletReady) { debugPrint('[ProfilePage] Wallet already ready (local), skip polling'); @@ -834,6 +839,9 @@ class _ProfilePageState extends ConsumerState { // 钱包未就绪,启动轮询 debugPrint('[ProfilePage] Wallet not ready, starting polling'); await ref.read(walletStatusProvider.notifier).startPolling(); + } else { + debugPrint('[ProfilePage] Skip wallet check - conditions not met'); + debugPrint('[ProfilePage] isAccountCreated=${authState.isAccountCreated}, serialNumber=$_serialNumber'); } }