|
@@ -17,14 +17,45 @@ void __ImportLogout() {
|
|
|
[[SDKManager sharedInstance] Logout];
|
|
|
}
|
|
|
|
|
|
-void __ImportPaymentWithJson(const char *paymentJson) {
|
|
|
-NSString *paymentJsonStr = [NSString stringWithUTF8String:paymentJson];
|
|
|
-[[SDKManager sharedInstance] PaymentWithJson:paymentJsonStr];
|
|
|
-}
|
|
|
-
|
|
|
-void __ImportRoleInfoWithJson(const char *roleJson) {
|
|
|
-NSString *roleJsonStr = [NSString stringWithUTF8String:roleJson];
|
|
|
-[[SDKManager sharedInstance] RoleInfoWithJson:roleJsonStr];
|
|
|
+void __ImportPaymentWithJson(const char *cpOrderId, const char *productPrice, const char *productId, const char *productName,
|
|
|
+ const char *productDesc, const char *productCount, const char *exchangeRate, const char *currencyName, const char *serverId,
|
|
|
+ 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 ?: @"",
|
|
|
+ };
|
|
|
+ [[SDKManager sharedInstance] PaymentWithJson:bayInfo];
|
|
|
}
|
|
|
|
|
|
+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 ?: @""
|
|
|
+ };
|
|
|
+ [[SDKManager sharedInstance] RoleInfoWithJson:roleInfo];
|
|
|
+ }
|
|
|
}
|