| | |
| | | // 发送初始化完成 |
| | | [_dict removeAllObjects]; |
| | | [_dict setObject:[NSNumber numberWithInt:S2U_SdkInitComplete] forKey:@"code"]; |
| | | [_dict setObject:@"sp" forKey:@"channelPlatform"]; |
| | | [_dict setObject:@"mr" forKey:@"channelPlatform"]; |
| | | [self SendMessageToUnity:_dict]; |
| | | } |
| | | |
| | |
| | | } |
| | | case U2S_FreePlatformPay: |
| | | { |
| | | NSString* _roleName = [_dict objectForKey:@"roleName"]; |
| | | _roleName = [_roleName stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; |
| | | NSMutableString* _temp = [[NSMutableString alloc] initWithString:_roleName]; |
| | | _roleName = [_temp stringByReplacingOccurrencesOfString:@"\u0000" withString:@""]; |
| | | |
| | | MRRoleInformation *_model = [MRRoleInformation getInstance]; |
| | | _model.productid = [_dict objectForKey:@"identifier"]; |
| | | _model.productid = [_dict objectForKey:@"cpInfo"]; |
| | | _model.roleid = [_dict objectForKey:@"roleID"]; |
| | | _model.rolename = [_dict objectForKey:@"roleName"]; |
| | | _model.rolename = _roleName; |
| | | _model.gamecno = [_dict objectForKey:@"orderId"]; |
| | | _model.rolelevel = [_dict objectForKey:@"level"]; |
| | | _model.serverid = [_dict objectForKey:@"sid"]; |
| | |
| | | NSMutableDictionary *_dict = [NSMutableDictionary dictionaryWithObjectsAndKeys: |
| | | [NSNumber numberWithInt:S2U_FreePlatformPayFail],@"code",nil]; |
| | | [ self SendMessageToUnity:_dict]; |
| | | NSLog(@"PayFail: %@",msg); |
| | | }]; |
| | | } |
| | | break; |