|
@@ -22,23 +22,23 @@ void __ImportPaymentWithJson(const char *cpOrderId, const char *productPrice, co
|
|
|
const char *serverName, const char *roleId, const char *roleName, const char *roleLevel, const char *roleVip, const char *partyName,
|
|
|
const char *roleBalence, const char *ext) {
|
|
|
NSDictionary *bayInfo = @{
|
|
|
- @"product_id": productId ?: @"",
|
|
|
- @"product_price" :productPrice ?: @"",
|
|
|
- @"product_name" :productName ?: @"",
|
|
|
- @"role_id" : roleId ?: @"",
|
|
|
- @"role_name" : roleName ?: @"",
|
|
|
- @"role_level" : roleLevel ?: @"",
|
|
|
- @"server_id" : serverId ?: @"",
|
|
|
- @"server_name": serverName ?: @"",
|
|
|
- @"role_vip" : roleVip ?: @"",
|
|
|
- @"party_name" : partyName ?: @"",
|
|
|
- @"role_balence" : roleBalence ?: @"",
|
|
|
- @"cp_order_id" : cpOrderId ?: @"",
|
|
|
- @"product_count" : productCount ?: @"",
|
|
|
- @"product_desc" : productDesc ?: @"",
|
|
|
- @"exchange_rate" : exchangeRate ?: @"",
|
|
|
- @"currency_name" : currencyName ?: @"",
|
|
|
- @"ext" : ext ?: @"",
|
|
|
+ @"product_id": [NSString stringWithUTF8String:productId],
|
|
|
+ @"product_price" :[NSString stringWithUTF8String:productPrice],
|
|
|
+ @"product_name" :[NSString stringWithUTF8String:productName],
|
|
|
+ @"role_id" : [NSString stringWithUTF8String:roleId],
|
|
|
+ @"role_name" : [NSString stringWithUTF8String:roleName],
|
|
|
+ @"role_level" : [NSString stringWithUTF8String:roleLevel],
|
|
|
+ @"server_id" : [NSString stringWithUTF8String:serverId],
|
|
|
+ @"server_name": [NSString stringWithUTF8String:serverName],
|
|
|
+ @"role_vip" : [NSString stringWithUTF8String:roleVip],
|
|
|
+ @"party_name" : [NSString stringWithUTF8String:partyName],
|
|
|
+ @"role_balence" : [NSString stringWithUTF8String:roleBalence],
|
|
|
+ @"cp_order_id" : [NSString stringWithUTF8String:cpOrderId],
|
|
|
+ @"product_count" : [NSString stringWithUTF8String:productCount],
|
|
|
+ @"product_desc" : [NSString stringWithUTF8String:productDesc],
|
|
|
+ @"exchange_rate" : [NSString stringWithUTF8String:exchangeRate],
|
|
|
+ @"currency_name" : [NSString stringWithUTF8String:currencyName],
|
|
|
+ @"ext" : [NSString stringWithUTF8String:ext]
|
|
|
};
|
|
|
[[SDKManager sharedInstance] PaymentWithJson:bayInfo];
|
|
|
}
|
|
@@ -46,15 +46,15 @@ void __ImportPaymentWithJson(const char *cpOrderId, const char *productPrice, co
|
|
|
void __ImportRoleInfoWithJson(const char *type, const char *serverId, const char *serverName, const char *roleId, const char *roleName,
|
|
|
const char *roleLevel, const char *roleVip, const char *partyName, const char *roleBalence) {
|
|
|
NSDictionary *roleInfo = @{
|
|
|
- @"type" : type ?: @"",
|
|
|
- @"server_id" : serverId ?: @"",
|
|
|
- @"server_name" :serverName ?: @"",
|
|
|
- @"role_id" : roleId ?: @"",
|
|
|
- @"role_name" : roleName ?: @"",
|
|
|
- @"role_level" : roleLevel ?: @"",
|
|
|
- @"role_vip" : roleVip ?: @"",
|
|
|
- @"party_name" :partyName ?: @"",
|
|
|
- @"role_balence" : roleBalence ?: @""
|
|
|
+ @"type" : [NSString stringWithUTF8String:type],
|
|
|
+ @"server_id" : [NSString stringWithUTF8String:serverId],
|
|
|
+ @"server_name" : [NSString stringWithUTF8String:serverName],
|
|
|
+ @"role_id" : [NSString stringWithUTF8String:roleId],
|
|
|
+ @"role_name" : [NSString stringWithUTF8String:roleName],
|
|
|
+ @"role_level" : [NSString stringWithUTF8String:roleLevel],
|
|
|
+ @"role_vip" : [NSString stringWithUTF8String:roleVip],
|
|
|
+ @"party_name" : [NSString stringWithUTF8String:partyName],
|
|
|
+ @"role_balence" : [NSString stringWithUTF8String:roleBalence]
|
|
|
};
|
|
|
[[SDKManager sharedInstance] RoleInfoWithJson:roleInfo];
|
|
|
}
|