| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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时注意和苹果开发者后台一致,或者渠道映射的 |