新人专享优惠弹窗优化
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user