temp save

This commit is contained in:
eggmanQQQ
2024-10-10 20:16:23 +08:00
parent 94c11e5148
commit 5c87f850e7
54 changed files with 2674 additions and 123 deletions

View File

@@ -91,6 +91,8 @@
#import "XPHomePagingViewController.h"
#import "IAPManager.h"
#import "RoomBoomManager.h"
#import "RoomBoomBannerAnimation.h"
NSString * const kUserFirstLoginKey = @"kUserFirstLoginKey";
NSString * const kHadLaunchApp = @"kHadLaunchApp";
@@ -157,7 +159,8 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
[[NIMSDK sharedSDK].chatManager addDelegate:self];
[[NIMSDK sharedSDK].systemNotificationManager addDelegate:self];
[[NIMSDK sharedSDK].broadcastManager addDelegate:self];
[self networkReachability];
[self.view addSubview:self.roomMineView];
@@ -177,6 +180,16 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(showNewUserRecharge) name:kNewUserRechargeKey object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(showAnchorCardKey:) name:kTabShowAnchorCardKey object:nil];
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(switchLanguage:) name:@"kSwitchLanguage" object:nil];
[[RoomBoomManager sharedManager] registerBoomBanner:^(id _Nonnull sth) {
// @kStrongify(self);
dispatch_async(dispatch_get_main_queue(), ^{
[RoomBoomBannerAnimation display:[UIApplication sharedApplication].keyWindow with:sth tapToRoom:YES complete:^{
}];
});
} target:self];
}
-(void)switchLanguage:(NSNotification *)not{
@@ -621,7 +634,9 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
if(![partitionId isEqualToString:self.userInfo.partitionId]){
return;
}
NSLog(@" --- Broadcast Message Raw Attach Content: %@", msgDictionary);
// MARK: if else
if (attachment.first == CustomMessageType_RedPacket) {
[self receiveRedPacketDealWithData:attachment];