change jump
This commit is contained in:
@@ -219,15 +219,17 @@
|
||||
options:NSJSONReadingMutableContainers
|
||||
error:&err];
|
||||
if (!ISNULL(messageNotiDic)) {
|
||||
NSInteger type = [[messageNotiDic objectForKey:@"type"] integerValue];// 1 文字 2 图片 3 链接
|
||||
NSString *image = [messageNotiDic objectForKey:@"image"];
|
||||
NSString *jumpUrl = [messageNotiDic objectForKey:@"jumpUrl"];
|
||||
// NSInteger type = [[messageNotiDic objectForKey:@"type"] integerValue];// 1 文字 2 图片 3 链接
|
||||
// NSString *image = [messageNotiDic objectForKey:@"image"];
|
||||
// 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];
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user