增加防抓包hook,登录mqtt,退出登录时不传token
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#import "QXRoomMessageManager.h"
|
||||
#import "QXTimer.h"
|
||||
#import <TIMPush/TIMPushManager.h>
|
||||
#import "QXManagerMqtt.h"
|
||||
|
||||
@interface QXGlobal()
|
||||
@property (nonatomic,assign)BOOL isLogin;
|
||||
@@ -52,7 +53,9 @@
|
||||
[self removeLocalData];
|
||||
[self removeMemory];
|
||||
AppDelegate *appdelegate = (AppDelegate*)[UIApplication sharedApplication].delegate;
|
||||
/// 移除推送监听
|
||||
[TIMPushManager removePushListener:appdelegate];
|
||||
/// 移除会话监听
|
||||
[[V2TIMManager sharedInstance] removeConversationListener:appdelegate];
|
||||
[TIMPushManager unRegisterPush:^{
|
||||
//success
|
||||
@@ -68,6 +71,8 @@
|
||||
na.modalPresentationStyle = UIModalPresentationFullScreen;
|
||||
[self.getKeyWindow.rootViewController presentViewController:na animated:YES completion:nil];
|
||||
self.isShowLoginVC = YES;
|
||||
/// 断开mqtt连接
|
||||
[[QXManagerMqtt sharedInstance] disconnect];
|
||||
|
||||
}
|
||||
-(void)saveLoginData:(NSString *)userInfoJson{
|
||||
@@ -114,7 +119,7 @@
|
||||
[[NSUserDefaults standardUserDefaults] synchronize];
|
||||
}
|
||||
-(void)removeMemory{
|
||||
self.loginModel = nil;
|
||||
QXGlobal.shareGlobal.loginModel = nil;
|
||||
}
|
||||
-(void)showView:(UIView *)view popType:(PopViewType)popType tapDismiss:(BOOL)tapDismiss finishBlock:(showFinishBlock)finishBlock{
|
||||
self.alertViewController = [[QXAlertViewController alloc] init];
|
||||
|
||||
Reference in New Issue
Block a user