From 7e2df20ccc7cdfb528d309369460a4f3d66afdf1 Mon Sep 17 00:00:00 2001
From: liuxue <q3213421wrwqr>
Date: 星期四, 29 七月 2021 17:51:09 +0800
Subject: [PATCH] 0000 增加bt3 quick android 和 ios 的 SDK

---
 SdkProject/library/src/main/java/com/secondworld/sdk/command/CmdInit.java |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/SdkProject/library/src/main/java/com/secondworld/sdk/command/CmdInit.java b/SdkProject/library/src/main/java/com/secondworld/sdk/command/CmdInit.java
index be1dc88..f1cce9d 100644
--- a/SdkProject/library/src/main/java/com/secondworld/sdk/command/CmdInit.java
+++ b/SdkProject/library/src/main/java/com/secondworld/sdk/command/CmdInit.java
@@ -3,7 +3,7 @@
 
 import android.app.AlertDialog;
 
-import com.secondworld.sdk.GameApp;
+import com.secondworld.sdk.GameAppProxy;
 import com.secondworld.sdk.PlatformDiff;
 import com.secondworld.sdk.UnityMsgHandler;
 import com.secondworld.sdk.utils.CodeA2U;
@@ -31,7 +31,7 @@
 
     @Override
     public void process(JSONObject json) throws JSONException {
-        GameApp.I.appId = json.getString("appID");
+        GameAppProxy.appId = json.getString("appID");
 
         long size = DeviceUtil.getTotalRAMSize() / 1024 / 1024;
         LogUtil.debug("CmdInit", "鍐呭瓨锛�" + size + " mb");
@@ -42,26 +42,24 @@
             _builder.setCancelable(false);
             _builder.setMessage("鎮ㄧ殑璁惧杩愯鍐呭瓨涓嶆弧瓒宠姹�,鏃犳硶姝e父杩愯娓告垙");
             _builder.setPositiveButton("纭畾", (dialogInterface, i) -> {
-                GameApp.I.appExit();
+                GameAppProxy.appExit();
             });
             _builder.show();
             return;
         }
         //鍙戦�佽澶囦俊鎭�
         Map<String, Object> _msgStruct = new HashMap<>();
-        _msgStruct.put("code", CodeA2U.DeviceInfo);
         _msgStruct.put("userAgent", System.getProperty("http.agent"));
         _msgStruct.put("mac", DeviceUtil.getLocalMac());
         _msgStruct.put("imei", "");
         _msgStruct.put("android_id", DeviceUtil.getAndroidId());
         _msgStruct.put("unique_id", DeviceUtil.getUniqueID());
         _msgStruct.put("memoryTotal", size);
-        UnityMsgHandler.sendMessageToUnity(_msgStruct);
+        UnityMsgHandler.sendMessageToUnity(CodeA2U.DeviceInfo,_msgStruct);
         //閫氱煡sdk鍒濆鍖栧畬鎴�
         _msgStruct.clear();
-        _msgStruct.put("code", CodeA2U.SdkInitComplete);
         _msgStruct.put("channelPlatform", PlatformDiff.I.platformName());
-        UnityMsgHandler.sendMessageToUnity(_msgStruct);
+        UnityMsgHandler.sendMessageToUnity(CodeA2U.SdkInitComplete,_msgStruct);
         LogUtil.debug("CmdInit", "Sdk鍒濆鍖栧畬鎴�");
     }
 }

--
Gitblit v1.8.0