From d96addbbe88584db54bd83d590eb019877908f16 Mon Sep 17 00:00:00 2001 From: lwb <q3213421wrwqr> Date: 星期四, 21 一月 2021 15:14:05 +0800 Subject: [PATCH] 9527 增加权限请求 --- SdkProject/library/src/main/java/com/secondworld/sdk/command/CmdInit.java | 9 +++------ 1 files changed, 3 insertions(+), 6 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 0dcfecb..1e54fda 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,6 @@ import android.app.AlertDialog; -import com.secondworld.sdk.GTGameApp; import com.secondworld.sdk.GameApp; import com.secondworld.sdk.PlatformDiff; import com.secondworld.sdk.UnityMsgHandler; @@ -32,7 +31,7 @@ @Override public void process(JSONObject json) throws JSONException { - GTGameApp.I.appId = json.getString("appID"); + GameApp.I.appId = json.getString("appID"); long size = DeviceUtil.getTotalRAMSize() / 1024 / 1024; LogUtil.debug("CmdInit", "鍐呭瓨锛�" + size + " mb"); @@ -50,19 +49,17 @@ } //鍙戦�佽澶囦俊鎭� 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