1、打开推送
// 打开推送
[JPUSHService registerForRemoteNotificationTypes:(UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert) categories:nil];
2、关闭推送
// 关闭推送
[[UIApplication sharedApplication] unregisterForRemoteNotifications];