退出登录的时候报服务器错误的toast
This commit is contained in:
@@ -73,6 +73,9 @@
|
||||
/// 获取用户信息
|
||||
- (void)getUserInfo {
|
||||
NSString * uid = [[AccountInfoStorage instance] getUid];
|
||||
if (uid == nil) {
|
||||
return;
|
||||
}
|
||||
[Api getUserInfo:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
||||
UserInfoModel * infoModel = [UserInfoModel modelWithDictionary:data.data];
|
||||
[[self getView] onGetUserInfoSuccess:infoModel];
|
||||
|
@@ -99,9 +99,9 @@
|
||||
- (void)logoutCurrentAccount {
|
||||
AccountModel * account = [[AccountInfoStorage instance] accountModel];
|
||||
[Api logoutCurrentAccount:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
||||
[self logout];
|
||||
[[self getView] logoutCurrentAccountSuccess];
|
||||
}] access_token:account.access_token];
|
||||
[self logout];
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user