From e8895951735d4ddb94bbf1030c1ba93e30b028f5 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期二, 14 八月 2018 17:42:30 +0800
Subject: [PATCH] fixed 灵仙记极光推送appkey配置错误; 打包添加极光推送appKey配置

---
 Project/app/src/main/java/com/secondworld/univeralsdk/H2EngineSDK.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/Project/app/src/main/java/com/secondworld/univeralsdk/H2EngineSDK.java b/Project/app/src/main/java/com/secondworld/univeralsdk/H2EngineSDK.java
index 24805e3..2934e45 100644
--- a/Project/app/src/main/java/com/secondworld/univeralsdk/H2EngineSDK.java
+++ b/Project/app/src/main/java/com/secondworld/univeralsdk/H2EngineSDK.java
@@ -307,9 +307,14 @@
 
                 // ------------------------------- 鑷敱SDK -------------------------------
                 FreePlatformUtil.getInstace().init(activity);
+                LogUtil.i(TAG,"姝ラ: 1");
                 // ------------------------------- 鏋佸厜鎺ㄩ�� -------------------------------
                 JPushInterface.setDebugMode(true);
+                LogUtil.i(TAG,"姝ラ: 2");
                 JPushInterface.init(activity);
+                LogUtil.i(TAG,"姝ラ: 3");
+
+                final long _waitingTime = System.currentTimeMillis();
 
                 while (true)
                 {
@@ -318,6 +323,14 @@
                     {
                         break;
                     }
+
+                    long _escapeTime = System.currentTimeMillis() - _waitingTime;
+
+                    if (_escapeTime > 3000)
+                    {
+                        LogUtil.w(TAG,"绛夊緟鑾峰彇鏋佸厜鎺ㄩ�乺egistrationID瓒呮椂: 3绉�");
+                        break;
+                    }
                 }
 
                 _msgStruct.clear();

--
Gitblit v1.8.0