From 24e75aea46eb84bd96c3525e23db4e3f449e19f2 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 17 八月 2023 18:59:11 +0800
Subject: [PATCH] 0312 恢复申请电话和存储权限

---
 Project/app/src/game_226114725/java/com/secondworld/univeralsdk/FreePlatformUtil.java |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/Project/app/src/game_226114725/java/com/secondworld/univeralsdk/FreePlatformUtil.java b/Project/app/src/game_226114725/java/com/secondworld/univeralsdk/FreePlatformUtil.java
index d92151d..c23153c 100644
--- a/Project/app/src/game_226114725/java/com/secondworld/univeralsdk/FreePlatformUtil.java
+++ b/Project/app/src/game_226114725/java/com/secondworld/univeralsdk/FreePlatformUtil.java
@@ -8,7 +8,6 @@
 import com.allugame.freesdk.entities.FreeOrder;
 import com.allugame.freesdk.port.FreePlatform;
 import com.reyun.tracking.sdk.Tracking;
-import com.ss.android.common.lib.EventUtils;
 
 import org.json.JSONException;
 import org.json.JSONObject;
@@ -102,7 +101,6 @@
                     case FreeCallbackCode.LOGOUT_SUCCESS:
                         m_Message.put("code", CodeA2U.FreePlatformLogoutOk);
                         UniversalUtil.sendMessageToUnity(m_Message);
-                        EventUtils.setLogin("mobile",true);
                         break;
                     case FreeCallbackCode.LOGOUT_FAILURE:
                         m_Message.put("code", CodeA2U.FreePlatformLogoutFail);
@@ -137,13 +135,18 @@
             @Override
             public void onResult(boolean b, String account)
             {
+                m_Account = account;
                 Map<String, Object> _registerMsg = new HashMap<>();
                 _registerMsg.put("code", CodeA2U.FreePlatformRegisterOk);
-                _registerMsg.put("account", account);
+                _registerMsg.put("account", m_Account);
                 UniversalUtil.sendMessageToUnity(_registerMsg);
-                Tracking.setRegisterWithAccountID(account);
-                EventUtils.setRegister("mobile",true);
+                Tracking.setRegisterWithAccountID(m_Account);
             }
         });
     }
+    private String m_Account;
+    public void SendRegisterEvent()
+    {
+        Tracking.setRegisterWithAccountID(m_Account);
+    }
 }

--
Gitblit v1.8.0