新人专享优惠弹窗优化

This commit is contained in:
chenguilong
2022-07-29 18:56:08 +08:00
parent 3b6e16f9c9
commit 1fc8bc9534
12 changed files with 317 additions and 66 deletions

View File

@@ -1335,11 +1335,11 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
#pragma mark - 退
- (void)handleFirstOutRoom {
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
// if (![defaults boolForKey:kHadQuitOtherRoomKey] && self.userInfo.uid != self.roomInfo.uid) {
// [defaults setBool:YES forKey:kHadQuitOtherRoomKey];
// [defaults synchronize];
if (![defaults boolForKey:kHadQuitOtherRoomKey] && self.userInfo.uid != self.roomInfo.uid) {
[defaults setBool:YES forKey:kHadQuitOtherRoomKey];
[defaults synchronize];
[[NSNotificationCenter defaultCenter] postNotificationName:kNewUserRechargeKey object:nil];
// }
}
}
#pragma mark - XPRoomLittleGameContainerViewDelegate