ソースを参照

- 로그아웃 프로세스 작업 완료
: 테스트 필

KaRam Kim 8 年 前
コミット
ffd3840839

+ 11 - 1
OneCable/Classes/ViewControllers/MainScreens/LoginViewController.m

@@ -339,8 +339,12 @@
 }
 
 - (void)requestLogout {
+    NSDictionary *param = @{@"message_type": @"auth.out"};
+    
+    [self sendDataToSocket:param];
+    
     //parameters
-    [self actionAfterLogout];
+//    [self actionAfterLogout];
 //    NSString *path = [NSString stringWithFormat:API_POST_SIGN_OUT];
 //
 //    [[RequestHandler handler] sendAsyncGetRequestAPIPath:path parameters:nil modelClass:[JDJSONModel class] completion:^(id responseObject) {
@@ -462,6 +466,12 @@
             
             break;
         }
+        CASE(@"auth.out")
+        {
+            if (result.isSuccess) {
+                [self actionAfterLogout];
+            }
+        }
         DEFAULT
         {
             break;