Steven 11 months ago
parent
commit
ff5939b0fd

+ 0 - 16
KulexiuForTeacher/KulexiuForTeacher/Module/TXClassRoom/Controller/TXClassroomViewController.m

@@ -305,7 +305,6 @@
     [self joinChatRoom];
     [self joinChatRoom];
     self.view.backgroundColor = [UIColor whiteColor];
     self.view.backgroundColor = [UIColor whiteColor];
     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(leaveRoomAction) name:@"classroomLogout" object:nil];
     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(leaveRoomAction) name:@"classroomLogout" object:nil];
-    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(quitRoomAction) name:@"classroomQuit" object:nil];
     
     
     [self configBeatConfig]; // 设置默认节拍器数据
     [self configBeatConfig]; // 设置默认节拍器数据
     [self configDefaultSoundVolume]; // 设置默认伴奏音量
     [self configDefaultSoundVolume]; // 设置默认伴奏音量
@@ -349,24 +348,9 @@
             
             
         }];
         }];
         [self hideAlertView];
         [self hideAlertView];
-        [[NSNotificationCenter defaultCenter] postNotificationName:@"backLoginView" object:nil];
     });
     });
 }
 }
 
 
-- (void)quitRoomAction {
-    @weakObj(self);
-    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0f * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
-        @strongObj(self);
-        self.isQuitRoom = YES;
-        [[LoginHelper sharedInstance] logout];
-        self.cancleAlert = YES;
-        [self hideAlertView];
-        [TRTC_MANAGER leaveRoom:^(NSInteger code) {
-            
-        }];
-        [[NSNotificationCenter defaultCenter] postNotificationName:@"showOtherLoginAlert" object:nil];
-    });
-}
 
 
 - (void)tapGesture: (UITapGestureRecognizer *)tapGesture {
 - (void)tapGesture: (UITapGestureRecognizer *)tapGesture {
     if (self.titleView.isDisplay) {
     if (self.titleView.isDisplay) {

+ 0 - 10
KulexiuForTeacher/KulexiuForTeacher/Module/TXLiveModule/Controller/TXLiveRoomViewController.m

@@ -202,7 +202,6 @@ typedef NS_ENUM(NSInteger, LIVEPAGE) {
 
 
 - (void)registerOtherLoginNotice {
 - (void)registerOtherLoginNotice {
     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(liveroomLogOut) name:@"liveroomLogout" object:nil];
     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(liveroomLogOut) name:@"liveroomLogout" object:nil];
-    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(liveroomQuit) name:@"liveroomQuit" object:nil];
 }
 }
 
 
 - (void)viewWillAppear:(BOOL)animated {
 - (void)viewWillAppear:(BOOL)animated {
@@ -775,15 +774,6 @@ typedef NS_ENUM(NSInteger, LIVEPAGE) {
     }
     }
 }
 }
 
 
-- (void)liveroomQuit {
-    if (self.isOtherLogin == NO) {
-        self.isOtherLogin = YES;
-        [self quitRoomBackPreView:NO];
-        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5f * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
-            [[NSNotificationCenter defaultCenter] postNotificationName:@"backLoginView" object:nil];
-        });
-    }
-}
  
  
 - (void)connectionService {
 - (void)connectionService {
     [self configLiveVideo];
     [self configLiveVideo];