瀏覽代碼

只有在release 时才处理IM挤掉的回调

Steven 1 年之前
父節點
當前提交
95fc500556

+ 4 - 1
KulexiuForStudent/KulexiuForStudent/Common/Base/LoginManger/KSLoginManager.m

@@ -87,7 +87,10 @@
             [UIDevice switchNewOrientation:UIInterfaceOrientationPortrait inController:logonVC];
             [UIDevice switchNewOrientation:UIInterfaceOrientationPortrait inController:logonVC];
         }
         }
     }
     }
-    
+    else if ([vc isKindOfClass:NSClassFromString(@"CustomNavViewController")]) {
+        CustomNavViewController *ctrl = (CustomNavViewController *)vc;
+        [ctrl popToRootViewControllerAnimated:YES];
+    }
 }
 }
 
 
 - (NSString *)getVisableControllerName {
 - (NSString *)getVisableControllerName {

+ 8 - 0
KulexiuForStudent/KulexiuForStudent/Common/Base/LoginManger/TXIMLinsenter.m

@@ -103,13 +103,21 @@
 - (void)onKickedOffline {
 - (void)onKickedOffline {
     // 被踢下线
     // 被踢下线
     NSLog(@"----- 被踢下线");
     NSLog(@"----- 被踢下线");
+#ifdef DEBUG
+
+#else
     [[NSNotificationCenter defaultCenter] postNotificationName:@"otherLogin" object:nil];
     [[NSNotificationCenter defaultCenter] postNotificationName:@"otherLogin" object:nil];
+#endif
 }
 }
 
 
 - (void)onUserSigExpired {
 - (void)onUserSigExpired {
     // 在线时票据过期
     // 在线时票据过期
     NSLog(@"----- 票据过期");
     NSLog(@"----- 票据过期");
+#ifdef DEBUG
+
+#else
     [[NSNotificationCenter defaultCenter] postNotificationName:@"otherLogin" object:nil];
     [[NSNotificationCenter defaultCenter] postNotificationName:@"otherLogin" object:nil];
+#endif
 }
 }
 
 
 #pragma mark ----
 #pragma mark ----