diff --git a/ShenQi.xcodeproj/project.pbxproj b/ShenQi.xcodeproj/project.pbxproj index 4640165..4086484 100644 --- a/ShenQi.xcodeproj/project.pbxproj +++ b/ShenQi.xcodeproj/project.pbxproj @@ -668,7 +668,7 @@ "$(inherited)", "$(PROJECT_DIR)/ShenQi", ); - MARKETING_VERSION = 1.0; + MARKETING_VERSION = 1.1; PRODUCT_BUNDLE_IDENTIFIER = noti.testAPP; PRODUCT_NAME = TESTAPP; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -721,7 +721,7 @@ "$(inherited)", "$(PROJECT_DIR)/ShenQi", ); - MARKETING_VERSION = 1.0; + MARKETING_VERSION = 1.1; PRODUCT_BUNDLE_IDENTIFIER = noti.testAPP; PRODUCT_NAME = TESTAPP; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/ShenQi.xcworkspace/xcuserdata/a123.xcuserdatad/UserInterfaceState.xcuserstate b/ShenQi.xcworkspace/xcuserdata/a123.xcuserdatad/UserInterfaceState.xcuserstate index 62dd960..6c295ae 100644 Binary files a/ShenQi.xcworkspace/xcuserdata/a123.xcuserdatad/UserInterfaceState.xcuserstate and b/ShenQi.xcworkspace/xcuserdata/a123.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/ShenQi/AppDelegate.m b/ShenQi/AppDelegate.m index 4153a21..226c218 100644 --- a/ShenQi/AppDelegate.m +++ b/ShenQi/AppDelegate.m @@ -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) {