From e3f2a9999c0cf22c1b16fbf6a8d68d45a1590a5e Mon Sep 17 00:00:00 2001 From: allez <305670599@qq.com> Date: 星期一, 27 六月 2022 21:58:15 +0800 Subject: [PATCH] 0312 static int initedState=0; //初始化状态,0初始化中,1成功,2未登录(因为ios在sdk登录成功 游戏还没初始化好无法处理逻辑,所以需要在2的时候拦截二次登录) --- Project/qk_sdk/src/game_qk/java/com/secondworld/universalsdk/QuickPlatformUtil.java | 20 +++++++++----------- 1 files changed, 9 insertions(+), 11 deletions(-) diff --git a/Project/qk_sdk/src/game_qk/java/com/secondworld/universalsdk/QuickPlatformUtil.java b/Project/qk_sdk/src/game_qk/java/com/secondworld/universalsdk/QuickPlatformUtil.java index e055125..fbb5698 100644 --- a/Project/qk_sdk/src/game_qk/java/com/secondworld/universalsdk/QuickPlatformUtil.java +++ b/Project/qk_sdk/src/game_qk/java/com/secondworld/universalsdk/QuickPlatformUtil.java @@ -75,17 +75,16 @@ USER = userInfo; //鏍规嵁鍥炶皟鑾峰彇鐢ㄦ埛淇℃伅 - String timestamp = USER.getToken(); String token = USER.getToken(); - String userId = USER.getUID(); + //閫氱煡鍒皍nity涓殑璐﹀彿宸茬粡鍔犱笂娓犻亾ID,淇濊瘉appid鍜宻pid鍞竴瀵瑰簲 + String userId = USER.getUID() + "@" + com.quicksdk.Extend.getInstance().getChannelType(); String userName = USER.getUserName(); try { JSONObject _info = new JSONObject(); - _info.put("account", userName); + _info.put("account", userId); _info.put("token", token); - _info.put("timeStamp", timestamp); - _info.put("account_id", userId); + _info.put("userName", USER.getUID()); m_Message.put("code", CodeA2U.FreePlatformLoginOk); m_Message.put("info", _info); UniversalUtil.sendMessageToUnity(m_Message); @@ -133,17 +132,16 @@ USER = userInfo; //鏍规嵁鍥炶皟鑾峰彇鐢ㄦ埛淇℃伅 - String timestamp = USER.getToken(); String token = USER.getToken(); - String userId = USER.getUID(); + //閫氱煡鍒皍nity涓殑璐﹀彿宸茬粡鍔犱笂娓犻亾ID,淇濊瘉appid鍜宻pid鍞竴瀵瑰簲 + String userId = USER.getUID() + "@" + com.quicksdk.Extend.getInstance().getChannelType(); String userName = USER.getUserName(); try { JSONObject _info = new JSONObject(); - _info.put("account", userName); + _info.put("userName", USER.getUID()); _info.put("token", token); - _info.put("timeStamp", timestamp); - _info.put("account_id", userId); + _info.put("account", userId); m_Message.put("code", CodeA2U.FreePlatformSwitchAccountOk); m_Message.put("info", _info); UniversalUtil.sendMessageToUnity(m_Message); @@ -205,7 +203,7 @@ public void onSuccess() { //閫�鍑烘垚鍔燂紝娓告垙鍦ㄦ鍋氳嚜韬殑閫�鍑洪�昏緫澶勭悊 m_Message.clear(); - m_Message.put("code", CodeA2U.FreePlatformExit); + m_Message.put("code", CodeA2U.ExitGame); UniversalUtil.sendMessageToUnity(m_Message); payProcessing = false; } -- Gitblit v1.8.0