From 7e4d73ba93c6c44f2367408d135fffeb111d80fe Mon Sep 17 00:00:00 2001
From: allez <305670599@qq.com>
Date: 星期二, 19 十二月 2023 14:53:42 +0800
Subject: [PATCH] 0312 咪噜监听sdk退出

---
 Channel/IOS/mlgtgame/Plugins/The2thWorldSDK/UniversalSDK.mm |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/Channel/IOS/mlgtgame/Plugins/The2thWorldSDK/UniversalSDK.mm b/Channel/IOS/mlgtgame/Plugins/The2thWorldSDK/UniversalSDK.mm
index 12afe60..d3d3fc3 100644
--- a/Channel/IOS/mlgtgame/Plugins/The2thWorldSDK/UniversalSDK.mm
+++ b/Channel/IOS/mlgtgame/Plugins/The2thWorldSDK/UniversalSDK.mm
@@ -29,6 +29,9 @@
 static NSThread* _thread;
 
 
+
+
+
 -(id)init
 {
      self = [super init];
@@ -83,6 +86,18 @@
                                       _userAgent,@"userAgent",nil];
         [self SendMessageToUnity:_dict];
         }];
+    
+    
+    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(smpcQpLogoutResult:) name:MYLoginOutResultNotification object:nil];
+}
+
+
+- (void)smpcQpLogoutResult:(NSNotification *)notify {
+    NSLog(@"sdk璇锋眰閫�鍑�");
+    //娉ㄩ攢鎴愬姛
+    NSDictionary *_dict = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInt:S2U_FreePlatformLogoutOk], @"code", nil];
+    [self SendMessageToUnity:_dict];
+    
 }
 
 -(void)SendMessageToUnity:(NSDictionary*)dict

--
Gitblit v1.8.0