MacBuilder
2018-09-28 1fcc1dad2249da550711a2bd107a0a8c49b05ba9
Fixed 思镤sdk逻辑修改
1个文件已修改
6 ■■■■■ 已修改文件
ChannelDiff/iOS/spyxxjios/The2thWorldSDK/UniversalSDK.mm 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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) {