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

@@ -668,7 +668,7 @@
"$(inherited)", "$(inherited)",
"$(PROJECT_DIR)/ShenQi", "$(PROJECT_DIR)/ShenQi",
); );
MARKETING_VERSION = 1.0; MARKETING_VERSION = 1.1;
PRODUCT_BUNDLE_IDENTIFIER = noti.testAPP; PRODUCT_BUNDLE_IDENTIFIER = noti.testAPP;
PRODUCT_NAME = TESTAPP; PRODUCT_NAME = TESTAPP;
PROVISIONING_PROFILE_SPECIFIER = ""; PROVISIONING_PROFILE_SPECIFIER = "";
@@ -721,7 +721,7 @@
"$(inherited)", "$(inherited)",
"$(PROJECT_DIR)/ShenQi", "$(PROJECT_DIR)/ShenQi",
); );
MARKETING_VERSION = 1.0; MARKETING_VERSION = 1.1;
PRODUCT_BUNDLE_IDENTIFIER = noti.testAPP; PRODUCT_BUNDLE_IDENTIFIER = noti.testAPP;
PRODUCT_NAME = TESTAPP; PRODUCT_NAME = TESTAPP;
PROVISIONING_PROFILE_SPECIFIER = ""; PROVISIONING_PROFILE_SPECIFIER = "";

View File

@@ -219,15 +219,17 @@
options:NSJSONReadingMutableContainers options:NSJSONReadingMutableContainers
error:&err]; error:&err];
if (!ISNULL(messageNotiDic)) { if (!ISNULL(messageNotiDic)) {
NSInteger type = [[messageNotiDic objectForKey:@"type"] integerValue];// 1 2 3 // NSInteger type = [[messageNotiDic objectForKey:@"type"] integerValue];// 1 2 3
NSString *image = [messageNotiDic objectForKey:@"image"]; // NSString *image = [messageNotiDic objectForKey:@"image"];
NSString *jumpUrl = [messageNotiDic objectForKey:@"jumpUrl"]; // NSString *jumpUrl = [messageNotiDic objectForKey:@"jumpUrl"];
NSInteger pushId = [[messageNotiDic objectForKey:@"pushId"] longValue]; NSInteger pushId = [[messageNotiDic objectForKey:@"pushId"] longValue];
NotiCenterViewController *notiCenterViewController = [[NotiCenterViewController alloc] initWithNibName:@"NotiCenterViewController" bundle:nil]; dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
notiCenterViewController.modalPresentationStyle = UIModalPresentationFullScreen; NotiCenterViewController *notiCenterViewController = [[NotiCenterViewController alloc] initWithNibName:@"NotiCenterViewController" bundle:nil];
notiCenterViewController.pushId = pushId; notiCenterViewController.modalPresentationStyle = UIModalPresentationFullScreen;
[self.window.rootViewController presentViewController:notiCenterViewController animated:NO completion:nil]; notiCenterViewController.pushId = pushId;
[self.window.rootViewController presentViewController:notiCenterViewController animated:NO completion:nil];
});
// pushId // pushId
if (pushId > 0) { if (pushId > 0) {