Commit 0bdd2b753f6bfdc2d31ba57e6a3e91c04f819308

Authored by 常守达
1 parent cba16e33

fix(account):处理退登

import 'package:doublefeel_flutter/pigeon/platform_api.g.dart';
import '../logging/app_logger.dart';
import '../network/api/user_api.dart';
import '../../data/local/user_preferences_storage.dart';
... ... @@ -46,6 +48,9 @@ class UserStateService {
await _userApi.logout();
}
await _userPrefs.clear();
try {
await PlatformHostApi().logout();
} catch (e) {}
AppLogger.i('UserStateService.onLogout completed');
}
... ...