Browse Source

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

Steven 1 year ago
parent
commit
e56942900e

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

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