Steven 11 月之前
父节点
当前提交
6219c88512

+ 2 - 2
KulexiuForTeacher/KulexiuForTeacher/Common/Base/LoginManger/KSLoginManager.m

@@ -86,12 +86,12 @@
             UIViewController *presentCtrl = ctrl.presentedViewController;
             [presentCtrl dismissViewControllerAnimated:YES completion:^{
                 [ctrl popToRootViewControllerAnimated:YES];
-                [self performSelector:@selector(resetToLoginViewController:) withObject:tab afterDelay:0.1];
+                [self resetToLoginViewController:tab];
             }];
         }
         else {
             [ctrl popToRootViewControllerAnimated:YES];
-            [self performSelector:@selector(resetToLoginViewController:) withObject:tab afterDelay:0.1];
+            [self resetToLoginViewController:tab];
         }
     }
     else if ([vc isKindOfClass:NSClassFromString(@"CustomNavViewController")]) {

+ 4 - 4
KulexiuForTeacher/KulexiuForTeacher/Common/Base/LoginManger/TXIMLinsenter.m

@@ -121,11 +121,11 @@
 - (void)onKickedOffline {
     // 被踢下线
     NSLog(@"----- 被踢下线");
-//#ifdef DEBUG
-//
-//#else
+#ifdef DEBUG
+
+#else
     [[NSNotificationCenter defaultCenter] postNotificationName:@"otherLogin" object:nil];
-//#endif
+#endif
 }
 
 - (void)onUserSigExpired {