增加防抓包hook,登录mqtt,退出登录时不传token

This commit is contained in:
启星
2025-08-12 13:56:09 +08:00
parent cdbbbd59fc
commit 8065693d4c
18 changed files with 294 additions and 78 deletions

View File

@@ -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];