allez
2022-05-17 5fcbaefe79134594feef73f82cda7db3942d0b91
0312 增加删除账号
2个文件已修改
22 ■■■■■ 已修改文件
Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.h 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.mm 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.h
@@ -36,7 +36,9 @@
#define S2U_FreePlatformRegisterOk      111
#define S2U_ShareCallBack               112
#define S2U_ReviewCallBack              113
#define OrderInfoCallBack           114
#define S2U_OrderInfoCallBack           114
#define S2U_DelAccount                  115
#define U2S_BatteryListenStart          1
#define U2S_BatteryListenStop           2
@@ -56,6 +58,7 @@
#define U2S_GoToReview                  113
#define U2S_ShowAccountView             114
#define U2S_CompleteTutorial            115
#define U2S_DelAccount                  117
#define U2S_JPushAddLocalMessage        200
#define U2S_JPushRemoveLocalMessage     201
#define U2S_MakeKeyAndVisible           300
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;
    }
}