allez
2022-05-17 5fcbaefe79134594feef73f82cda7db3942d0b91
Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.mm
@@ -284,6 +284,18 @@
     [Soha userNotificationCenter:center willPresentNotification:notification];
}
- (void)sohaDeleteAccountDelegate:(SohaUser *)user
{
    NSLog(@"删除角色 callback");
    if(user)
    {
        NSLog(@"删除角色 ok");
        NSMutableDictionary *_dict = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                      [NSNumber numberWithInt:S2U_DelAccount], @"code", nil];
        [self SendMessageToUnity:_dict];
    }
}
- (void)PlatformInitFinished{
    NSLog(@"渠道初始化成功,初始化没有回调直接通知成功");
    initedState=1;
@@ -463,7 +475,7 @@
                NSString *orderInfos = [strArray componentsJoinedByString:@"|"];
                
                NSDictionary *_dict = [NSDictionary dictionaryWithObjectsAndKeys:
                                       [NSNumber numberWithInt:OrderInfoCallBack], @"code", orderInfos, @"orderInfos", nil];
                                       [NSNumber numberWithInt:S2U_OrderInfoCallBack], @"code", orderInfos, @"orderInfos", nil];
                
                [self SendMessageToUnity:_dict];
            }];
@@ -504,6 +516,9 @@
            break;
        case U2S_BatteryListenStop:
            break;
        case U2S_DelAccount:
            [Soha deleteAccount];
            break;
    }
}