用户中心调整
This commit is contained in:
@@ -71,7 +71,7 @@ class AuthService extends GetxService {
|
||||
}
|
||||
|
||||
/// 退出登录
|
||||
void logout() async {
|
||||
Future<void> logout() async {
|
||||
await TencentImSDKPlugin.v2TIMManager.logout();
|
||||
_box.remove('userSig');
|
||||
_box.remove('userId');
|
||||
|
||||
@@ -93,6 +93,7 @@ class TimService extends GetxService {
|
||||
|
||||
if (loginResult.code != 0) {
|
||||
UiTools.toast(loginResult.desc);
|
||||
await AuthService.to.logout();
|
||||
}
|
||||
|
||||
Get.put(TimConversationService());
|
||||
|
||||
Reference in New Issue
Block a user