refresh
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#import "MainOldViewController.h"
|
||||
|
||||
#import "LaunchViewController.h"
|
||||
#import "NotiCenterViewController.h"
|
||||
|
||||
@interface AppDelegate () <FIRMessagingDelegate,UNUserNotificationCenterDelegate>
|
||||
|
||||
@@ -223,6 +224,11 @@
|
||||
NSString *jumpUrl = [messageNotiDic objectForKey:@"jumpUrl"];
|
||||
NSInteger pushId = [[messageNotiDic objectForKey:@"pushId"] longValue];
|
||||
|
||||
NotiCenterViewController *notiCenterViewController = [[NotiCenterViewController alloc] initWithNibName:@"NotiCenterViewController" bundle:nil];
|
||||
notiCenterViewController.modalPresentationStyle = UIModalPresentationFullScreen;
|
||||
notiCenterViewController.pushId = pushId;
|
||||
[self.window.rootViewController presentViewController:notiCenterViewController animated:NO completion:nil];
|
||||
|
||||
// 上传点击 pushId
|
||||
if (pushId > 0) {
|
||||
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:PushStatisticsURL]];
|
||||
@@ -238,6 +244,7 @@
|
||||
}];
|
||||
[dataTask resume];
|
||||
}
|
||||
/*
|
||||
if (type == 2 && !ISNULLSTR(image)) {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
NSURL *url = [NSURL URLWithString:image];
|
||||
@@ -266,6 +273,7 @@
|
||||
[self.window.rootViewController presentViewController:view animated:YES completion:^{}];
|
||||
});
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user