hch
2023-07-31 e3daf9d665166882754ce25825a3e87ac4ea3194
0312 骨折2 SDK 当没有仙盟时,仙盟名传default
1个文件已修改
28 ■■■■ 已修改文件
Channel/IOS/hygame2/Plugins/The2thWorldSDK/UniversalSDK.mm 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Channel/IOS/hygame2/Plugins/The2thWorldSDK/UniversalSDK.mm
@@ -413,7 +413,12 @@
            gameRoleInfo.gameUserBalance = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"money"]];
            gameRoleInfo.vipLevel = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"vipLevel"]];
            gameRoleInfo.gameUserLevel = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"level"]];
            gameRoleInfo.partyName = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"familyName"]];
            NSString* familyName = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"familyName"]];
            if(familyName == NULL || [familyName length] <= 0)
            {
                familyName = @"default";
            }
            gameRoleInfo.partyName = familyName;
            gameRoleInfo.creatTime = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"createTime"]];
            
            [[SMPCQuickSDK defaultInstance] updateRoleInfoWith:gameRoleInfo isCreate:YES];//如果这个角色是刚刚创建的,这里isCreate可以传YES
@@ -430,7 +435,12 @@
            gameRoleInfo.gameUserBalance = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"money"]];
            gameRoleInfo.vipLevel = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"vipLevel"]];
            gameRoleInfo.gameUserLevel = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"level"]];
            gameRoleInfo.partyName = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"familyName"]];
            NSString* familyName = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"familyName"]];
            if(familyName == NULL || [familyName length] <= 0)
            {
                familyName = @"default";
            }
            gameRoleInfo.partyName = familyName;
            gameRoleInfo.creatTime = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"createTime"]];
            [[SMPCQuickSDK defaultInstance] updateRoleInfoWith:gameRoleInfo isCreate:NO];//如果这个角色是刚刚创建的,这里isCreate可以传YES
@@ -448,7 +458,12 @@
            gameRoleInfo.gameUserBalance = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"money"]];
            gameRoleInfo.vipLevel = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"vipLevel"]];
            gameRoleInfo.gameUserLevel = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"level"]];
            gameRoleInfo.partyName = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"familyName"]];
            NSString* familyName = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"familyName"]];
            if(familyName == NULL || [familyName length] <= 0)
            {
                familyName = @"default";
            }
            gameRoleInfo.partyName = familyName;
            gameRoleInfo.creatTime = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"createTime"]];
            
            [[SMPCQuickSDK defaultInstance] updateRoleInfoWith:gameRoleInfo isCreate:NO];//如果这个角色是刚刚创建的,这里isCreate可以传YES
@@ -466,7 +481,12 @@
            role.gameUserBalance = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"money"]];
            role.vipLevel = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"vipLevel"]];
            role.gameUserLevel = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"level"]];
            role.partyName = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"familyName"]];
            NSString* familyName = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"familyName"]];
            if(familyName == NULL || [familyName length] <= 0)
            {
                familyName = @"default";
            }
            role.partyName = familyName;
            role.creatTime = [NSString stringWithFormat:@"%@",[_dict objectForKey:@"createTime"]];
            
            order.goodsID = [NSString stringWithFormat:@"%@", [_dict objectForKey:@"cpInfo"]]; //必填 iap时注意和苹果开发者后台一致,或者渠道映射的