From 5fcbaefe79134594feef73f82cda7db3942d0b91 Mon Sep 17 00:00:00 2001
From: allez <305670599@qq.com>
Date: 星期二, 17 五月 2022 16:40:07 +0800
Subject: [PATCH] 0312 增加删除账号
---
Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.mm | 17 ++++++++++++++++-
Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.h | 5 ++++-
2 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.h b/Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.h
index 9a8ad12..e113b06 100644
--- a/Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.h
+++ b/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
diff --git a/Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.mm b/Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.mm
index d61956d..1521eaf 100644
--- a/Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.mm
+++ b/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;
}
}
--
Gitblit v1.8.0