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'); } }