|
|
@@ -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;
|