change jump

This commit is contained in:
Yao
2025-01-11 17:46:41 +08:00
parent 36ca0e65b5
commit 33ac157f71
3 changed files with 11 additions and 9 deletions

View File

@@ -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) {