From 1325a16603f28e80f0d75b1b6988083ed0b51fcf Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 22 五月 2024 21:27:10 +0800
Subject: [PATCH] 0312 明文

---
 Project/app/src/game_904100357/java/com/secondworld/univeralsdk/H2EngineSDK.java |   41 +++--------------------------------------
 1 files changed, 3 insertions(+), 38 deletions(-)

diff --git a/Project/app/src/game_904100357/java/com/secondworld/univeralsdk/H2EngineSDK.java b/Project/app/src/game_904100357/java/com/secondworld/univeralsdk/H2EngineSDK.java
index f1ddd9f..dcda331 100644
--- a/Project/app/src/game_904100357/java/com/secondworld/univeralsdk/H2EngineSDK.java
+++ b/Project/app/src/game_904100357/java/com/secondworld/univeralsdk/H2EngineSDK.java
@@ -16,10 +16,6 @@
 import android.widget.Toast;
 
 import com.allugame.freesdk.port.FreePlatform;
-import com.reyun.tracking.sdk.Tracking;
-import com.ss.android.common.applog.TeaAgent;
-import com.ss.android.common.applog.TeaConfigBuilder;
-import com.ss.android.common.lib.EventUtils;
 import com.unity3d.player.UnityPlayer;
 
 import org.json.JSONException;
@@ -105,31 +101,9 @@
                     FreePlatformUtil.getInstace().payProcessing = true;
                     break;
                 case CodeU2A.PayFinished:
-                    Tracking.setPayment(_json.getString("orderID"),
-                                        _json.getString("payType"),
-                                        _json.getString("moneyType"),
-                                        (float) _json.getDouble("money"));
-
-                    int _money = (int) (_json.getDouble("money"));
-
-                    EventUtils.setPurchase("",
-                                           "",
-                                           "",
-                                           1,
-                                           _json.getString("payType"),
-                                           _json.getString("moneyType"),
-                                           true,
-                                           _money);
-
                     FreePlatformUtil.getInstace().payProcessing = false;
-
                     break;
                 case CodeU2A.ClientPackage:
-                    // 鍒濆鍖栫儹浜�
-                    Tracking.initWithKeyAndChannelId(_activity,
-                                                     UniversalUtil.getMetaString(_activity,
-                                                                                 "TrackAppID"),
-                                                     _json.getString("clientPkgID"));
                     break;
                 case CodeU2A.JPushAddLocalMessage:
                     addLocalNotification(_activity,
@@ -140,6 +114,9 @@
                     break;
                 case CodeU2A.JPushRemoveLocalMessage:
                     removeNotification(_activity, _json.getInt("id"));
+                    break;
+                case CodeU2A.SendRegistEvent:
+                    FreePlatformUtil.getInstance().SendRegisterEvent();
                     break;
             }
 
@@ -310,15 +287,6 @@
                 // ------------------------------- 鏋佸厜鎺ㄩ�� -------------------------------
                 JPushInterface.setDebugMode(true);
                 JPushInterface.init(activity);
-                // ------------------------------- 浠婂ぉ澶存潯 -----------------------
-                TeaAgent.init(TeaConfigBuilder.create(activity)
-                                      .setAppName(UniversalUtil.getMetaString(activity,
-                                                                              "TouTiao_AppName"))
-                                      .setChannel(UniversalUtil.getMetaString(activity,
-                                                                              "TouTiao_Chanel"))
-                                      .setAid(UniversalUtil.getMetaInt(activity, "TouTiao_AppID"))
-                                      .createTeaConfig());
-                TeaAgent.setDebug(true);
 
                 final long _waitingTime = System.currentTimeMillis();
 
@@ -388,13 +356,11 @@
     public static void onPause(final Activity activity)
     {
         FreePlatform.getInstance().onPause();
-        TeaAgent.onPause(activity);
     }
 
     public static void onResume(final Activity activity)
     {
         FreePlatform.getInstance().onResume();
-        TeaAgent.onResume(activity);
 
         if(FreePlatformUtil.getInstace().payProcessing)
         {
@@ -413,6 +379,5 @@
     public static void onDestroy(final Activity activity)
     {
         FreePlatform.getInstance().onDestory();
-        Tracking.exitSdk();
     }
 }

--
Gitblit v1.8.0