From 1fcc1dad2249da550711a2bd107a0a8c49b05ba9 Mon Sep 17 00:00:00 2001
From: MacBuilder <MacBuilder@secondworld.com>
Date: 星期五, 28 九月 2018 15:35:31 +0800
Subject: [PATCH] Fixed 思镤sdk逻辑修改

---
 ChannelDiff/iOS/spyxxjios/The2thWorldSDK/UniversalSDK.mm |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ChannelDiff/iOS/spyxxjios/The2thWorldSDK/UniversalSDK.mm b/ChannelDiff/iOS/spyxxjios/The2thWorldSDK/UniversalSDK.mm
index 80b47b4..aa64738 100644
--- a/ChannelDiff/iOS/spyxxjios/The2thWorldSDK/UniversalSDK.mm
+++ b/ChannelDiff/iOS/spyxxjios/The2thWorldSDK/UniversalSDK.mm
@@ -29,6 +29,7 @@
 static int sBatteryLevel = -1;
 static int sBatteryState = -1;
 static NSThread * _thread;
+static NSString* APP_ID;
 
 -(void) Init
 {
@@ -310,6 +311,7 @@
     switch([[_dict objectForKey:@"code"] intValue]){
         case U2S_Init:
             [self Init];
+            APP_ID = [_dict objectForKey:@"appID"];
             break;
         case U2S_CopyContent:
             [UIPasteboard generalPasteboard].string = _dict[@"content"];
@@ -358,10 +360,10 @@
         }
         case U2S_FreePlatformPay:
         {
-            [SPYOUCommonAPi IAPShareForObject:[_dict objectForKey:@"identifier"]
+            [SPYOUCommonAPi IAPShareForObject:[_dict objectForKey:@"cpInfo"]
                                        Amount:[_dict objectForKey:@"mount"]
                                     ExtraInfo:[NSString stringWithFormat:@"{\"appid\":\"%@\",\"cpinfo\":\"%@\",\"cporderid\":\"%@\"}",
-                                               @"spxjgame",
+                                               APP_ID,
                                                [_dict objectForKey:@"cpInfo"],
                                                [_dict objectForKey:@"orderId"]]
                                         block:^(BOOL state, NSString *error) {

--
Gitblit v1.8.0