企业包版本修改 此commit置顶 2.0.0

This commit is contained in:
liyuhua
2023-12-28 18:51:33 +08:00
parent 14a00b6485
commit f573866463
2 changed files with 22 additions and 7 deletions

View File

@@ -214,6 +214,10 @@
[XPRoomViewController openRoom:roomUid viewController:self]; [XPRoomViewController openRoom:roomUid viewController:self];
} }
} else { } else {
if(code == 10108){
[self showRealNameAuthenticationTipsAlertView];
return;
}
[self showErrorToast:msg]; [self showErrorToast:msg];
} }
} uid:roomUid intoUid:roomUid]; } uid:roomUid intoUid:roomUid];

View File

@@ -359,6 +359,7 @@
* @param dataJson {} * @param dataJson {}
*/ */
-(void)onGetGameViewInfo:(id<ISudFSMStateHandle>)handle dataJson:(NSString*)dataJson { -(void)onGetGameViewInfo:(id<ISudFSMStateHandle>)handle dataJson:(NSString*)dataJson {
CGRect rect = [[UIScreen mainScreen] bounds]; CGRect rect = [[UIScreen mainScreen] bounds];
CGFloat scale = [[UIScreen mainScreen] nativeScale]; CGFloat scale = [[UIScreen mainScreen] nativeScale];
@@ -373,7 +374,7 @@
CGFloat height = rect.size.height * scale; CGFloat height = rect.size.height * scale;
NSDictionary *rectDict = [NSDictionary dictionaryWithObjectsAndKeys:@(top), @"top", @(0), @"left", @(bottom), @"bottom", @(0), @"right", nil]; NSDictionary *rectDict = [NSDictionary dictionaryWithObjectsAndKeys:@(top), @"top", @(0), @"left", @(bottom), @"bottom", @(0), @"right", nil];
NSDictionary *viewDict = [NSDictionary dictionaryWithObjectsAndKeys:@(width), @"width", @(height), @"height", nil]; NSDictionary *viewDict = [NSDictionary dictionaryWithObjectsAndKeys:@(width), @"width", @(height), @"height", nil];
NSDictionary *dataDict = [NSDictionary dictionaryWithObjectsAndKeys:@(0), @"ret_code", @"return form APP onGetGameViewInfo", @"ret_msg", viewDict, @"view_size", rectDict, @"view_game_rect", nil]; NSDictionary *dataDict = [NSDictionary dictionaryWithObjectsAndKeys:@(0), @"ret_code", @"return form APP onGetGameViewInfo", @"ret_msg", viewDict, @"view_size", rectDict, @"view_game_rect", nil];
/// ///
[handle success:[SudCommon dictionaryToJson:dataDict]]; [handle success:[SudCommon dictionaryToJson:dataDict]];
} }
@@ -387,13 +388,23 @@
NSMutableDictionary *dict = [[NSMutableDictionary alloc] init]; NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];
dict[@"ret_code"] = @(0); dict[@"ret_code"] = @(0);
dict[@"ret_msg"] = @"return form APP onGetGameCfg"; dict[@"ret_msg"] = @"return form APP onGetGameCfg";
if(self.currentmgId == 1704460412809043970){
dict[@"ui"] = @{
@"join_btn" : @{@"custom": @(YES), @"hide": @(NO)},//
@"start_btn" : @{@"custom": @(YES), @"hide": @(NO)},//
@"lobby_players" : @{@"custom": @(YES), @"hide": @(NO)},//
@"level" : @{@"custom": @(YES), @"hide" : @(YES),},////
@"game_bg" : @{@"hide":@(YES)}///
};
}else{
dict[@"ui"] = @{
@"join_btn" : @{@"custom": @(YES), @"hide": @(NO)},//
@"start_btn" : @{@"custom": @(YES), @"hide": @(NO)},//
@"lobby_players" : @{@"custom": @(YES), @"hide": @(NO)},//
@"level" : @{@"custom": @(YES), @"hide" : @(YES),},////
};
}
dict[@"ui"] = @{
@"join_btn" : @{@"custom": @(YES), @"hide": @(NO)},//
@"start_btn" : @{@"custom": @(YES), @"hide": @(NO)},//
@"lobby_players" : @{@"custom": @(YES), @"hide": @(NO)},//
@"level" : @{@"custom": @(YES), @"hide" : @(YES)},//
};
NSString *dataJsonRet = @""; NSString *dataJsonRet = @"";
NSData *dataJsonData = [NSJSONSerialization dataWithJSONObject:dict options:NSJSONWritingPrettyPrinted error:nil]; NSData *dataJsonData = [NSJSONSerialization dataWithJSONObject:dict options:NSJSONWritingPrettyPrinted error:nil];
if (dataJsonData != nil) { if (dataJsonData != nil) {