|
@@ -169,20 +169,13 @@
|
|
|
int msgType = [pushDict[@"msgType"] intValue];
|
|
|
if (msgType==2) {//透传退出登录
|
|
|
//1、登录 2、判断url是否存在-跳转 3、不存在url判断类型
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
NSString *type = [NSString stringWithFormat:@"%@",pushDict[@"type"]];
|
|
|
if ([LXUserDefaults isExistToken] && [type isEqualToString:@"signOut"]) {
|
|
|
- AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
|
|
|
- JYTabBarController *tab = (JYTabBarController *)delegate.window.rootViewController;
|
|
|
+// AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
|
|
|
+// JYTabBarController *tab = (JYTabBarController *)delegate.window.rootViewController;
|
|
|
// NSLog(@"%lu",(unsigned long)tab.selectedIndex);
|
|
|
//判断第几个底部栏
|
|
|
- [[NSNotificationCenter defaultCenter] postNotificationName:kLoginOut object:[NSString stringWithFormat:@"%@",pushDict[@"info"][@"body"]] userInfo:@{@"item_index":[NSString stringWithFormat:@"%lu",(unsigned long)tab.selectedIndex]}];
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:kLoginOut object:[NSString stringWithFormat:@"%@",pushDict[@"info"][@"body"]] userInfo:@{}];
|
|
|
}
|
|
|
|
|
|
}else if (msgType==1){
|
|
@@ -219,8 +212,6 @@
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
//推送回调
|
|
|
-(void)grpcCallbackServer:(NSDictionary *)dict {
|
|
|
MsgPushReq *req = [[MsgPushReq alloc]init];
|