|  | @@ -83,16 +83,22 @@ public class App extends BaseApplication {
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |          initFileDownload();
 |  |          initFileDownload();
 | 
											
												
													
														|  |          //极光推送
 |  |          //极光推送
 | 
											
												
													
														|  | -        //用户同意之后才初始化极光推送
 |  | 
 | 
											
												
													
														|  | -        JPushInterface.setDebugMode(true);
 |  | 
 | 
											
												
													
														|  | -        JCollectionAuth.setAuth(this, UserHelper.isAgreePrivacy());
 |  | 
 | 
											
												
													
														|  | -        JPushInterface.setBadgeNumber(this,0);
 |  | 
 | 
											
												
													
														|  | -        registrationId = JPushInterface.getRegistrationID(this);
 |  | 
 | 
											
												
													
														|  | 
 |  | +        initJiguang();
 | 
											
												
													
														|  |          initBugly();
 |  |          initBugly();
 | 
											
												
													
														|  |          initIM();
 |  |          initIM();
 | 
											
												
													
														|  |          initUmeng();
 |  |          initUmeng();
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +    private void initJiguang(){
 | 
											
												
													
														|  | 
 |  | +        //用户同意之后才初始化极光推送
 | 
											
												
													
														|  | 
 |  | +        JPushInterface.setDebugMode(true);
 | 
											
												
													
														|  | 
 |  | +        JCollectionAuth.setAuth(this, UserHelper.isAgreePrivacy());
 | 
											
												
													
														|  | 
 |  | +        if (UserHelper.isAgreePrivacy()) {
 | 
											
												
													
														|  | 
 |  | +            JPushInterface.init(this);
 | 
											
												
													
														|  | 
 |  | +            JPushInterface.setBadgeNumber(this, 0);
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |      private void initBugly() {
 |  |      private void initBugly() {
 | 
											
												
													
														|  |          if (UserHelper.isAgreePrivacy()) {
 |  |          if (UserHelper.isAgreePrivacy()) {
 | 
											
												
													
														|  |              CrashReport.initCrashReport(getApplicationContext(), "b51fd73164", false);
 |  |              CrashReport.initCrashReport(getApplicationContext(), "b51fd73164", false);
 |