Commit 0bdd2b753f6bfdc2d31ba57e6a3e91c04f819308

Authored by 常守达
1 parent cba16e33

fix(account):处理退登

  1 +import 'package:doublefeel_flutter/pigeon/platform_api.g.dart';
  2 +
1 import '../logging/app_logger.dart'; 3 import '../logging/app_logger.dart';
2 import '../network/api/user_api.dart'; 4 import '../network/api/user_api.dart';
3 import '../../data/local/user_preferences_storage.dart'; 5 import '../../data/local/user_preferences_storage.dart';
@@ -46,6 +48,9 @@ class UserStateService { @@ -46,6 +48,9 @@ class UserStateService {
46 await _userApi.logout(); 48 await _userApi.logout();
47 } 49 }
48 await _userPrefs.clear(); 50 await _userPrefs.clear();
  51 + try {
  52 + await PlatformHostApi().logout();
  53 + } catch (e) {}
49 AppLogger.i('UserStateService.onLogout completed'); 54 AppLogger.i('UserStateService.onLogout completed');
50 } 55 }
51 56