From 47dff99392e258889b912b95869f4cc770ae05e3 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期三, 26 九月 2018 19:54:59 +0800
Subject: [PATCH] update 猫耳素材
---
Project/app/src/game_822055139/java/com/secondworld/univeralsdk/H2EngineSDK.java | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/Project/app/src/game_822055139/java/com/secondworld/univeralsdk/H2EngineSDK.java b/Project/app/src/game_822055139/java/com/secondworld/univeralsdk/H2EngineSDK.java
index 966fa6c..0b9640e 100644
--- a/Project/app/src/game_822055139/java/com/secondworld/univeralsdk/H2EngineSDK.java
+++ b/Project/app/src/game_822055139/java/com/secondworld/univeralsdk/H2EngineSDK.java
@@ -99,6 +99,7 @@
_json.getString("orderId"),
(float) _json.getDouble("mount"),
_json.getString("cpInfo"));
+ FreePlatformUtil.getInstace().payProcessing = true;
break;
case CodeU2A.PayFinished:
Tracking.setPayment(_json.getString("orderID"),
@@ -108,7 +109,6 @@
int _money = (int) (_json.getDouble("money"));
- LogUtil.i(TAG, "閲戦: " + _money);
EventUtils.setPurchase("",
"",
"",
@@ -117,6 +117,9 @@
_json.getString("moneyType"),
true,
_money);
+
+ FreePlatformUtil.getInstace().payProcessing = false;
+
break;
case CodeU2A.ClientPackage:
// 鍒濆鍖栫儹浜�
@@ -301,9 +304,6 @@
// ------------------------------- 鑷敱SDK -------------------------------
FreePlatformUtil.getInstace().init(activity);
-
- // ------------------------------- 鐚�砈DK -------------------------------
- FreePlatformUtil.getInstace().init(activity);
// ------------------------------- 鏋佸厜鎺ㄩ�� -------------------------------
JPushInterface.setDebugMode(true);
JPushInterface.init(activity);
@@ -356,6 +356,10 @@
FreePlatform.getInstance().onCreate();
}
+ public static void onWindowFocusChanged(boolean b)
+ {
+ }
+
public static void onNewIntent(final Activity activity, final Intent intent)
{
}
@@ -388,6 +392,14 @@
{
FreePlatform.getInstance().onResume();
TeaAgent.onResume(activity);
+
+ if(FreePlatformUtil.getInstace().payProcessing)
+ {
+ Map<String, Object> _msgStruct = new HashMap<>();
+ _msgStruct.put("code", CodeA2U.FreePlatformPayCancel);
+ UniversalUtil.sendMessageToUnity(_msgStruct);
+ FreePlatformUtil.getInstace().payProcessing = false;
+ }
}
public static void onStop(final Activity activity)
--
Gitblit v1.8.0