Skip to content

Commit f388018

Browse files
guangyaoguangyao
authored andcommitted
fix 登录失败返回的问题
1 parent 2eae659 commit f388018

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ios/RNNeteaseIm/RNNeteaseIm/NIMViewController.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#import "ContactViewController.h"
1111

1212
@interface NIMViewController ()<NIMLoginManagerDelegate,NIMConversationManagerDelegate>{
13-
BOOL isLoginFailed;
13+
// BOOL isLoginFailed;
1414
}
1515

1616
@end
@@ -51,7 +51,7 @@ - (void)onLogin:(NIMLoginStep)step{
5151
break;
5252
case NIMLoginStepLinkOK://连接服务器成功
5353
strStatus = @"5";
54-
[self backLogin];
54+
// [self backLogin];
5555
[self getResouces];
5656
break;
5757
case NIMLoginStepLinkFailed://连接服务器失败
@@ -65,7 +65,7 @@ - (void)onLogin:(NIMLoginStep)step{
6565
break;
6666
case NIMLoginStepLoginFailed://登录失败
6767
strStatus = @"10";
68-
isLoginFailed = YES;
68+
// isLoginFailed = YES;
6969
break;
7070
case NIMLoginStepSyncing://开始同步
7171
strStatus = @"13";
@@ -102,7 +102,7 @@ -(void)deleteCurrentSession:(NSString *)recentContactId andback:(ERROR)error{
102102
}
103103
}
104104
}
105-
105+
/*
106106
//登录失败后重新手动登录
107107
- (void)backLogin{
108108
if (isLoginFailed) {
@@ -112,7 +112,7 @@ - (void)backLogin{
112112
NSLog(@"error:%@",error);
113113
}];
114114
}
115-
}
115+
}*/
116116

117117
#pragma NIMLoginManagerDelegate
118118
-(void)onKick:(NIMKickReason)code clientType:(NIMLoginClientType)clientType

0 commit comments

Comments
 (0)